Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 1 | # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../webrtc.gni") |
Qiang Chen | 43fb912 | 2017-12-20 10:47:36 -0800 | [diff] [blame] | 10 | |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 11 | if (is_android) { |
| 12 | import("//build/config/android/config.gni") |
| 13 | import("//build/config/android/rules.gni") |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 14 | } else if (is_mac) { |
| 15 | import("//build/config/mac/rules.gni") |
| 16 | } else if (is_ios) { |
| 17 | import("//build/config/ios/rules.gni") |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | group("examples") { |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 21 | # This target shall build all targets in examples. |
| 22 | testonly = true |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 23 | deps = [] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 24 | |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 25 | if (is_android) { |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 26 | deps += [ |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 27 | ":AppRTCMobile", |
| 28 | ":AppRTCMobileTest", |
mandermo | a6069e8 | 2017-01-16 02:23:09 -0800 | [diff] [blame] | 29 | ":AppRTCMobileTestStubbedVideoIO", |
George Zhou | 2770c3d | 2018-03-07 09:58:54 -0800 | [diff] [blame] | 30 | ":libwebrtc_unity", |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 31 | ] |
| 32 | } |
| 33 | |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 34 | if (!build_with_chromium) { |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 35 | deps += [ ":stun_prober" ] |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 36 | } |
| 37 | |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 38 | if (is_ios || (is_mac && target_cpu != "x86")) { |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 39 | deps += [ ":AppRTCMobile" ] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 40 | } |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 41 | |
| 42 | if (is_linux || is_win) { |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 43 | deps += [ |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 44 | ":peerconnection_client", |
| 45 | ":peerconnection_server", |
| 46 | ":relayserver", |
| 47 | ":stunserver", |
| 48 | ":turnserver", |
| 49 | ] |
| 50 | } |
George Zhou | 2770c3d | 2018-03-07 09:58:54 -0800 | [diff] [blame] | 51 | |
| 52 | if (is_android || is_win) { |
| 53 | deps += [ ":webrtc_unity_plugin" ] |
| 54 | } |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 55 | } |
| 56 | |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 57 | if (is_android) { |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 +0000 | [diff] [blame] | 58 | rtc_android_apk("AppRTCMobile") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 59 | testonly = true |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 60 | apk_name = "AppRTCMobile" |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 61 | android_manifest = "androidapp/AndroidManifest.xml" |
| 62 | |
| 63 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 64 | ":AppRTCMobile_javalib", |
| 65 | ":AppRTCMobile_resources", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 66 | "../rtc_base:base_java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 67 | "//base:base_java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 68 | ] |
| 69 | |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 70 | shared_libraries = [ "../sdk/android:libjingle_peerconnection_so" ] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 71 | } |
| 72 | |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 +0000 | [diff] [blame] | 73 | rtc_android_library("AppRTCMobile_javalib") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 74 | testonly = true |
Mirko Bonadei | 4f024ef | 2018-01-04 13:12:03 +0100 | [diff] [blame] | 75 | android_manifest_for_lint = "androidapp/AndroidManifest.xml" |
sakal | 07a050f | 2017-02-13 05:58:27 -0800 | [diff] [blame] | 76 | |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 77 | java_files = [ |
| 78 | "androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java", |
henrika | c3c2f31 | 2016-12-14 07:36:56 -0800 | [diff] [blame] | 79 | "androidapp/src/org/appspot/apprtc/AppRTCBluetoothManager.java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 80 | "androidapp/src/org/appspot/apprtc/AppRTCClient.java", |
| 81 | "androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java", |
| 82 | "androidapp/src/org/appspot/apprtc/CallActivity.java", |
| 83 | "androidapp/src/org/appspot/apprtc/CallFragment.java", |
| 84 | "androidapp/src/org/appspot/apprtc/CaptureQualityController.java", |
| 85 | "androidapp/src/org/appspot/apprtc/ConnectActivity.java", |
| 86 | "androidapp/src/org/appspot/apprtc/CpuMonitor.java", |
| 87 | "androidapp/src/org/appspot/apprtc/DirectRTCClient.java", |
| 88 | "androidapp/src/org/appspot/apprtc/HudFragment.java", |
| 89 | "androidapp/src/org/appspot/apprtc/PeerConnectionClient.java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 90 | "androidapp/src/org/appspot/apprtc/RoomParametersFetcher.java", |
Qingsi Wang | a4e72b7 | 2018-02-12 10:34:18 -0800 | [diff] [blame] | 91 | "androidapp/src/org/appspot/apprtc/RtcEventLog.java", |
henrika | 5641fbb | 2018-02-21 14:12:53 +0100 | [diff] [blame] | 92 | "androidapp/src/org/appspot/apprtc/RecordedAudioToFileController.java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 93 | "androidapp/src/org/appspot/apprtc/SettingsActivity.java", |
| 94 | "androidapp/src/org/appspot/apprtc/SettingsFragment.java", |
| 95 | "androidapp/src/org/appspot/apprtc/TCPChannelClient.java", |
| 96 | "androidapp/src/org/appspot/apprtc/UnhandledExceptionHandler.java", |
| 97 | "androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java", |
| 98 | "androidapp/src/org/appspot/apprtc/WebSocketRTCClient.java", |
| 99 | "androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java", |
| 100 | "androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 101 | ] |
| 102 | |
| 103 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 104 | ":AppRTCMobile_resources", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 105 | "../modules/audio_device:audio_device_java", |
| 106 | "../rtc_base:base_java", |
| 107 | "../sdk/android:libjingle_peerconnection_java", |
| 108 | "../sdk/android:libjingle_peerconnection_metrics_default_java", |
| 109 | "androidapp/third_party/autobanh:autobanh_java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 110 | ] |
| 111 | } |
| 112 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 113 | android_resources("AppRTCMobile_resources") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 114 | testonly = true |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 115 | resource_dirs = [ "androidapp/res" ] |
| 116 | custom_package = "org.appspot.apprtc" |
| 117 | } |
| 118 | |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 +0000 | [diff] [blame] | 119 | rtc_instrumentation_test_apk("AppRTCMobileTest") { |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 120 | apk_name = "AppRTCMobileTest" |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 121 | android_manifest = "androidtests/AndroidManifest.xml" |
| 122 | |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 123 | java_files = [ |
| 124 | "androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java", |
| 125 | ] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 126 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 127 | apk_under_test = ":AppRTCMobile" |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 128 | |
| 129 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 130 | ":AppRTCMobile_javalib", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 131 | "../sdk/android:libjingle_peerconnection_java", |
sakal | cb79d51 | 2017-01-11 06:21:26 -0800 | [diff] [blame] | 132 | "//third_party/android_support_test_runner:runner_java", |
| 133 | "//third_party/junit", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 134 | ] |
| 135 | } |
mandermo | a6069e8 | 2017-01-16 02:23:09 -0800 | [diff] [blame] | 136 | |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 +0000 | [diff] [blame] | 137 | rtc_instrumentation_test_apk("AppRTCMobileTestStubbedVideoIO") { |
mandermo | a6069e8 | 2017-01-16 02:23:09 -0800 | [diff] [blame] | 138 | apk_name = "AppRTCMobileTestStubbedVideoIO" |
| 139 | android_manifest = "androidtests/AndroidManifest.xml" |
| 140 | |
oprypin | 30cda5e | 2017-04-24 04:15:13 -0700 | [diff] [blame] | 141 | java_files = [ "androidtests/src/org/appspot/apprtc/test/CallActivityStubbedInputOutputTest.java" ] |
mandermo | a6069e8 | 2017-01-16 02:23:09 -0800 | [diff] [blame] | 142 | |
| 143 | apk_under_test = ":AppRTCMobile" |
| 144 | |
| 145 | deps = [ |
| 146 | ":AppRTCMobile_javalib", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 147 | "../sdk/android:libjingle_peerconnection_java", |
mandermo | a6069e8 | 2017-01-16 02:23:09 -0800 | [diff] [blame] | 148 | "//third_party/android_support_test_runner:rules_java", |
| 149 | "//third_party/android_support_test_runner:runner_java", |
| 150 | "//third_party/espresso:espresso_all_java", |
| 151 | "//third_party/hamcrest:hamcrest_java", |
| 152 | "//third_party/junit", |
mandermo | a6069e8 | 2017-01-16 02:23:09 -0800 | [diff] [blame] | 153 | ] |
| 154 | |
| 155 | data = [ |
Edward Lemur | 70ba9b4 | 2018-01-22 13:46:58 +0100 | [diff] [blame] | 156 | "../build/android/adb_reverse_forwarder.py", |
| 157 | "../examples/androidtests/video_quality_loopback_test.py", |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 158 | "../resources/reference_video_640x360_30fps.y4m", |
Edward Lemur | 70ba9b4 | 2018-01-22 13:46:58 +0100 | [diff] [blame] | 159 | "../rtc_tools/barcode_tools/barcode_decoder.py", |
| 160 | "../rtc_tools/barcode_tools/helper_functions.py", |
| 161 | "../rtc_tools/compare_videos.py", |
| 162 | "../rtc_tools/testing/prebuilt_apprtc.zip", |
| 163 | "../rtc_tools/testing/golang/linux/go.tar.gz", |
| 164 | "../rtc_tools/testing/build_apprtc.py", |
| 165 | "../rtc_tools/testing/utils.py", |
| 166 | "../tools_webrtc/video_quality_toolchain/linux/ffmpeg", |
| 167 | "../tools_webrtc/video_quality_toolchain/linux/frame_analyzer", |
| 168 | "../tools_webrtc/video_quality_toolchain/linux/zxing", |
mandermo | a6069e8 | 2017-01-16 02:23:09 -0800 | [diff] [blame] | 169 | ] |
| 170 | } |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 171 | } |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 172 | |
| 173 | if (is_ios || (is_mac && target_cpu != "x86")) { |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 174 | config("apprtc_common_config") { |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 175 | include_dirs = [ "objc/AppRTCMobile/common" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 176 | } |
| 177 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 178 | rtc_static_library("apprtc_common") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 179 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 180 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 181 | "objc/AppRTCMobile/common/ARDUtilities.h", |
| 182 | "objc/AppRTCMobile/common/ARDUtilities.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 183 | ] |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 184 | public_configs = [ ":apprtc_common_config" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 185 | |
Kári Tristan Helgason | 946923a | 2017-06-02 14:05:56 +0200 | [diff] [blame] | 186 | if (is_ios) { |
Mirko Bonadei | cbaaaed | 2018-02-19 15:14:04 +0100 | [diff] [blame] | 187 | # iOS must use WebRTC.framework which is dynamically linked. |
| 188 | # 'gn check' is disabled in order to avoid confusion and |
| 189 | # errors caused by multiple implementations. |
| 190 | check_includes = false |
kthelgason | 5901d9d | 2017-08-16 07:28:03 -0700 | [diff] [blame] | 191 | deps = [ |
Kári Tristan Helgason | 99bf77c | 2018-02-16 10:49:22 +0100 | [diff] [blame] | 192 | "../sdk:framework_objc", |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 193 | "../system_wrappers:field_trial_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 194 | "../system_wrappers:runtime_enabled_features_default", |
kthelgason | 5901d9d | 2017-08-16 07:28:03 -0700 | [diff] [blame] | 195 | ] |
Kári Tristan Helgason | 946923a | 2017-06-02 14:05:56 +0200 | [diff] [blame] | 196 | } else { |
kthelgason | 5901d9d | 2017-08-16 07:28:03 -0700 | [diff] [blame] | 197 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 198 | "../sdk:common_objc", |
kthelgason | 5901d9d | 2017-08-16 07:28:03 -0700 | [diff] [blame] | 199 | "../system_wrappers:field_trial_default", |
| 200 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 201 | "../system_wrappers:runtime_enabled_features_default", |
kthelgason | 5901d9d | 2017-08-16 07:28:03 -0700 | [diff] [blame] | 202 | ] |
Kári Tristan Helgason | 946923a | 2017-06-02 14:05:56 +0200 | [diff] [blame] | 203 | } |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 204 | } |
| 205 | |
| 206 | config("apprtc_signaling_config") { |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 207 | include_dirs = [ "objc/AppRTCMobile" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 208 | |
| 209 | # GN orders flags on a target before flags from configs. The default config |
| 210 | # adds these flags so to cancel them out they need to come from a config and |
| 211 | # cannot be on the target directly. |
| 212 | cflags = [ |
| 213 | "-Wno-sign-compare", |
| 214 | "-Wno-unused-variable", |
| 215 | ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 216 | } |
| 217 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 218 | rtc_static_library("apprtc_signaling") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 219 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 220 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 221 | "objc/AppRTCMobile/ARDAppClient+Internal.h", |
| 222 | "objc/AppRTCMobile/ARDAppClient.h", |
| 223 | "objc/AppRTCMobile/ARDAppClient.m", |
| 224 | "objc/AppRTCMobile/ARDAppEngineClient.h", |
| 225 | "objc/AppRTCMobile/ARDAppEngineClient.m", |
| 226 | "objc/AppRTCMobile/ARDBitrateTracker.h", |
| 227 | "objc/AppRTCMobile/ARDBitrateTracker.m", |
sakal | c522e75 | 2017-04-05 12:17:48 -0700 | [diff] [blame] | 228 | "objc/AppRTCMobile/ARDCaptureController.h", |
| 229 | "objc/AppRTCMobile/ARDCaptureController.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 230 | "objc/AppRTCMobile/ARDJoinResponse+Internal.h", |
| 231 | "objc/AppRTCMobile/ARDJoinResponse.h", |
| 232 | "objc/AppRTCMobile/ARDJoinResponse.m", |
| 233 | "objc/AppRTCMobile/ARDMessageResponse+Internal.h", |
| 234 | "objc/AppRTCMobile/ARDMessageResponse.h", |
| 235 | "objc/AppRTCMobile/ARDMessageResponse.m", |
| 236 | "objc/AppRTCMobile/ARDRoomServerClient.h", |
sakal | c4adacf | 2017-03-28 01:22:48 -0700 | [diff] [blame] | 237 | "objc/AppRTCMobile/ARDSettingsModel+Private.h", |
| 238 | "objc/AppRTCMobile/ARDSettingsModel.h", |
| 239 | "objc/AppRTCMobile/ARDSettingsModel.m", |
| 240 | "objc/AppRTCMobile/ARDSettingsStore.h", |
| 241 | "objc/AppRTCMobile/ARDSettingsStore.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 242 | "objc/AppRTCMobile/ARDSignalingChannel.h", |
| 243 | "objc/AppRTCMobile/ARDSignalingMessage.h", |
| 244 | "objc/AppRTCMobile/ARDSignalingMessage.m", |
| 245 | "objc/AppRTCMobile/ARDStatsBuilder.h", |
| 246 | "objc/AppRTCMobile/ARDStatsBuilder.m", |
kthelgason | cc882af | 2017-01-13 05:59:46 -0800 | [diff] [blame] | 247 | "objc/AppRTCMobile/ARDTURNClient+Internal.h", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 248 | "objc/AppRTCMobile/ARDTURNClient.h", |
kthelgason | cc882af | 2017-01-13 05:59:46 -0800 | [diff] [blame] | 249 | "objc/AppRTCMobile/ARDTURNClient.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 250 | "objc/AppRTCMobile/ARDWebSocketChannel.h", |
| 251 | "objc/AppRTCMobile/ARDWebSocketChannel.m", |
| 252 | "objc/AppRTCMobile/RTCIceCandidate+JSON.h", |
| 253 | "objc/AppRTCMobile/RTCIceCandidate+JSON.m", |
| 254 | "objc/AppRTCMobile/RTCIceServer+JSON.h", |
| 255 | "objc/AppRTCMobile/RTCIceServer+JSON.m", |
| 256 | "objc/AppRTCMobile/RTCMediaConstraints+JSON.h", |
| 257 | "objc/AppRTCMobile/RTCMediaConstraints+JSON.m", |
| 258 | "objc/AppRTCMobile/RTCSessionDescription+JSON.h", |
| 259 | "objc/AppRTCMobile/RTCSessionDescription+JSON.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 260 | ] |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 261 | public_configs = [ ":apprtc_signaling_config" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 262 | deps = [ |
| 263 | ":apprtc_common", |
| 264 | ":socketrocket", |
| 265 | ] |
Kári Tristan Helgason | 946923a | 2017-06-02 14:05:56 +0200 | [diff] [blame] | 266 | if (is_ios) { |
Mirko Bonadei | cbaaaed | 2018-02-19 15:14:04 +0100 | [diff] [blame] | 267 | # iOS must use WebRTC.framework which is dynamically linked. |
| 268 | # 'gn check' is disabled in order to avoid confusion and |
| 269 | # errors caused by multiple implementations. |
| 270 | check_includes = false |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 271 | deps += [ |
| 272 | ":AppRTCMobile_ios_frameworks", |
| 273 | "../sdk:framework_objc", |
Kári Tristan Helgason | 946923a | 2017-06-02 14:05:56 +0200 | [diff] [blame] | 274 | ] |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 275 | } else { |
Mirko Bonadei | cbaaaed | 2018-02-19 15:14:04 +0100 | [diff] [blame] | 276 | deps += [ |
| 277 | "../sdk:common_objc", |
| 278 | "../sdk:mediaconstraints_objc", |
| 279 | "../sdk:peerconnectionfactory_base_objc", |
| 280 | "../sdk:videocapture_objc", |
| 281 | "../sdk:videocodec_objc", |
Anders Carlsson | 9823ee4 | 2018-03-07 10:32:03 +0100 | [diff] [blame] | 282 | "../sdk:videosource_objc", |
Mirko Bonadei | cbaaaed | 2018-02-19 15:14:04 +0100 | [diff] [blame] | 283 | ] |
Kári Tristan Helgason | 946923a | 2017-06-02 14:05:56 +0200 | [diff] [blame] | 284 | } |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 285 | libs = [ "QuartzCore.framework" ] |
| 286 | } |
| 287 | |
| 288 | if (is_ios) { |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 289 | rtc_static_library("AppRTCMobile_lib") { |
Mirko Bonadei | cbaaaed | 2018-02-19 15:14:04 +0100 | [diff] [blame] | 290 | # iOS must use WebRTC.framework which is dynamically linked. |
| 291 | # 'gn check' is disabled in order to avoid confusion and |
| 292 | # errors caused by multiple implementations. |
| 293 | check_includes = false |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 294 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 295 | sources = [ |
Patrik Höglund | 49acb1e | 2018-01-02 14:41:54 +0100 | [diff] [blame] | 296 | "objc/AppRTCMobile/ios/ARDAppDelegate.h", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 297 | "objc/AppRTCMobile/ios/ARDAppDelegate.m", |
Daniela | 012b56b | 2017-11-15 13:15:24 +0100 | [diff] [blame] | 298 | "objc/AppRTCMobile/ios/ARDFileCaptureController.h", |
| 299 | "objc/AppRTCMobile/ios/ARDFileCaptureController.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 300 | "objc/AppRTCMobile/ios/ARDMainView.h", |
| 301 | "objc/AppRTCMobile/ios/ARDMainView.m", |
| 302 | "objc/AppRTCMobile/ios/ARDMainViewController.h", |
| 303 | "objc/AppRTCMobile/ios/ARDMainViewController.m", |
denicija | d17d536 | 2016-11-02 02:56:09 -0700 | [diff] [blame] | 304 | "objc/AppRTCMobile/ios/ARDSettingsViewController.h", |
| 305 | "objc/AppRTCMobile/ios/ARDSettingsViewController.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 306 | "objc/AppRTCMobile/ios/ARDStatsView.h", |
| 307 | "objc/AppRTCMobile/ios/ARDStatsView.m", |
| 308 | "objc/AppRTCMobile/ios/ARDVideoCallView.h", |
| 309 | "objc/AppRTCMobile/ios/ARDVideoCallView.m", |
| 310 | "objc/AppRTCMobile/ios/ARDVideoCallViewController.h", |
| 311 | "objc/AppRTCMobile/ios/ARDVideoCallViewController.m", |
Anders Carlsson | 6bf43d2 | 2017-10-16 13:51:43 +0200 | [diff] [blame] | 312 | "objc/AppRTCMobile/ios/RTCVideoCodecInfo+HumanReadable.h", |
| 313 | "objc/AppRTCMobile/ios/RTCVideoCodecInfo+HumanReadable.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 314 | "objc/AppRTCMobile/ios/UIImage+ARDUtilities.h", |
| 315 | "objc/AppRTCMobile/ios/UIImage+ARDUtilities.m", |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 316 | ] |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 317 | |
| 318 | deps = [ |
Kári Tristan Helgason | 946923a | 2017-06-02 14:05:56 +0200 | [diff] [blame] | 319 | ":AppRTCMobile_ios_frameworks", |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 320 | ":apprtc_common", |
| 321 | ":apprtc_signaling", |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 322 | "../sdk:framework_objc", |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 323 | ] |
| 324 | } |
| 325 | |
| 326 | ios_app_bundle("AppRTCMobile") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 327 | testonly = true |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 328 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 329 | "objc/AppRTCMobile/ios/main.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 330 | ] |
| 331 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 332 | info_plist = "objc/AppRTCMobile/ios/Info.plist" |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 333 | |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 334 | configs += [ "..:common_config" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 335 | public_configs = [ "..:common_inherited_config" ] |
| 336 | |
| 337 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 338 | ":AppRTCMobile_ios_bundle_data", |
kthelgason | d3adbfb | 2017-01-26 01:14:04 -0800 | [diff] [blame] | 339 | ":AppRTCMobile_ios_frameworks", |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 340 | ":AppRTCMobile_lib", |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 341 | "../sdk:framework_objc", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 342 | ] |
| 343 | |
| 344 | if (target_cpu == "x86") { |
| 345 | deps += [ "//testing/iossim:iossim" ] |
| 346 | } |
| 347 | } |
| 348 | |
kthelgason | d3adbfb | 2017-01-26 01:14:04 -0800 | [diff] [blame] | 349 | bundle_data("AppRTCMobile_ios_frameworks") { |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 350 | deps = [ |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 351 | "../sdk:framework_objc+link", |
kthelgason | d3adbfb | 2017-01-26 01:14:04 -0800 | [diff] [blame] | 352 | ] |
| 353 | sources = [ |
wjywbs | bef8a5d | 2017-10-09 02:32:28 -0400 | [diff] [blame] | 354 | "$root_build_dir/WebRTC.framework", |
kthelgason | d3adbfb | 2017-01-26 01:14:04 -0800 | [diff] [blame] | 355 | ] |
| 356 | outputs = [ |
| 357 | "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}", |
| 358 | ] |
| 359 | } |
| 360 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 361 | bundle_data("AppRTCMobile_ios_bundle_data") { |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 362 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 363 | "objc/AppRTCMobile/ios/resources/Roboto-Regular.ttf", |
Daniela | 012b56b | 2017-11-15 13:15:24 +0100 | [diff] [blame] | 364 | |
| 365 | # Sample video taken from https://media.xiph.org/video/derf/ |
| 366 | "objc/AppRTCMobile/ios/resources/foreman.mp4", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 367 | "objc/AppRTCMobile/ios/resources/iPhone5@2x.png", |
| 368 | "objc/AppRTCMobile/ios/resources/iPhone6@2x.png", |
| 369 | "objc/AppRTCMobile/ios/resources/iPhone6p@3x.png", |
| 370 | "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp.png", |
| 371 | "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp@2x.png", |
| 372 | "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp.png", |
| 373 | "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp@2x.png", |
denicija | 6d6762c | 2016-10-28 04:53:16 -0700 | [diff] [blame] | 374 | "objc/AppRTCMobile/ios/resources/ic_settings_black_24dp.png", |
| 375 | "objc/AppRTCMobile/ios/resources/ic_settings_black_24dp@2x.png", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 376 | "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp.png", |
| 377 | "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp@2x.png", |
| 378 | "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp.png", |
| 379 | "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp@2x.png", |
| 380 | "objc/AppRTCMobile/ios/resources/mozart.mp3", |
andersc | b5ed905 | 2017-08-15 04:07:12 -0700 | [diff] [blame] | 381 | "objc/Icon-120.png", |
| 382 | "objc/Icon-180.png", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 383 | "objc/Icon.png", |
| 384 | ] |
| 385 | outputs = [ |
| 386 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 387 | ] |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | if (is_mac) { |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 392 | rtc_static_library("AppRTCMobile_lib") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 393 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 394 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 395 | "objc/AppRTCMobile/mac/APPRTCAppDelegate.h", |
| 396 | "objc/AppRTCMobile/mac/APPRTCAppDelegate.m", |
| 397 | "objc/AppRTCMobile/mac/APPRTCViewController.h", |
| 398 | "objc/AppRTCMobile/mac/APPRTCViewController.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 399 | ] |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 400 | configs += [ "..:common_objc" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 401 | deps = [ |
| 402 | ":apprtc_common", |
| 403 | ":apprtc_signaling", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 10:49:22 +0100 | [diff] [blame] | 404 | "../sdk:default_codec_factory_objc", |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 405 | "../sdk:metal_objc", |
Mirko Bonadei | cbaaaed | 2018-02-19 15:14:04 +0100 | [diff] [blame] | 406 | "../sdk:peerconnectionfactory_base_objc", |
kthelgason | 36d658d | 2017-08-24 05:43:45 -0700 | [diff] [blame] | 407 | "../sdk:ui_objc", |
Mirko Bonadei | cbaaaed | 2018-02-19 15:14:04 +0100 | [diff] [blame] | 408 | "../sdk:videocapture_objc", |
| 409 | "../sdk:videocodec_objc", |
Kári Tristan Helgason | 99bf77c | 2018-02-16 10:49:22 +0100 | [diff] [blame] | 410 | "../sdk:videocodec_objc", |
| 411 | "../sdk:videotoolbox_objc", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 412 | ] |
| 413 | } |
| 414 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 415 | mac_app_bundle("AppRTCMobile") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 416 | testonly = true |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 417 | output_name = "AppRTCMobile" |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 418 | |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 419 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 420 | "objc/AppRTCMobile/mac/main.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 421 | ] |
| 422 | |
| 423 | public_configs = [ "..:common_inherited_config" ] |
| 424 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 425 | info_plist = "objc/AppRTCMobile/mac/Info.plist" |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 426 | |
| 427 | libs = [ "AppKit.framework" ] |
| 428 | |
| 429 | deps = [ |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 430 | ":AppRTCMobile_lib", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 431 | ] |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | config("socketrocket_include_config") { |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 436 | include_dirs = [ "objc/AppRTCMobile/third_party/SocketRocket" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 437 | } |
| 438 | |
| 439 | config("socketrocket_warning_config") { |
| 440 | # GN orders flags on a target before flags from configs. The default config |
| 441 | # adds these flags so to cancel them out they need to come from a config and |
| 442 | # cannot be on the target directly. |
| 443 | cflags = [ |
| 444 | "-Wno-deprecated-declarations", |
| 445 | "-Wno-nonnull", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 446 | "-Wno-semicolon-before-method-body", |
kthelgason | e47de1a | 2017-02-24 01:56:01 -0800 | [diff] [blame] | 447 | "-Wno-unused-variable", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 448 | ] |
| 449 | |
henrika | 27d8b61 | 2016-09-21 04:13:00 -0700 | [diff] [blame] | 450 | cflags_objc = [ |
| 451 | # Enabled for cflags_objc in build/config/compiler/BUILD.gn. |
| 452 | "-Wno-objc-missing-property-synthesis", |
henrika | 27d8b61 | 2016-09-21 04:13:00 -0700 | [diff] [blame] | 453 | ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 454 | } |
| 455 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 456 | rtc_static_library("socketrocket") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 457 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 458 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 459 | "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h", |
| 460 | "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 461 | ] |
kthelgason | c097710 | 2017-04-24 00:57:16 -0700 | [diff] [blame] | 462 | configs += [ ":socketrocket_warning_config" ] |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 463 | public_configs = [ ":socketrocket_include_config" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 464 | |
| 465 | libs = [ |
| 466 | "CFNetwork.framework", |
| 467 | "icucore", |
| 468 | ] |
| 469 | } |
adam.fedor | bcc5d87 | 2016-11-07 14:53:28 -0800 | [diff] [blame] | 470 | |
| 471 | if (rtc_include_tests) { |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 472 | # TODO(kthelgason): compile xctests on mac when chromium supports it. |
| 473 | if (is_ios) { |
| 474 | rtc_source_set("apprtcmobile_test_sources") { |
Mirko Bonadei | cbaaaed | 2018-02-19 15:14:04 +0100 | [diff] [blame] | 475 | # iOS must use WebRTC.framework which is dynamically linked. |
| 476 | # 'gn check' is disabled in order to avoid confusion and |
| 477 | # errors caused by multiple implementations. |
| 478 | check_includes = false |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 479 | testonly = true |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 480 | include_dirs = [ |
| 481 | "objc/AppRTCMobile", |
| 482 | "objc/AppRTCMobile/ios", |
| 483 | ] |
| 484 | testonly = true |
| 485 | sources = [ |
| 486 | "objc/AppRTCMobile/tests/ARDAppClient_xctest.mm", |
Daniela | 012b56b | 2017-11-15 13:15:24 +0100 | [diff] [blame] | 487 | "objc/AppRTCMobile/tests/ARDFileCaptureController_xctest.mm", |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 488 | "objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm", |
| 489 | ] |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 490 | deps = [ |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 491 | ":AppRTCMobile_ios_frameworks", |
| 492 | ":AppRTCMobile_lib", |
Mirko Bonadei | cbaaaed | 2018-02-19 15:14:04 +0100 | [diff] [blame] | 493 | ":apprtc_signaling", |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 494 | "../rtc_base:rtc_base", |
| 495 | "../sdk:framework_objc", |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 496 | "//build/config/ios:xctest", |
| 497 | "//third_party/ocmock", |
| 498 | ] |
adam.fedor | bcc5d87 | 2016-11-07 14:53:28 -0800 | [diff] [blame] | 499 | } |
| 500 | |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 501 | rtc_ios_xctest_test("apprtcmobile_tests") { |
| 502 | info_plist = "objc/AppRTCMobile/ios/Info.plist" |
| 503 | sources = [ |
| 504 | "objc/AppRTCMobile/ios/main.m", |
| 505 | ] |
| 506 | deps = [ |
Mirko Bonadei | cbaaaed | 2018-02-19 15:14:04 +0100 | [diff] [blame] | 507 | ":AppRTCMobile_lib", |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 508 | ":apprtcmobile_test_sources", |
Mirko Bonadei | 1a339c3 | 2017-12-14 13:06:10 +0100 | [diff] [blame] | 509 | "../sdk:framework_objc", |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 510 | ] |
| 511 | ldflags = [ "-all_load" ] |
| 512 | } |
adam.fedor | bcc5d87 | 2016-11-07 14:53:28 -0800 | [diff] [blame] | 513 | } |
| 514 | } |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 515 | } |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 516 | |
| 517 | if (is_linux || is_win) { |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 518 | config("peerconnection_client_warnings_config") { |
kjellander | 4a9abad | 2016-09-18 08:12:29 -0700 | [diff] [blame] | 519 | cflags = [] |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 520 | if (is_win && is_clang) { |
kjellander | 4a9abad | 2016-09-18 08:12:29 -0700 | [diff] [blame] | 521 | cflags += [ |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 522 | # Disable warnings failing when compiling with Clang on Windows. |
| 523 | # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 524 | "-Wno-format", |
| 525 | |
| 526 | # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6271 |
| 527 | # for -Wno-reorder and -Wno-sign-compare |
| 528 | "-Wno-reorder", |
| 529 | "-Wno-sign-compare", |
| 530 | ] |
| 531 | } |
kjellander | d4626e5 | 2016-09-07 02:33:01 -0700 | [diff] [blame] | 532 | if (is_linux && target_cpu == "x86") { |
kjellander | 4a9abad | 2016-09-18 08:12:29 -0700 | [diff] [blame] | 533 | cflags += [ |
kjellander | d4626e5 | 2016-09-07 02:33:01 -0700 | [diff] [blame] | 534 | # Needed to compile on Linux 32-bit. |
| 535 | "-Wno-sentinel", |
| 536 | ] |
| 537 | } |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 538 | } |
| 539 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 540 | rtc_executable("peerconnection_client") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 541 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 542 | sources = [ |
| 543 | "peerconnection/client/conductor.cc", |
| 544 | "peerconnection/client/conductor.h", |
| 545 | "peerconnection/client/defaults.cc", |
| 546 | "peerconnection/client/defaults.h", |
| 547 | "peerconnection/client/peer_connection_client.cc", |
| 548 | "peerconnection/client/peer_connection_client.h", |
| 549 | ] |
ehmaldonado | 7a2ce0b | 2016-09-05 01:35:44 -0700 | [diff] [blame] | 550 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 551 | if (!build_with_chromium && is_clang) { |
| 552 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 553 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 554 | } |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 555 | deps = [ |
Mirko Bonadei | 34814c7 | 2018-01-11 10:13:56 +0100 | [diff] [blame] | 556 | "../api:libjingle_peerconnection_api", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 557 | "../api:video_frame_api_i420", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 558 | "../rtc_base:checks", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 559 | "../rtc_base:stringutils", |
Patrik Höglund | b5b5bce | 2017-11-13 10:19:58 +0100 | [diff] [blame] | 560 | ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 561 | if (is_win) { |
| 562 | sources += [ |
| 563 | "peerconnection/client/flagdefs.h", |
| 564 | "peerconnection/client/main.cc", |
| 565 | "peerconnection/client/main_wnd.cc", |
| 566 | "peerconnection/client/main_wnd.h", |
| 567 | ] |
| 568 | cflags = [ "/wd4245" ] |
| 569 | configs += [ "//build/config/win:windowed" ] |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 570 | deps += [ "../media:rtc_media_base" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 571 | } |
| 572 | if (is_linux) { |
| 573 | sources += [ |
| 574 | "peerconnection/client/linux/main.cc", |
| 575 | "peerconnection/client/linux/main_wnd.cc", |
| 576 | "peerconnection/client/linux/main_wnd.h", |
| 577 | ] |
Henrik Kjellander | efbde2c | 2017-03-27 08:28:27 +0200 | [diff] [blame] | 578 | cflags = [ "-Wno-deprecated-declarations" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 579 | libs = [ |
| 580 | "X11", |
| 581 | "Xcomposite", |
| 582 | "Xext", |
| 583 | "Xrender", |
| 584 | ] |
thomasanderson | ef16e99 | 2016-12-13 02:57:43 -0800 | [diff] [blame] | 585 | deps += [ "//build/config/linux/gtk" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 586 | } |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 587 | configs += [ ":peerconnection_client_warnings_config" ] |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 588 | |
| 589 | deps += [ |
Niels Möller | 8366e17 | 2018-02-14 12:20:13 +0100 | [diff] [blame] | 590 | "../api:libjingle_peerconnection_api", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 591 | "../api:libjingle_peerconnection_test_api", |
| 592 | "../api:video_frame_api", |
Karl Wiberg | 1b0eae3 | 2017-10-17 14:48:54 +0200 | [diff] [blame] | 593 | "../api/audio_codecs:builtin_audio_decoder_factory", |
| 594 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 595 | "../media:rtc_audio_video", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 596 | "../modules/video_capture:video_capture_module", |
| 597 | "../pc:libjingle_peerconnection", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 598 | "../rtc_base:rtc_base", |
| 599 | "../rtc_base:rtc_base_approved", |
| 600 | "../rtc_base:rtc_json", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 601 | "../system_wrappers:field_trial_default", |
| 602 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 603 | "../system_wrappers:runtime_enabled_features_default", |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 604 | "//third_party/libyuv", |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 605 | ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 606 | } |
kjellander | d4626e5 | 2016-09-07 02:33:01 -0700 | [diff] [blame] | 607 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 608 | rtc_executable("peerconnection_server") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 609 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 610 | sources = [ |
| 611 | "peerconnection/server/data_socket.cc", |
| 612 | "peerconnection/server/data_socket.h", |
| 613 | "peerconnection/server/main.cc", |
| 614 | "peerconnection/server/peer_channel.cc", |
| 615 | "peerconnection/server/peer_channel.h", |
| 616 | "peerconnection/server/utils.cc", |
| 617 | "peerconnection/server/utils.h", |
| 618 | ] |
| 619 | deps = [ |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 620 | "..:webrtc_common", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 621 | "../rtc_base:rtc_base_approved", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 622 | "../rtc_base:stringutils", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 623 | "../rtc_tools:command_line_parser", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 624 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 625 | if (!build_with_chromium && is_clang) { |
| 626 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 627 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 628 | } |
| 629 | } |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 630 | rtc_executable("relayserver") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 631 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 632 | sources = [ |
| 633 | "relayserver/relayserver_main.cc", |
| 634 | ] |
| 635 | deps = [ |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 636 | "../p2p:rtc_p2p", |
| 637 | "../pc:rtc_pc", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 638 | "../rtc_base:rtc_base", |
| 639 | "../rtc_base:rtc_base_approved", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 640 | "../system_wrappers:field_trial_default", |
| 641 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 642 | "../system_wrappers:runtime_enabled_features_default", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 643 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 644 | if (!build_with_chromium && is_clang) { |
| 645 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 646 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 647 | } |
| 648 | } |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 649 | rtc_executable("turnserver") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 650 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 651 | sources = [ |
| 652 | "turnserver/turnserver_main.cc", |
| 653 | ] |
| 654 | deps = [ |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 655 | "../p2p:rtc_p2p", |
| 656 | "../pc:rtc_pc", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 657 | "../rtc_base:rtc_base", |
| 658 | "../rtc_base:rtc_base_approved", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 659 | "../system_wrappers:field_trial_default", |
| 660 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 661 | "../system_wrappers:runtime_enabled_features_default", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 662 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 663 | if (!build_with_chromium && is_clang) { |
| 664 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 665 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 666 | } |
| 667 | } |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 668 | rtc_executable("stunserver") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 669 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 670 | sources = [ |
| 671 | "stunserver/stunserver_main.cc", |
| 672 | ] |
| 673 | deps = [ |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 674 | "../p2p:rtc_p2p", |
| 675 | "../pc:rtc_pc", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 676 | "../rtc_base:rtc_base", |
| 677 | "../rtc_base:rtc_base_approved", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 678 | "../system_wrappers:field_trial_default", |
| 679 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 680 | "../system_wrappers:runtime_enabled_features_default", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 681 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 682 | if (!build_with_chromium && is_clang) { |
| 683 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 684 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 685 | } |
| 686 | } |
| 687 | } |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 688 | |
qiangchen | 42f96d5 | 2017-08-08 17:08:03 -0700 | [diff] [blame] | 689 | if (is_win || is_android) { |
gyzhou | ad7cad8 | 2017-05-11 16:10:03 -0700 | [diff] [blame] | 690 | rtc_shared_library("webrtc_unity_plugin") { |
| 691 | testonly = true |
| 692 | sources = [ |
| 693 | "unityplugin/simple_peer_connection.cc", |
| 694 | "unityplugin/simple_peer_connection.h", |
| 695 | "unityplugin/unity_plugin_apis.cc", |
| 696 | "unityplugin/unity_plugin_apis.h", |
gyzhou | b38f386 | 2017-07-25 16:04:31 -0700 | [diff] [blame] | 697 | "unityplugin/video_observer.cc", |
| 698 | "unityplugin/video_observer.h", |
gyzhou | ad7cad8 | 2017-05-11 16:10:03 -0700 | [diff] [blame] | 699 | ] |
qiangchen | 42f96d5 | 2017-08-08 17:08:03 -0700 | [diff] [blame] | 700 | |
| 701 | if (is_android) { |
| 702 | sources += [ |
| 703 | "unityplugin/classreferenceholder.cc", |
| 704 | "unityplugin/classreferenceholder.h", |
| 705 | "unityplugin/jni_onload.cc", |
| 706 | ] |
Qiang Chen | 43fb912 | 2017-12-20 10:47:36 -0800 | [diff] [blame] | 707 | suppressed_configs += [ "//build/config/android:hide_all_but_jni_onload" ] |
qiangchen | 42f96d5 | 2017-08-08 17:08:03 -0700 | [diff] [blame] | 708 | } |
| 709 | |
gyzhou | ad7cad8 | 2017-05-11 16:10:03 -0700 | [diff] [blame] | 710 | if (!build_with_chromium && is_clang) { |
| 711 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 712 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 713 | } |
qiangchen | 42f96d5 | 2017-08-08 17:08:03 -0700 | [diff] [blame] | 714 | if (is_win) { |
| 715 | cflags = [ "/wd4245" ] |
| 716 | configs += [ |
| 717 | "//build/config/win:windowed", |
| 718 | ":peerconnection_client_warnings_config", |
| 719 | ] |
| 720 | } |
gyzhou | ad7cad8 | 2017-05-11 16:10:03 -0700 | [diff] [blame] | 721 | deps = [ |
Mirko Bonadei | 34814c7 | 2018-01-11 10:13:56 +0100 | [diff] [blame] | 722 | "../api:libjingle_peerconnection_api", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 723 | "../api:libjingle_peerconnection_test_api", |
| 724 | "../api:video_frame_api", |
Qiang Chen | 51e2046 | 2017-12-05 11:11:21 -0800 | [diff] [blame] | 725 | "../api/audio_codecs:builtin_audio_decoder_factory", |
| 726 | "../api/audio_codecs:builtin_audio_encoder_factory", |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 727 | "../media:rtc_audio_video", |
Anders Carlsson | a114c88 | 2018-01-04 15:10:22 +0100 | [diff] [blame] | 728 | "../media:rtc_internal_video_codecs", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 729 | "../media:rtc_media", |
| 730 | "../media:rtc_media_base", |
Qiang Chen | 43fb912 | 2017-12-20 10:47:36 -0800 | [diff] [blame] | 731 | "../modules/audio_device:audio_device", |
| 732 | "../modules/audio_processing:audio_processing", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 733 | "../modules/video_capture:video_capture_module", |
| 734 | "../pc:libjingle_peerconnection", |
qiangchen | 42f96d5 | 2017-08-08 17:08:03 -0700 | [diff] [blame] | 735 | "../rtc_base:rtc_base", |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 736 | "../system_wrappers:field_trial_default", |
| 737 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 738 | "../system_wrappers:runtime_enabled_features_default", |
gyzhou | ad7cad8 | 2017-05-11 16:10:03 -0700 | [diff] [blame] | 739 | ] |
qiangchen | 42f96d5 | 2017-08-08 17:08:03 -0700 | [diff] [blame] | 740 | if (is_android) { |
George Zhou | 2770c3d | 2018-03-07 09:58:54 -0800 | [diff] [blame] | 741 | deps += [ |
| 742 | "../modules/utility:utility", |
| 743 | "../sdk/android:libjingle_peerconnection_jni", |
| 744 | ] |
qiangchen | 42f96d5 | 2017-08-08 17:08:03 -0700 | [diff] [blame] | 745 | } |
| 746 | } |
| 747 | } |
| 748 | |
| 749 | if (is_android) { |
Mirko Bonadei | fbb3b7d | 2017-11-07 15:36:33 +0000 | [diff] [blame] | 750 | rtc_android_library("webrtc_unity_java") { |
qiangchen | 42f96d5 | 2017-08-08 17:08:03 -0700 | [diff] [blame] | 751 | java_files = [ "unityplugin/java/src/org/webrtc/UnityUtility.java" ] |
| 752 | deps = [ |
| 753 | "../rtc_base:base_java", |
| 754 | "../sdk/android:libjingle_peerconnection_java", |
| 755 | ] |
| 756 | } |
| 757 | |
| 758 | dist_jar("libwebrtc_unity") { |
| 759 | _target_dir_name = get_label_info(":$target_name", "dir") |
| 760 | output = "${root_out_dir}/lib.java${_target_dir_name}/${target_name}.jar" |
George Zhou | 2770c3d | 2018-03-07 09:58:54 -0800 | [diff] [blame] | 761 | direct_deps_only = false |
qiangchen | 42f96d5 | 2017-08-08 17:08:03 -0700 | [diff] [blame] | 762 | use_interface_jars = false |
George Zhou | 2770c3d | 2018-03-07 09:58:54 -0800 | [diff] [blame] | 763 | use_unprocessed_jars = false |
Oleh Prypin | 86021d9 | 2017-09-24 22:29:06 +0200 | [diff] [blame] | 764 | requires_android = true |
qiangchen | 42f96d5 | 2017-08-08 17:08:03 -0700 | [diff] [blame] | 765 | deps = [ |
| 766 | ":webrtc_unity_java", |
| 767 | "../modules/audio_device:audio_device_java", |
| 768 | "../rtc_base:base_java", |
| 769 | "../sdk/android:libjingle_peerconnection_java", |
| 770 | "../sdk/android:libjingle_peerconnection_metrics_default_java", |
| 771 | ] |
gyzhou | ad7cad8 | 2017-05-11 16:10:03 -0700 | [diff] [blame] | 772 | } |
| 773 | } |
| 774 | |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 775 | if (!build_with_chromium) { |
| 776 | # Doesn't build within Chrome on Win. |
| 777 | rtc_executable("stun_prober") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 778 | testonly = true |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 779 | sources = [ |
| 780 | "stunprober/main.cc", |
| 781 | ] |
| 782 | |
| 783 | if (!build_with_chromium && is_clang) { |
| 784 | # Suppress warnings from Chrome's Clang plugins. |
| 785 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 786 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 787 | } |
| 788 | |
| 789 | deps = [ |
| 790 | "../p2p:libstunprober", |
| 791 | "../p2p:rtc_p2p", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 792 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 793 | "../rtc_base:rtc_base", |
| 794 | "../rtc_base:rtc_base_approved", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 795 | "../rtc_base:stringutils", |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 796 | "../system_wrappers:field_trial_default", |
| 797 | ] |
| 798 | } |
| 799 | } |