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