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 import("//build/config/crypto.gni") | 9 import("//build/config/crypto.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 ] | 729 ] |
730 | 730 |
731 if (!build_with_chromium && is_clang) { | 731 if (!build_with_chromium && is_clang) { |
732 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 732 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
733 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 733 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
734 } | 734 } |
735 } | 735 } |
736 | 736 |
737 rtc_source_set("rtc_base_nonparallel_tests") { | 737 rtc_source_set("rtc_base_nonparallel_tests") { |
738 testonly = true | 738 testonly = true |
| 739 if (!is_android && !is_ios) { # Generated targets makes this check break. |
| 740 visibility = [ "//webrtc:webrtc_nonparallel_tests" ] |
| 741 } |
739 sources = [ | 742 sources = [ |
740 "cpu_time_unittest.cc", | 743 "cpu_time_unittest.cc", |
741 "filerotatingstream_unittest.cc", | 744 "filerotatingstream_unittest.cc", |
742 "nullsocketserver_unittest.cc", | 745 "nullsocketserver_unittest.cc", |
743 "physicalsocketserver_unittest.cc", | 746 "physicalsocketserver_unittest.cc", |
744 "socket_unittest.cc", | 747 "socket_unittest.cc", |
745 "socket_unittest.h", | 748 "socket_unittest.h", |
746 "socketaddress_unittest.cc", | 749 "socketaddress_unittest.cc", |
747 "virtualsocket_unittest.cc", | 750 "virtualsocket_unittest.cc", |
748 ] | 751 ] |
749 deps = [ | 752 deps = [ |
750 ":rtc_base", | 753 ":rtc_base", |
751 ":rtc_base_tests_main", | 754 ":rtc_base_tests_main", |
752 "//testing/gtest", | 755 "//testing/gtest", |
753 ] | 756 ] |
754 if (is_win) { | 757 if (is_win) { |
755 sources += [ "win32socketserver_unittest.cc" ] | 758 sources += [ "win32socketserver_unittest.cc" ] |
756 } | 759 } |
757 | 760 |
758 if (!build_with_chromium && is_clang) { | 761 if (!build_with_chromium && is_clang) { |
759 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 762 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
760 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 763 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
761 } | 764 } |
762 } | 765 } |
763 | 766 |
764 rtc_source_set("rtc_base_approved_unittests") { | 767 rtc_source_set("rtc_base_approved_unittests") { |
765 testonly = true | 768 testonly = true |
| 769 if (!is_android && !is_ios) { # Generated targets makes this check break. |
| 770 visibility = [ "//webrtc:rtc_unittests" ] |
| 771 } |
766 sources = [ | 772 sources = [ |
767 "array_view_unittest.cc", | 773 "array_view_unittest.cc", |
768 "atomicops_unittest.cc", | 774 "atomicops_unittest.cc", |
769 "base64_unittest.cc", | 775 "base64_unittest.cc", |
770 "basictypes_unittest.cc", | 776 "basictypes_unittest.cc", |
771 "bind_unittest.cc", | 777 "bind_unittest.cc", |
772 "bitbuffer_unittest.cc", | 778 "bitbuffer_unittest.cc", |
773 "buffer_unittest.cc", | 779 "buffer_unittest.cc", |
774 "bufferqueue_unittest.cc", | 780 "bufferqueue_unittest.cc", |
775 "bytebuffer_unittest.cc", | 781 "bytebuffer_unittest.cc", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 ":rtc_base_tests_main", | 813 ":rtc_base_tests_main", |
808 ] | 814 ] |
809 if (!build_with_chromium && is_clang) { | 815 if (!build_with_chromium && is_clang) { |
810 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 816 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
811 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 817 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
812 } | 818 } |
813 } | 819 } |
814 | 820 |
815 rtc_source_set("rtc_task_queue_unittests") { | 821 rtc_source_set("rtc_task_queue_unittests") { |
816 testonly = true | 822 testonly = true |
| 823 if (!is_android && !is_ios) { # Generated targets makes this check break. |
| 824 visibility = [ "//webrtc:rtc_unittests" ] |
| 825 } |
817 sources = [ | 826 sources = [ |
818 "sequenced_task_checker_unittest.cc", | 827 "sequenced_task_checker_unittest.cc", |
819 "task_queue_unittest.cc", | 828 "task_queue_unittest.cc", |
820 "weak_ptr_unittest.cc", | 829 "weak_ptr_unittest.cc", |
821 ] | 830 ] |
822 deps = [ | 831 deps = [ |
823 ":rtc_base_tests_main", | 832 ":rtc_base_tests_main", |
824 ":rtc_task_queue", | 833 ":rtc_task_queue", |
825 ] | 834 ] |
826 if (!build_with_chromium && is_clang) { | 835 if (!build_with_chromium && is_clang) { |
827 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 836 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
828 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 837 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
829 } | 838 } |
830 } | 839 } |
831 | 840 |
832 rtc_source_set("rtc_numerics_unittests") { | 841 rtc_source_set("rtc_numerics_unittests") { |
833 testonly = true | 842 testonly = true |
| 843 if (!is_android && !is_ios) { # Generated targets makes this check break. |
| 844 visibility = [ "//webrtc:rtc_unittests" ] |
| 845 } |
834 sources = [ | 846 sources = [ |
835 "numerics/exp_filter_unittest.cc", | 847 "numerics/exp_filter_unittest.cc", |
836 "numerics/percentile_filter_unittest.cc", | 848 "numerics/percentile_filter_unittest.cc", |
837 ] | 849 ] |
838 deps = [ | 850 deps = [ |
839 ":rtc_base_tests_main", | 851 ":rtc_base_tests_main", |
840 ":rtc_numerics", | 852 ":rtc_numerics", |
841 ] | 853 ] |
842 } | 854 } |
843 | 855 |
844 config("rtc_base_unittests_config") { | 856 config("rtc_base_unittests_config") { |
845 if (is_clang) { | 857 if (is_clang) { |
846 cflags = [ "-Wno-unused-const-variable" ] | 858 cflags = [ "-Wno-unused-const-variable" ] |
847 } | 859 } |
848 } | 860 } |
849 rtc_source_set("rtc_base_unittests") { | 861 rtc_source_set("rtc_base_unittests") { |
850 testonly = true | 862 testonly = true |
| 863 if (!is_android && !is_ios) { # Generated targets makes this check break. |
| 864 visibility = [ "//webrtc:rtc_unittests" ] |
| 865 } |
851 sources = [ | 866 sources = [ |
852 "callback_unittest.cc", | 867 "callback_unittest.cc", |
853 "crc32_unittest.cc", | 868 "crc32_unittest.cc", |
854 "fileutils_unittest.cc", | 869 "fileutils_unittest.cc", |
855 "helpers_unittest.cc", | 870 "helpers_unittest.cc", |
856 "httpbase_unittest.cc", | 871 "httpbase_unittest.cc", |
857 "httpcommon_unittest.cc", | 872 "httpcommon_unittest.cc", |
858 "httpserver_unittest.cc", | 873 "httpserver_unittest.cc", |
859 "ipaddress_unittest.cc", | 874 "ipaddress_unittest.cc", |
860 "memory_usage_unittest.cc", | 875 "memory_usage_unittest.cc", |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 | 926 |
912 if (is_android) { | 927 if (is_android) { |
913 android_library("base_java") { | 928 android_library("base_java") { |
914 java_files = [ | 929 java_files = [ |
915 "java/src/org/webrtc/Logging.java", | 930 "java/src/org/webrtc/Logging.java", |
916 "java/src/org/webrtc/Size.java", | 931 "java/src/org/webrtc/Size.java", |
917 "java/src/org/webrtc/ThreadUtils.java", | 932 "java/src/org/webrtc/ThreadUtils.java", |
918 ] | 933 ] |
919 } | 934 } |
920 } | 935 } |
OLD | NEW |