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

Side by Side Diff: webrtc/base/BUILD.gn

Issue 2828793003: GN: Tighten up test target visibility + refactorings (Closed)
Patch Set: Move out fec_test_helper from rtc_include_tests Created 3 years, 8 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 | « webrtc/audio/BUILD.gn ('k') | webrtc/call/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 import("//build/config/crypto.gni") 9 import("//build/config/crypto.gni")
10 import("//build/config/ui.gni") 10 import("//build/config/ui.gni")
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 ] 735 ]
736 736
737 if (!build_with_chromium && is_clang) { 737 if (!build_with_chromium && is_clang) {
738 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 738 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
739 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 739 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
740 } 740 }
741 } 741 }
742 742
743 rtc_source_set("rtc_base_nonparallel_tests") { 743 rtc_source_set("rtc_base_nonparallel_tests") {
744 testonly = true 744 testonly = true
745
746 # Skip restricting visibility on mobile platforms since the tests on those
747 # gets additional generated targets which would require many lines here to
748 # cover (which would be confusing to read and hard to maintain).
749 if (!is_android && !is_ios) {
750 visibility = [ "//webrtc:webrtc_nonparallel_tests" ]
751 }
745 sources = [ 752 sources = [
746 "cpu_time_unittest.cc", 753 "cpu_time_unittest.cc",
747 "filerotatingstream_unittest.cc", 754 "filerotatingstream_unittest.cc",
748 "nullsocketserver_unittest.cc", 755 "nullsocketserver_unittest.cc",
749 "physicalsocketserver_unittest.cc", 756 "physicalsocketserver_unittest.cc",
750 "socket_unittest.cc", 757 "socket_unittest.cc",
751 "socket_unittest.h", 758 "socket_unittest.h",
752 "socketaddress_unittest.cc", 759 "socketaddress_unittest.cc",
753 "virtualsocket_unittest.cc", 760 "virtualsocket_unittest.cc",
754 ] 761 ]
755 deps = [ 762 deps = [
756 ":rtc_base", 763 ":rtc_base",
757 ":rtc_base_tests_main", 764 ":rtc_base_tests_main",
758 "//testing/gtest", 765 "//testing/gtest",
759 ] 766 ]
760 if (is_win) { 767 if (is_win) {
761 sources += [ "win32socketserver_unittest.cc" ] 768 sources += [ "win32socketserver_unittest.cc" ]
762 } 769 }
763 770
764 if (!build_with_chromium && is_clang) { 771 if (!build_with_chromium && is_clang) {
765 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 772 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
766 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 773 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
767 } 774 }
768 } 775 }
769 776
770 rtc_source_set("rtc_base_approved_unittests") { 777 rtc_source_set("rtc_base_approved_unittests") {
771 testonly = true 778 testonly = true
779
780 # Skip restricting visibility on mobile platforms since the tests on those
781 # gets additional generated targets which would require many lines here to
782 # cover (which would be confusing to read and hard to maintain).
783 if (!is_android && !is_ios) {
784 visibility = [ "//webrtc:rtc_unittests" ]
785 }
772 sources = [ 786 sources = [
773 "array_view_unittest.cc", 787 "array_view_unittest.cc",
774 "atomicops_unittest.cc", 788 "atomicops_unittest.cc",
775 "base64_unittest.cc", 789 "base64_unittest.cc",
776 "basictypes_unittest.cc", 790 "basictypes_unittest.cc",
777 "bind_unittest.cc", 791 "bind_unittest.cc",
778 "bitbuffer_unittest.cc", 792 "bitbuffer_unittest.cc",
779 "buffer_unittest.cc", 793 "buffer_unittest.cc",
780 "bufferqueue_unittest.cc", 794 "bufferqueue_unittest.cc",
781 "bytebuffer_unittest.cc", 795 "bytebuffer_unittest.cc",
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 ":rtc_base_tests_main", 827 ":rtc_base_tests_main",
814 ] 828 ]
815 if (!build_with_chromium && is_clang) { 829 if (!build_with_chromium && is_clang) {
816 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 830 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
817 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 831 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
818 } 832 }
819 } 833 }
820 834
821 rtc_source_set("rtc_task_queue_unittests") { 835 rtc_source_set("rtc_task_queue_unittests") {
822 testonly = true 836 testonly = true
837
838 # Skip restricting visibility on mobile platforms since the tests on those
839 # gets additional generated targets which would require many lines here to
840 # cover (which would be confusing to read and hard to maintain).
841 if (!is_android && !is_ios) {
842 visibility = [ "//webrtc:rtc_unittests" ]
843 }
823 sources = [ 844 sources = [
824 "sequenced_task_checker_unittest.cc", 845 "sequenced_task_checker_unittest.cc",
825 "task_queue_unittest.cc", 846 "task_queue_unittest.cc",
826 "weak_ptr_unittest.cc", 847 "weak_ptr_unittest.cc",
827 ] 848 ]
828 deps = [ 849 deps = [
829 ":rtc_base_tests_main", 850 ":rtc_base_tests_main",
830 ":rtc_task_queue", 851 ":rtc_task_queue",
831 ] 852 ]
832 if (!build_with_chromium && is_clang) { 853 if (!build_with_chromium && is_clang) {
833 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 854 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
834 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 855 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
835 } 856 }
836 } 857 }
837 858
838 rtc_source_set("rtc_numerics_unittests") { 859 rtc_source_set("rtc_numerics_unittests") {
839 testonly = true 860 testonly = true
861
862 # Skip restricting visibility on mobile platforms since the tests on those
863 # gets additional generated targets which would require many lines here to
864 # cover (which would be confusing to read and hard to maintain).
865 if (!is_android && !is_ios) {
866 visibility = [ "//webrtc:rtc_unittests" ]
867 }
840 sources = [ 868 sources = [
841 "numerics/exp_filter_unittest.cc", 869 "numerics/exp_filter_unittest.cc",
842 "numerics/percentile_filter_unittest.cc", 870 "numerics/percentile_filter_unittest.cc",
843 ] 871 ]
844 deps = [ 872 deps = [
845 ":rtc_base_tests_main", 873 ":rtc_base_tests_main",
846 ":rtc_numerics", 874 ":rtc_numerics",
847 ] 875 ]
848 } 876 }
849 877
850 config("rtc_base_unittests_config") { 878 config("rtc_base_unittests_config") {
851 if (is_clang) { 879 if (is_clang) {
852 cflags = [ "-Wno-unused-const-variable" ] 880 cflags = [ "-Wno-unused-const-variable" ]
853 } 881 }
854 } 882 }
855 rtc_source_set("rtc_base_unittests") { 883 rtc_source_set("rtc_base_unittests") {
856 testonly = true 884 testonly = true
885
886 # Skip restricting visibility on mobile platforms since the tests on those
887 # gets additional generated targets which would require many lines here to
888 # cover (which would be confusing to read and hard to maintain).
889 if (!is_android && !is_ios) {
890 visibility = [ "//webrtc:rtc_unittests" ]
891 }
857 sources = [ 892 sources = [
858 "callback_unittest.cc", 893 "callback_unittest.cc",
859 "crc32_unittest.cc", 894 "crc32_unittest.cc",
860 "fileutils_unittest.cc", 895 "fileutils_unittest.cc",
861 "helpers_unittest.cc", 896 "helpers_unittest.cc",
862 "httpbase_unittest.cc", 897 "httpbase_unittest.cc",
863 "httpcommon_unittest.cc", 898 "httpcommon_unittest.cc",
864 "httpserver_unittest.cc", 899 "httpserver_unittest.cc",
865 "ipaddress_unittest.cc", 900 "ipaddress_unittest.cc",
866 "memory_usage_unittest.cc", 901 "memory_usage_unittest.cc",
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 951
917 if (is_android) { 952 if (is_android) {
918 android_library("base_java") { 953 android_library("base_java") {
919 java_files = [ 954 java_files = [
920 "java/src/org/webrtc/Logging.java", 955 "java/src/org/webrtc/Logging.java",
921 "java/src/org/webrtc/Size.java", 956 "java/src/org/webrtc/Size.java",
922 "java/src/org/webrtc/ThreadUtils.java", 957 "java/src/org/webrtc/ThreadUtils.java",
923 ] 958 ]
924 } 959 }
925 } 960 }
OLDNEW
« no previous file with comments | « webrtc/audio/BUILD.gn ('k') | webrtc/call/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698