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") |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 10 | if (is_android) { |
| 11 | import("//build/config/android/config.gni") |
| 12 | import("//build/config/android/rules.gni") |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 13 | } else if (is_mac) { |
| 14 | import("//build/config/mac/rules.gni") |
| 15 | } else if (is_ios) { |
| 16 | import("//build/config/ios/rules.gni") |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | group("examples") { |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 20 | # This target shall build all targets in examples. |
| 21 | testonly = true |
kjellander | 705ecc5 | 2016-09-15 00:53:26 -0700 | [diff] [blame] | 22 | public_deps = [] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 23 | |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 24 | if (is_android) { |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 25 | public_deps += [ |
| 26 | ":AppRTCMobile", |
| 27 | ":AppRTCMobileTest", |
mandermo | a6069e8 | 2017-01-16 02:23:09 -0800 | [diff] [blame] | 28 | ":AppRTCMobileTestStubbedVideoIO", |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 29 | ] |
| 30 | } |
| 31 | |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 32 | if (!build_with_chromium) { |
| 33 | public_deps += [ ":stun_prober" ] |
| 34 | } |
| 35 | |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 36 | if (is_ios || (is_mac && target_cpu != "x86")) { |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 37 | public_deps += [ ":AppRTCMobile" ] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 38 | } |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 39 | |
| 40 | if (is_linux || is_win) { |
kjellander | 705ecc5 | 2016-09-15 00:53:26 -0700 | [diff] [blame] | 41 | public_deps += [ |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 42 | ":peerconnection_client", |
| 43 | ":peerconnection_server", |
| 44 | ":relayserver", |
| 45 | ":stunserver", |
| 46 | ":turnserver", |
| 47 | ] |
| 48 | } |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 49 | } |
| 50 | |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 51 | if (is_android) { |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 52 | android_apk("AppRTCMobile") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 53 | testonly = true |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 54 | apk_name = "AppRTCMobile" |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 55 | android_manifest = "androidapp/AndroidManifest.xml" |
| 56 | |
| 57 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 58 | ":AppRTCMobile_javalib", |
| 59 | ":AppRTCMobile_resources", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 60 | "//base:base_java", |
| 61 | "//webrtc/base:base_java", |
| 62 | ] |
| 63 | |
magjed | 768c648 | 2016-12-06 04:29:37 -0800 | [diff] [blame] | 64 | shared_libraries = [ "//webrtc/sdk/android:libjingle_peerconnection_so" ] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 65 | } |
| 66 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 67 | android_library("AppRTCMobile_javalib") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 68 | testonly = true |
sakal | 07a050f | 2017-02-13 05:58:27 -0800 | [diff] [blame] | 69 | android_manifest = "androidapp/AndroidManifest.xml" |
| 70 | |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 71 | java_files = [ |
| 72 | "androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java", |
henrika | c3c2f31 | 2016-12-14 07:36:56 -0800 | [diff] [blame] | 73 | "androidapp/src/org/appspot/apprtc/AppRTCBluetoothManager.java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 74 | "androidapp/src/org/appspot/apprtc/AppRTCClient.java", |
| 75 | "androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java", |
| 76 | "androidapp/src/org/appspot/apprtc/CallActivity.java", |
| 77 | "androidapp/src/org/appspot/apprtc/CallFragment.java", |
| 78 | "androidapp/src/org/appspot/apprtc/CaptureQualityController.java", |
| 79 | "androidapp/src/org/appspot/apprtc/ConnectActivity.java", |
| 80 | "androidapp/src/org/appspot/apprtc/CpuMonitor.java", |
| 81 | "androidapp/src/org/appspot/apprtc/DirectRTCClient.java", |
| 82 | "androidapp/src/org/appspot/apprtc/HudFragment.java", |
| 83 | "androidapp/src/org/appspot/apprtc/PeerConnectionClient.java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 84 | "androidapp/src/org/appspot/apprtc/RoomParametersFetcher.java", |
| 85 | "androidapp/src/org/appspot/apprtc/SettingsActivity.java", |
| 86 | "androidapp/src/org/appspot/apprtc/SettingsFragment.java", |
| 87 | "androidapp/src/org/appspot/apprtc/TCPChannelClient.java", |
| 88 | "androidapp/src/org/appspot/apprtc/UnhandledExceptionHandler.java", |
| 89 | "androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java", |
| 90 | "androidapp/src/org/appspot/apprtc/WebSocketRTCClient.java", |
| 91 | "androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java", |
| 92 | "androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 93 | ] |
| 94 | |
| 95 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 96 | ":AppRTCMobile_resources", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 97 | "//webrtc/base:base_java", |
| 98 | "//webrtc/examples/androidapp/third_party/autobanh:autobanh_java", |
mbonadei | b55bd97 | 2017-01-23 01:25:53 -0800 | [diff] [blame] | 99 | "//webrtc/modules/audio_device:audio_device_java", |
magjed | 768c648 | 2016-12-06 04:29:37 -0800 | [diff] [blame] | 100 | "//webrtc/sdk/android:libjingle_peerconnection_java", |
| 101 | "//webrtc/sdk/android:libjingle_peerconnection_metrics_default_java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 102 | ] |
| 103 | } |
| 104 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 105 | android_resources("AppRTCMobile_resources") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 106 | testonly = true |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 107 | resource_dirs = [ "androidapp/res" ] |
| 108 | custom_package = "org.appspot.apprtc" |
| 109 | } |
| 110 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 111 | instrumentation_test_apk("AppRTCMobileTest") { |
| 112 | apk_name = "AppRTCMobileTest" |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 113 | android_manifest = "androidtests/AndroidManifest.xml" |
| 114 | |
sakal | e8aca24 | 2017-01-17 03:32:06 -0800 | [diff] [blame] | 115 | java_files = [ "androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java" ] |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 116 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 117 | apk_under_test = ":AppRTCMobile" |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 118 | |
| 119 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 120 | ":AppRTCMobile_javalib", |
sakal | cb79d51 | 2017-01-11 06:21:26 -0800 | [diff] [blame] | 121 | "//base:base_java_test_support", |
| 122 | "//third_party/android_support_test_runner:runner_java", |
| 123 | "//third_party/junit", |
magjed | 768c648 | 2016-12-06 04:29:37 -0800 | [diff] [blame] | 124 | "//webrtc/sdk/android:libjingle_peerconnection_java", |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 125 | ] |
| 126 | } |
mandermo | a6069e8 | 2017-01-16 02:23:09 -0800 | [diff] [blame] | 127 | |
| 128 | instrumentation_test_apk("AppRTCMobileTestStubbedVideoIO") { |
| 129 | apk_name = "AppRTCMobileTestStubbedVideoIO" |
| 130 | android_manifest = "androidtests/AndroidManifest.xml" |
| 131 | |
| 132 | java_files = [ "androidtests/src/org/appspot/apprtc/test/ConnectActivityStubbedInputOutputTest.java" ] |
| 133 | |
| 134 | apk_under_test = ":AppRTCMobile" |
| 135 | |
| 136 | deps = [ |
| 137 | ":AppRTCMobile_javalib", |
| 138 | "//third_party/android_support_test_runner:rules_java", |
| 139 | "//third_party/android_support_test_runner:runner_java", |
| 140 | "//third_party/espresso:espresso_all_java", |
| 141 | "//third_party/hamcrest:hamcrest_java", |
| 142 | "//third_party/junit", |
| 143 | "//webrtc/sdk/android:libjingle_peerconnection_java", |
| 144 | ] |
| 145 | |
| 146 | data = [ |
| 147 | "//resources/reference_video_640x360_30fps.y4m", |
| 148 | ] |
| 149 | } |
Sami Kalliomaki | 9c0c75b | 2016-06-29 14:55:00 +0200 | [diff] [blame] | 150 | } |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 151 | |
| 152 | if (is_ios || (is_mac && target_cpu != "x86")) { |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 153 | config("apprtc_common_config") { |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 154 | include_dirs = [ "objc/AppRTCMobile/common" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 155 | } |
| 156 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 157 | rtc_static_library("apprtc_common") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 158 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 159 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 160 | "objc/AppRTCMobile/common/ARDUtilities.h", |
| 161 | "objc/AppRTCMobile/common/ARDUtilities.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 162 | ] |
kthelgason | b13237b | 2017-03-30 04:56:05 -0700 | [diff] [blame] | 163 | configs += [ "//build/config/compiler:enable_arc" ] |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 164 | public_configs = [ ":apprtc_common_config" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 165 | |
| 166 | deps = [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 167 | "//webrtc/sdk:rtc_sdk_common_objc", |
| 168 | "//webrtc/system_wrappers:field_trial_default", |
| 169 | "//webrtc/system_wrappers:metrics_default", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 170 | ] |
| 171 | } |
| 172 | |
| 173 | config("apprtc_signaling_config") { |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 174 | include_dirs = [ "objc/AppRTCMobile" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 175 | |
| 176 | # GN orders flags on a target before flags from configs. The default config |
| 177 | # adds these flags so to cancel them out they need to come from a config and |
| 178 | # cannot be on the target directly. |
| 179 | cflags = [ |
| 180 | "-Wno-sign-compare", |
| 181 | "-Wno-unused-variable", |
| 182 | ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 183 | } |
| 184 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 185 | rtc_static_library("apprtc_signaling") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 186 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 187 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 188 | "objc/AppRTCMobile/ARDAppClient+Internal.h", |
| 189 | "objc/AppRTCMobile/ARDAppClient.h", |
| 190 | "objc/AppRTCMobile/ARDAppClient.m", |
| 191 | "objc/AppRTCMobile/ARDAppEngineClient.h", |
| 192 | "objc/AppRTCMobile/ARDAppEngineClient.m", |
| 193 | "objc/AppRTCMobile/ARDBitrateTracker.h", |
| 194 | "objc/AppRTCMobile/ARDBitrateTracker.m", |
sakal | c522e75 | 2017-04-05 12:17:48 -0700 | [diff] [blame^] | 195 | "objc/AppRTCMobile/ARDCaptureController.h", |
| 196 | "objc/AppRTCMobile/ARDCaptureController.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 197 | "objc/AppRTCMobile/ARDJoinResponse+Internal.h", |
| 198 | "objc/AppRTCMobile/ARDJoinResponse.h", |
| 199 | "objc/AppRTCMobile/ARDJoinResponse.m", |
| 200 | "objc/AppRTCMobile/ARDMessageResponse+Internal.h", |
| 201 | "objc/AppRTCMobile/ARDMessageResponse.h", |
| 202 | "objc/AppRTCMobile/ARDMessageResponse.m", |
| 203 | "objc/AppRTCMobile/ARDRoomServerClient.h", |
| 204 | "objc/AppRTCMobile/ARDSDPUtils.h", |
| 205 | "objc/AppRTCMobile/ARDSDPUtils.m", |
sakal | c4adacf | 2017-03-28 01:22:48 -0700 | [diff] [blame] | 206 | "objc/AppRTCMobile/ARDSettingsModel+Private.h", |
| 207 | "objc/AppRTCMobile/ARDSettingsModel.h", |
| 208 | "objc/AppRTCMobile/ARDSettingsModel.m", |
| 209 | "objc/AppRTCMobile/ARDSettingsStore.h", |
| 210 | "objc/AppRTCMobile/ARDSettingsStore.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 211 | "objc/AppRTCMobile/ARDSignalingChannel.h", |
| 212 | "objc/AppRTCMobile/ARDSignalingMessage.h", |
| 213 | "objc/AppRTCMobile/ARDSignalingMessage.m", |
| 214 | "objc/AppRTCMobile/ARDStatsBuilder.h", |
| 215 | "objc/AppRTCMobile/ARDStatsBuilder.m", |
kthelgason | cc882af | 2017-01-13 05:59:46 -0800 | [diff] [blame] | 216 | "objc/AppRTCMobile/ARDTURNClient+Internal.h", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 217 | "objc/AppRTCMobile/ARDTURNClient.h", |
kthelgason | cc882af | 2017-01-13 05:59:46 -0800 | [diff] [blame] | 218 | "objc/AppRTCMobile/ARDTURNClient.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 219 | "objc/AppRTCMobile/ARDWebSocketChannel.h", |
| 220 | "objc/AppRTCMobile/ARDWebSocketChannel.m", |
| 221 | "objc/AppRTCMobile/RTCIceCandidate+JSON.h", |
| 222 | "objc/AppRTCMobile/RTCIceCandidate+JSON.m", |
| 223 | "objc/AppRTCMobile/RTCIceServer+JSON.h", |
| 224 | "objc/AppRTCMobile/RTCIceServer+JSON.m", |
| 225 | "objc/AppRTCMobile/RTCMediaConstraints+JSON.h", |
| 226 | "objc/AppRTCMobile/RTCMediaConstraints+JSON.m", |
| 227 | "objc/AppRTCMobile/RTCSessionDescription+JSON.h", |
| 228 | "objc/AppRTCMobile/RTCSessionDescription+JSON.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 229 | ] |
kthelgason | b13237b | 2017-03-30 04:56:05 -0700 | [diff] [blame] | 230 | configs += [ "//build/config/compiler:enable_arc" ] |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 231 | public_configs = [ ":apprtc_signaling_config" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 232 | deps = [ |
| 233 | ":apprtc_common", |
| 234 | ":socketrocket", |
| 235 | ] |
| 236 | public_deps = [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 237 | "//webrtc/sdk:rtc_sdk_peerconnection_objc", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 238 | ] |
| 239 | libs = [ "QuartzCore.framework" ] |
| 240 | } |
| 241 | |
| 242 | if (is_ios) { |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 243 | rtc_static_library("AppRTCMobile_lib") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 244 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 245 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 246 | "objc/AppRTCMobile/ios/ARDAppDelegate.m", |
| 247 | "objc/AppRTCMobile/ios/ARDMainView.h", |
| 248 | "objc/AppRTCMobile/ios/ARDMainView.m", |
| 249 | "objc/AppRTCMobile/ios/ARDMainViewController.h", |
| 250 | "objc/AppRTCMobile/ios/ARDMainViewController.m", |
denicija | d17d536 | 2016-11-02 02:56:09 -0700 | [diff] [blame] | 251 | "objc/AppRTCMobile/ios/ARDSettingsViewController.h", |
| 252 | "objc/AppRTCMobile/ios/ARDSettingsViewController.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 253 | "objc/AppRTCMobile/ios/ARDStatsView.h", |
| 254 | "objc/AppRTCMobile/ios/ARDStatsView.m", |
| 255 | "objc/AppRTCMobile/ios/ARDVideoCallView.h", |
| 256 | "objc/AppRTCMobile/ios/ARDVideoCallView.m", |
| 257 | "objc/AppRTCMobile/ios/ARDVideoCallViewController.h", |
| 258 | "objc/AppRTCMobile/ios/ARDVideoCallViewController.m", |
| 259 | "objc/AppRTCMobile/ios/AppRTCMobile-Prefix.pch", |
| 260 | "objc/AppRTCMobile/ios/UIImage+ARDUtilities.h", |
| 261 | "objc/AppRTCMobile/ios/UIImage+ARDUtilities.m", |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 262 | ] |
kthelgason | b13237b | 2017-03-30 04:56:05 -0700 | [diff] [blame] | 263 | configs += [ "//build/config/compiler:enable_arc" ] |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 264 | |
| 265 | deps = [ |
| 266 | ":apprtc_common", |
| 267 | ":apprtc_signaling", |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 268 | "//webrtc/modules/audio_device", |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 269 | ] |
| 270 | } |
| 271 | |
| 272 | ios_app_bundle("AppRTCMobile") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 273 | testonly = true |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 274 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 275 | "objc/AppRTCMobile/ios/main.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 276 | ] |
| 277 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 278 | info_plist = "objc/AppRTCMobile/ios/Info.plist" |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 279 | |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 280 | configs += [ "..:common_config" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 281 | public_configs = [ "..:common_inherited_config" ] |
| 282 | |
| 283 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 284 | ":AppRTCMobile_ios_bundle_data", |
kthelgason | d3adbfb | 2017-01-26 01:14:04 -0800 | [diff] [blame] | 285 | ":AppRTCMobile_ios_frameworks", |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 286 | ":AppRTCMobile_lib", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 287 | ] |
| 288 | |
| 289 | if (target_cpu == "x86") { |
| 290 | deps += [ "//testing/iossim:iossim" ] |
| 291 | } |
| 292 | } |
| 293 | |
kthelgason | d3adbfb | 2017-01-26 01:14:04 -0800 | [diff] [blame] | 294 | bundle_data("AppRTCMobile_ios_frameworks") { |
| 295 | public_deps = [ |
| 296 | "//webrtc/sdk:rtc_sdk_framework_objc+link", |
| 297 | ] |
| 298 | sources = [ |
| 299 | "$root_out_dir/WebRTC.framework", |
| 300 | ] |
| 301 | outputs = [ |
| 302 | "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}", |
| 303 | ] |
| 304 | } |
| 305 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 306 | bundle_data("AppRTCMobile_ios_bundle_data") { |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 307 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 308 | "objc/AppRTCMobile/ios/resources/Roboto-Regular.ttf", |
| 309 | "objc/AppRTCMobile/ios/resources/iPhone5@2x.png", |
| 310 | "objc/AppRTCMobile/ios/resources/iPhone6@2x.png", |
| 311 | "objc/AppRTCMobile/ios/resources/iPhone6p@3x.png", |
| 312 | "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp.png", |
| 313 | "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp@2x.png", |
| 314 | "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp.png", |
| 315 | "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp@2x.png", |
denicija | 6d6762c | 2016-10-28 04:53:16 -0700 | [diff] [blame] | 316 | "objc/AppRTCMobile/ios/resources/ic_settings_black_24dp.png", |
| 317 | "objc/AppRTCMobile/ios/resources/ic_settings_black_24dp@2x.png", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 318 | "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp.png", |
| 319 | "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp@2x.png", |
| 320 | "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp.png", |
| 321 | "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp@2x.png", |
| 322 | "objc/AppRTCMobile/ios/resources/mozart.mp3", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 323 | "objc/Icon.png", |
| 324 | ] |
| 325 | outputs = [ |
| 326 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 327 | ] |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | if (is_mac) { |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 332 | rtc_static_library("AppRTCMobile_lib") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 333 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 334 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 335 | "objc/AppRTCMobile/mac/APPRTCAppDelegate.h", |
| 336 | "objc/AppRTCMobile/mac/APPRTCAppDelegate.m", |
| 337 | "objc/AppRTCMobile/mac/APPRTCViewController.h", |
| 338 | "objc/AppRTCMobile/mac/APPRTCViewController.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 339 | ] |
| 340 | configs += [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 341 | "//webrtc:common_objc", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 342 | "//build/config/compiler:enable_arc", |
| 343 | ] |
| 344 | deps = [ |
| 345 | ":apprtc_common", |
| 346 | ":apprtc_signaling", |
| 347 | ] |
| 348 | } |
| 349 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 350 | mac_app_bundle("AppRTCMobile") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 351 | testonly = true |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 352 | output_name = "AppRTCMobile" |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 353 | |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 354 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 355 | "objc/AppRTCMobile/mac/main.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 356 | ] |
| 357 | |
| 358 | public_configs = [ "..:common_inherited_config" ] |
| 359 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 360 | info_plist = "objc/AppRTCMobile/mac/Info.plist" |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 361 | |
| 362 | libs = [ "AppKit.framework" ] |
| 363 | |
| 364 | deps = [ |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 365 | ":AppRTCMobile_lib", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 366 | ] |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | config("socketrocket_include_config") { |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 371 | include_dirs = [ "objc/AppRTCMobile/third_party/SocketRocket" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 372 | } |
| 373 | |
| 374 | config("socketrocket_warning_config") { |
| 375 | # GN orders flags on a target before flags from configs. The default config |
| 376 | # adds these flags so to cancel them out they need to come from a config and |
| 377 | # cannot be on the target directly. |
| 378 | cflags = [ |
| 379 | "-Wno-deprecated-declarations", |
| 380 | "-Wno-nonnull", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 381 | "-Wno-semicolon-before-method-body", |
kthelgason | e47de1a | 2017-02-24 01:56:01 -0800 | [diff] [blame] | 382 | "-Wno-unused-variable", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 383 | ] |
| 384 | |
henrika | 27d8b61 | 2016-09-21 04:13:00 -0700 | [diff] [blame] | 385 | cflags_objc = [ |
| 386 | # Enabled for cflags_objc in build/config/compiler/BUILD.gn. |
| 387 | "-Wno-objc-missing-property-synthesis", |
henrika | 27d8b61 | 2016-09-21 04:13:00 -0700 | [diff] [blame] | 388 | ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 389 | } |
| 390 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 391 | rtc_static_library("socketrocket") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 392 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 393 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 394 | "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h", |
| 395 | "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 396 | ] |
| 397 | configs += [ |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 398 | "//build/config/compiler:enable_arc", |
| 399 | ":socketrocket_warning_config", |
| 400 | ] |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 401 | public_configs = [ ":socketrocket_include_config" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 402 | |
| 403 | libs = [ |
| 404 | "CFNetwork.framework", |
| 405 | "icucore", |
| 406 | ] |
| 407 | } |
adam.fedor | bcc5d87 | 2016-11-07 14:53:28 -0800 | [diff] [blame] | 408 | |
| 409 | if (rtc_include_tests) { |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 410 | # TODO(kthelgason): compile xctests on mac when chromium supports it. |
| 411 | if (is_ios) { |
| 412 | rtc_source_set("apprtcmobile_test_sources") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 413 | testonly = true |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 414 | include_dirs = [ |
| 415 | "objc/AppRTCMobile", |
| 416 | "objc/AppRTCMobile/ios", |
| 417 | ] |
| 418 | testonly = true |
| 419 | sources = [ |
| 420 | "objc/AppRTCMobile/tests/ARDAppClient_xctest.mm", |
| 421 | "objc/AppRTCMobile/tests/ARDSDPUtils_xctest.mm", |
| 422 | "objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm", |
| 423 | ] |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 424 | deps = [ |
| 425 | "//webrtc/base:rtc_base", |
| 426 | ] |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 427 | public_deps = [ |
| 428 | ":AppRTCMobile_ios_frameworks", |
| 429 | ":AppRTCMobile_lib", |
| 430 | "//build/config/ios:xctest", |
| 431 | "//third_party/ocmock", |
| 432 | ] |
| 433 | configs += [ "//build/config/compiler:enable_arc" ] |
adam.fedor | bcc5d87 | 2016-11-07 14:53:28 -0800 | [diff] [blame] | 434 | } |
| 435 | |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 436 | rtc_ios_xctest_test("apprtcmobile_tests") { |
| 437 | info_plist = "objc/AppRTCMobile/ios/Info.plist" |
| 438 | sources = [ |
| 439 | "objc/AppRTCMobile/ios/main.m", |
| 440 | ] |
| 441 | deps = [ |
| 442 | ":apprtcmobile_test_sources", |
| 443 | ] |
| 444 | ldflags = [ "-all_load" ] |
| 445 | } |
adam.fedor | bcc5d87 | 2016-11-07 14:53:28 -0800 | [diff] [blame] | 446 | } |
| 447 | } |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 448 | } |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 449 | |
| 450 | if (is_linux || is_win) { |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 451 | config("peerconnection_client_warnings_config") { |
kjellander | 4a9abad | 2016-09-18 08:12:29 -0700 | [diff] [blame] | 452 | cflags = [] |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 453 | if (is_win && is_clang) { |
kjellander | 4a9abad | 2016-09-18 08:12:29 -0700 | [diff] [blame] | 454 | cflags += [ |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 455 | # Disable warnings failing when compiling with Clang on Windows. |
| 456 | # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 457 | "-Wno-format", |
| 458 | |
| 459 | # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6271 |
| 460 | # for -Wno-reorder and -Wno-sign-compare |
| 461 | "-Wno-reorder", |
| 462 | "-Wno-sign-compare", |
| 463 | ] |
| 464 | } |
kjellander | d4626e5 | 2016-09-07 02:33:01 -0700 | [diff] [blame] | 465 | if (is_linux && target_cpu == "x86") { |
kjellander | 4a9abad | 2016-09-18 08:12:29 -0700 | [diff] [blame] | 466 | cflags += [ |
kjellander | d4626e5 | 2016-09-07 02:33:01 -0700 | [diff] [blame] | 467 | # Needed to compile on Linux 32-bit. |
| 468 | "-Wno-sentinel", |
| 469 | ] |
| 470 | } |
kjellander | 4a9abad | 2016-09-18 08:12:29 -0700 | [diff] [blame] | 471 | |
| 472 | if (is_clang) { |
| 473 | # TODO(ehmaldonado): Make peerconnection_client compile with the standard |
| 474 | # set of warnings. |
| 475 | # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6306 |
| 476 | cflags += [ "-Wno-inconsistent-missing-override" ] |
| 477 | } |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 478 | } |
| 479 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 480 | rtc_executable("peerconnection_client") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 481 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 482 | sources = [ |
| 483 | "peerconnection/client/conductor.cc", |
| 484 | "peerconnection/client/conductor.h", |
| 485 | "peerconnection/client/defaults.cc", |
| 486 | "peerconnection/client/defaults.h", |
| 487 | "peerconnection/client/peer_connection_client.cc", |
| 488 | "peerconnection/client/peer_connection_client.h", |
| 489 | ] |
ehmaldonado | 7a2ce0b | 2016-09-05 01:35:44 -0700 | [diff] [blame] | 490 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 491 | if (!build_with_chromium && is_clang) { |
| 492 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 493 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 494 | } |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 495 | deps = [] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 496 | if (is_win) { |
| 497 | sources += [ |
| 498 | "peerconnection/client/flagdefs.h", |
| 499 | "peerconnection/client/main.cc", |
| 500 | "peerconnection/client/main_wnd.cc", |
| 501 | "peerconnection/client/main_wnd.h", |
| 502 | ] |
| 503 | cflags = [ "/wd4245" ] |
| 504 | configs += [ "//build/config/win:windowed" ] |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 505 | deps += [ "//webrtc/media:rtc_media_base" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 506 | } |
| 507 | if (is_linux) { |
| 508 | sources += [ |
| 509 | "peerconnection/client/linux/main.cc", |
| 510 | "peerconnection/client/linux/main_wnd.cc", |
| 511 | "peerconnection/client/linux/main_wnd.h", |
| 512 | ] |
Henrik Kjellander | efbde2c | 2017-03-27 08:28:27 +0200 | [diff] [blame] | 513 | cflags = [ "-Wno-deprecated-declarations" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 514 | libs = [ |
| 515 | "X11", |
| 516 | "Xcomposite", |
| 517 | "Xext", |
| 518 | "Xrender", |
| 519 | ] |
thomasanderson | ef16e99 | 2016-12-13 02:57:43 -0800 | [diff] [blame] | 520 | deps += [ "//build/config/linux/gtk" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 521 | } |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 522 | configs += [ ":peerconnection_client_warnings_config" ] |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 523 | |
| 524 | deps += [ |
| 525 | "//third_party/libyuv", |
| 526 | "//webrtc/api:libjingle_peerconnection_test_api", |
| 527 | "//webrtc/api:video_frame_api", |
| 528 | "//webrtc/base:rtc_base", |
| 529 | "//webrtc/base:rtc_base_approved", |
| 530 | "//webrtc/media:rtc_media", |
| 531 | "//webrtc/modules/video_capture:video_capture_module", |
| 532 | "//webrtc/pc:libjingle_peerconnection", |
| 533 | "//webrtc/system_wrappers:field_trial_default", |
| 534 | "//webrtc/system_wrappers:metrics_default", |
| 535 | ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 536 | if (rtc_build_json) { |
| 537 | deps += [ "//third_party/jsoncpp" ] |
| 538 | } |
| 539 | } |
kjellander | d4626e5 | 2016-09-07 02:33:01 -0700 | [diff] [blame] | 540 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 541 | rtc_executable("peerconnection_server") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 542 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 543 | sources = [ |
| 544 | "peerconnection/server/data_socket.cc", |
| 545 | "peerconnection/server/data_socket.h", |
| 546 | "peerconnection/server/main.cc", |
| 547 | "peerconnection/server/peer_channel.cc", |
| 548 | "peerconnection/server/peer_channel.h", |
| 549 | "peerconnection/server/utils.cc", |
| 550 | "peerconnection/server/utils.h", |
| 551 | ] |
| 552 | deps = [ |
| 553 | "//webrtc:webrtc_common", |
| 554 | "//webrtc/base:rtc_base_approved", |
| 555 | "//webrtc/tools:command_line_parser", |
| 556 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 557 | if (!build_with_chromium && is_clang) { |
| 558 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 559 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 560 | } |
| 561 | } |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 562 | rtc_executable("relayserver") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 563 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 564 | sources = [ |
| 565 | "relayserver/relayserver_main.cc", |
| 566 | ] |
| 567 | deps = [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 568 | "../base:rtc_base", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 569 | "//webrtc/base:rtc_base_approved", |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 570 | "//webrtc/p2p:rtc_p2p", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 571 | "//webrtc/pc:rtc_pc", |
| 572 | "//webrtc/system_wrappers:field_trial_default", |
| 573 | "//webrtc/system_wrappers:metrics_default", |
| 574 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 575 | if (!build_with_chromium && is_clang) { |
| 576 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 577 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 578 | } |
| 579 | } |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 580 | rtc_executable("turnserver") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 581 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 582 | sources = [ |
| 583 | "turnserver/turnserver_main.cc", |
| 584 | ] |
| 585 | deps = [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 586 | "../base:rtc_base", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 587 | "//webrtc/base:rtc_base_approved", |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 588 | "//webrtc/p2p:rtc_p2p", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 589 | "//webrtc/pc:rtc_pc", |
| 590 | "//webrtc/system_wrappers:field_trial_default", |
| 591 | "//webrtc/system_wrappers:metrics_default", |
| 592 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 593 | if (!build_with_chromium && is_clang) { |
| 594 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 595 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 596 | } |
| 597 | } |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 598 | rtc_executable("stunserver") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 599 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 600 | sources = [ |
| 601 | "stunserver/stunserver_main.cc", |
| 602 | ] |
| 603 | deps = [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 604 | "../base:rtc_base", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 605 | "//webrtc/base:rtc_base_approved", |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 606 | "//webrtc/p2p:rtc_p2p", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 607 | "//webrtc/pc:rtc_pc", |
| 608 | "//webrtc/system_wrappers:field_trial_default", |
| 609 | "//webrtc/system_wrappers:metrics_default", |
| 610 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 611 | if (!build_with_chromium && is_clang) { |
| 612 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 613 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 614 | } |
| 615 | } |
| 616 | } |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 617 | |
| 618 | if (!build_with_chromium) { |
| 619 | # Doesn't build within Chrome on Win. |
| 620 | rtc_executable("stun_prober") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 621 | testonly = true |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 622 | sources = [ |
| 623 | "stunprober/main.cc", |
| 624 | ] |
| 625 | |
| 626 | if (!build_with_chromium && is_clang) { |
| 627 | # Suppress warnings from Chrome's Clang plugins. |
| 628 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 629 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 630 | } |
| 631 | |
| 632 | deps = [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 633 | "../base:rtc_base", |
| 634 | "../base:rtc_base_approved", |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 635 | "../p2p:libstunprober", |
| 636 | "../p2p:rtc_p2p", |
| 637 | "../system_wrappers:field_trial_default", |
| 638 | ] |
| 639 | } |
| 640 | } |