2016-06-29 14:55:00 +02:00
|
|
|
# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../webrtc.gni")
|
2017-12-20 10:47:36 -08:00
|
|
|
|
2016-06-29 14:55:00 +02:00
|
|
|
if (is_android) {
|
|
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
|
import("//build/config/android/rules.gni")
|
2016-08-07 21:37:45 -07:00
|
|
|
} else if (is_mac) {
|
|
|
|
|
import("//build/config/mac/rules.gni")
|
|
|
|
|
} else if (is_ios) {
|
|
|
|
|
import("//build/config/ios/rules.gni")
|
2016-06-29 14:55:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group("examples") {
|
2016-10-28 05:44:03 -07:00
|
|
|
# This target shall build all targets in examples.
|
|
|
|
|
testonly = true
|
2017-12-14 13:06:10 +01:00
|
|
|
deps = []
|
2016-06-29 14:55:00 +02:00
|
|
|
|
2016-08-07 21:37:45 -07:00
|
|
|
if (is_android) {
|
2017-12-14 13:06:10 +01:00
|
|
|
deps += [
|
2016-10-28 05:44:03 -07:00
|
|
|
":AppRTCMobile",
|
2018-08-03 13:23:05 +02:00
|
|
|
":AppRTCMobile_test_apk",
|
2018-03-07 09:58:54 -08:00
|
|
|
":libwebrtc_unity",
|
2020-07-20 17:52:12 -04:00
|
|
|
"androidvoip",
|
2016-10-28 05:44:03 -07:00
|
|
|
]
|
2018-03-08 16:43:16 +01:00
|
|
|
|
|
|
|
|
# TODO(sakal): We include some code from the tests. Remove this dependency
|
|
|
|
|
# and remove this if-clause.
|
|
|
|
|
if (rtc_include_tests) {
|
2019-03-21 13:35:10 +01:00
|
|
|
deps += [ "androidnativeapi" ]
|
2018-03-08 16:43:16 +01:00
|
|
|
}
|
2016-10-28 05:44:03 -07:00
|
|
|
}
|
|
|
|
|
|
2016-11-01 03:09:15 -07:00
|
|
|
if (!build_with_chromium) {
|
2017-12-14 13:06:10 +01:00
|
|
|
deps += [ ":stun_prober" ]
|
2016-11-01 03:09:15 -07:00
|
|
|
}
|
|
|
|
|
|
2016-10-28 05:44:03 -07:00
|
|
|
if (is_ios || (is_mac && target_cpu != "x86")) {
|
2017-12-14 13:06:10 +01:00
|
|
|
deps += [ ":AppRTCMobile" ]
|
2016-06-29 14:55:00 +02:00
|
|
|
}
|
2016-10-28 05:44:03 -07:00
|
|
|
|
2020-09-10 18:10:11 +09:00
|
|
|
if (is_linux || is_chromeos || is_win) {
|
2017-12-14 13:06:10 +01:00
|
|
|
deps += [
|
2016-08-08 09:03:23 -07:00
|
|
|
":peerconnection_server",
|
|
|
|
|
":stunserver",
|
|
|
|
|
":turnserver",
|
|
|
|
|
]
|
2018-11-22 20:10:11 -05:00
|
|
|
if (current_os != "winuwp") {
|
|
|
|
|
deps += [ ":peerconnection_client" ]
|
|
|
|
|
}
|
2016-08-08 09:03:23 -07:00
|
|
|
}
|
2018-03-07 09:58:54 -08:00
|
|
|
|
|
|
|
|
if (is_android || is_win) {
|
|
|
|
|
deps += [ ":webrtc_unity_plugin" ]
|
|
|
|
|
}
|
2016-06-29 14:55:00 +02:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("read_auth_file") {
|
2018-10-30 12:20:03 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"turnserver/read_auth_file.cc",
|
|
|
|
|
"turnserver/read_auth_file.h",
|
|
|
|
|
]
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ "../rtc_base" ]
|
2018-10-30 12:20:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
rtc_test("examples_unittests") {
|
|
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "turnserver/read_auth_file_unittest.cc" ]
|
2018-10-30 12:20:03 +01:00
|
|
|
deps = [
|
|
|
|
|
":read_auth_file",
|
|
|
|
|
"../test:test_main",
|
|
|
|
|
"//test:test_support",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-07 21:37:45 -07:00
|
|
|
if (is_android) {
|
2017-11-07 15:36:33 +00:00
|
|
|
rtc_android_apk("AppRTCMobile") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2016-09-27 10:10:41 +02:00
|
|
|
apk_name = "AppRTCMobile"
|
2016-06-29 14:55:00 +02:00
|
|
|
android_manifest = "androidapp/AndroidManifest.xml"
|
2020-06-25 22:57:49 +02:00
|
|
|
min_sdk_version = 21
|
2019-06-18 17:09:51 +02:00
|
|
|
target_sdk_version = 29
|
2016-06-29 14:55:00 +02:00
|
|
|
|
|
|
|
|
deps = [
|
2016-09-27 10:10:41 +02:00
|
|
|
":AppRTCMobile_javalib",
|
|
|
|
|
":AppRTCMobile_resources",
|
2017-07-11 06:20:45 -07:00
|
|
|
"../rtc_base:base_java",
|
2016-06-29 14:55:00 +02:00
|
|
|
]
|
|
|
|
|
|
2017-07-11 06:20:45 -07:00
|
|
|
shared_libraries = [ "../sdk/android:libjingle_peerconnection_so" ]
|
2016-06-29 14:55:00 +02:00
|
|
|
}
|
|
|
|
|
|
2017-11-07 15:36:33 +00:00
|
|
|
rtc_android_library("AppRTCMobile_javalib") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2020-05-19 13:44:42 +02:00
|
|
|
android_manifest = "androidapp/AndroidManifest.xml"
|
2017-02-13 05:58:27 -08:00
|
|
|
|
2019-12-23 14:02:25 -08:00
|
|
|
sources = [
|
2016-06-29 14:55:00 +02:00
|
|
|
"androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java",
|
2016-12-14 07:36:56 -08:00
|
|
|
"androidapp/src/org/appspot/apprtc/AppRTCBluetoothManager.java",
|
2016-06-29 14:55:00 +02:00
|
|
|
"androidapp/src/org/appspot/apprtc/AppRTCClient.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/CallActivity.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/CallFragment.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/CaptureQualityController.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/ConnectActivity.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/CpuMonitor.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/DirectRTCClient.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/HudFragment.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/PeerConnectionClient.java",
|
2019-12-23 14:02:25 -08:00
|
|
|
"androidapp/src/org/appspot/apprtc/RecordedAudioToFileController.java",
|
2016-06-29 14:55:00 +02:00
|
|
|
"androidapp/src/org/appspot/apprtc/RoomParametersFetcher.java",
|
2018-02-12 10:34:18 -08:00
|
|
|
"androidapp/src/org/appspot/apprtc/RtcEventLog.java",
|
2016-06-29 14:55:00 +02:00
|
|
|
"androidapp/src/org/appspot/apprtc/SettingsActivity.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/SettingsFragment.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/TCPChannelClient.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/UnhandledExceptionHandler.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/WebSocketRTCClient.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java",
|
|
|
|
|
"androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java",
|
|
|
|
|
]
|
|
|
|
|
|
2020-09-01 15:51:12 -04:00
|
|
|
resources_package = "org.appspot.apprtc"
|
2016-06-29 14:55:00 +02:00
|
|
|
deps = [
|
2016-09-27 10:10:41 +02:00
|
|
|
":AppRTCMobile_resources",
|
2017-07-11 06:20:45 -07:00
|
|
|
"../rtc_base:base_java",
|
2018-04-23 15:07:34 +02:00
|
|
|
"../sdk/android:audio_api_java",
|
2018-03-28 10:49:18 +02:00
|
|
|
"../sdk/android:base_java",
|
2018-04-04 15:59:31 +02:00
|
|
|
"../sdk/android:camera_java",
|
2018-07-10 09:33:30 +02:00
|
|
|
"../sdk/android:default_video_codec_factory_java",
|
2018-04-04 15:59:31 +02:00
|
|
|
"../sdk/android:filevideo_java",
|
2018-03-28 10:49:18 +02:00
|
|
|
"../sdk/android:hwcodecs_java",
|
2018-04-23 15:07:34 +02:00
|
|
|
"../sdk/android:java_audio_device_module_java",
|
2017-07-11 06:20:45 -07:00
|
|
|
"../sdk/android:libjingle_peerconnection_java",
|
|
|
|
|
"../sdk/android:libjingle_peerconnection_metrics_default_java",
|
2018-04-04 15:59:31 +02:00
|
|
|
"../sdk/android:peerconnection_java",
|
|
|
|
|
"../sdk/android:screencapturer_java",
|
|
|
|
|
"../sdk/android:surfaceviewrenderer_java",
|
2018-03-28 10:49:18 +02:00
|
|
|
"../sdk/android:swcodecs_java",
|
2018-04-04 15:59:31 +02:00
|
|
|
"../sdk/android:video_api_java",
|
2018-07-24 10:53:28 +02:00
|
|
|
"../sdk/android:video_java",
|
2017-07-11 06:20:45 -07:00
|
|
|
"androidapp/third_party/autobanh:autobanh_java",
|
2019-03-06 09:18:57 -05:00
|
|
|
"//third_party/android_deps:com_android_support_support_annotations_java",
|
2016-06-29 14:55:00 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-27 10:10:41 +02:00
|
|
|
android_resources("AppRTCMobile_resources") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2020-03-25 12:59:50 -04:00
|
|
|
sources = [
|
|
|
|
|
"androidapp/res/drawable-hdpi/disconnect.png",
|
|
|
|
|
"androidapp/res/drawable-hdpi/ic_action_full_screen.png",
|
|
|
|
|
"androidapp/res/drawable-hdpi/ic_action_return_from_full_screen.png",
|
|
|
|
|
"androidapp/res/drawable-hdpi/ic_launcher.png",
|
|
|
|
|
"androidapp/res/drawable-hdpi/ic_loopback_call.png",
|
|
|
|
|
"androidapp/res/drawable-ldpi/disconnect.png",
|
|
|
|
|
"androidapp/res/drawable-ldpi/ic_action_full_screen.png",
|
|
|
|
|
"androidapp/res/drawable-ldpi/ic_action_return_from_full_screen.png",
|
|
|
|
|
"androidapp/res/drawable-ldpi/ic_launcher.png",
|
|
|
|
|
"androidapp/res/drawable-ldpi/ic_loopback_call.png",
|
|
|
|
|
"androidapp/res/drawable-mdpi/disconnect.png",
|
|
|
|
|
"androidapp/res/drawable-mdpi/ic_action_full_screen.png",
|
|
|
|
|
"androidapp/res/drawable-mdpi/ic_action_return_from_full_screen.png",
|
|
|
|
|
"androidapp/res/drawable-mdpi/ic_launcher.png",
|
|
|
|
|
"androidapp/res/drawable-mdpi/ic_loopback_call.png",
|
|
|
|
|
"androidapp/res/drawable-xhdpi/disconnect.png",
|
|
|
|
|
"androidapp/res/drawable-xhdpi/ic_action_full_screen.png",
|
|
|
|
|
"androidapp/res/drawable-xhdpi/ic_action_return_from_full_screen.png",
|
|
|
|
|
"androidapp/res/drawable-xhdpi/ic_launcher.png",
|
|
|
|
|
"androidapp/res/drawable-xhdpi/ic_loopback_call.png",
|
|
|
|
|
"androidapp/res/layout/activity_call.xml",
|
|
|
|
|
"androidapp/res/layout/activity_connect.xml",
|
|
|
|
|
"androidapp/res/layout/fragment_call.xml",
|
|
|
|
|
"androidapp/res/layout/fragment_hud.xml",
|
|
|
|
|
"androidapp/res/menu/connect_menu.xml",
|
|
|
|
|
"androidapp/res/values-v17/styles.xml",
|
|
|
|
|
"androidapp/res/values-v21/styles.xml",
|
2020-06-03 16:42:57 +02:00
|
|
|
"androidapp/res/values/arrays.xml",
|
|
|
|
|
"androidapp/res/values/strings.xml",
|
2020-03-25 12:59:50 -04:00
|
|
|
"androidapp/res/xml/preferences.xml",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# Needed for Bazel converter.
|
2020-09-01 15:51:12 -04:00
|
|
|
custom_package = "org.appspot.apprtc"
|
2020-03-25 12:59:50 -04:00
|
|
|
resource_dirs = [ "androidapp/res" ]
|
|
|
|
|
assert(resource_dirs != []) # Mark as used.
|
2016-06-29 14:55:00 +02:00
|
|
|
}
|
|
|
|
|
|
2018-08-03 13:23:05 +02:00
|
|
|
rtc_instrumentation_test_apk("AppRTCMobile_test_apk") {
|
2016-09-27 10:10:41 +02:00
|
|
|
apk_name = "AppRTCMobileTest"
|
2016-06-29 14:55:00 +02:00
|
|
|
android_manifest = "androidtests/AndroidManifest.xml"
|
2020-06-25 22:57:49 +02:00
|
|
|
min_sdk_version = 21
|
2019-06-18 17:09:51 +02:00
|
|
|
target_sdk_version = 21
|
2016-06-29 14:55:00 +02:00
|
|
|
|
2019-12-23 14:02:25 -08:00
|
|
|
sources = [
|
2017-12-13 16:05:42 +01:00
|
|
|
"androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java",
|
|
|
|
|
]
|
2016-06-29 14:55:00 +02:00
|
|
|
|
2016-09-27 10:10:41 +02:00
|
|
|
apk_under_test = ":AppRTCMobile"
|
2016-06-29 14:55:00 +02:00
|
|
|
|
|
|
|
|
deps = [
|
2016-09-27 10:10:41 +02:00
|
|
|
":AppRTCMobile_javalib",
|
2020-07-10 10:36:04 +02:00
|
|
|
"../sdk/android:base_java",
|
2020-06-03 16:42:57 +02:00
|
|
|
"../sdk/android:camera_java",
|
2017-07-11 06:20:45 -07:00
|
|
|
"../sdk/android:libjingle_peerconnection_java",
|
2020-06-03 16:42:57 +02:00
|
|
|
"../sdk/android:peerconnection_java",
|
|
|
|
|
"../sdk/android:video_api_java",
|
2018-07-24 10:53:28 +02:00
|
|
|
"../sdk/android:video_java",
|
2017-01-11 06:21:26 -08:00
|
|
|
"//third_party/android_support_test_runner:runner_java",
|
|
|
|
|
"//third_party/junit",
|
2016-06-29 14:55:00 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-08-07 21:37:45 -07:00
|
|
|
|
|
|
|
|
if (is_ios || (is_mac && target_cpu != "x86")) {
|
|
|
|
|
config("apprtc_common_config") {
|
2016-09-27 10:10:41 +02:00
|
|
|
include_dirs = [ "objc/AppRTCMobile/common" ]
|
2016-08-07 21:37:45 -07:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("apprtc_common") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2016-08-07 21:37:45 -07:00
|
|
|
sources = [
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/common/ARDUtilities.h",
|
|
|
|
|
"objc/AppRTCMobile/common/ARDUtilities.m",
|
2016-08-07 21:37:45 -07:00
|
|
|
]
|
2016-09-05 06:10:18 -07:00
|
|
|
public_configs = [ ":apprtc_common_config" ]
|
2016-08-07 21:37:45 -07:00
|
|
|
|
2017-06-02 14:05:56 +02:00
|
|
|
if (is_ios) {
|
2018-02-19 15:14:04 +01:00
|
|
|
# iOS must use WebRTC.framework which is dynamically linked.
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ "../sdk:framework_objc+link" ]
|
2017-06-02 14:05:56 +02:00
|
|
|
} else {
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ "../sdk:mac_framework_objc+link" ]
|
2017-06-02 14:05:56 +02:00
|
|
|
}
|
2016-08-07 21:37:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("apprtc_signaling_config") {
|
2016-09-27 10:10:41 +02:00
|
|
|
include_dirs = [ "objc/AppRTCMobile" ]
|
2019-07-30 11:38:08 +02:00
|
|
|
cflags_objc = [
|
|
|
|
|
# TODO(bugs.webrtc.org/10837): Remove this when usage of
|
|
|
|
|
# archivedDataWithRootObject will be removed.
|
|
|
|
|
"-Wno-unguarded-availability",
|
|
|
|
|
]
|
2016-08-07 21:37:45 -07:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("apprtc_signaling") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2016-08-07 21:37:45 -07:00
|
|
|
sources = [
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ARDAppClient+Internal.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDAppClient.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDAppClient.m",
|
|
|
|
|
"objc/AppRTCMobile/ARDAppEngineClient.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDAppEngineClient.m",
|
|
|
|
|
"objc/AppRTCMobile/ARDBitrateTracker.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDBitrateTracker.m",
|
2017-04-05 12:17:48 -07:00
|
|
|
"objc/AppRTCMobile/ARDCaptureController.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDCaptureController.m",
|
2018-06-04 10:24:37 +02:00
|
|
|
"objc/AppRTCMobile/ARDExternalSampleCapturer.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDExternalSampleCapturer.m",
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ARDJoinResponse+Internal.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDJoinResponse.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDJoinResponse.m",
|
|
|
|
|
"objc/AppRTCMobile/ARDMessageResponse+Internal.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDMessageResponse.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDMessageResponse.m",
|
|
|
|
|
"objc/AppRTCMobile/ARDRoomServerClient.h",
|
2017-03-28 01:22:48 -07:00
|
|
|
"objc/AppRTCMobile/ARDSettingsModel+Private.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDSettingsModel.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDSettingsModel.m",
|
|
|
|
|
"objc/AppRTCMobile/ARDSettingsStore.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDSettingsStore.m",
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ARDSignalingChannel.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDSignalingMessage.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDSignalingMessage.m",
|
|
|
|
|
"objc/AppRTCMobile/ARDStatsBuilder.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDStatsBuilder.m",
|
2017-01-13 05:59:46 -08:00
|
|
|
"objc/AppRTCMobile/ARDTURNClient+Internal.h",
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ARDTURNClient.h",
|
2017-01-13 05:59:46 -08:00
|
|
|
"objc/AppRTCMobile/ARDTURNClient.m",
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ARDWebSocketChannel.h",
|
|
|
|
|
"objc/AppRTCMobile/ARDWebSocketChannel.m",
|
|
|
|
|
"objc/AppRTCMobile/RTCIceCandidate+JSON.h",
|
|
|
|
|
"objc/AppRTCMobile/RTCIceCandidate+JSON.m",
|
|
|
|
|
"objc/AppRTCMobile/RTCIceServer+JSON.h",
|
|
|
|
|
"objc/AppRTCMobile/RTCIceServer+JSON.m",
|
|
|
|
|
"objc/AppRTCMobile/RTCSessionDescription+JSON.h",
|
|
|
|
|
"objc/AppRTCMobile/RTCSessionDescription+JSON.m",
|
2016-08-07 21:37:45 -07:00
|
|
|
]
|
2016-09-05 06:10:18 -07:00
|
|
|
public_configs = [ ":apprtc_signaling_config" ]
|
2016-08-07 21:37:45 -07:00
|
|
|
deps = [
|
|
|
|
|
":apprtc_common",
|
|
|
|
|
":socketrocket",
|
|
|
|
|
]
|
2019-03-07 10:44:26 +01:00
|
|
|
|
2017-06-02 14:05:56 +02:00
|
|
|
if (is_ios) {
|
2018-02-19 15:14:04 +01:00
|
|
|
# iOS must use WebRTC.framework which is dynamically linked.
|
2017-12-14 13:06:10 +01:00
|
|
|
deps += [
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:framework_objc+link",
|
|
|
|
|
"../sdk:ios_framework_bundle",
|
2017-06-02 14:05:56 +02:00
|
|
|
]
|
2017-12-14 13:06:10 +01:00
|
|
|
} else {
|
2018-08-30 09:30:29 +02:00
|
|
|
deps += [ "../sdk:mac_framework_objc+link" ]
|
2017-06-02 14:05:56 +02:00
|
|
|
}
|
2020-07-03 10:19:30 +02:00
|
|
|
frameworks = [
|
2019-03-07 10:44:26 +01:00
|
|
|
"CoreMedia.framework",
|
|
|
|
|
"QuartzCore.framework",
|
|
|
|
|
]
|
2016-08-07 21:37:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_ios) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("AppRTCMobile_lib") {
|
2018-02-19 15:14:04 +01:00
|
|
|
# iOS must use WebRTC.framework which is dynamically linked.
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2016-08-07 21:37:45 -07:00
|
|
|
sources = [
|
2018-01-02 14:41:54 +01:00
|
|
|
"objc/AppRTCMobile/ios/ARDAppDelegate.h",
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ios/ARDAppDelegate.m",
|
2017-11-15 13:15:24 +01:00
|
|
|
"objc/AppRTCMobile/ios/ARDFileCaptureController.h",
|
|
|
|
|
"objc/AppRTCMobile/ios/ARDFileCaptureController.m",
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ios/ARDMainView.h",
|
|
|
|
|
"objc/AppRTCMobile/ios/ARDMainView.m",
|
|
|
|
|
"objc/AppRTCMobile/ios/ARDMainViewController.h",
|
|
|
|
|
"objc/AppRTCMobile/ios/ARDMainViewController.m",
|
2016-11-02 02:56:09 -07:00
|
|
|
"objc/AppRTCMobile/ios/ARDSettingsViewController.h",
|
|
|
|
|
"objc/AppRTCMobile/ios/ARDSettingsViewController.m",
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ios/ARDStatsView.h",
|
|
|
|
|
"objc/AppRTCMobile/ios/ARDStatsView.m",
|
|
|
|
|
"objc/AppRTCMobile/ios/ARDVideoCallView.h",
|
|
|
|
|
"objc/AppRTCMobile/ios/ARDVideoCallView.m",
|
|
|
|
|
"objc/AppRTCMobile/ios/ARDVideoCallViewController.h",
|
|
|
|
|
"objc/AppRTCMobile/ios/ARDVideoCallViewController.m",
|
2017-10-16 13:51:43 +02:00
|
|
|
"objc/AppRTCMobile/ios/RTCVideoCodecInfo+HumanReadable.h",
|
|
|
|
|
"objc/AppRTCMobile/ios/RTCVideoCodecInfo+HumanReadable.m",
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ios/UIImage+ARDUtilities.h",
|
|
|
|
|
"objc/AppRTCMobile/ios/UIImage+ARDUtilities.m",
|
2016-08-07 21:37:45 -07:00
|
|
|
]
|
|
|
|
|
|
2019-02-21 16:11:40 +01:00
|
|
|
configs += [ "..:common_objc" ]
|
|
|
|
|
|
2016-08-07 21:37:45 -07:00
|
|
|
deps = [
|
|
|
|
|
":apprtc_common",
|
|
|
|
|
":apprtc_signaling",
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:framework_objc+link",
|
|
|
|
|
"../sdk:ios_framework_bundle",
|
2016-08-07 21:37:45 -07:00
|
|
|
]
|
2019-03-07 10:44:26 +01:00
|
|
|
|
2020-07-03 10:19:30 +02:00
|
|
|
frameworks = [ "AVFoundation.framework" ]
|
2016-11-15 00:41:26 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ios_app_bundle("AppRTCMobile") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "objc/AppRTCMobile/ios/main.m" ]
|
2016-11-15 00:41:26 -08:00
|
|
|
|
|
|
|
|
info_plist = "objc/AppRTCMobile/ios/Info.plist"
|
|
|
|
|
|
|
|
|
|
configs += [ "..:common_config" ]
|
|
|
|
|
public_configs = [ "..:common_inherited_config" ]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":AppRTCMobile_ios_bundle_data",
|
|
|
|
|
":AppRTCMobile_lib",
|
2017-12-14 13:06:10 +01:00
|
|
|
"../sdk:framework_objc",
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:ios_framework_bundle",
|
2016-11-15 00:41:26 -08:00
|
|
|
]
|
2016-08-07 21:37:45 -07:00
|
|
|
|
2018-06-04 10:24:37 +02:00
|
|
|
if (rtc_apprtcmobile_broadcast_extension) {
|
|
|
|
|
deps += [
|
|
|
|
|
":AppRTCMobileBroadcastSetupUI_extension_bundle",
|
|
|
|
|
":AppRTCMobileBroadcastUpload_extension_bundle",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-07 21:37:45 -07:00
|
|
|
if (target_cpu == "x86") {
|
2019-03-21 13:35:10 +01:00
|
|
|
deps += [ "//testing/iossim" ]
|
2016-08-07 21:37:45 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-04 10:24:37 +02:00
|
|
|
if (rtc_apprtcmobile_broadcast_extension) {
|
|
|
|
|
bundle_data("AppRTCMobileBroadcastUpload_extension_bundle") {
|
|
|
|
|
testonly = true
|
2020-06-03 16:42:57 +02:00
|
|
|
public_deps = [ # no-presubmit-check TODO(webrtc:8603)
|
|
|
|
|
":AppRTCMobileBroadcastUpload", # prevent code format
|
|
|
|
|
]
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "$root_out_dir/AppRTCMobileBroadcastUpload.appex" ]
|
|
|
|
|
outputs = [ "{{bundle_contents_dir}}/Plugins/{{source_file_part}}" ]
|
2018-06-04 10:24:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bundle_data("AppRTCMobileBroadcastSetupUI_extension_bundle") {
|
|
|
|
|
testonly = true
|
2020-06-03 16:42:57 +02:00
|
|
|
public_deps = [ # no-presubmit-check TODO(webrtc:8603)
|
|
|
|
|
":AppRTCMobileBroadcastSetupUI", # prevent code format
|
|
|
|
|
]
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "$root_out_dir/AppRTCMobileBroadcastSetupUI.appex" ]
|
|
|
|
|
outputs = [ "{{bundle_contents_dir}}/Plugins/{{source_file_part}}" ]
|
2018-06-04 10:24:37 +02:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("AppRTCMobileBroadcastUpload_lib") {
|
2018-06-04 10:24:37 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"objc/AppRTCMobile/ios/broadcast_extension/ARDBroadcastSampleHandler.h",
|
|
|
|
|
"objc/AppRTCMobile/ios/broadcast_extension/ARDBroadcastSampleHandler.m",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":apprtc_signaling",
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:framework_objc+link",
|
|
|
|
|
"../sdk:ios_framework_bundle",
|
2018-06-04 10:24:37 +02:00
|
|
|
]
|
|
|
|
|
|
2020-07-03 10:19:30 +02:00
|
|
|
frameworks = [ "ReplayKit.framework" ]
|
2018-06-04 10:24:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ios_appex_bundle("AppRTCMobileBroadcastUpload") {
|
|
|
|
|
testonly = true
|
|
|
|
|
configs += [ "..:common_config" ]
|
|
|
|
|
public_configs = [ "..:common_inherited_config" ]
|
|
|
|
|
|
|
|
|
|
info_plist = "objc/AppRTCMobile/ios/broadcast_extension/BroadcastUploadInfo.plist"
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":AppRTCMobileBroadcastUpload_lib",
|
|
|
|
|
"../sdk:framework_objc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ios_appex_bundle("AppRTCMobileBroadcastSetupUI") {
|
|
|
|
|
sources = [
|
|
|
|
|
"objc/AppRTCMobile/ios/broadcast_extension/ARDBroadcastSetupViewController.h",
|
|
|
|
|
"objc/AppRTCMobile/ios/broadcast_extension/ARDBroadcastSetupViewController.m",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
info_plist = "objc/AppRTCMobile/ios/broadcast_extension/BroadcastSetupUIInfo.plist"
|
|
|
|
|
|
2020-07-03 10:19:30 +02:00
|
|
|
frameworks = [ "ReplayKit.framework" ]
|
2018-06-04 10:24:37 +02:00
|
|
|
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ ":AppRTCMobile_ios_bundle_data" ]
|
2018-06-04 10:24:37 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-27 10:10:41 +02:00
|
|
|
bundle_data("AppRTCMobile_ios_bundle_data") {
|
2016-08-07 21:37:45 -07:00
|
|
|
sources = [
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ios/resources/Roboto-Regular.ttf",
|
2017-11-15 13:15:24 +01:00
|
|
|
|
|
|
|
|
# Sample video taken from https://media.xiph.org/video/derf/
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/foreman.mp4",
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ios/resources/iPhone5@2x.png",
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/iPhone6@2x.png",
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/iPhone6p@3x.png",
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp.png",
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp@2x.png",
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/ic_clear_black_24dp.png",
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/ic_clear_black_24dp@2x.png",
|
2016-10-28 04:53:16 -07:00
|
|
|
"objc/AppRTCMobile/ios/resources/ic_settings_black_24dp.png",
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/ic_settings_black_24dp@2x.png",
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp.png",
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp@2x.png",
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp.png",
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp@2x.png",
|
|
|
|
|
"objc/AppRTCMobile/ios/resources/mozart.mp3",
|
2017-08-15 04:07:12 -07:00
|
|
|
"objc/Icon-120.png",
|
|
|
|
|
"objc/Icon-180.png",
|
2016-08-07 21:37:45 -07:00
|
|
|
"objc/Icon.png",
|
|
|
|
|
]
|
2020-01-21 12:10:10 +01:00
|
|
|
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
|
2016-08-07 21:37:45 -07:00
|
|
|
}
|
2018-03-15 09:41:03 +01:00
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("ObjCNativeAPIDemo_lib") {
|
2018-03-15 09:41:03 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"objcnativeapi/objc/NADAppDelegate.h",
|
|
|
|
|
"objcnativeapi/objc/NADAppDelegate.m",
|
|
|
|
|
"objcnativeapi/objc/NADViewController.h",
|
|
|
|
|
"objcnativeapi/objc/NADViewController.mm",
|
2019-01-11 09:11:00 -08:00
|
|
|
"objcnativeapi/objc/objc_call_client.h",
|
|
|
|
|
"objcnativeapi/objc/objc_call_client.mm",
|
2018-03-15 09:41:03 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../api:libjingle_peerconnection_api",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-03-15 09:41:03 +01:00
|
|
|
"../api/audio_codecs:builtin_audio_decoder_factory",
|
|
|
|
|
"../api/audio_codecs:builtin_audio_encoder_factory",
|
2019-06-26 15:49:47 +02:00
|
|
|
"../api/rtc_event_log:rtc_event_log_factory",
|
2019-05-17 13:20:14 +02:00
|
|
|
"../api/task_queue:default_task_queue_factory",
|
2018-03-15 09:41:03 +01:00
|
|
|
"../media:rtc_audio_video",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../modules/audio_processing",
|
2018-11-07 14:29:54 +00:00
|
|
|
"../modules/audio_processing:api",
|
2018-03-15 09:41:03 +01:00
|
|
|
"../pc:libjingle_peerconnection",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2020-07-07 09:17:56 +02:00
|
|
|
"../rtc_base/synchronization:mutex",
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:base_objc",
|
2018-03-15 09:41:03 +01:00
|
|
|
"../sdk:default_codec_factory_objc",
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:helpers_objc",
|
2018-03-15 09:41:03 +01:00
|
|
|
"../sdk:native_api",
|
|
|
|
|
"../sdk:ui_objc",
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:videocapture_objc",
|
2018-03-15 09:41:03 +01:00
|
|
|
"../sdk:videotoolbox_objc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (current_cpu == "arm64") {
|
|
|
|
|
deps += [ "../sdk:metal_objc" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ios_app_bundle("ObjCNativeAPIDemo") {
|
|
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "objcnativeapi/objc/main.m" ]
|
2018-03-15 09:41:03 +01:00
|
|
|
|
|
|
|
|
info_plist = "objcnativeapi/Info.plist"
|
|
|
|
|
|
|
|
|
|
configs += [ "..:common_config" ]
|
|
|
|
|
public_configs = [ "..:common_inherited_config" ]
|
|
|
|
|
|
2020-01-21 12:10:10 +01:00
|
|
|
deps = [ ":ObjCNativeAPIDemo_lib" ]
|
2018-03-15 09:41:03 +01:00
|
|
|
|
|
|
|
|
if (target_cpu == "x86") {
|
2019-03-21 13:35:10 +01:00
|
|
|
deps += [ "//testing/iossim" ]
|
2018-03-15 09:41:03 +01:00
|
|
|
}
|
|
|
|
|
}
|
2016-08-07 21:37:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_mac) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("AppRTCMobile_lib") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2016-08-07 21:37:45 -07:00
|
|
|
sources = [
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/mac/APPRTCAppDelegate.h",
|
|
|
|
|
"objc/AppRTCMobile/mac/APPRTCAppDelegate.m",
|
|
|
|
|
"objc/AppRTCMobile/mac/APPRTCViewController.h",
|
|
|
|
|
"objc/AppRTCMobile/mac/APPRTCViewController.m",
|
2016-08-07 21:37:45 -07:00
|
|
|
]
|
2017-07-11 06:20:45 -07:00
|
|
|
configs += [ "..:common_objc" ]
|
2016-08-07 21:37:45 -07:00
|
|
|
deps = [
|
|
|
|
|
":apprtc_common",
|
|
|
|
|
":apprtc_signaling",
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:mac_framework_objc+link",
|
2016-08-07 21:37:45 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-27 10:10:41 +02:00
|
|
|
mac_app_bundle("AppRTCMobile") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2016-09-27 10:10:41 +02:00
|
|
|
output_name = "AppRTCMobile"
|
2016-08-07 21:37:45 -07:00
|
|
|
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "objc/AppRTCMobile/mac/main.m" ]
|
2016-08-07 21:37:45 -07:00
|
|
|
|
|
|
|
|
public_configs = [ "..:common_inherited_config" ]
|
|
|
|
|
|
2016-09-27 10:10:41 +02:00
|
|
|
info_plist = "objc/AppRTCMobile/mac/Info.plist"
|
2016-08-07 21:37:45 -07:00
|
|
|
|
2020-07-03 10:19:30 +02:00
|
|
|
frameworks = [ "AppKit.framework" ]
|
2016-08-07 21:37:45 -07:00
|
|
|
|
2018-12-10 14:04:12 +01:00
|
|
|
ldflags = [
|
|
|
|
|
"-rpath",
|
|
|
|
|
"@executable_path/../Frameworks",
|
|
|
|
|
]
|
|
|
|
|
|
2016-08-07 21:37:45 -07:00
|
|
|
deps = [
|
2016-11-15 00:41:26 -08:00
|
|
|
":AppRTCMobile_lib",
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:mac_framework_bundle",
|
|
|
|
|
"../sdk:mac_framework_objc+link",
|
2016-08-07 21:37:45 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("socketrocket_include_config") {
|
2016-09-27 10:10:41 +02:00
|
|
|
include_dirs = [ "objc/AppRTCMobile/third_party/SocketRocket" ]
|
2016-08-07 21:37:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("socketrocket_warning_config") {
|
|
|
|
|
# GN orders flags on a target before flags from configs. The default config
|
|
|
|
|
# adds these flags so to cancel them out they need to come from a config and
|
|
|
|
|
# cannot be on the target directly.
|
|
|
|
|
cflags = [
|
|
|
|
|
"-Wno-deprecated-declarations",
|
|
|
|
|
"-Wno-nonnull",
|
|
|
|
|
"-Wno-semicolon-before-method-body",
|
2017-02-24 01:56:01 -08:00
|
|
|
"-Wno-unused-variable",
|
2016-08-07 21:37:45 -07:00
|
|
|
]
|
|
|
|
|
|
2016-09-21 04:13:00 -07:00
|
|
|
cflags_objc = [
|
|
|
|
|
# Enabled for cflags_objc in build/config/compiler/BUILD.gn.
|
|
|
|
|
"-Wno-objc-missing-property-synthesis",
|
|
|
|
|
]
|
2016-08-07 21:37:45 -07:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("socketrocket") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2016-08-07 21:37:45 -07:00
|
|
|
sources = [
|
2016-09-27 10:10:41 +02:00
|
|
|
"objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h",
|
|
|
|
|
"objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m",
|
2016-08-07 21:37:45 -07:00
|
|
|
]
|
2017-04-24 00:57:16 -07:00
|
|
|
configs += [ ":socketrocket_warning_config" ]
|
2016-09-05 06:10:18 -07:00
|
|
|
public_configs = [ ":socketrocket_include_config" ]
|
2016-08-07 21:37:45 -07:00
|
|
|
|
2020-07-03 10:19:30 +02:00
|
|
|
libs = [ "icucore" ]
|
|
|
|
|
frameworks = [
|
2016-08-07 21:37:45 -07:00
|
|
|
"CFNetwork.framework",
|
2019-07-18 22:25:48 +02:00
|
|
|
"Security.framework",
|
2016-08-07 21:37:45 -07:00
|
|
|
]
|
|
|
|
|
}
|
2016-11-07 14:53:28 -08:00
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
2017-02-14 04:58:56 -08:00
|
|
|
# TODO(kthelgason): compile xctests on mac when chromium supports it.
|
|
|
|
|
if (is_ios) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("apprtcmobile_test_sources") {
|
2018-02-19 15:14:04 +01:00
|
|
|
# iOS must use WebRTC.framework which is dynamically linked.
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2017-02-14 04:58:56 -08:00
|
|
|
include_dirs = [
|
|
|
|
|
"objc/AppRTCMobile",
|
|
|
|
|
"objc/AppRTCMobile/ios",
|
|
|
|
|
]
|
|
|
|
|
sources = [
|
|
|
|
|
"objc/AppRTCMobile/tests/ARDAppClient_xctest.mm",
|
2017-11-15 13:15:24 +01:00
|
|
|
"objc/AppRTCMobile/tests/ARDFileCaptureController_xctest.mm",
|
2017-02-14 04:58:56 -08:00
|
|
|
"objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm",
|
|
|
|
|
]
|
2017-03-06 00:29:21 -08:00
|
|
|
deps = [
|
2017-02-14 04:58:56 -08:00
|
|
|
":AppRTCMobile_lib",
|
2018-02-19 15:14:04 +01:00
|
|
|
":apprtc_signaling",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2018-08-30 09:30:29 +02:00
|
|
|
"../sdk:framework_objc+link",
|
|
|
|
|
"../sdk:ios_framework_bundle",
|
2017-02-14 04:58:56 -08:00
|
|
|
"//build/config/ios:xctest",
|
|
|
|
|
"//third_party/ocmock",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-11-07 14:53:28 -08:00
|
|
|
|
2020-09-16 15:09:53 +02:00
|
|
|
rtc_test("apprtcmobile_tests") {
|
|
|
|
|
is_xctest = true
|
2016-11-07 14:53:28 -08:00
|
|
|
info_plist = "objc/AppRTCMobile/ios/Info.plist"
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "objc/AppRTCMobile/tests/main.mm" ]
|
2017-02-14 04:58:56 -08:00
|
|
|
deps = [
|
2018-02-19 15:14:04 +01:00
|
|
|
":AppRTCMobile_lib",
|
2017-02-14 04:58:56 -08:00
|
|
|
":apprtcmobile_test_sources",
|
2017-12-14 13:06:10 +01:00
|
|
|
"../sdk:framework_objc",
|
2018-11-06 12:29:29 +01:00
|
|
|
"//test:test_support",
|
2017-02-14 04:58:56 -08:00
|
|
|
]
|
|
|
|
|
ldflags = [ "-all_load" ]
|
2016-11-07 14:53:28 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-08-07 21:37:45 -07:00
|
|
|
}
|
2016-08-08 09:03:23 -07:00
|
|
|
|
2020-09-10 18:10:11 +09:00
|
|
|
if (is_linux || is_chromeos || is_win) {
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_executable("peerconnection_client") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2016-08-08 09:03:23 -07:00
|
|
|
sources = [
|
|
|
|
|
"peerconnection/client/conductor.cc",
|
|
|
|
|
"peerconnection/client/conductor.h",
|
|
|
|
|
"peerconnection/client/defaults.cc",
|
|
|
|
|
"peerconnection/client/defaults.h",
|
|
|
|
|
"peerconnection/client/peer_connection_client.cc",
|
|
|
|
|
"peerconnection/client/peer_connection_client.h",
|
|
|
|
|
]
|
2016-09-05 01:35:44 -07:00
|
|
|
|
2017-11-13 10:19:58 +01:00
|
|
|
deps = [
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api:audio_options_api",
|
2018-11-22 09:00:13 +01:00
|
|
|
"../api:create_peerconnection_factory",
|
2018-01-11 10:13:56 +01:00
|
|
|
"../api:libjingle_peerconnection_api",
|
2019-09-17 14:30:41 +02:00
|
|
|
"../api:media_stream_interface",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/audio:audio_mixer_api",
|
|
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
2020-10-08 14:36:33 +00:00
|
|
|
"../api/video:video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../media:rtc_media_base",
|
|
|
|
|
"../p2p:rtc_p2p",
|
2020-09-29 14:21:47 +00:00
|
|
|
"../pc:video_track_source",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2018-07-25 15:04:28 +02:00
|
|
|
"../rtc_base/third_party/sigslot",
|
2018-10-29 15:26:27 +01:00
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
"../test:field_trial",
|
2019-03-06 10:34:09 +01:00
|
|
|
"../test:platform_video_capturer",
|
2019-08-29 16:39:05 +02:00
|
|
|
"../test:rtp_test_utils",
|
2018-12-20 16:28:23 +01:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2018-11-28 16:47:49 +01:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-11-13 10:19:58 +01:00
|
|
|
]
|
2016-08-08 09:03:23 -07:00
|
|
|
if (is_win) {
|
|
|
|
|
sources += [
|
2019-01-11 09:11:00 -08:00
|
|
|
"peerconnection/client/flag_defs.h",
|
2016-08-08 09:03:23 -07:00
|
|
|
"peerconnection/client/main.cc",
|
|
|
|
|
"peerconnection/client/main_wnd.cc",
|
|
|
|
|
"peerconnection/client/main_wnd.h",
|
|
|
|
|
]
|
|
|
|
|
configs += [ "//build/config/win:windowed" ]
|
2020-09-26 11:57:26 +02:00
|
|
|
deps += [
|
|
|
|
|
"../media:rtc_media_base",
|
|
|
|
|
"../rtc_base:win32",
|
|
|
|
|
]
|
2016-08-08 09:03:23 -07:00
|
|
|
}
|
2020-09-10 18:10:11 +09:00
|
|
|
if (is_linux || is_chromeos) {
|
2016-08-08 09:03:23 -07:00
|
|
|
sources += [
|
|
|
|
|
"peerconnection/client/linux/main.cc",
|
|
|
|
|
"peerconnection/client/linux/main_wnd.cc",
|
|
|
|
|
"peerconnection/client/linux/main_wnd.h",
|
|
|
|
|
]
|
2017-03-27 08:28:27 +02:00
|
|
|
cflags = [ "-Wno-deprecated-declarations" ]
|
2016-08-08 09:03:23 -07:00
|
|
|
libs = [
|
|
|
|
|
"X11",
|
|
|
|
|
"Xcomposite",
|
|
|
|
|
"Xext",
|
|
|
|
|
"Xrender",
|
|
|
|
|
]
|
2016-12-13 02:57:43 -08:00
|
|
|
deps += [ "//build/config/linux/gtk" ]
|
2016-08-08 09:03:23 -07:00
|
|
|
}
|
2017-03-06 00:29:21 -08:00
|
|
|
|
|
|
|
|
deps += [
|
2018-02-14 12:20:13 +01:00
|
|
|
"../api:libjingle_peerconnection_api",
|
2017-10-17 14:48:54 +02:00
|
|
|
"../api/audio_codecs:builtin_audio_decoder_factory",
|
|
|
|
|
"../api/audio_codecs:builtin_audio_encoder_factory",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2018-05-03 11:28:29 +02:00
|
|
|
"../api/video_codecs:builtin_video_decoder_factory",
|
|
|
|
|
"../api/video_codecs:builtin_video_encoder_factory",
|
2018-01-11 17:07:30 +01:00
|
|
|
"../media:rtc_audio_video",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../modules/audio_device",
|
|
|
|
|
"../modules/audio_processing",
|
2018-11-07 14:29:54 +00:00
|
|
|
"../modules/audio_processing:api",
|
2017-07-11 06:20:45 -07:00
|
|
|
"../modules/video_capture:video_capture_module",
|
|
|
|
|
"../pc:libjingle_peerconnection",
|
2018-12-20 16:28:23 +01:00
|
|
|
"../pc:peerconnection",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base:rtc_json",
|
2018-12-20 16:28:23 +01:00
|
|
|
"../test:video_test_common",
|
2019-07-16 18:40:05 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2017-03-06 00:29:21 -08:00
|
|
|
"//third_party/libyuv",
|
|
|
|
|
]
|
2016-08-08 09:03:23 -07:00
|
|
|
}
|
2016-09-07 02:33:01 -07:00
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_executable("peerconnection_server") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2016-08-08 09:03:23 -07:00
|
|
|
sources = [
|
|
|
|
|
"peerconnection/server/data_socket.cc",
|
|
|
|
|
"peerconnection/server/data_socket.h",
|
|
|
|
|
"peerconnection/server/main.cc",
|
|
|
|
|
"peerconnection/server/peer_channel.cc",
|
|
|
|
|
"peerconnection/server/peer_channel.h",
|
|
|
|
|
"peerconnection/server/utils.cc",
|
|
|
|
|
"peerconnection/server/utils.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-10-29 15:26:27 +01:00
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
"../test:field_trial",
|
2019-06-25 15:43:23 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2019-07-19 12:12:14 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:usage",
|
2016-08-08 09:03:23 -07:00
|
|
|
]
|
|
|
|
|
}
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_executable("turnserver") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "turnserver/turnserver_main.cc" ]
|
2016-08-08 09:03:23 -07:00
|
|
|
deps = [
|
2018-10-30 12:20:03 +01:00
|
|
|
":read_auth_file",
|
2018-11-08 16:47:14 +01:00
|
|
|
"../p2p:p2p_server_utils",
|
2017-07-11 06:20:45 -07:00
|
|
|
"../p2p:rtc_p2p",
|
|
|
|
|
"../pc:rtc_pc",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2016-08-08 09:03:23 -07:00
|
|
|
]
|
|
|
|
|
}
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_executable("stunserver") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "stunserver/stunserver_main.cc" ]
|
2016-08-08 09:03:23 -07:00
|
|
|
deps = [
|
2018-11-08 16:47:14 +01:00
|
|
|
"../p2p:p2p_server_utils",
|
2017-07-11 06:20:45 -07:00
|
|
|
"../p2p:rtc_p2p",
|
|
|
|
|
"../pc:rtc_pc",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2016-08-08 09:03:23 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-11-01 03:09:15 -07:00
|
|
|
|
2017-08-08 17:08:03 -07:00
|
|
|
if (is_win || is_android) {
|
2017-05-11 16:10:03 -07:00
|
|
|
rtc_shared_library("webrtc_unity_plugin") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"unityplugin/simple_peer_connection.cc",
|
|
|
|
|
"unityplugin/simple_peer_connection.h",
|
|
|
|
|
"unityplugin/unity_plugin_apis.cc",
|
|
|
|
|
"unityplugin/unity_plugin_apis.h",
|
2017-07-25 16:04:31 -07:00
|
|
|
"unityplugin/video_observer.cc",
|
|
|
|
|
"unityplugin/video_observer.h",
|
2017-05-11 16:10:03 -07:00
|
|
|
]
|
2017-08-08 17:08:03 -07:00
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
sources += [
|
2019-01-11 09:11:00 -08:00
|
|
|
"unityplugin/class_reference_holder.cc",
|
|
|
|
|
"unityplugin/class_reference_holder.h",
|
2017-08-08 17:08:03 -07:00
|
|
|
"unityplugin/jni_onload.cc",
|
|
|
|
|
]
|
2017-12-20 10:47:36 -08:00
|
|
|
suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ]
|
2017-08-08 17:08:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
2018-07-11 10:47:42 +02:00
|
|
|
configs += [ "//build/config/win:windowed" ]
|
2017-08-08 17:08:03 -07:00
|
|
|
}
|
2017-05-11 16:10:03 -07:00
|
|
|
deps = [
|
2018-11-22 09:00:13 +01:00
|
|
|
"../api:create_peerconnection_factory",
|
2018-01-11 10:13:56 +01:00
|
|
|
"../api:libjingle_peerconnection_api",
|
2019-09-17 14:30:41 +02:00
|
|
|
"../api:media_stream_interface",
|
2017-12-05 11:11:21 -08:00
|
|
|
"../api/audio_codecs:builtin_audio_decoder_factory",
|
|
|
|
|
"../api/audio_codecs:builtin_audio_encoder_factory",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2018-01-11 17:07:30 +01:00
|
|
|
"../media:rtc_audio_video",
|
2018-01-04 15:10:22 +01:00
|
|
|
"../media:rtc_internal_video_codecs",
|
2017-07-11 06:20:45 -07:00
|
|
|
"../media:rtc_media",
|
|
|
|
|
"../media:rtc_media_base",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../modules/audio_device",
|
|
|
|
|
"../modules/audio_processing",
|
2018-11-07 14:29:54 +00:00
|
|
|
"../modules/audio_processing:api",
|
2017-07-11 06:20:45 -07:00
|
|
|
"../modules/video_capture:video_capture_module",
|
|
|
|
|
"../pc:libjingle_peerconnection",
|
2019-01-02 15:12:38 +01:00
|
|
|
"../pc:peerconnection",
|
2020-09-29 14:21:47 +00:00
|
|
|
"../pc:video_track_source",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2019-03-06 10:34:09 +01:00
|
|
|
"../test:platform_video_capturer",
|
2019-01-02 15:12:38 +01:00
|
|
|
"../test:video_test_common",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-05-11 16:10:03 -07:00
|
|
|
]
|
2017-08-08 17:08:03 -07:00
|
|
|
if (is_android) {
|
2018-03-07 09:58:54 -08:00
|
|
|
deps += [
|
2019-03-21 13:35:10 +01:00
|
|
|
"../modules/utility",
|
2018-03-07 09:58:54 -08:00
|
|
|
"../sdk/android:libjingle_peerconnection_jni",
|
|
|
|
|
]
|
2017-08-08 17:08:03 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
2017-11-07 15:36:33 +00:00
|
|
|
rtc_android_library("webrtc_unity_java") {
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "unityplugin/java/src/org/webrtc/UnityUtility.java" ]
|
2017-08-08 17:08:03 -07:00
|
|
|
deps = [
|
|
|
|
|
"../rtc_base:base_java",
|
2018-12-10 12:30:46 +01:00
|
|
|
"../sdk/android:camera_java",
|
2017-08-08 17:08:03 -07:00
|
|
|
"../sdk/android:libjingle_peerconnection_java",
|
2018-12-10 12:30:46 +01:00
|
|
|
"../sdk/android:peerconnection_java",
|
2020-07-10 10:36:04 +02:00
|
|
|
"../sdk/android:video_api_java",
|
2018-12-10 12:30:46 +01:00
|
|
|
"../sdk/android:video_java",
|
2019-03-06 09:18:57 -05:00
|
|
|
"//third_party/android_deps:com_android_support_support_annotations_java",
|
2017-08-08 17:08:03 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dist_jar("libwebrtc_unity") {
|
|
|
|
|
_target_dir_name = get_label_info(":$target_name", "dir")
|
|
|
|
|
output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar"
|
2018-03-07 09:58:54 -08:00
|
|
|
direct_deps_only = false
|
2017-08-08 17:08:03 -07:00
|
|
|
use_interface_jars = false
|
2018-03-07 09:58:54 -08:00
|
|
|
use_unprocessed_jars = false
|
2017-09-24 22:29:06 +02:00
|
|
|
requires_android = true
|
2017-08-08 17:08:03 -07:00
|
|
|
deps = [
|
|
|
|
|
":webrtc_unity_java",
|
|
|
|
|
"../rtc_base:base_java",
|
|
|
|
|
"../sdk/android:libjingle_peerconnection_java",
|
|
|
|
|
"../sdk/android:libjingle_peerconnection_metrics_default_java",
|
2019-03-06 09:18:57 -05:00
|
|
|
"//third_party/android_deps:com_android_support_support_annotations_java",
|
2017-08-08 17:08:03 -07:00
|
|
|
]
|
2017-05-11 16:10:03 -07:00
|
|
|
}
|
2020-01-20 15:28:57 +01:00
|
|
|
|
|
|
|
|
junit_binary("android_examples_junit_tests") {
|
|
|
|
|
sources = [
|
|
|
|
|
"androidjunit/src/org/appspot/apprtc/BluetoothManagerTest.java",
|
|
|
|
|
"androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java",
|
|
|
|
|
"androidjunit/src/org/appspot/apprtc/TCPChannelClientTest.java",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":AppRTCMobile_javalib",
|
2020-06-03 16:42:57 +02:00
|
|
|
"../sdk/android:peerconnection_java",
|
2020-01-20 15:28:57 +01:00
|
|
|
"//base:base_java_test_support",
|
|
|
|
|
"//third_party/google-truth:google_truth_java",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
additional_jar_files = [ [
|
|
|
|
|
"../sdk/android/tests/resources/robolectric.properties",
|
|
|
|
|
"robolectric.properties",
|
|
|
|
|
] ]
|
|
|
|
|
}
|
2017-05-11 16:10:03 -07:00
|
|
|
}
|
|
|
|
|
|
2016-11-01 03:09:15 -07:00
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
# Doesn't build within Chrome on Win.
|
|
|
|
|
rtc_executable("stun_prober") {
|
2017-03-06 00:29:21 -08:00
|
|
|
testonly = true
|
2020-01-21 12:10:10 +01:00
|
|
|
sources = [ "stunprober/main.cc" ]
|
2016-11-01 03:09:15 -07:00
|
|
|
deps = [
|
|
|
|
|
"../p2p:libstunprober",
|
|
|
|
|
"../p2p:rtc_p2p",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2019-07-16 18:40:05 +02:00
|
|
|
"//third_party/abseil-cpp/absl/flags:flag",
|
|
|
|
|
"//third_party/abseil-cpp/absl/flags:parse",
|
2016-11-01 03:09:15 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|