OLD | NEW |
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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 rtc_static_library("webrtc_common") { | 295 rtc_static_library("webrtc_common") { |
296 sources = [ | 296 sources = [ |
297 "common_types.cc", | 297 "common_types.cc", |
298 "common_types.h", | 298 "common_types.h", |
299 "config.cc", | 299 "config.cc", |
300 "config.h", | 300 "config.h", |
301 "typedefs.h", | 301 "typedefs.h", |
302 "voice_engine_configurations.h", | 302 "voice_engine_configurations.h", |
303 ] | 303 ] |
304 | 304 |
305 if (is_clang && !is_nacl) { | 305 if (!build_with_chromium && is_clang) { |
306 # Suppress warnings from Chrome's Clang plugins. | 306 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
307 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
308 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 307 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
309 } | 308 } |
310 } | 309 } |
311 | 310 |
312 if (use_libfuzzer || use_drfuzz || use_afl) { | 311 if (use_libfuzzer || use_drfuzz || use_afl) { |
313 # This target is only here for gn to discover fuzzer build targets under | 312 # This target is only here for gn to discover fuzzer build targets under |
314 # webrtc/test/fuzzers/. | 313 # webrtc/test/fuzzers/. |
315 group("webrtc_fuzzers_dummy") { | 314 group("webrtc_fuzzers_dummy") { |
316 testonly = true | 315 testonly = true |
317 deps = [ | 316 deps = [ |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 "p2p/quic/quicconnectionhelper_unittest.cc", | 474 "p2p/quic/quicconnectionhelper_unittest.cc", |
476 "p2p/quic/quicsession_unittest.cc", | 475 "p2p/quic/quicsession_unittest.cc", |
477 "p2p/quic/quictransport_unittest.cc", | 476 "p2p/quic/quictransport_unittest.cc", |
478 "p2p/quic/quictransportchannel_unittest.cc", | 477 "p2p/quic/quictransportchannel_unittest.cc", |
479 "p2p/quic/reliablequicstream_unittest.cc", | 478 "p2p/quic/reliablequicstream_unittest.cc", |
480 ] | 479 ] |
481 } | 480 } |
482 | 481 |
483 configs += [ ":rtc_unittests_config" ] | 482 configs += [ ":rtc_unittests_config" ] |
484 | 483 |
485 if (is_clang) { | 484 if (!build_with_chromium && is_clang) { |
486 # Suppress warnings from the Chromium Clang plugin. | 485 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
487 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
488 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 486 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
489 } | 487 } |
490 | 488 |
491 deps = [ | 489 deps = [ |
492 "base:rtc_base", | 490 "base:rtc_base", |
493 "base:rtc_base_tests_utils", | 491 "base:rtc_base_tests_utils", |
494 "base:rtc_task_queue", | 492 "base:rtc_task_queue", |
495 "p2p:libstunprober", | 493 "p2p:libstunprober", |
496 "p2p:rtc_p2p", | 494 "p2p:rtc_p2p", |
497 "//testing/gmock", | 495 "//testing/gmock", |
(...skipping 29 matching lines...) Expand all Loading... |
527 # |-ObjC| flag needed to make sure category method implementations | 525 # |-ObjC| flag needed to make sure category method implementations |
528 # are included: | 526 # are included: |
529 # https://developer.apple.com/library/mac/qa/qa1490/_index.html | 527 # https://developer.apple.com/library/mac/qa/qa1490/_index.html |
530 ldflags = [ "-ObjC" ] | 528 ldflags = [ "-ObjC" ] |
531 } | 529 } |
532 } | 530 } |
533 | 531 |
534 rtc_test("xmllite_xmpp_unittests") { | 532 rtc_test("xmllite_xmpp_unittests") { |
535 configs += [ ":rtc_unittests_config" ] | 533 configs += [ ":rtc_unittests_config" ] |
536 | 534 |
537 if (is_clang) { | 535 if (!build_with_chromium && is_clang) { |
538 # Suppress warnings from the Chromium Clang plugin. | 536 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
539 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
540 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 537 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
541 } | 538 } |
542 | 539 |
543 deps = [ | 540 deps = [ |
544 "base:rtc_base_tests_utils", | 541 "base:rtc_base_tests_utils", |
545 "libjingle/xmllite:rtc_xmllite", | 542 "libjingle/xmllite:rtc_xmllite", |
546 "libjingle/xmpp:rtc_xmpp", | 543 "libjingle/xmpp:rtc_xmpp", |
547 "//testing/gtest", | 544 "//testing/gtest", |
548 ] | 545 ] |
549 | 546 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 testonly = true | 589 testonly = true |
593 deps = [ | 590 deps = [ |
594 "audio:audio_tests", | 591 "audio:audio_tests", |
595 "call:call_tests", | 592 "call:call_tests", |
596 "modules/video_capture", | 593 "modules/video_capture", |
597 "test:test_common", | 594 "test:test_common", |
598 "test:test_main", | 595 "test:test_main", |
599 "video:video_tests", | 596 "video:video_tests", |
600 ] | 597 ] |
601 data = video_engine_tests_resources | 598 data = video_engine_tests_resources |
602 if (is_clang) { | 599 if (!build_with_chromium && is_clang) { |
603 # Suppress warnings from the Chromium Clang plugin. | 600 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
604 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
605 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 601 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
606 } | 602 } |
607 if (is_android) { | 603 if (is_android) { |
608 deps += [ "//testing/android/native_test:native_test_native_code" ] | 604 deps += [ "//testing/android/native_test:native_test_native_code" ] |
609 shard_timeout = 900 | 605 shard_timeout = 900 |
610 } | 606 } |
611 | 607 |
612 if (is_ios) { | 608 if (is_ios) { |
613 deps += [ ":video_engine_tests_bundle_data" ] | 609 deps += [ ":video_engine_tests_bundle_data" ] |
614 } | 610 } |
615 } | 611 } |
616 | 612 |
617 rtc_source_set("video_quality_test") { | 613 rtc_source_set("video_quality_test") { |
618 testonly = true | 614 testonly = true |
619 sources = [ | 615 sources = [ |
620 "video/video_quality_test.cc", | 616 "video/video_quality_test.cc", |
621 "video/video_quality_test.h", | 617 "video/video_quality_test.h", |
622 ] | 618 ] |
623 deps = [ | 619 deps = [ |
624 ":webrtc", | 620 ":webrtc", |
625 "system_wrappers", | 621 "system_wrappers", |
626 "//testing/gtest", | 622 "//testing/gtest", |
627 ] | 623 ] |
628 if (!is_android) { | 624 if (!is_android) { |
629 deps += [ "modules/video_capture:video_capture_internal_impl" ] | 625 deps += [ "modules/video_capture:video_capture_internal_impl" ] |
630 } | 626 } |
631 if (is_clang) { | 627 if (!build_with_chromium && is_clang) { |
632 # Suppress warnings from the Chromium Clang plugin. | 628 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
633 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
634 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 629 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
635 } | 630 } |
636 } | 631 } |
637 | 632 |
638 webrtc_perf_tests_resources = [ | 633 webrtc_perf_tests_resources = [ |
639 "//resources/audio_coding/speech_mono_16kHz.pcm", | 634 "//resources/audio_coding/speech_mono_16kHz.pcm", |
640 "//resources/audio_coding/testfile32kHz.pcm", | 635 "//resources/audio_coding/testfile32kHz.pcm", |
641 "//resources/ConferenceMotion_1280_720_50.yuv", | 636 "//resources/ConferenceMotion_1280_720_50.yuv", |
642 "//resources/difficult_photo_1850_1110.yuv", | 637 "//resources/difficult_photo_1850_1110.yuv", |
643 "//resources/foreman_cif.yuv", | 638 "//resources/foreman_cif.yuv", |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 deps = [ | 679 deps = [ |
685 ":video_quality_test", | 680 ":video_quality_test", |
686 "system_wrappers:metrics_default", | 681 "system_wrappers:metrics_default", |
687 "test:field_trial", | 682 "test:field_trial", |
688 "test:test_common", | 683 "test:test_common", |
689 "test:test_renderer", | 684 "test:test_renderer", |
690 "//testing/gmock", | 685 "//testing/gmock", |
691 "//testing/gtest", | 686 "//testing/gtest", |
692 "//third_party/gflags", | 687 "//third_party/gflags", |
693 ] | 688 ] |
694 if (is_clang && !is_nacl) { | 689 if (!build_with_chromium && is_clang) { |
695 # Suppress warnings from Chrome's Clang plugins. | 690 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
696 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
697 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 691 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
698 } | 692 } |
699 } | 693 } |
700 | 694 |
701 rtc_test("webrtc_perf_tests") { | 695 rtc_test("webrtc_perf_tests") { |
702 testonly = true | 696 testonly = true |
703 configs += [ ":rtc_unittests_config" ] | 697 configs += [ ":rtc_unittests_config" ] |
704 | 698 |
705 sources = [ | 699 sources = [ |
706 "call/call_perf_tests.cc", | 700 "call/call_perf_tests.cc", |
(...skipping 28 matching lines...) Expand all Loading... |
735 } | 729 } |
736 | 730 |
737 data = webrtc_perf_tests_resources | 731 data = webrtc_perf_tests_resources |
738 if (is_android) { | 732 if (is_android) { |
739 deps += [ "//testing/android/native_test:native_test_native_code" ] | 733 deps += [ "//testing/android/native_test:native_test_native_code" ] |
740 shard_timeout = 2700 | 734 shard_timeout = 2700 |
741 } | 735 } |
742 if (is_ios) { | 736 if (is_ios) { |
743 deps += [ ":webrtc_perf_tests_bundle_data" ] | 737 deps += [ ":webrtc_perf_tests_bundle_data" ] |
744 } | 738 } |
745 if (is_clang) { | 739 if (!build_with_chromium && is_clang) { |
746 # Suppress warnings from the Chromium Clang plugin. | 740 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
747 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
748 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 741 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
749 } | 742 } |
750 } | 743 } |
751 | 744 |
752 rtc_test("webrtc_nonparallel_tests") { | 745 rtc_test("webrtc_nonparallel_tests") { |
753 testonly = true | 746 testonly = true |
754 configs += [ ":rtc_unittests_config" ] | 747 configs += [ ":rtc_unittests_config" ] |
755 sources = [ | 748 sources = [ |
756 "base/nullsocketserver_unittest.cc", | 749 "base/nullsocketserver_unittest.cc", |
757 "base/physicalsocketserver_unittest.cc", | 750 "base/physicalsocketserver_unittest.cc", |
758 "base/socket_unittest.cc", | 751 "base/socket_unittest.cc", |
759 "base/socket_unittest.h", | 752 "base/socket_unittest.h", |
760 "base/socketaddress_unittest.cc", | 753 "base/socketaddress_unittest.cc", |
761 "base/virtualsocket_unittest.cc", | 754 "base/virtualsocket_unittest.cc", |
762 ] | 755 ] |
763 deps = [ | 756 deps = [ |
764 "base:rtc_base", | 757 "base:rtc_base", |
765 "base:rtc_base_tests_utils", | 758 "base:rtc_base_tests_utils", |
766 "//testing/gtest", | 759 "//testing/gtest", |
767 ] | 760 ] |
768 if (is_win) { | 761 if (is_win) { |
769 sources += [ "base/win32socketserver_unittest.cc" ] | 762 sources += [ "base/win32socketserver_unittest.cc" ] |
770 } | 763 } |
771 if (is_android) { | 764 if (is_android) { |
772 deps += [ "//testing/android/native_test:native_test_support" ] | 765 deps += [ "//testing/android/native_test:native_test_support" ] |
773 shard_timeout = 900 | 766 shard_timeout = 900 |
774 } | 767 } |
775 | 768 |
776 if (is_clang) { | 769 if (!build_with_chromium && is_clang) { |
777 # Suppress warnings from the Chromium Clang plugin. | 770 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
778 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
779 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 771 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
780 } | 772 } |
781 } | 773 } |
782 | 774 |
783 if (is_android) { | 775 if (is_android) { |
784 junit_binary("android_junit_tests") { | 776 junit_binary("android_junit_tests") { |
785 java_files = [ | 777 java_files = [ |
786 "androidjunit/src/org/webrtc/CameraEnumerationTest.java", | 778 "androidjunit/src/org/webrtc/CameraEnumerationTest.java", |
787 "examples/androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java", | 779 "examples/androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java", |
788 "examples/androidjunit/src/org/appspot/apprtc/TCPChannelClientTest.java"
, | 780 "examples/androidjunit/src/org/appspot/apprtc/TCPChannelClientTest.java"
, |
789 ] | 781 ] |
790 | 782 |
791 deps = [ | 783 deps = [ |
792 "//base:base_java_test_support", | 784 "//base:base_java_test_support", |
793 "//webrtc/api:libjingle_peerconnection_java", | 785 "//webrtc/api:libjingle_peerconnection_java", |
794 "//webrtc/api:libjingle_peerconnection_jni", | 786 "//webrtc/api:libjingle_peerconnection_jni", |
795 "//webrtc/examples:AppRTCMobile_javalib", | 787 "//webrtc/examples:AppRTCMobile_javalib", |
796 ] | 788 ] |
797 } | 789 } |
798 } | 790 } |
799 } | 791 } |
OLD | NEW |