Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: webrtc/BUILD.gn

Issue 2976363002: Decoupling rtc_base from apple specific code [without cyclic deps] (Closed)
Patch Set: fixing network_tester_server Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/audio/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 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 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. 9 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330.
10 10
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 "stats", 268 "stats",
269 "system_wrappers:system_wrappers_default", 269 "system_wrappers:system_wrappers_default",
270 "video", 270 "video",
271 "voice_engine", 271 "voice_engine",
272 ] 272 ]
273 273
274 if (rtc_enable_protobuf) { 274 if (rtc_enable_protobuf) {
275 defines += [ "ENABLE_RTC_EVENT_LOG" ] 275 defines += [ "ENABLE_RTC_EVENT_LOG" ]
276 deps += [ "logging:rtc_event_log_proto" ] 276 deps += [ "logging:rtc_event_log_proto" ]
277 } 277 }
278
279 if (is_ios) {
280 deps += [ "rtc_base:rtc_base_apple" ]
281 }
278 } 282 }
279 283
280 if (rtc_include_tests) { 284 if (rtc_include_tests) {
281 # Target to build all the WebRTC tests (but not examples or tools). 285 # Target to build all the WebRTC tests (but not examples or tools).
282 # Executable in order to get a target that links all WebRTC code. 286 # Executable in order to get a target that links all WebRTC code.
283 rtc_executable("webrtc_tests") { 287 rtc_executable("webrtc_tests") {
284 testonly = true 288 testonly = true
285 289
286 # Only the root target should depend on this. 290 # Only the root target should depend on this.
287 visibility = [ "//:default" ] 291 visibility = [ "//:default" ]
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 "modules/audio_device:audio_device_tests", 330 "modules/audio_device:audio_device_tests",
327 "voice_engine:voe_auto_test", 331 "voice_engine:voe_auto_test",
328 ] 332 ]
329 } 333 }
330 if (rtc_enable_protobuf) { 334 if (rtc_enable_protobuf) {
331 deps += [ 335 deps += [
332 "audio:low_bandwidth_audio_test", 336 "audio:low_bandwidth_audio_test",
333 "logging:rtc_event_log2rtp_dump", 337 "logging:rtc_event_log2rtp_dump",
334 ] 338 ]
335 } 339 }
340 if (is_ios || is_mac) {
341 deps += [ "rtc_base:rtc_base_apple" ]
342 }
336 } 343 }
337 } 344 }
338 } 345 }
339 346
340 rtc_static_library("webrtc_common") { 347 rtc_static_library("webrtc_common") {
341 # TODO(mbonadei): Remove (bugs.webrtc.org/7745) 348 # TODO(mbonadei): Remove (bugs.webrtc.org/7745)
342 # Enabling GN check triggers cyclic dependency error: 349 # Enabling GN check triggers cyclic dependency error:
343 # //webrtc:webrtc_common -> 350 # //webrtc:webrtc_common ->
344 # //webrtc/api:video_frame_api -> 351 # //webrtc/api:video_frame_api ->
345 # //webrtc/system_wrappers:system_wrappers -> 352 # //webrtc/system_wrappers:system_wrappers ->
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 if (rtc_enable_protobuf) { 416 if (rtc_enable_protobuf) {
410 deps += [ "logging:rtc_event_log_tests" ] 417 deps += [ "logging:rtc_event_log_tests" ]
411 } 418 }
412 419
413 if (is_android) { 420 if (is_android) {
414 deps += [ "//testing/android/native_test:native_test_support" ] 421 deps += [ "//testing/android/native_test:native_test_support" ]
415 shard_timeout = 900 422 shard_timeout = 900
416 } 423 }
417 424
418 if (is_ios || is_mac) { 425 if (is_ios || is_mac) {
419 deps += [ "sdk:objc_sdk_unittests" ] 426 deps += [
427 "rtc_base:rtc_base_apple",
428 "sdk:objc_sdk_unittests",
429 ]
420 } 430 }
421 } 431 }
422 432
423 # TODO(pbos): Rename test suite, this is no longer "just" for video targets. 433 # TODO(pbos): Rename test suite, this is no longer "just" for video targets.
424 video_engine_tests_resources = [ 434 video_engine_tests_resources = [
425 "../resources/foreman_cif_short.yuv", 435 "../resources/foreman_cif_short.yuv",
426 "../resources/voice_engine/audio_long16.pcm", 436 "../resources/voice_engine/audio_long16.pcm",
427 ] 437 ]
428 438
429 if (is_ios) { 439 if (is_ios) {
(...skipping 26 matching lines...) Expand all
456 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 466 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
457 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 467 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
458 } 468 }
459 if (is_android) { 469 if (is_android) {
460 deps += [ "//testing/android/native_test:native_test_native_code" ] 470 deps += [ "//testing/android/native_test:native_test_native_code" ]
461 shard_timeout = 900 471 shard_timeout = 900
462 } 472 }
463 if (is_ios) { 473 if (is_ios) {
464 deps += [ ":video_engine_tests_bundle_data" ] 474 deps += [ ":video_engine_tests_bundle_data" ]
465 } 475 }
476 if (is_ios || is_mac) {
477 deps += [ "rtc_base:rtc_base_apple" ]
478 }
466 } 479 }
467 480
468 webrtc_perf_tests_resources = [ 481 webrtc_perf_tests_resources = [
469 "../resources/audio_coding/speech_mono_16kHz.pcm", 482 "../resources/audio_coding/speech_mono_16kHz.pcm",
470 "../resources/audio_coding/speech_mono_32_48kHz.pcm", 483 "../resources/audio_coding/speech_mono_32_48kHz.pcm",
471 "../resources/audio_coding/testfile32kHz.pcm", 484 "../resources/audio_coding/testfile32kHz.pcm",
472 "../resources/ConferenceMotion_1280_720_50.yuv", 485 "../resources/ConferenceMotion_1280_720_50.yuv",
473 "../resources/difficult_photo_1850_1110.yuv", 486 "../resources/difficult_photo_1850_1110.yuv",
474 "../resources/foreman_cif.yuv", 487 "../resources/foreman_cif.yuv",
475 "../resources/google-wifi-3mbps.rx", 488 "../resources/google-wifi-3mbps.rx",
(...skipping 30 matching lines...) Expand all
506 ] 519 ]
507 520
508 data = webrtc_perf_tests_resources 521 data = webrtc_perf_tests_resources
509 if (is_android) { 522 if (is_android) {
510 deps += [ "//testing/android/native_test:native_test_native_code" ] 523 deps += [ "//testing/android/native_test:native_test_native_code" ]
511 shard_timeout = 2700 524 shard_timeout = 2700
512 } 525 }
513 if (is_ios) { 526 if (is_ios) {
514 deps += [ ":webrtc_perf_tests_bundle_data" ] 527 deps += [ ":webrtc_perf_tests_bundle_data" ]
515 } 528 }
529 if (is_ios || is_mac) {
530 deps += [ "rtc_base:rtc_base_apple" ]
531 }
516 } 532 }
517 533
518 rtc_test("webrtc_nonparallel_tests") { 534 rtc_test("webrtc_nonparallel_tests") {
519 testonly = true 535 testonly = true
520 deps = [ 536 deps = [
521 "base:rtc_base_nonparallel_tests", 537 "base:rtc_base_nonparallel_tests",
522 ] 538 ]
523 if (is_android) { 539 if (is_android) {
524 deps += [ "//testing/android/native_test:native_test_support" ] 540 deps += [ "//testing/android/native_test:native_test_support" ]
525 shard_timeout = 900 541 shard_timeout = 900
526 } 542 }
543 if (is_ios || is_mac) {
544 deps += [ "rtc_base:rtc_base_apple" ]
545 }
527 } 546 }
528 547
529 if (is_android) { 548 if (is_android) {
530 junit_binary("android_junit_tests") { 549 junit_binary("android_junit_tests") {
531 java_files = [ 550 java_files = [
532 "examples/androidjunit/src/org/appspot/apprtc/BluetoothManagerTest.java" , 551 "examples/androidjunit/src/org/appspot/apprtc/BluetoothManagerTest.java" ,
533 "examples/androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java", 552 "examples/androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java",
534 "examples/androidjunit/src/org/appspot/apprtc/TCPChannelClientTest.java" , 553 "examples/androidjunit/src/org/appspot/apprtc/TCPChannelClientTest.java" ,
535 "sdk/android/tests/src/org/webrtc/CameraEnumerationTest.java", 554 "sdk/android/tests/src/org/webrtc/CameraEnumerationTest.java",
536 ] 555 ]
537 556
538 deps = [ 557 deps = [
539 "examples:AppRTCMobile_javalib", 558 "examples:AppRTCMobile_javalib",
540 "sdk/android:libjingle_peerconnection_java", 559 "sdk/android:libjingle_peerconnection_java",
541 "//base:base_java_test_support", 560 "//base:base_java_test_support",
542 ] 561 ]
543 } 562 }
544 } 563 }
545 } 564 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698