blob: 4ebfeaffcb621a7ffdcf0654501473567601c99e [file] [log] [blame]
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +02001# 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
ehmaldonado38a21322016-09-02 04:10:34 -07009import("../build/webrtc.gni")
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020010if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
tkchin2ddfdba2016-08-07 21:37:45 -070013} else if (is_mac) {
14 import("//build/config/mac/rules.gni")
15} else if (is_ios) {
16 import("//build/config/ios/rules.gni")
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020017}
kthelgason0727f152016-08-08 09:03:23 -070018if (is_linux) {
19 import("//build/config/linux/pkg_config.gni")
20}
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020021
22group("examples") {
kjellander705ecc52016-09-15 00:53:26 -070023 public_deps = []
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020024
tkchin2ddfdba2016-08-07 21:37:45 -070025 if (is_android) {
kjellander705ecc52016-09-15 00:53:26 -070026 public_deps += [ ":AppRTCDemo" ]
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020027 }
kthelgason0727f152016-08-08 09:03:23 -070028 if (is_linux) {
kjellander705ecc52016-09-15 00:53:26 -070029 public_deps += [
kthelgason0727f152016-08-08 09:03:23 -070030 ":peerconnection_client",
31 ":peerconnection_server",
32 ":relayserver",
33 ":stunserver",
34 ":turnserver",
35 ]
36 }
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020037}
38
tkchin2ddfdba2016-08-07 21:37:45 -070039if (is_android) {
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020040 android_apk("AppRTCDemo") {
41 apk_name = "AppRTCDemo"
42 android_manifest = "androidapp/AndroidManifest.xml"
43
44 deps = [
phoglund9a123aa2016-07-05 03:21:35 -070045 ":AppRTCDemo_javalib",
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020046 ":AppRTCDemo_resources",
47 "//base:base_java",
48 "//webrtc/base:base_java",
49 ]
50
51 shared_libraries = [ "//webrtc/api:libjingle_peerconnection_so" ]
52 }
53
phoglund9a123aa2016-07-05 03:21:35 -070054 android_library("AppRTCDemo_javalib") {
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020055 java_files = [
56 "androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java",
57 "androidapp/src/org/appspot/apprtc/AppRTCClient.java",
58 "androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java",
59 "androidapp/src/org/appspot/apprtc/CallActivity.java",
60 "androidapp/src/org/appspot/apprtc/CallFragment.java",
61 "androidapp/src/org/appspot/apprtc/CaptureQualityController.java",
62 "androidapp/src/org/appspot/apprtc/ConnectActivity.java",
63 "androidapp/src/org/appspot/apprtc/CpuMonitor.java",
64 "androidapp/src/org/appspot/apprtc/DirectRTCClient.java",
65 "androidapp/src/org/appspot/apprtc/HudFragment.java",
66 "androidapp/src/org/appspot/apprtc/PeerConnectionClient.java",
67 "androidapp/src/org/appspot/apprtc/PercentFrameLayout.java",
68 "androidapp/src/org/appspot/apprtc/RoomParametersFetcher.java",
69 "androidapp/src/org/appspot/apprtc/SettingsActivity.java",
70 "androidapp/src/org/appspot/apprtc/SettingsFragment.java",
71 "androidapp/src/org/appspot/apprtc/TCPChannelClient.java",
72 "androidapp/src/org/appspot/apprtc/UnhandledExceptionHandler.java",
73 "androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java",
74 "androidapp/src/org/appspot/apprtc/WebSocketRTCClient.java",
75 "androidapp/src/org/appspot/apprtc/util/AppRTCUtils.java",
76 "androidapp/src/org/appspot/apprtc/util/AsyncHttpURLConnection.java",
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +020077 ]
78
79 deps = [
80 ":AppRTCDemo_resources",
81 "//webrtc/api:libjingle_peerconnection_java",
82 "//webrtc/base:base_java",
83 "//webrtc/examples/androidapp/third_party/autobanh:autobanh_java",
84 ]
85 }
86
87 android_resources("AppRTCDemo_resources") {
88 resource_dirs = [ "androidapp/res" ]
89 custom_package = "org.appspot.apprtc"
90 }
91
92 instrumentation_test_apk("AppRTCDemoTest") {
93 apk_name = "AppRTCDemoTest"
94 android_manifest = "androidtests/AndroidManifest.xml"
95
96 java_files = [ "androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java" ]
97
98 apk_under_test = ":AppRTCDemo"
99
100 deps = [
phoglund9a123aa2016-07-05 03:21:35 -0700101 ":AppRTCDemo_javalib",
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +0200102 "//webrtc/api:libjingle_peerconnection_java",
103 ]
104 }
105
106 junit_binary("AppRTCDemoJUnitTest") {
107 java_files = [
108 "androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java",
109 "androidjunit/src/org/appspot/apprtc/TCPChannelClientTest.java",
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +0200110 ]
111
112 deps = [
phoglund9a123aa2016-07-05 03:21:35 -0700113 ":AppRTCDemo_javalib",
Sami Kalliomaki9c0c75b2016-06-29 14:55:00 +0200114 "//webrtc/api:libjingle_peerconnection_java",
115 "//webrtc/api:libjingle_peerconnection_jni",
116 ]
117 }
118}
tkchin2ddfdba2016-08-07 21:37:45 -0700119
120if (is_ios || (is_mac && target_cpu != "x86")) {
121 config("warnings_config") {
122 # GN orders flags on a target before flags from configs. The default config
123 # adds these flags so to cancel them out they need to come from a config and
124 # cannot be on the target directly.
125 if (is_ios) {
126 # Suppress compiler warnings about deprecated that triggered
127 # when moving from ios_deployment_target 7.0 to 9.0.
128 # See webrtc:5549 for more details.
129 cflags = [ "-Wno-deprecated-declarations" ]
130 }
131 }
132
133 config("apprtc_common_config") {
134 include_dirs = [ "objc/AppRTCDemo/common" ]
135 }
136
ehmaldonado38a21322016-09-02 04:10:34 -0700137 rtc_source_set("apprtc_common") {
tkchin2ddfdba2016-08-07 21:37:45 -0700138 sources = [
139 "objc/AppRTCDemo/common/ARDUtilities.h",
140 "objc/AppRTCDemo/common/ARDUtilities.m",
141 ]
142 configs += [
tkchin2ddfdba2016-08-07 21:37:45 -0700143 ":warnings_config",
144 "//build/config/compiler:enable_arc",
145 ]
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700146 public_configs = [ ":apprtc_common_config" ]
tkchin2ddfdba2016-08-07 21:37:45 -0700147
148 deps = [
149 "../sdk:rtc_sdk_common_objc",
150 "../system_wrappers:field_trial_default",
151 "../system_wrappers:metrics_default",
152 ]
153 }
154
155 config("apprtc_signaling_config") {
156 include_dirs = [ "objc/AppRTCDemo" ]
157
158 # GN orders flags on a target before flags from configs. The default config
159 # adds these flags so to cancel them out they need to come from a config and
160 # cannot be on the target directly.
161 cflags = [
162 "-Wno-sign-compare",
163 "-Wno-unused-variable",
164 ]
165 if (is_mac) {
166 cflags += [ "-Wno-partial-availability" ]
167 }
168 }
169
ehmaldonado38a21322016-09-02 04:10:34 -0700170 rtc_source_set("apprtc_signaling") {
tkchin2ddfdba2016-08-07 21:37:45 -0700171 sources = [
172 "objc/AppRTCDemo/ARDAppClient+Internal.h",
173 "objc/AppRTCDemo/ARDAppClient.h",
174 "objc/AppRTCDemo/ARDAppClient.m",
175 "objc/AppRTCDemo/ARDAppEngineClient.h",
176 "objc/AppRTCDemo/ARDAppEngineClient.m",
177 "objc/AppRTCDemo/ARDBitrateTracker.h",
178 "objc/AppRTCDemo/ARDBitrateTracker.m",
179 "objc/AppRTCDemo/ARDCEODTURNClient.h",
180 "objc/AppRTCDemo/ARDCEODTURNClient.m",
181 "objc/AppRTCDemo/ARDJoinResponse+Internal.h",
182 "objc/AppRTCDemo/ARDJoinResponse.h",
183 "objc/AppRTCDemo/ARDJoinResponse.m",
184 "objc/AppRTCDemo/ARDMessageResponse+Internal.h",
185 "objc/AppRTCDemo/ARDMessageResponse.h",
186 "objc/AppRTCDemo/ARDMessageResponse.m",
187 "objc/AppRTCDemo/ARDRoomServerClient.h",
188 "objc/AppRTCDemo/ARDSDPUtils.h",
189 "objc/AppRTCDemo/ARDSDPUtils.m",
190 "objc/AppRTCDemo/ARDSignalingChannel.h",
191 "objc/AppRTCDemo/ARDSignalingMessage.h",
192 "objc/AppRTCDemo/ARDSignalingMessage.m",
193 "objc/AppRTCDemo/ARDStatsBuilder.h",
194 "objc/AppRTCDemo/ARDStatsBuilder.m",
195 "objc/AppRTCDemo/ARDTURNClient.h",
196 "objc/AppRTCDemo/ARDWebSocketChannel.h",
197 "objc/AppRTCDemo/ARDWebSocketChannel.m",
198 "objc/AppRTCDemo/RTCIceCandidate+JSON.h",
199 "objc/AppRTCDemo/RTCIceCandidate+JSON.m",
200 "objc/AppRTCDemo/RTCIceServer+JSON.h",
201 "objc/AppRTCDemo/RTCIceServer+JSON.m",
202 "objc/AppRTCDemo/RTCMediaConstraints+JSON.h",
203 "objc/AppRTCDemo/RTCMediaConstraints+JSON.m",
204 "objc/AppRTCDemo/RTCSessionDescription+JSON.h",
205 "objc/AppRTCDemo/RTCSessionDescription+JSON.m",
206 ]
207 configs += [
tkchin2ddfdba2016-08-07 21:37:45 -0700208 "//build/config/compiler:enable_arc",
209 ":warnings_config",
210 ]
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700211 public_configs = [ ":apprtc_signaling_config" ]
tkchin2ddfdba2016-08-07 21:37:45 -0700212 deps = [
213 ":apprtc_common",
214 ":socketrocket",
215 ]
216 public_deps = [
217 "../sdk:rtc_sdk_peerconnection_objc",
218 ]
219 libs = [ "QuartzCore.framework" ]
220 }
221
222 if (is_ios) {
223 ios_app_bundle("AppRTCDemo") {
224 sources = [
225 "objc/AppRTCDemo/ios/ARDAppDelegate.m",
226 "objc/AppRTCDemo/ios/ARDMainView.h",
227 "objc/AppRTCDemo/ios/ARDMainView.m",
228 "objc/AppRTCDemo/ios/ARDMainViewController.h",
229 "objc/AppRTCDemo/ios/ARDMainViewController.m",
230 "objc/AppRTCDemo/ios/ARDStatsView.h",
231 "objc/AppRTCDemo/ios/ARDStatsView.m",
232 "objc/AppRTCDemo/ios/ARDVideoCallView.h",
233 "objc/AppRTCDemo/ios/ARDVideoCallView.m",
234 "objc/AppRTCDemo/ios/ARDVideoCallViewController.h",
235 "objc/AppRTCDemo/ios/ARDVideoCallViewController.m",
236 "objc/AppRTCDemo/ios/AppRTCDemo-Prefix.pch",
237 "objc/AppRTCDemo/ios/UIImage+ARDUtilities.h",
238 "objc/AppRTCDemo/ios/UIImage+ARDUtilities.m",
239 "objc/AppRTCDemo/ios/main.m",
240 ]
241
242 info_plist = "objc/AppRTCDemo/ios/Info.plist"
243
244 configs += [
245 "..:common_config",
246 "//build/config/compiler:enable_arc",
247 ":warnings_config",
248 ]
249 public_configs = [ "..:common_inherited_config" ]
250
251 deps = [
252 ":AppRTCDemo_ios_bundle_data",
253 ":apprtc_common",
254 ":apprtc_signaling",
255 ]
256
257 if (target_cpu == "x86") {
258 deps += [ "//testing/iossim:iossim" ]
259 }
260 }
261
262 bundle_data("AppRTCDemo_ios_bundle_data") {
263 sources = [
264 "objc/AppRTCDemo/ios/resources/Roboto-Regular.ttf",
265 "objc/AppRTCDemo/ios/resources/iPhone5@2x.png",
266 "objc/AppRTCDemo/ios/resources/iPhone6@2x.png",
267 "objc/AppRTCDemo/ios/resources/iPhone6p@3x.png",
268 "objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp.png",
269 "objc/AppRTCDemo/ios/resources/ic_call_end_black_24dp@2x.png",
270 "objc/AppRTCDemo/ios/resources/ic_clear_black_24dp.png",
271 "objc/AppRTCDemo/ios/resources/ic_clear_black_24dp@2x.png",
272 "objc/AppRTCDemo/ios/resources/ic_surround_sound_black_24dp.png",
273 "objc/AppRTCDemo/ios/resources/ic_surround_sound_black_24dp@2x.png",
274 "objc/AppRTCDemo/ios/resources/ic_switch_video_black_24dp.png",
275 "objc/AppRTCDemo/ios/resources/ic_switch_video_black_24dp@2x.png",
276 "objc/AppRTCDemo/ios/resources/mozart.mp3",
277 "objc/Icon.png",
278 ]
279 outputs = [
280 "{{bundle_resources_dir}}/{{source_file_part}}",
281 ]
282 }
283 }
284
285 if (is_mac) {
ehmaldonado38a21322016-09-02 04:10:34 -0700286 rtc_source_set("AppRTCDemo_app") {
tkchin2ddfdba2016-08-07 21:37:45 -0700287 sources = [
288 "objc/AppRTCDemo/mac/APPRTCAppDelegate.h",
289 "objc/AppRTCDemo/mac/APPRTCAppDelegate.m",
290 "objc/AppRTCDemo/mac/APPRTCViewController.h",
291 "objc/AppRTCDemo/mac/APPRTCViewController.m",
292 ]
293 configs += [
tkchin2ddfdba2016-08-07 21:37:45 -0700294 "..:common_objc",
295 "//build/config/compiler:enable_arc",
296 ]
297 deps = [
298 ":apprtc_common",
299 ":apprtc_signaling",
300 ]
301 }
302
303 mac_app_bundle("AppRTCDemo") {
304 output_name = "AppRTCDemo"
305
306 extra_substitutions = [ "MACOSX_DEPLOYMENT_TARGET=10.8" ]
307
308 sources = [
309 "objc/AppRTCDemo/mac/main.m",
310 ]
311
312 public_configs = [ "..:common_inherited_config" ]
313
314 info_plist = "objc/AppRTCDemo/mac/Info.plist"
315
316 libs = [ "AppKit.framework" ]
317
318 deps = [
319 ":AppRTCDemo_app",
320 ]
321 }
322 }
323
324 config("socketrocket_include_config") {
325 include_dirs = [ "objc/AppRTCDemo/third_party/SocketRocket" ]
326 }
327
328 config("socketrocket_warning_config") {
329 # GN orders flags on a target before flags from configs. The default config
330 # adds these flags so to cancel them out they need to come from a config and
331 # cannot be on the target directly.
332 cflags = [
333 "-Wno-deprecated-declarations",
334 "-Wno-nonnull",
335 "-Wno-objc-missing-property-synthesis",
336 "-Wno-semicolon-before-method-body",
337 "-Wno-unused-variable",
338 ]
339
340 # Enabled for cflags_objc in build/config/compiler/BUILD.gn.
341 cflags_objc = [ "-Wno-objc-missing-property-synthesis" ]
342
343 if (is_mac) {
344 cflags += [ "-Wno-partial-availability" ]
345 }
346 }
347
ehmaldonado38a21322016-09-02 04:10:34 -0700348 rtc_source_set("socketrocket") {
tkchin2ddfdba2016-08-07 21:37:45 -0700349 sources = [
350 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h",
351 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m",
352 ]
353 configs += [
tkchin2ddfdba2016-08-07 21:37:45 -0700354 "//build/config/compiler:enable_arc",
355 ":socketrocket_warning_config",
356 ]
ehmaldonadoe9cc6862016-09-05 06:10:18 -0700357 public_configs = [ ":socketrocket_include_config" ]
tkchin2ddfdba2016-08-07 21:37:45 -0700358
359 libs = [
360 "CFNetwork.framework",
361 "icucore",
362 ]
363 }
364}
kthelgason0727f152016-08-08 09:03:23 -0700365
366if (is_linux || is_win) {
367 if (is_linux) {
368 pkg_config("gtk2_config") {
369 # Gtk requires gmodule, but it does not list it as a dependency in some
370 # misconfigured systems.
371 packages = [
372 "gmodule-2.0",
373 "gtk+-2.0",
374 "gthread-2.0",
375 ]
376 }
377 }
378
ehmaldonadod02fe4b2016-08-26 13:31:24 -0700379 config("peerconnection_client_warnings_config") {
kjellander4a9abad2016-09-18 08:12:29 -0700380 cflags = []
ehmaldonadod02fe4b2016-08-26 13:31:24 -0700381 if (is_win && is_clang) {
kjellander4a9abad2016-09-18 08:12:29 -0700382 cflags += [
ehmaldonadod02fe4b2016-08-26 13:31:24 -0700383 # Disable warnings failing when compiling with Clang on Windows.
384 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
385 "-Wno-format",
386
387 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6271
388 # for -Wno-reorder and -Wno-sign-compare
389 "-Wno-reorder",
390 "-Wno-sign-compare",
391 ]
392 }
kjellanderd4626e52016-09-07 02:33:01 -0700393 if (is_linux && target_cpu == "x86") {
kjellander4a9abad2016-09-18 08:12:29 -0700394 cflags += [
kjellanderd4626e52016-09-07 02:33:01 -0700395 # Needed to compile on Linux 32-bit.
396 "-Wno-sentinel",
397 ]
398 }
kjellander4a9abad2016-09-18 08:12:29 -0700399
400 if (is_clang) {
401 # TODO(ehmaldonado): Make peerconnection_client compile with the standard
402 # set of warnings.
403 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6306
404 cflags += [ "-Wno-inconsistent-missing-override" ]
405 }
ehmaldonadod02fe4b2016-08-26 13:31:24 -0700406 }
407
ehmaldonado38a21322016-09-02 04:10:34 -0700408 rtc_executable("peerconnection_client") {
kthelgason0727f152016-08-08 09:03:23 -0700409 sources = [
410 "peerconnection/client/conductor.cc",
411 "peerconnection/client/conductor.h",
412 "peerconnection/client/defaults.cc",
413 "peerconnection/client/defaults.h",
414 "peerconnection/client/peer_connection_client.cc",
415 "peerconnection/client/peer_connection_client.h",
416 ]
ehmaldonado7a2ce0b2016-09-05 01:35:44 -0700417
kthelgason0727f152016-08-08 09:03:23 -0700418 if (is_clang) {
419 # Suppress warnings from the Chromium Clang plugin.
420 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -0700421 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kthelgason0727f152016-08-08 09:03:23 -0700422 }
423 if (is_win) {
424 sources += [
425 "peerconnection/client/flagdefs.h",
426 "peerconnection/client/main.cc",
427 "peerconnection/client/main_wnd.cc",
428 "peerconnection/client/main_wnd.h",
429 ]
430 cflags = [ "/wd4245" ]
431 configs += [ "//build/config/win:windowed" ]
432 }
433 if (is_linux) {
434 sources += [
435 "peerconnection/client/linux/main.cc",
436 "peerconnection/client/linux/main_wnd.cc",
437 "peerconnection/client/linux/main_wnd.h",
438 ]
439 libs = [
440 "X11",
441 "Xcomposite",
442 "Xext",
443 "Xrender",
444 ]
445 public_configs = [ ":gtk2_config" ]
446 }
447 deps = [
nisse9f8e37b2016-09-01 01:06:23 -0700448 "//third_party/libyuv",
kthelgason0727f152016-08-08 09:03:23 -0700449 "//webrtc/api:libjingle_peerconnection",
450 "//webrtc/system_wrappers:field_trial_default",
451 "//webrtc/system_wrappers:metrics_default",
452 ]
ehmaldonadod02fe4b2016-08-26 13:31:24 -0700453 configs += [ ":peerconnection_client_warnings_config" ]
kthelgason0727f152016-08-08 09:03:23 -0700454 if (rtc_build_json) {
455 deps += [ "//third_party/jsoncpp" ]
456 }
457 }
kjellanderd4626e52016-09-07 02:33:01 -0700458
ehmaldonado38a21322016-09-02 04:10:34 -0700459 rtc_executable("peerconnection_server") {
kthelgason0727f152016-08-08 09:03:23 -0700460 sources = [
461 "peerconnection/server/data_socket.cc",
462 "peerconnection/server/data_socket.h",
463 "peerconnection/server/main.cc",
464 "peerconnection/server/peer_channel.cc",
465 "peerconnection/server/peer_channel.h",
466 "peerconnection/server/utils.cc",
467 "peerconnection/server/utils.h",
468 ]
469 deps = [
470 "//webrtc:webrtc_common",
471 "//webrtc/base:rtc_base_approved",
472 "//webrtc/tools:command_line_parser",
473 ]
474 if (is_clang) {
475 # Suppress warnings from the Chromium Clang plugin.
476 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -0700477 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kthelgason0727f152016-08-08 09:03:23 -0700478 }
479 }
ehmaldonado38a21322016-09-02 04:10:34 -0700480 rtc_executable("relayserver") {
kthelgason0727f152016-08-08 09:03:23 -0700481 sources = [
482 "relayserver/relayserver_main.cc",
483 ]
484 deps = [
485 "//webrtc/base:rtc_base_approved",
486 "//webrtc/pc:rtc_pc",
487 "//webrtc/system_wrappers:field_trial_default",
488 "//webrtc/system_wrappers:metrics_default",
489 ]
490 if (is_clang) {
491 # Suppress warnings from the Chromium Clang plugin.
492 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -0700493 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kthelgason0727f152016-08-08 09:03:23 -0700494 }
495 }
ehmaldonado38a21322016-09-02 04:10:34 -0700496 rtc_executable("turnserver") {
kthelgason0727f152016-08-08 09:03:23 -0700497 sources = [
498 "turnserver/turnserver_main.cc",
499 ]
500 deps = [
501 "//webrtc/base:rtc_base_approved",
502 "//webrtc/pc:rtc_pc",
503 "//webrtc/system_wrappers:field_trial_default",
504 "//webrtc/system_wrappers:metrics_default",
505 ]
506 if (is_clang) {
507 # Suppress warnings from the Chromium Clang plugin.
508 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -0700509 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kthelgason0727f152016-08-08 09:03:23 -0700510 }
511 }
ehmaldonado38a21322016-09-02 04:10:34 -0700512 rtc_executable("stunserver") {
kthelgason0727f152016-08-08 09:03:23 -0700513 sources = [
514 "stunserver/stunserver_main.cc",
515 ]
516 deps = [
517 "//webrtc/base:rtc_base_approved",
518 "//webrtc/pc:rtc_pc",
519 "//webrtc/system_wrappers:field_trial_default",
520 "//webrtc/system_wrappers:metrics_default",
521 ]
522 if (is_clang) {
523 # Suppress warnings from the Chromium Clang plugin.
524 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -0700525 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kthelgason0727f152016-08-08 09:03:23 -0700526 }
527 }
528}