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

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

Issue 2301053002: GN: Introduce templates. (Closed)
Patch Set: Rebase Created 4 years, 3 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/build/webrtc.gni » ('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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 if (!rtc_build_ssl) { 84 if (!rtc_build_ssl) {
85 config("external_ssl_library") { 85 config("external_ssl_library") {
86 assert(rtc_ssl_root != "", 86 assert(rtc_ssl_root != "",
87 "You must specify rtc_ssl_root when rtc_build_ssl==0.") 87 "You must specify rtc_ssl_root when rtc_build_ssl==0.")
88 include_dirs = [ rtc_ssl_root ] 88 include_dirs = [ rtc_ssl_root ]
89 } 89 }
90 } 90 }
91 91
92 # The subset of rtc_base approved for use outside of libjingle. 92 # The subset of rtc_base approved for use outside of libjingle.
93 static_library("rtc_base_approved") { 93 rtc_static_library("rtc_base_approved") {
94 defines = [] 94 defines = []
95 libs = [] 95 libs = []
96 deps = [] 96 deps = []
97 configs += [ "..:common_config" ] 97 configs += [ "..:common_config" ]
98 public_configs = [ "..:common_inherited_config" ] 98 public_configs = [ "..:common_inherited_config" ]
99 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] 99 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ]
100 100
101 sources = [ 101 sources = [
102 "array_view.h", 102 "array_view.h",
103 "atomicops.h", 103 "atomicops.h",
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 "logging.h", 191 "logging.h",
192 "logging_mac.mm", 192 "logging_mac.mm",
193 ] 193 ]
194 } 194 }
195 } 195 }
196 196
197 config("enable_libevent_config") { 197 config("enable_libevent_config") {
198 defines = [ "WEBRTC_BUILD_LIBEVENT" ] 198 defines = [ "WEBRTC_BUILD_LIBEVENT" ]
199 } 199 }
200 200
201 static_library("rtc_task_queue") { 201 rtc_static_library("rtc_task_queue") {
202 public_deps = [ 202 public_deps = [
203 ":rtc_base_approved", 203 ":rtc_base_approved",
204 ] 204 ]
205 configs += [ "..:common_config" ] 205 configs += [ "..:common_config" ]
206 206
207 sources = [ 207 sources = [
208 "sequenced_task_checker.h", 208 "sequenced_task_checker.h",
209 "sequenced_task_checker_impl.cc", 209 "sequenced_task_checker_impl.cc",
210 "sequenced_task_checker_impl.h", 210 "sequenced_task_checker_impl.h",
211 ] 211 ]
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 if (is_win && is_clang) { 251 if (is_win && is_clang) {
252 cflags = [ 252 cflags = [
253 # Disable warnings failing when compiling with Clang on Windows. 253 # Disable warnings failing when compiling with Clang on Windows.
254 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 254 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
255 "-Wno-sign-compare", 255 "-Wno-sign-compare",
256 "-Wno-missing-braces", 256 "-Wno-missing-braces",
257 ] 257 ]
258 } 258 }
259 } 259 }
260 260
261 static_library("rtc_base") { 261 rtc_static_library("rtc_base") {
262 cflags = [] 262 cflags = []
263 cflags_cc = [] 263 cflags_cc = []
264 libs = [] 264 libs = []
265 deps = [ 265 deps = [
266 "..:webrtc_common", 266 "..:webrtc_common",
267 ] 267 ]
268 public_deps = [ 268 public_deps = [
269 ":rtc_base_approved", 269 ":rtc_base_approved",
270 ] 270 ]
271 271
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 "timing.cc", 421 "timing.cc",
422 "timing.h", 422 "timing.h",
423 "urlencode.cc", 423 "urlencode.cc",
424 "urlencode.h", 424 "urlencode.h",
425 "worker.cc", 425 "worker.cc",
426 "worker.h", 426 "worker.h",
427 ] 427 ]
428 428
429 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default 429 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default
430 # compiler settings. 430 # compiler settings.
431 configs -= [ "//build/config/compiler:chromium_code" ] 431 suppressed_configs += [ "//build/config/compiler:chromium_code" ]
432 configs += [ "//build/config/compiler:no_chromium_code" ] 432 configs += [ "//build/config/compiler:no_chromium_code" ]
433 if (!is_win) { 433 if (!is_win) {
434 cflags += [ "-Wno-uninitialized" ] 434 cflags += [ "-Wno-uninitialized" ]
435 } 435 }
436 436
437 if (build_with_chromium) { 437 if (build_with_chromium) {
438 if (is_win) { 438 if (is_win) {
439 sources += [ "../../webrtc_overrides/webrtc/base/win32socketinit.cc" ] 439 sources += [ "../../webrtc_overrides/webrtc/base/win32socketinit.cc" ]
440 } 440 }
441 441
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 ] 674 ]
675 } 675 }
676 676
677 if (is_nacl) { 677 if (is_nacl) {
678 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] 678 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
679 defines += [ "timezone=_timezone" ] 679 defines += [ "timezone=_timezone" ]
680 sources -= [ "ifaddrs_converter.cc" ] 680 sources -= [ "ifaddrs_converter.cc" ]
681 } 681 }
682 if (is_win && is_clang) { 682 if (is_win && is_clang) {
683 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 683 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
684 configs -= [ "//build/config/clang:find_bad_constructs" ] 684 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
685 } 685 }
686 } 686 }
687 687
688 source_set("gtest_prod") { 688 rtc_source_set("gtest_prod") {
689 sources = [ 689 sources = [
690 "gtest_prod_util.h", 690 "gtest_prod_util.h",
691 ] 691 ]
692 } 692 }
693 693
694 if (rtc_include_tests) { 694 if (rtc_include_tests) {
695 config("rtc_base_tests_utils_exported_config") { 695 config("rtc_base_tests_utils_exported_config") {
696 defines = [ "GTEST_RELATIVE_PATH" ] 696 defines = [ "GTEST_RELATIVE_PATH" ]
697 } 697 }
698 698
699 config("rtc_base_tests_utils_warnings_config") { 699 config("rtc_base_tests_utils_warnings_config") {
700 if (is_win && is_clang) { 700 if (is_win && is_clang) {
701 cflags = [ 701 cflags = [
702 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6270 702 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6270
703 "-Wno-reorder", 703 "-Wno-reorder",
704 "-Wno-sign-compare", 704 "-Wno-sign-compare",
705 ] 705 ]
706 } 706 }
707 } 707 }
708 708
709 source_set("rtc_base_tests_utils") { 709 rtc_source_set("rtc_base_tests_utils") {
710 testonly = true 710 testonly = true
711 sources = [ 711 sources = [
712 # Also use this as a convenient dumping ground for misc files that are 712 # Also use this as a convenient dumping ground for misc files that are
713 # included by multiple targets below. 713 # included by multiple targets below.
714 "fakeclock.cc", 714 "fakeclock.cc",
715 "fakeclock.h", 715 "fakeclock.h",
716 "fakenetwork.h", 716 "fakenetwork.h",
717 "fakesslidentity.h", 717 "fakesslidentity.h",
718 "faketaskrunner.h", 718 "faketaskrunner.h",
719 "gunit.h", 719 "gunit.h",
(...skipping 16 matching lines...) Expand all
736 ":rtc_base", 736 ":rtc_base",
737 "../test:field_trial", 737 "../test:field_trial",
738 "../test:test_support", 738 "../test:test_support",
739 ] 739 ]
740 public_deps = [ 740 public_deps = [
741 "//testing/gtest", 741 "//testing/gtest",
742 ] 742 ]
743 743
744 if (is_clang) { 744 if (is_clang) {
745 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 745 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
746 configs -= [ "//build/config/clang:find_bad_constructs" ] 746 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
747 } 747 }
748 } 748 }
749 } 749 }
750 750
751 if (is_android) { 751 if (is_android) {
752 android_library("base_java") { 752 android_library("base_java") {
753 java_files = [ 753 java_files = [
754 "java/src/org/webrtc/Logging.java", 754 "java/src/org/webrtc/Logging.java",
755 "java/src/org/webrtc/Size.java", 755 "java/src/org/webrtc/Size.java",
756 "java/src/org/webrtc/ThreadUtils.java", 756 "java/src/org/webrtc/ThreadUtils.java",
757 ] 757 ]
758 758
759 deps = [ 759 deps = [
760 "//base:base_java", 760 "//base:base_java",
761 ] 761 ]
762 } 762 }
763 } 763 }
OLDNEW
« no previous file with comments | « webrtc/audio/BUILD.gn ('k') | webrtc/build/webrtc.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698