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