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

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

Issue 2838683002: Revert of Enable GN check for webrtc/base (Closed)
Patch Set: Revert "removing .gn changes to test chromium trybots" Created 3 years, 7 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 | « .gn ('k') | webrtc/base/location.h » ('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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ] 85 ]
86 if (rtc_enable_protobuf) { 86 if (rtc_enable_protobuf) {
87 public_deps = [ 87 public_deps = [
88 "//third_party/protobuf:protobuf_lite", 88 "//third_party/protobuf:protobuf_lite",
89 ] 89 ]
90 } 90 }
91 } 91 }
92 92
93 # The subset of rtc_base approved for use outside of libjingle. 93 # The subset of rtc_base approved for use outside of libjingle.
94 rtc_static_library("rtc_base_approved") { 94 rtc_static_library("rtc_base_approved") {
95 # TODO(kjellander): Remove (bugs.webrtc.org/7480)
96 # Enabling GN check triggers a cyclic dependency caused by rate_limiter.cc:
97 # :rtc_base_approved -> //webrtc/system_wrappers -> :rtc_base_approved
98 check_includes = false
99 defines = [] 95 defines = []
100 libs = [] 96 libs = []
101 deps = [] 97 deps = []
102 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] 98 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ]
103 99
104 sources = [ 100 sources = [
105 "array_view.h", 101 "array_view.h",
106 "arraysize.h", 102 "arraysize.h",
107 "atomicops.h", 103 "atomicops.h",
108 "base64.cc", 104 "base64.cc",
(...skipping 24 matching lines...) Expand all
133 "file.h", 129 "file.h",
134 "flags.cc", 130 "flags.cc",
135 "flags.h", 131 "flags.h",
136 "format_macros.h", 132 "format_macros.h",
137 "function_view.h", 133 "function_view.h",
138 "ignore_wundef.h", 134 "ignore_wundef.h",
139 "location.cc", 135 "location.cc",
140 "location.h", 136 "location.h",
141 "md5.cc", 137 "md5.cc",
142 "md5.h", 138 "md5.h",
139 "md5digest.cc",
140 "md5digest.h",
143 "mod_ops.h", 141 "mod_ops.h",
144 "onetimeevent.h", 142 "onetimeevent.h",
145 "optional.cc", 143 "optional.cc",
146 "optional.h", 144 "optional.h",
147 "pathutils.cc", 145 "pathutils.cc",
148 "pathutils.h", 146 "pathutils.h",
149 "platform_file.cc", 147 "platform_file.cc",
150 "platform_file.h", 148 "platform_file.h",
151 "platform_thread.cc", 149 "platform_thread.cc",
152 "platform_thread.h", 150 "platform_thread.h",
(...skipping 13 matching lines...) Expand all
166 "refcountedobject.h", 164 "refcountedobject.h",
167 "safe_compare.h", 165 "safe_compare.h",
168 "safe_conversions.h", 166 "safe_conversions.h",
169 "safe_conversions_impl.h", 167 "safe_conversions_impl.h",
170 "sanitizer.h", 168 "sanitizer.h",
171 "scoped_ref_ptr.h", 169 "scoped_ref_ptr.h",
172 "string_to_number.cc", 170 "string_to_number.cc",
173 "string_to_number.h", 171 "string_to_number.h",
174 "stringencode.cc", 172 "stringencode.cc",
175 "stringencode.h", 173 "stringencode.h",
176 "stringize_macros.h",
177 "stringutils.cc", 174 "stringutils.cc",
178 "stringutils.h", 175 "stringutils.h",
179 "swap_queue.h", 176 "swap_queue.h",
180 "template_util.h", 177 "template_util.h",
181 "thread_annotations.h", 178 "thread_annotations.h",
182 "thread_checker.h", 179 "thread_checker.h",
183 "thread_checker_impl.cc", 180 "thread_checker_impl.cc",
184 "thread_checker_impl.h", 181 "thread_checker_impl.h",
185 "timestampaligner.cc", 182 "timestampaligner.cc",
186 "timestampaligner.h", 183 "timestampaligner.h",
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 } 669 }
673 } 670 }
674 671
675 rtc_source_set("rtc_base_tests_main") { 672 rtc_source_set("rtc_base_tests_main") {
676 testonly = true 673 testonly = true
677 sources = [ 674 sources = [
678 "unittest_main.cc", 675 "unittest_main.cc",
679 ] 676 ]
680 public_configs = [ ":rtc_base_tests_utils_exported_config" ] 677 public_configs = [ ":rtc_base_tests_utils_exported_config" ]
681 deps = [ 678 deps = [
682 ":rtc_base",
683 ":rtc_base_approved",
684 ":rtc_base_tests_utils", 679 ":rtc_base_tests_utils",
685 "../test:field_trial",
686 "../test:test_support",
687 ] 680 ]
688 public_deps = [ 681 public_deps = [
689 "//testing/gmock", 682 "//testing/gmock",
690 "//testing/gtest", 683 "//testing/gtest",
691 ] 684 ]
692 685
693 if (!build_with_chromium && is_clang) { 686 if (!build_with_chromium && is_clang) {
694 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 687 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
695 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 688 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
696 } 689 }
697 } 690 }
698 691
699 rtc_source_set("rtc_base_tests_utils") { 692 rtc_source_set("rtc_base_tests_utils") {
700 testonly = true 693 testonly = true
701 sources = [ 694 sources = [
702 # Also use this as a convenient dumping ground for misc files that are 695 # Also use this as a convenient dumping ground for misc files that are
703 # included by multiple targets below. 696 # included by multiple targets below.
704 "cpu_time.cc", 697 "cpu_time.cc",
705 "cpu_time.h", 698 "cpu_time.h",
706 "fakeclock.cc", 699 "fakeclock.cc",
707 "fakeclock.h", 700 "fakeclock.h",
708 "fakenetwork.h", 701 "fakenetwork.h",
709 "fakesslidentity.h", 702 "fakesslidentity.h",
710 "firewallsocketserver.cc", 703 "firewallsocketserver.cc",
711 "firewallsocketserver.h", 704 "firewallsocketserver.h",
712 "gunit.h", 705 "gunit.h",
713 "httpserver.cc", 706 "httpserver.cc",
714 "httpserver.h", 707 "httpserver.h",
715 "md5digest.cc",
716 "md5digest.h",
717 "memory_usage.cc", 708 "memory_usage.cc",
718 "memory_usage.h", 709 "memory_usage.h",
719 "natserver.cc", 710 "natserver.cc",
720 "natserver.h", 711 "natserver.h",
721 "natsocketfactory.cc", 712 "natsocketfactory.cc",
722 "natsocketfactory.h", 713 "natsocketfactory.h",
723 "nattypes.cc", 714 "nattypes.cc",
724 "nattypes.h", 715 "nattypes.h",
725 "proxyserver.cc", 716 "proxyserver.cc",
726 "proxyserver.h", 717 "proxyserver.h",
(...skipping 30 matching lines...) Expand all
757 "nullsocketserver_unittest.cc", 748 "nullsocketserver_unittest.cc",
758 "physicalsocketserver_unittest.cc", 749 "physicalsocketserver_unittest.cc",
759 "socket_unittest.cc", 750 "socket_unittest.cc",
760 "socket_unittest.h", 751 "socket_unittest.h",
761 "socketaddress_unittest.cc", 752 "socketaddress_unittest.cc",
762 "virtualsocket_unittest.cc", 753 "virtualsocket_unittest.cc",
763 ] 754 ]
764 deps = [ 755 deps = [
765 ":rtc_base", 756 ":rtc_base",
766 ":rtc_base_tests_main", 757 ":rtc_base_tests_main",
767 ":rtc_base_tests_utils",
768 "../system_wrappers:system_wrappers",
769 "../test:test_support",
770 "//testing/gtest", 758 "//testing/gtest",
771 ] 759 ]
772 if (is_win) { 760 if (is_win) {
773 sources += [ "win32socketserver_unittest.cc" ] 761 sources += [ "win32socketserver_unittest.cc" ]
774 } 762 }
775 763
776 if (!build_with_chromium && is_clang) { 764 if (!build_with_chromium && is_clang) {
777 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 765 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
778 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 766 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
779 } 767 }
(...skipping 26 matching lines...) Expand all
806 "pathutils_unittest.cc", 794 "pathutils_unittest.cc",
807 "platform_thread_unittest.cc", 795 "platform_thread_unittest.cc",
808 "random_unittest.cc", 796 "random_unittest.cc",
809 "rate_limiter_unittest.cc", 797 "rate_limiter_unittest.cc",
810 "rate_statistics_unittest.cc", 798 "rate_statistics_unittest.cc",
811 "ratetracker_unittest.cc", 799 "ratetracker_unittest.cc",
812 "refcountedobject_unittest.cc", 800 "refcountedobject_unittest.cc",
813 "safe_compare_unittest.cc", 801 "safe_compare_unittest.cc",
814 "string_to_number_unittest.cc", 802 "string_to_number_unittest.cc",
815 "stringencode_unittest.cc", 803 "stringencode_unittest.cc",
816 "stringize_macros_unittest.cc",
817 "stringutils_unittest.cc", 804 "stringutils_unittest.cc",
818 "swap_queue_unittest.cc", 805 "swap_queue_unittest.cc",
819 "thread_annotations_unittest.cc", 806 "thread_annotations_unittest.cc",
820 "thread_checker_unittest.cc", 807 "thread_checker_unittest.cc",
821 "timestampaligner_unittest.cc", 808 "timestampaligner_unittest.cc",
822 "timeutils_unittest.cc", 809 "timeutils_unittest.cc",
823 ] 810 ]
824 deps = [ 811 deps = [
825 ":rtc_base",
826 ":rtc_base_approved", 812 ":rtc_base_approved",
827 ":rtc_base_tests_main", 813 ":rtc_base_tests_main",
828 ":rtc_base_tests_utils",
829 ":rtc_task_queue",
830 "../system_wrappers:system_wrappers",
831 "../test:test_support",
832 ] 814 ]
833 if (!build_with_chromium && is_clang) { 815 if (!build_with_chromium && is_clang) {
834 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 816 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
835 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 817 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
836 } 818 }
837 } 819 }
838 820
839 rtc_source_set("rtc_task_queue_unittests") { 821 rtc_source_set("rtc_task_queue_unittests") {
840 testonly = true 822 testonly = true
841 sources = [ 823 sources = [
842 "sequenced_task_checker_unittest.cc", 824 "sequenced_task_checker_unittest.cc",
843 "task_queue_unittest.cc", 825 "task_queue_unittest.cc",
844 "weak_ptr_unittest.cc", 826 "weak_ptr_unittest.cc",
845 ] 827 ]
846 deps = [ 828 deps = [
847 ":rtc_base_tests_main", 829 ":rtc_base_tests_main",
848 ":rtc_base_tests_utils",
849 ":rtc_task_queue", 830 ":rtc_task_queue",
850 "../test:test_support",
851 ] 831 ]
852 if (!build_with_chromium && is_clang) { 832 if (!build_with_chromium && is_clang) {
853 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 833 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
854 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 834 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
855 } 835 }
856 } 836 }
857 837
858 rtc_source_set("rtc_numerics_unittests") { 838 rtc_source_set("rtc_numerics_unittests") {
859 testonly = true 839 testonly = true
860 sources = [ 840 sources = [
861 "numerics/exp_filter_unittest.cc", 841 "numerics/exp_filter_unittest.cc",
862 "numerics/percentile_filter_unittest.cc", 842 "numerics/percentile_filter_unittest.cc",
863 ] 843 ]
864 deps = [ 844 deps = [
865 ":rtc_base_approved",
866 ":rtc_base_tests_main", 845 ":rtc_base_tests_main",
867 ":rtc_numerics", 846 ":rtc_numerics",
868 "../test:test_support",
869 ] 847 ]
870 } 848 }
871 849
872 config("rtc_base_unittests_config") { 850 config("rtc_base_unittests_config") {
873 if (is_clang) { 851 if (is_clang) {
874 cflags = [ "-Wno-unused-const-variable" ] 852 cflags = [ "-Wno-unused-const-variable" ]
875 } 853 }
876 } 854 }
877 rtc_source_set("rtc_base_unittests") { 855 rtc_source_set("rtc_base_unittests") {
878 testonly = true 856 testonly = true
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 } 895 }
918 if (is_posix) { 896 if (is_posix) {
919 sources += [ 897 sources += [
920 "ssladapter_unittest.cc", 898 "ssladapter_unittest.cc",
921 "sslidentity_unittest.cc", 899 "sslidentity_unittest.cc",
922 "sslstreamadapter_unittest.cc", 900 "sslstreamadapter_unittest.cc",
923 ] 901 ]
924 } 902 }
925 deps = [ 903 deps = [
926 ":rtc_base_tests_main", 904 ":rtc_base_tests_main",
927 ":rtc_base_tests_utils",
928 "../test:test_support",
929 ] 905 ]
930 public_deps = [ 906 public_deps = [
931 ":rtc_base", 907 ":rtc_base",
932 ] 908 ]
933 configs += [ ":rtc_base_unittests_config" ] 909 configs += [ ":rtc_base_unittests_config" ]
934 if (!build_with_chromium && is_clang) { 910 if (!build_with_chromium && is_clang) {
935 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 911 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
936 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 912 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
937 } 913 }
938 } 914 }
939 } 915 }
940 916
941 if (is_android) { 917 if (is_android) {
942 android_library("base_java") { 918 android_library("base_java") {
943 java_files = [ 919 java_files = [
944 "java/src/org/webrtc/Logging.java", 920 "java/src/org/webrtc/Logging.java",
945 "java/src/org/webrtc/Size.java", 921 "java/src/org/webrtc/Size.java",
946 "java/src/org/webrtc/ThreadUtils.java", 922 "java/src/org/webrtc/ThreadUtils.java",
947 ] 923 ]
948 } 924 }
949 } 925 }
OLDNEW
« no previous file with comments | « .gn ('k') | webrtc/base/location.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698