| OLD | NEW |
| 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../webrtc.gni") | 9 import("../webrtc.gni") |
| 10 if (is_android) { | 10 if (is_android) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 ":peerconnection_server", | 43 ":peerconnection_server", |
| 44 ":relayserver", | 44 ":relayserver", |
| 45 ":stunserver", | 45 ":stunserver", |
| 46 ":turnserver", | 46 ":turnserver", |
| 47 ] | 47 ] |
| 48 } | 48 } |
| 49 } | 49 } |
| 50 | 50 |
| 51 if (is_android) { | 51 if (is_android) { |
| 52 android_apk("AppRTCMobile") { | 52 android_apk("AppRTCMobile") { |
| 53 testonly = true |
| 53 apk_name = "AppRTCMobile" | 54 apk_name = "AppRTCMobile" |
| 54 android_manifest = "androidapp/AndroidManifest.xml" | 55 android_manifest = "androidapp/AndroidManifest.xml" |
| 55 | 56 |
| 56 deps = [ | 57 deps = [ |
| 57 ":AppRTCMobile_javalib", | 58 ":AppRTCMobile_javalib", |
| 58 ":AppRTCMobile_resources", | 59 ":AppRTCMobile_resources", |
| 59 "//base:base_java", | 60 "//base:base_java", |
| 60 "//webrtc/base:base_java", | 61 "//webrtc/base:base_java", |
| 61 ] | 62 ] |
| 62 | 63 |
| 63 shared_libraries = [ "//webrtc/sdk/android:libjingle_peerconnection_so" ] | 64 shared_libraries = [ "//webrtc/sdk/android:libjingle_peerconnection_so" ] |
| 64 } | 65 } |
| 65 | 66 |
| 66 android_library("AppRTCMobile_javalib") { | 67 android_library("AppRTCMobile_javalib") { |
| 68 testonly = true |
| 67 android_manifest = "androidapp/AndroidManifest.xml" | 69 android_manifest = "androidapp/AndroidManifest.xml" |
| 68 | 70 |
| 69 java_files = [ | 71 java_files = [ |
| 70 "androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java", | 72 "androidapp/src/org/appspot/apprtc/AppRTCAudioManager.java", |
| 71 "androidapp/src/org/appspot/apprtc/AppRTCBluetoothManager.java", | 73 "androidapp/src/org/appspot/apprtc/AppRTCBluetoothManager.java", |
| 72 "androidapp/src/org/appspot/apprtc/AppRTCClient.java", | 74 "androidapp/src/org/appspot/apprtc/AppRTCClient.java", |
| 73 "androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java", | 75 "androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java", |
| 74 "androidapp/src/org/appspot/apprtc/CallActivity.java", | 76 "androidapp/src/org/appspot/apprtc/CallActivity.java", |
| 75 "androidapp/src/org/appspot/apprtc/CallFragment.java", | 77 "androidapp/src/org/appspot/apprtc/CallFragment.java", |
| 76 "androidapp/src/org/appspot/apprtc/CaptureQualityController.java", | 78 "androidapp/src/org/appspot/apprtc/CaptureQualityController.java", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 94 ":AppRTCMobile_resources", | 96 ":AppRTCMobile_resources", |
| 95 "//webrtc/base:base_java", | 97 "//webrtc/base:base_java", |
| 96 "//webrtc/examples/androidapp/third_party/autobanh:autobanh_java", | 98 "//webrtc/examples/androidapp/third_party/autobanh:autobanh_java", |
| 97 "//webrtc/modules/audio_device:audio_device_java", | 99 "//webrtc/modules/audio_device:audio_device_java", |
| 98 "//webrtc/sdk/android:libjingle_peerconnection_java", | 100 "//webrtc/sdk/android:libjingle_peerconnection_java", |
| 99 "//webrtc/sdk/android:libjingle_peerconnection_metrics_default_java", | 101 "//webrtc/sdk/android:libjingle_peerconnection_metrics_default_java", |
| 100 ] | 102 ] |
| 101 } | 103 } |
| 102 | 104 |
| 103 android_resources("AppRTCMobile_resources") { | 105 android_resources("AppRTCMobile_resources") { |
| 106 testonly = true |
| 104 resource_dirs = [ "androidapp/res" ] | 107 resource_dirs = [ "androidapp/res" ] |
| 105 custom_package = "org.appspot.apprtc" | 108 custom_package = "org.appspot.apprtc" |
| 106 } | 109 } |
| 107 | 110 |
| 108 instrumentation_test_apk("AppRTCMobileTest") { | 111 instrumentation_test_apk("AppRTCMobileTest") { |
| 109 apk_name = "AppRTCMobileTest" | 112 apk_name = "AppRTCMobileTest" |
| 110 android_manifest = "androidtests/AndroidManifest.xml" | 113 android_manifest = "androidtests/AndroidManifest.xml" |
| 111 | 114 |
| 112 java_files = [ "androidtests/src/org/appspot/apprtc/test/PeerConnectionClien
tTest.java" ] | 115 java_files = [ "androidtests/src/org/appspot/apprtc/test/PeerConnectionClien
tTest.java" ] |
| 113 | 116 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 "-Wno-objc-missing-property-synthesis", | 165 "-Wno-objc-missing-property-synthesis", |
| 163 ] | 166 ] |
| 164 } | 167 } |
| 165 } | 168 } |
| 166 | 169 |
| 167 config("apprtc_common_config") { | 170 config("apprtc_common_config") { |
| 168 include_dirs = [ "objc/AppRTCMobile/common" ] | 171 include_dirs = [ "objc/AppRTCMobile/common" ] |
| 169 } | 172 } |
| 170 | 173 |
| 171 rtc_static_library("apprtc_common") { | 174 rtc_static_library("apprtc_common") { |
| 175 testonly = true |
| 172 sources = [ | 176 sources = [ |
| 173 "objc/AppRTCMobile/common/ARDUtilities.h", | 177 "objc/AppRTCMobile/common/ARDUtilities.h", |
| 174 "objc/AppRTCMobile/common/ARDUtilities.m", | 178 "objc/AppRTCMobile/common/ARDUtilities.m", |
| 175 ] | 179 ] |
| 176 configs += [ | 180 configs += [ |
| 177 ":warnings_config", | 181 ":warnings_config", |
| 178 "//build/config/compiler:enable_arc", | 182 "//build/config/compiler:enable_arc", |
| 179 ] | 183 ] |
| 180 public_configs = [ ":apprtc_common_config" ] | 184 public_configs = [ ":apprtc_common_config" ] |
| 181 | 185 |
| 182 deps = [ | 186 deps = [ |
| 183 "../sdk:rtc_sdk_common_objc", | 187 "//webrtc/sdk:rtc_sdk_common_objc", |
| 184 "../system_wrappers:field_trial_default", | 188 "//webrtc/system_wrappers:field_trial_default", |
| 185 "../system_wrappers:metrics_default", | 189 "//webrtc/system_wrappers:metrics_default", |
| 186 ] | 190 ] |
| 187 } | 191 } |
| 188 | 192 |
| 189 config("apprtc_signaling_config") { | 193 config("apprtc_signaling_config") { |
| 190 include_dirs = [ "objc/AppRTCMobile" ] | 194 include_dirs = [ "objc/AppRTCMobile" ] |
| 191 | 195 |
| 192 # GN orders flags on a target before flags from configs. The default config | 196 # GN orders flags on a target before flags from configs. The default config |
| 193 # adds these flags so to cancel them out they need to come from a config and | 197 # adds these flags so to cancel them out they need to come from a config and |
| 194 # cannot be on the target directly. | 198 # cannot be on the target directly. |
| 195 cflags = [ | 199 cflags = [ |
| 196 "-Wno-sign-compare", | 200 "-Wno-sign-compare", |
| 197 "-Wno-unused-variable", | 201 "-Wno-unused-variable", |
| 198 ] | 202 ] |
| 199 } | 203 } |
| 200 | 204 |
| 201 rtc_static_library("apprtc_signaling") { | 205 rtc_static_library("apprtc_signaling") { |
| 206 testonly = true |
| 202 sources = [ | 207 sources = [ |
| 203 "objc/AppRTCMobile/ARDAppClient+Internal.h", | 208 "objc/AppRTCMobile/ARDAppClient+Internal.h", |
| 204 "objc/AppRTCMobile/ARDAppClient.h", | 209 "objc/AppRTCMobile/ARDAppClient.h", |
| 205 "objc/AppRTCMobile/ARDAppClient.m", | 210 "objc/AppRTCMobile/ARDAppClient.m", |
| 206 "objc/AppRTCMobile/ARDAppEngineClient.h", | 211 "objc/AppRTCMobile/ARDAppEngineClient.h", |
| 207 "objc/AppRTCMobile/ARDAppEngineClient.m", | 212 "objc/AppRTCMobile/ARDAppEngineClient.m", |
| 208 "objc/AppRTCMobile/ARDBitrateTracker.h", | 213 "objc/AppRTCMobile/ARDBitrateTracker.h", |
| 209 "objc/AppRTCMobile/ARDBitrateTracker.m", | 214 "objc/AppRTCMobile/ARDBitrateTracker.m", |
| 210 "objc/AppRTCMobile/ARDJoinResponse+Internal.h", | 215 "objc/AppRTCMobile/ARDJoinResponse+Internal.h", |
| 211 "objc/AppRTCMobile/ARDJoinResponse.h", | 216 "objc/AppRTCMobile/ARDJoinResponse.h", |
| (...skipping 26 matching lines...) Expand all Loading... |
| 238 configs += [ | 243 configs += [ |
| 239 "//build/config/compiler:enable_arc", | 244 "//build/config/compiler:enable_arc", |
| 240 ":warnings_config", | 245 ":warnings_config", |
| 241 ] | 246 ] |
| 242 public_configs = [ ":apprtc_signaling_config" ] | 247 public_configs = [ ":apprtc_signaling_config" ] |
| 243 deps = [ | 248 deps = [ |
| 244 ":apprtc_common", | 249 ":apprtc_common", |
| 245 ":socketrocket", | 250 ":socketrocket", |
| 246 ] | 251 ] |
| 247 public_deps = [ | 252 public_deps = [ |
| 248 "../sdk:rtc_sdk_peerconnection_objc", | 253 "//webrtc/sdk:rtc_sdk_peerconnection_objc", |
| 249 ] | 254 ] |
| 250 libs = [ "QuartzCore.framework" ] | 255 libs = [ "QuartzCore.framework" ] |
| 251 } | 256 } |
| 252 | 257 |
| 253 if (is_ios) { | 258 if (is_ios) { |
| 254 rtc_static_library("AppRTCMobile_lib") { | 259 rtc_static_library("AppRTCMobile_lib") { |
| 260 testonly = true |
| 255 sources = [ | 261 sources = [ |
| 256 "objc/AppRTCMobile/ios/ARDAppDelegate.m", | 262 "objc/AppRTCMobile/ios/ARDAppDelegate.m", |
| 257 "objc/AppRTCMobile/ios/ARDMainView.h", | 263 "objc/AppRTCMobile/ios/ARDMainView.h", |
| 258 "objc/AppRTCMobile/ios/ARDMainView.m", | 264 "objc/AppRTCMobile/ios/ARDMainView.m", |
| 259 "objc/AppRTCMobile/ios/ARDMainViewController.h", | 265 "objc/AppRTCMobile/ios/ARDMainViewController.h", |
| 260 "objc/AppRTCMobile/ios/ARDMainViewController.m", | 266 "objc/AppRTCMobile/ios/ARDMainViewController.m", |
| 261 "objc/AppRTCMobile/ios/ARDSettingsModel+Private.h", | 267 "objc/AppRTCMobile/ios/ARDSettingsModel+Private.h", |
| 262 "objc/AppRTCMobile/ios/ARDSettingsModel.h", | 268 "objc/AppRTCMobile/ios/ARDSettingsModel.h", |
| 263 "objc/AppRTCMobile/ios/ARDSettingsModel.m", | 269 "objc/AppRTCMobile/ios/ARDSettingsModel.m", |
| 264 "objc/AppRTCMobile/ios/ARDSettingsStore.h", | 270 "objc/AppRTCMobile/ios/ARDSettingsStore.h", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 276 "objc/AppRTCMobile/ios/UIImage+ARDUtilities.m", | 282 "objc/AppRTCMobile/ios/UIImage+ARDUtilities.m", |
| 277 ] | 283 ] |
| 278 configs += [ | 284 configs += [ |
| 279 "//build/config/compiler:enable_arc", | 285 "//build/config/compiler:enable_arc", |
| 280 ":warnings_config", | 286 ":warnings_config", |
| 281 ] | 287 ] |
| 282 | 288 |
| 283 deps = [ | 289 deps = [ |
| 284 ":apprtc_common", | 290 ":apprtc_common", |
| 285 ":apprtc_signaling", | 291 ":apprtc_signaling", |
| 292 "//webrtc/modules/audio_device", |
| 286 ] | 293 ] |
| 287 } | 294 } |
| 288 | 295 |
| 289 ios_app_bundle("AppRTCMobile") { | 296 ios_app_bundle("AppRTCMobile") { |
| 297 testonly = true |
| 290 sources = [ | 298 sources = [ |
| 291 "objc/AppRTCMobile/ios/main.m", | 299 "objc/AppRTCMobile/ios/main.m", |
| 292 ] | 300 ] |
| 293 | 301 |
| 294 info_plist = "objc/AppRTCMobile/ios/Info.plist" | 302 info_plist = "objc/AppRTCMobile/ios/Info.plist" |
| 295 | 303 |
| 296 configs += [ "..:common_config" ] | 304 configs += [ "..:common_config" ] |
| 297 public_configs = [ "..:common_inherited_config" ] | 305 public_configs = [ "..:common_inherited_config" ] |
| 298 | 306 |
| 299 deps = [ | 307 deps = [ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 "objc/Icon.png", | 347 "objc/Icon.png", |
| 340 ] | 348 ] |
| 341 outputs = [ | 349 outputs = [ |
| 342 "{{bundle_resources_dir}}/{{source_file_part}}", | 350 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 343 ] | 351 ] |
| 344 } | 352 } |
| 345 } | 353 } |
| 346 | 354 |
| 347 if (is_mac) { | 355 if (is_mac) { |
| 348 rtc_static_library("AppRTCMobile_lib") { | 356 rtc_static_library("AppRTCMobile_lib") { |
| 357 testonly = true |
| 349 sources = [ | 358 sources = [ |
| 350 "objc/AppRTCMobile/mac/APPRTCAppDelegate.h", | 359 "objc/AppRTCMobile/mac/APPRTCAppDelegate.h", |
| 351 "objc/AppRTCMobile/mac/APPRTCAppDelegate.m", | 360 "objc/AppRTCMobile/mac/APPRTCAppDelegate.m", |
| 352 "objc/AppRTCMobile/mac/APPRTCViewController.h", | 361 "objc/AppRTCMobile/mac/APPRTCViewController.h", |
| 353 "objc/AppRTCMobile/mac/APPRTCViewController.m", | 362 "objc/AppRTCMobile/mac/APPRTCViewController.m", |
| 354 ] | 363 ] |
| 355 configs += [ | 364 configs += [ |
| 356 "..:common_objc", | 365 "//webrtc:common_objc", |
| 357 "//build/config/compiler:enable_arc", | 366 "//build/config/compiler:enable_arc", |
| 358 ] | 367 ] |
| 359 deps = [ | 368 deps = [ |
| 360 ":apprtc_common", | 369 ":apprtc_common", |
| 361 ":apprtc_signaling", | 370 ":apprtc_signaling", |
| 362 ] | 371 ] |
| 363 } | 372 } |
| 364 | 373 |
| 365 mac_app_bundle("AppRTCMobile") { | 374 mac_app_bundle("AppRTCMobile") { |
| 375 testonly = true |
| 366 output_name = "AppRTCMobile" | 376 output_name = "AppRTCMobile" |
| 367 | 377 |
| 368 sources = [ | 378 sources = [ |
| 369 "objc/AppRTCMobile/mac/main.m", | 379 "objc/AppRTCMobile/mac/main.m", |
| 370 ] | 380 ] |
| 371 | 381 |
| 372 public_configs = [ "..:common_inherited_config" ] | 382 public_configs = [ "..:common_inherited_config" ] |
| 373 | 383 |
| 374 info_plist = "objc/AppRTCMobile/mac/Info.plist" | 384 info_plist = "objc/AppRTCMobile/mac/Info.plist" |
| 375 | 385 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 396 "-Wno-unused-variable", | 406 "-Wno-unused-variable", |
| 397 ] | 407 ] |
| 398 | 408 |
| 399 cflags_objc = [ | 409 cflags_objc = [ |
| 400 # Enabled for cflags_objc in build/config/compiler/BUILD.gn. | 410 # Enabled for cflags_objc in build/config/compiler/BUILD.gn. |
| 401 "-Wno-objc-missing-property-synthesis", | 411 "-Wno-objc-missing-property-synthesis", |
| 402 ] | 412 ] |
| 403 } | 413 } |
| 404 | 414 |
| 405 rtc_static_library("socketrocket") { | 415 rtc_static_library("socketrocket") { |
| 416 testonly = true |
| 406 sources = [ | 417 sources = [ |
| 407 "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h", | 418 "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h", |
| 408 "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m", | 419 "objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m", |
| 409 ] | 420 ] |
| 410 configs += [ | 421 configs += [ |
| 411 "//build/config/compiler:enable_arc", | 422 "//build/config/compiler:enable_arc", |
| 412 ":socketrocket_warning_config", | 423 ":socketrocket_warning_config", |
| 413 ] | 424 ] |
| 414 public_configs = [ ":socketrocket_include_config" ] | 425 public_configs = [ ":socketrocket_include_config" ] |
| 415 | 426 |
| 416 libs = [ | 427 libs = [ |
| 417 "CFNetwork.framework", | 428 "CFNetwork.framework", |
| 418 "icucore", | 429 "icucore", |
| 419 ] | 430 ] |
| 420 } | 431 } |
| 421 | 432 |
| 422 if (rtc_include_tests) { | 433 if (rtc_include_tests) { |
| 423 # TODO(kthelgason): compile xctests on mac when chromium supports it. | 434 # TODO(kthelgason): compile xctests on mac when chromium supports it. |
| 424 if (is_ios) { | 435 if (is_ios) { |
| 425 rtc_source_set("apprtcmobile_test_sources") { | 436 rtc_source_set("apprtcmobile_test_sources") { |
| 437 testonly = true |
| 426 include_dirs = [ | 438 include_dirs = [ |
| 427 "objc/AppRTCMobile", | 439 "objc/AppRTCMobile", |
| 428 "objc/AppRTCMobile/ios", | 440 "objc/AppRTCMobile/ios", |
| 429 ] | 441 ] |
| 430 testonly = true | 442 testonly = true |
| 431 sources = [ | 443 sources = [ |
| 432 "objc/AppRTCMobile/tests/ARDAppClient_xctest.mm", | 444 "objc/AppRTCMobile/tests/ARDAppClient_xctest.mm", |
| 433 "objc/AppRTCMobile/tests/ARDSDPUtils_xctest.mm", | 445 "objc/AppRTCMobile/tests/ARDSDPUtils_xctest.mm", |
| 434 "objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm", | 446 "objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm", |
| 435 ] | 447 ] |
| 448 deps = [ |
| 449 "//webrtc/base:rtc_base", |
| 450 ] |
| 436 public_deps = [ | 451 public_deps = [ |
| 437 ":AppRTCMobile_ios_frameworks", | 452 ":AppRTCMobile_ios_frameworks", |
| 438 ":AppRTCMobile_lib", | 453 ":AppRTCMobile_lib", |
| 439 "//build/config/ios:xctest", | 454 "//build/config/ios:xctest", |
| 440 "//third_party/ocmock", | 455 "//third_party/ocmock", |
| 441 ] | 456 ] |
| 442 configs += [ "//build/config/compiler:enable_arc" ] | 457 configs += [ "//build/config/compiler:enable_arc" ] |
| 443 } | 458 } |
| 444 | 459 |
| 445 rtc_ios_xctest_test("apprtcmobile_tests") { | 460 rtc_ios_xctest_test("apprtcmobile_tests") { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 | 495 |
| 481 if (is_clang) { | 496 if (is_clang) { |
| 482 # TODO(ehmaldonado): Make peerconnection_client compile with the standard | 497 # TODO(ehmaldonado): Make peerconnection_client compile with the standard |
| 483 # set of warnings. | 498 # set of warnings. |
| 484 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6306 | 499 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6306 |
| 485 cflags += [ "-Wno-inconsistent-missing-override" ] | 500 cflags += [ "-Wno-inconsistent-missing-override" ] |
| 486 } | 501 } |
| 487 } | 502 } |
| 488 | 503 |
| 489 rtc_executable("peerconnection_client") { | 504 rtc_executable("peerconnection_client") { |
| 505 testonly = true |
| 490 sources = [ | 506 sources = [ |
| 491 "peerconnection/client/conductor.cc", | 507 "peerconnection/client/conductor.cc", |
| 492 "peerconnection/client/conductor.h", | 508 "peerconnection/client/conductor.h", |
| 493 "peerconnection/client/defaults.cc", | 509 "peerconnection/client/defaults.cc", |
| 494 "peerconnection/client/defaults.h", | 510 "peerconnection/client/defaults.h", |
| 495 "peerconnection/client/peer_connection_client.cc", | 511 "peerconnection/client/peer_connection_client.cc", |
| 496 "peerconnection/client/peer_connection_client.h", | 512 "peerconnection/client/peer_connection_client.h", |
| 497 ] | 513 ] |
| 498 | 514 |
| 499 if (!build_with_chromium && is_clang) { | 515 if (!build_with_chromium && is_clang) { |
| 500 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 516 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 501 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 517 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 502 } | 518 } |
| 519 deps = [] |
| 503 if (is_win) { | 520 if (is_win) { |
| 504 sources += [ | 521 sources += [ |
| 505 "peerconnection/client/flagdefs.h", | 522 "peerconnection/client/flagdefs.h", |
| 506 "peerconnection/client/main.cc", | 523 "peerconnection/client/main.cc", |
| 507 "peerconnection/client/main_wnd.cc", | 524 "peerconnection/client/main_wnd.cc", |
| 508 "peerconnection/client/main_wnd.h", | 525 "peerconnection/client/main_wnd.h", |
| 509 ] | 526 ] |
| 510 cflags = [ "/wd4245" ] | 527 cflags = [ "/wd4245" ] |
| 511 configs += [ "//build/config/win:windowed" ] | 528 configs += [ "//build/config/win:windowed" ] |
| 529 deps += [ "//webrtc/media:rtc_media_base" ] |
| 512 } | 530 } |
| 513 deps = [ | |
| 514 "//third_party/libyuv", | |
| 515 "//webrtc/pc:libjingle_peerconnection", | |
| 516 "//webrtc/system_wrappers:field_trial_default", | |
| 517 "//webrtc/system_wrappers:metrics_default", | |
| 518 ] | |
| 519 if (is_linux) { | 531 if (is_linux) { |
| 520 sources += [ | 532 sources += [ |
| 521 "peerconnection/client/linux/main.cc", | 533 "peerconnection/client/linux/main.cc", |
| 522 "peerconnection/client/linux/main_wnd.cc", | 534 "peerconnection/client/linux/main_wnd.cc", |
| 523 "peerconnection/client/linux/main_wnd.h", | 535 "peerconnection/client/linux/main_wnd.h", |
| 524 ] | 536 ] |
| 525 libs = [ | 537 libs = [ |
| 526 "X11", | 538 "X11", |
| 527 "Xcomposite", | 539 "Xcomposite", |
| 528 "Xext", | 540 "Xext", |
| 529 "Xrender", | 541 "Xrender", |
| 530 ] | 542 ] |
| 531 deps += [ "//build/config/linux/gtk" ] | 543 deps += [ "//build/config/linux/gtk" ] |
| 532 } | 544 } |
| 533 configs += [ ":peerconnection_client_warnings_config" ] | 545 configs += [ ":peerconnection_client_warnings_config" ] |
| 546 |
| 547 deps += [ |
| 548 "//third_party/libyuv", |
| 549 "//webrtc/api:libjingle_peerconnection_test_api", |
| 550 "//webrtc/api:video_frame_api", |
| 551 "//webrtc/base:rtc_base", |
| 552 "//webrtc/base:rtc_base_approved", |
| 553 "//webrtc/media:rtc_media", |
| 554 "//webrtc/modules/video_capture:video_capture_module", |
| 555 "//webrtc/pc:libjingle_peerconnection", |
| 556 "//webrtc/system_wrappers:field_trial_default", |
| 557 "//webrtc/system_wrappers:metrics_default", |
| 558 ] |
| 534 if (rtc_build_json) { | 559 if (rtc_build_json) { |
| 535 deps += [ "//third_party/jsoncpp" ] | 560 deps += [ "//third_party/jsoncpp" ] |
| 536 } | 561 } |
| 537 } | 562 } |
| 538 | 563 |
| 539 rtc_executable("peerconnection_server") { | 564 rtc_executable("peerconnection_server") { |
| 565 testonly = true |
| 540 sources = [ | 566 sources = [ |
| 541 "peerconnection/server/data_socket.cc", | 567 "peerconnection/server/data_socket.cc", |
| 542 "peerconnection/server/data_socket.h", | 568 "peerconnection/server/data_socket.h", |
| 543 "peerconnection/server/main.cc", | 569 "peerconnection/server/main.cc", |
| 544 "peerconnection/server/peer_channel.cc", | 570 "peerconnection/server/peer_channel.cc", |
| 545 "peerconnection/server/peer_channel.h", | 571 "peerconnection/server/peer_channel.h", |
| 546 "peerconnection/server/utils.cc", | 572 "peerconnection/server/utils.cc", |
| 547 "peerconnection/server/utils.h", | 573 "peerconnection/server/utils.h", |
| 548 ] | 574 ] |
| 549 deps = [ | 575 deps = [ |
| 550 "//webrtc:webrtc_common", | 576 "//webrtc:webrtc_common", |
| 551 "//webrtc/base:rtc_base_approved", | 577 "//webrtc/base:rtc_base_approved", |
| 552 "//webrtc/tools:command_line_parser", | 578 "//webrtc/tools:command_line_parser", |
| 553 ] | 579 ] |
| 554 if (!build_with_chromium && is_clang) { | 580 if (!build_with_chromium && is_clang) { |
| 555 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 581 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 556 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 582 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 557 } | 583 } |
| 558 } | 584 } |
| 559 rtc_executable("relayserver") { | 585 rtc_executable("relayserver") { |
| 586 testonly = true |
| 560 sources = [ | 587 sources = [ |
| 561 "relayserver/relayserver_main.cc", | 588 "relayserver/relayserver_main.cc", |
| 562 ] | 589 ] |
| 563 deps = [ | 590 deps = [ |
| 591 "../base:rtc_base", |
| 564 "//webrtc/base:rtc_base_approved", | 592 "//webrtc/base:rtc_base_approved", |
| 593 "//webrtc/p2p:rtc_p2p", |
| 565 "//webrtc/pc:rtc_pc", | 594 "//webrtc/pc:rtc_pc", |
| 566 "//webrtc/system_wrappers:field_trial_default", | 595 "//webrtc/system_wrappers:field_trial_default", |
| 567 "//webrtc/system_wrappers:metrics_default", | 596 "//webrtc/system_wrappers:metrics_default", |
| 568 ] | 597 ] |
| 569 if (!build_with_chromium && is_clang) { | 598 if (!build_with_chromium && is_clang) { |
| 570 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 599 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 571 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 600 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 572 } | 601 } |
| 573 } | 602 } |
| 574 rtc_executable("turnserver") { | 603 rtc_executable("turnserver") { |
| 604 testonly = true |
| 575 sources = [ | 605 sources = [ |
| 576 "turnserver/turnserver_main.cc", | 606 "turnserver/turnserver_main.cc", |
| 577 ] | 607 ] |
| 578 deps = [ | 608 deps = [ |
| 609 "../base:rtc_base", |
| 579 "//webrtc/base:rtc_base_approved", | 610 "//webrtc/base:rtc_base_approved", |
| 611 "//webrtc/p2p:rtc_p2p", |
| 580 "//webrtc/pc:rtc_pc", | 612 "//webrtc/pc:rtc_pc", |
| 581 "//webrtc/system_wrappers:field_trial_default", | 613 "//webrtc/system_wrappers:field_trial_default", |
| 582 "//webrtc/system_wrappers:metrics_default", | 614 "//webrtc/system_wrappers:metrics_default", |
| 583 ] | 615 ] |
| 584 if (!build_with_chromium && is_clang) { | 616 if (!build_with_chromium && is_clang) { |
| 585 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 617 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 586 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 618 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 587 } | 619 } |
| 588 } | 620 } |
| 589 rtc_executable("stunserver") { | 621 rtc_executable("stunserver") { |
| 622 testonly = true |
| 590 sources = [ | 623 sources = [ |
| 591 "stunserver/stunserver_main.cc", | 624 "stunserver/stunserver_main.cc", |
| 592 ] | 625 ] |
| 593 deps = [ | 626 deps = [ |
| 627 "../base:rtc_base", |
| 594 "//webrtc/base:rtc_base_approved", | 628 "//webrtc/base:rtc_base_approved", |
| 629 "//webrtc/p2p:rtc_p2p", |
| 595 "//webrtc/pc:rtc_pc", | 630 "//webrtc/pc:rtc_pc", |
| 596 "//webrtc/system_wrappers:field_trial_default", | 631 "//webrtc/system_wrappers:field_trial_default", |
| 597 "//webrtc/system_wrappers:metrics_default", | 632 "//webrtc/system_wrappers:metrics_default", |
| 598 ] | 633 ] |
| 599 if (!build_with_chromium && is_clang) { | 634 if (!build_with_chromium && is_clang) { |
| 600 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 635 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 601 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 636 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 602 } | 637 } |
| 603 } | 638 } |
| 604 } | 639 } |
| 605 | 640 |
| 606 if (!build_with_chromium) { | 641 if (!build_with_chromium) { |
| 607 # Doesn't build within Chrome on Win. | 642 # Doesn't build within Chrome on Win. |
| 608 rtc_executable("stun_prober") { | 643 rtc_executable("stun_prober") { |
| 644 testonly = true |
| 609 sources = [ | 645 sources = [ |
| 610 "stunprober/main.cc", | 646 "stunprober/main.cc", |
| 611 ] | 647 ] |
| 612 | 648 |
| 613 if (!build_with_chromium && is_clang) { | 649 if (!build_with_chromium && is_clang) { |
| 614 # Suppress warnings from Chrome's Clang plugins. | 650 # Suppress warnings from Chrome's Clang plugins. |
| 615 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 651 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 616 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 652 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 617 } | 653 } |
| 618 | 654 |
| 619 deps = [ | 655 deps = [ |
| 656 "../base:rtc_base", |
| 657 "../base:rtc_base_approved", |
| 620 "../p2p:libstunprober", | 658 "../p2p:libstunprober", |
| 621 "../p2p:rtc_p2p", | 659 "../p2p:rtc_p2p", |
| 622 "../system_wrappers:field_trial_default", | 660 "../system_wrappers:field_trial_default", |
| 623 ] | 661 ] |
| 624 } | 662 } |
| 625 } | 663 } |
| OLD | NEW |