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", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 195 | "objc/AppRTCMobile/ARDJoinResponse+Internal.h", |
| 196 | "objc/AppRTCMobile/ARDJoinResponse.h", |
| 197 | "objc/AppRTCMobile/ARDJoinResponse.m", |
| 198 | "objc/AppRTCMobile/ARDMessageResponse+Internal.h", |
| 199 | "objc/AppRTCMobile/ARDMessageResponse.h", |
| 200 | "objc/AppRTCMobile/ARDMessageResponse.m", |
| 201 | "objc/AppRTCMobile/ARDRoomServerClient.h", |
| 202 | "objc/AppRTCMobile/ARDSDPUtils.h", |
| 203 | "objc/AppRTCMobile/ARDSDPUtils.m", |
sakal | c4adacf | 2017-03-28 01:22:48 -0700 | [diff] [blame] | 204 | "objc/AppRTCMobile/ARDSettingsModel+Private.h", |
| 205 | "objc/AppRTCMobile/ARDSettingsModel.h", |
| 206 | "objc/AppRTCMobile/ARDSettingsModel.m", |
| 207 | "objc/AppRTCMobile/ARDSettingsStore.h", |
| 208 | "objc/AppRTCMobile/ARDSettingsStore.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 209 | "objc/AppRTCMobile/ARDSignalingChannel.h", |
| 210 | "objc/AppRTCMobile/ARDSignalingMessage.h", |
| 211 | "objc/AppRTCMobile/ARDSignalingMessage.m", |
| 212 | "objc/AppRTCMobile/ARDStatsBuilder.h", |
| 213 | "objc/AppRTCMobile/ARDStatsBuilder.m", |
kthelgason | cc882af | 2017-01-13 05:59:46 -0800 | [diff] [blame] | 214 | "objc/AppRTCMobile/ARDTURNClient+Internal.h", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 215 | "objc/AppRTCMobile/ARDTURNClient.h", |
kthelgason | cc882af | 2017-01-13 05:59:46 -0800 | [diff] [blame] | 216 | "objc/AppRTCMobile/ARDTURNClient.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 217 | "objc/AppRTCMobile/ARDWebSocketChannel.h", |
| 218 | "objc/AppRTCMobile/ARDWebSocketChannel.m", |
| 219 | "objc/AppRTCMobile/RTCIceCandidate+JSON.h", |
| 220 | "objc/AppRTCMobile/RTCIceCandidate+JSON.m", |
| 221 | "objc/AppRTCMobile/RTCIceServer+JSON.h", |
| 222 | "objc/AppRTCMobile/RTCIceServer+JSON.m", |
| 223 | "objc/AppRTCMobile/RTCMediaConstraints+JSON.h", |
| 224 | "objc/AppRTCMobile/RTCMediaConstraints+JSON.m", |
| 225 | "objc/AppRTCMobile/RTCSessionDescription+JSON.h", |
| 226 | "objc/AppRTCMobile/RTCSessionDescription+JSON.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 227 | ] |
kthelgason | b13237b | 2017-03-30 04:56:05 -0700 | [diff] [blame^] | 228 | configs += [ "//build/config/compiler:enable_arc" ] |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 229 | public_configs = [ ":apprtc_signaling_config" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 230 | deps = [ |
| 231 | ":apprtc_common", |
| 232 | ":socketrocket", |
| 233 | ] |
| 234 | public_deps = [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 235 | "//webrtc/sdk:rtc_sdk_peerconnection_objc", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 236 | ] |
| 237 | libs = [ "QuartzCore.framework" ] |
| 238 | } |
| 239 | |
| 240 | if (is_ios) { |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 241 | rtc_static_library("AppRTCMobile_lib") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 242 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 243 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 244 | "objc/AppRTCMobile/ios/ARDAppDelegate.m", |
| 245 | "objc/AppRTCMobile/ios/ARDMainView.h", |
| 246 | "objc/AppRTCMobile/ios/ARDMainView.m", |
| 247 | "objc/AppRTCMobile/ios/ARDMainViewController.h", |
| 248 | "objc/AppRTCMobile/ios/ARDMainViewController.m", |
denicija | d17d536 | 2016-11-02 02:56:09 -0700 | [diff] [blame] | 249 | "objc/AppRTCMobile/ios/ARDSettingsViewController.h", |
| 250 | "objc/AppRTCMobile/ios/ARDSettingsViewController.m", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 251 | "objc/AppRTCMobile/ios/ARDStatsView.h", |
| 252 | "objc/AppRTCMobile/ios/ARDStatsView.m", |
| 253 | "objc/AppRTCMobile/ios/ARDVideoCallView.h", |
| 254 | "objc/AppRTCMobile/ios/ARDVideoCallView.m", |
| 255 | "objc/AppRTCMobile/ios/ARDVideoCallViewController.h", |
| 256 | "objc/AppRTCMobile/ios/ARDVideoCallViewController.m", |
| 257 | "objc/AppRTCMobile/ios/AppRTCMobile-Prefix.pch", |
| 258 | "objc/AppRTCMobile/ios/UIImage+ARDUtilities.h", |
| 259 | "objc/AppRTCMobile/ios/UIImage+ARDUtilities.m", |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 260 | ] |
kthelgason | b13237b | 2017-03-30 04:56:05 -0700 | [diff] [blame^] | 261 | configs += [ "//build/config/compiler:enable_arc" ] |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 262 | |
| 263 | deps = [ |
| 264 | ":apprtc_common", |
| 265 | ":apprtc_signaling", |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 266 | "//webrtc/modules/audio_device", |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 267 | ] |
| 268 | } |
| 269 | |
| 270 | ios_app_bundle("AppRTCMobile") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 271 | testonly = true |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 272 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 273 | "objc/AppRTCMobile/ios/main.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 274 | ] |
| 275 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 276 | info_plist = "objc/AppRTCMobile/ios/Info.plist" |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 277 | |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 278 | configs += [ "..:common_config" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 279 | public_configs = [ "..:common_inherited_config" ] |
| 280 | |
| 281 | deps = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 282 | ":AppRTCMobile_ios_bundle_data", |
kthelgason | d3adbfb | 2017-01-26 01:14:04 -0800 | [diff] [blame] | 283 | ":AppRTCMobile_ios_frameworks", |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 284 | ":AppRTCMobile_lib", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 285 | ] |
| 286 | |
| 287 | if (target_cpu == "x86") { |
| 288 | deps += [ "//testing/iossim:iossim" ] |
| 289 | } |
| 290 | } |
| 291 | |
kthelgason | d3adbfb | 2017-01-26 01:14:04 -0800 | [diff] [blame] | 292 | bundle_data("AppRTCMobile_ios_frameworks") { |
| 293 | public_deps = [ |
| 294 | "//webrtc/sdk:rtc_sdk_framework_objc+link", |
| 295 | ] |
| 296 | sources = [ |
| 297 | "$root_out_dir/WebRTC.framework", |
| 298 | ] |
| 299 | outputs = [ |
| 300 | "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}", |
| 301 | ] |
| 302 | } |
| 303 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 304 | bundle_data("AppRTCMobile_ios_bundle_data") { |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 305 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 306 | "objc/AppRTCMobile/ios/resources/Roboto-Regular.ttf", |
| 307 | "objc/AppRTCMobile/ios/resources/iPhone5@2x.png", |
| 308 | "objc/AppRTCMobile/ios/resources/iPhone6@2x.png", |
| 309 | "objc/AppRTCMobile/ios/resources/iPhone6p@3x.png", |
| 310 | "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp.png", |
| 311 | "objc/AppRTCMobile/ios/resources/ic_call_end_black_24dp@2x.png", |
| 312 | "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp.png", |
| 313 | "objc/AppRTCMobile/ios/resources/ic_clear_black_24dp@2x.png", |
denicija | 6d6762c | 2016-10-28 04:53:16 -0700 | [diff] [blame] | 314 | "objc/AppRTCMobile/ios/resources/ic_settings_black_24dp.png", |
| 315 | "objc/AppRTCMobile/ios/resources/ic_settings_black_24dp@2x.png", |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 316 | "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp.png", |
| 317 | "objc/AppRTCMobile/ios/resources/ic_surround_sound_black_24dp@2x.png", |
| 318 | "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp.png", |
| 319 | "objc/AppRTCMobile/ios/resources/ic_switch_video_black_24dp@2x.png", |
| 320 | "objc/AppRTCMobile/ios/resources/mozart.mp3", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 321 | "objc/Icon.png", |
| 322 | ] |
| 323 | outputs = [ |
| 324 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 325 | ] |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | if (is_mac) { |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 330 | rtc_static_library("AppRTCMobile_lib") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 331 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 332 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 333 | "objc/AppRTCMobile/mac/APPRTCAppDelegate.h", |
| 334 | "objc/AppRTCMobile/mac/APPRTCAppDelegate.m", |
| 335 | "objc/AppRTCMobile/mac/APPRTCViewController.h", |
| 336 | "objc/AppRTCMobile/mac/APPRTCViewController.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 337 | ] |
| 338 | configs += [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 339 | "//webrtc:common_objc", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 340 | "//build/config/compiler:enable_arc", |
| 341 | ] |
| 342 | deps = [ |
| 343 | ":apprtc_common", |
| 344 | ":apprtc_signaling", |
| 345 | ] |
| 346 | } |
| 347 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 348 | mac_app_bundle("AppRTCMobile") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 349 | testonly = true |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 350 | output_name = "AppRTCMobile" |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 351 | |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 352 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 353 | "objc/AppRTCMobile/mac/main.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 354 | ] |
| 355 | |
| 356 | public_configs = [ "..:common_inherited_config" ] |
| 357 | |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 358 | info_plist = "objc/AppRTCMobile/mac/Info.plist" |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 359 | |
| 360 | libs = [ "AppKit.framework" ] |
| 361 | |
| 362 | deps = [ |
denicija | 77bfd7c | 2016-11-15 00:41:26 -0800 | [diff] [blame] | 363 | ":AppRTCMobile_lib", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 364 | ] |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | config("socketrocket_include_config") { |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 369 | include_dirs = [ "objc/AppRTCMobile/third_party/SocketRocket" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 370 | } |
| 371 | |
| 372 | config("socketrocket_warning_config") { |
| 373 | # GN orders flags on a target before flags from configs. The default config |
| 374 | # adds these flags so to cancel them out they need to come from a config and |
| 375 | # cannot be on the target directly. |
| 376 | cflags = [ |
| 377 | "-Wno-deprecated-declarations", |
| 378 | "-Wno-nonnull", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 379 | "-Wno-semicolon-before-method-body", |
kthelgason | e47de1a | 2017-02-24 01:56:01 -0800 | [diff] [blame] | 380 | "-Wno-unused-variable", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 381 | ] |
| 382 | |
henrika | 27d8b61 | 2016-09-21 04:13:00 -0700 | [diff] [blame] | 383 | cflags_objc = [ |
| 384 | # Enabled for cflags_objc in build/config/compiler/BUILD.gn. |
| 385 | "-Wno-objc-missing-property-synthesis", |
henrika | 27d8b61 | 2016-09-21 04:13:00 -0700 | [diff] [blame] | 386 | ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 387 | } |
| 388 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 389 | rtc_static_library("socketrocket") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 390 | testonly = true |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 391 | sources = [ |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 392 | "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h", |
| 393 | "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m", |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 394 | ] |
| 395 | configs += [ |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 396 | "//build/config/compiler:enable_arc", |
| 397 | ":socketrocket_warning_config", |
| 398 | ] |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 399 | public_configs = [ ":socketrocket_include_config" ] |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 400 | |
| 401 | libs = [ |
| 402 | "CFNetwork.framework", |
| 403 | "icucore", |
| 404 | ] |
| 405 | } |
adam.fedor | bcc5d87 | 2016-11-07 14:53:28 -0800 | [diff] [blame] | 406 | |
| 407 | if (rtc_include_tests) { |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 408 | # TODO(kthelgason): compile xctests on mac when chromium supports it. |
| 409 | if (is_ios) { |
| 410 | rtc_source_set("apprtcmobile_test_sources") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 411 | testonly = true |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 412 | include_dirs = [ |
| 413 | "objc/AppRTCMobile", |
| 414 | "objc/AppRTCMobile/ios", |
| 415 | ] |
| 416 | testonly = true |
| 417 | sources = [ |
| 418 | "objc/AppRTCMobile/tests/ARDAppClient_xctest.mm", |
| 419 | "objc/AppRTCMobile/tests/ARDSDPUtils_xctest.mm", |
| 420 | "objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm", |
| 421 | ] |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 422 | deps = [ |
| 423 | "//webrtc/base:rtc_base", |
| 424 | ] |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 425 | public_deps = [ |
| 426 | ":AppRTCMobile_ios_frameworks", |
| 427 | ":AppRTCMobile_lib", |
| 428 | "//build/config/ios:xctest", |
| 429 | "//third_party/ocmock", |
| 430 | ] |
| 431 | configs += [ "//build/config/compiler:enable_arc" ] |
adam.fedor | bcc5d87 | 2016-11-07 14:53:28 -0800 | [diff] [blame] | 432 | } |
| 433 | |
kthelgason | 4065a57 | 2017-02-14 04:58:56 -0800 | [diff] [blame] | 434 | rtc_ios_xctest_test("apprtcmobile_tests") { |
| 435 | info_plist = "objc/AppRTCMobile/ios/Info.plist" |
| 436 | sources = [ |
| 437 | "objc/AppRTCMobile/ios/main.m", |
| 438 | ] |
| 439 | deps = [ |
| 440 | ":apprtcmobile_test_sources", |
| 441 | ] |
| 442 | ldflags = [ "-all_load" ] |
| 443 | } |
adam.fedor | bcc5d87 | 2016-11-07 14:53:28 -0800 | [diff] [blame] | 444 | } |
| 445 | } |
tkchin | 2ddfdba | 2016-08-07 21:37:45 -0700 | [diff] [blame] | 446 | } |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 447 | |
| 448 | if (is_linux || is_win) { |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 449 | config("peerconnection_client_warnings_config") { |
kjellander | 4a9abad | 2016-09-18 08:12:29 -0700 | [diff] [blame] | 450 | cflags = [] |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 451 | if (is_win && is_clang) { |
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 | # Disable warnings failing when compiling with Clang on Windows. |
| 454 | # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 455 | "-Wno-format", |
| 456 | |
| 457 | # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6271 |
| 458 | # for -Wno-reorder and -Wno-sign-compare |
| 459 | "-Wno-reorder", |
| 460 | "-Wno-sign-compare", |
| 461 | ] |
| 462 | } |
kjellander | d4626e5 | 2016-09-07 02:33:01 -0700 | [diff] [blame] | 463 | if (is_linux && target_cpu == "x86") { |
kjellander | 4a9abad | 2016-09-18 08:12:29 -0700 | [diff] [blame] | 464 | cflags += [ |
kjellander | d4626e5 | 2016-09-07 02:33:01 -0700 | [diff] [blame] | 465 | # Needed to compile on Linux 32-bit. |
| 466 | "-Wno-sentinel", |
| 467 | ] |
| 468 | } |
kjellander | 4a9abad | 2016-09-18 08:12:29 -0700 | [diff] [blame] | 469 | |
| 470 | if (is_clang) { |
| 471 | # TODO(ehmaldonado): Make peerconnection_client compile with the standard |
| 472 | # set of warnings. |
| 473 | # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6306 |
| 474 | cflags += [ "-Wno-inconsistent-missing-override" ] |
| 475 | } |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 476 | } |
| 477 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 478 | rtc_executable("peerconnection_client") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 479 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 480 | sources = [ |
| 481 | "peerconnection/client/conductor.cc", |
| 482 | "peerconnection/client/conductor.h", |
| 483 | "peerconnection/client/defaults.cc", |
| 484 | "peerconnection/client/defaults.h", |
| 485 | "peerconnection/client/peer_connection_client.cc", |
| 486 | "peerconnection/client/peer_connection_client.h", |
| 487 | ] |
ehmaldonado | 7a2ce0b | 2016-09-05 01:35:44 -0700 | [diff] [blame] | 488 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 489 | if (!build_with_chromium && is_clang) { |
| 490 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 491 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 492 | } |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 493 | deps = [] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 494 | if (is_win) { |
| 495 | sources += [ |
| 496 | "peerconnection/client/flagdefs.h", |
| 497 | "peerconnection/client/main.cc", |
| 498 | "peerconnection/client/main_wnd.cc", |
| 499 | "peerconnection/client/main_wnd.h", |
| 500 | ] |
| 501 | cflags = [ "/wd4245" ] |
| 502 | configs += [ "//build/config/win:windowed" ] |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 503 | deps += [ "//webrtc/media:rtc_media_base" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 504 | } |
| 505 | if (is_linux) { |
| 506 | sources += [ |
| 507 | "peerconnection/client/linux/main.cc", |
| 508 | "peerconnection/client/linux/main_wnd.cc", |
| 509 | "peerconnection/client/linux/main_wnd.h", |
| 510 | ] |
Henrik Kjellander | efbde2c | 2017-03-27 08:28:27 +0200 | [diff] [blame] | 511 | cflags = [ "-Wno-deprecated-declarations" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 512 | libs = [ |
| 513 | "X11", |
| 514 | "Xcomposite", |
| 515 | "Xext", |
| 516 | "Xrender", |
| 517 | ] |
thomasanderson | ef16e99 | 2016-12-13 02:57:43 -0800 | [diff] [blame] | 518 | deps += [ "//build/config/linux/gtk" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 519 | } |
ehmaldonado | d02fe4b | 2016-08-26 13:31:24 -0700 | [diff] [blame] | 520 | configs += [ ":peerconnection_client_warnings_config" ] |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 521 | |
| 522 | deps += [ |
| 523 | "//third_party/libyuv", |
| 524 | "//webrtc/api:libjingle_peerconnection_test_api", |
| 525 | "//webrtc/api:video_frame_api", |
| 526 | "//webrtc/base:rtc_base", |
| 527 | "//webrtc/base:rtc_base_approved", |
| 528 | "//webrtc/media:rtc_media", |
| 529 | "//webrtc/modules/video_capture:video_capture_module", |
| 530 | "//webrtc/pc:libjingle_peerconnection", |
| 531 | "//webrtc/system_wrappers:field_trial_default", |
| 532 | "//webrtc/system_wrappers:metrics_default", |
| 533 | ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 534 | if (rtc_build_json) { |
| 535 | deps += [ "//third_party/jsoncpp" ] |
| 536 | } |
| 537 | } |
kjellander | d4626e5 | 2016-09-07 02:33:01 -0700 | [diff] [blame] | 538 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 539 | rtc_executable("peerconnection_server") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 540 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 541 | sources = [ |
| 542 | "peerconnection/server/data_socket.cc", |
| 543 | "peerconnection/server/data_socket.h", |
| 544 | "peerconnection/server/main.cc", |
| 545 | "peerconnection/server/peer_channel.cc", |
| 546 | "peerconnection/server/peer_channel.h", |
| 547 | "peerconnection/server/utils.cc", |
| 548 | "peerconnection/server/utils.h", |
| 549 | ] |
| 550 | deps = [ |
| 551 | "//webrtc:webrtc_common", |
| 552 | "//webrtc/base:rtc_base_approved", |
| 553 | "//webrtc/tools:command_line_parser", |
| 554 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 555 | if (!build_with_chromium && is_clang) { |
| 556 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 557 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 558 | } |
| 559 | } |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 560 | rtc_executable("relayserver") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 561 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 562 | sources = [ |
| 563 | "relayserver/relayserver_main.cc", |
| 564 | ] |
| 565 | deps = [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 566 | "../base:rtc_base", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 567 | "//webrtc/base:rtc_base_approved", |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 568 | "//webrtc/p2p:rtc_p2p", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 569 | "//webrtc/pc:rtc_pc", |
| 570 | "//webrtc/system_wrappers:field_trial_default", |
| 571 | "//webrtc/system_wrappers:metrics_default", |
| 572 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 573 | if (!build_with_chromium && is_clang) { |
| 574 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 575 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 576 | } |
| 577 | } |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 578 | rtc_executable("turnserver") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 579 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 580 | sources = [ |
| 581 | "turnserver/turnserver_main.cc", |
| 582 | ] |
| 583 | deps = [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 584 | "../base:rtc_base", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 585 | "//webrtc/base:rtc_base_approved", |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 586 | "//webrtc/p2p:rtc_p2p", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 587 | "//webrtc/pc:rtc_pc", |
| 588 | "//webrtc/system_wrappers:field_trial_default", |
| 589 | "//webrtc/system_wrappers:metrics_default", |
| 590 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 591 | if (!build_with_chromium && is_clang) { |
| 592 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 593 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 594 | } |
| 595 | } |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 596 | rtc_executable("stunserver") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 597 | testonly = true |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 598 | sources = [ |
| 599 | "stunserver/stunserver_main.cc", |
| 600 | ] |
| 601 | deps = [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 602 | "../base:rtc_base", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 603 | "//webrtc/base:rtc_base_approved", |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 604 | "//webrtc/p2p:rtc_p2p", |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 605 | "//webrtc/pc:rtc_pc", |
| 606 | "//webrtc/system_wrappers:field_trial_default", |
| 607 | "//webrtc/system_wrappers:metrics_default", |
| 608 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 609 | if (!build_with_chromium && is_clang) { |
| 610 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 611 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kthelgason | 0727f15 | 2016-08-08 09:03:23 -0700 | [diff] [blame] | 612 | } |
| 613 | } |
| 614 | } |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 615 | |
| 616 | if (!build_with_chromium) { |
| 617 | # Doesn't build within Chrome on Win. |
| 618 | rtc_executable("stun_prober") { |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 619 | testonly = true |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 620 | sources = [ |
| 621 | "stunprober/main.cc", |
| 622 | ] |
| 623 | |
| 624 | if (!build_with_chromium && is_clang) { |
| 625 | # Suppress warnings from Chrome's Clang plugins. |
| 626 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 627 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 628 | } |
| 629 | |
| 630 | deps = [ |
kjellander | 1993b1d | 2017-03-06 00:29:21 -0800 | [diff] [blame] | 631 | "../base:rtc_base", |
| 632 | "../base:rtc_base_approved", |
charujain | aca3a24 | 2016-11-01 03:09:15 -0700 | [diff] [blame] | 633 | "../p2p:libstunprober", |
| 634 | "../p2p:rtc_p2p", |
| 635 | "../system_wrappers:field_trial_default", |
| 636 | ] |
| 637 | } |
| 638 | } |