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

Unified Diff: webrtc/build/webrtc.gni

Issue 2300413002: GN Templates: Move common_config to the template. (Closed)
Patch Set: This might be it. 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/build/webrtc.gni
diff --git a/webrtc/build/webrtc.gni b/webrtc/build/webrtc.gni
index 26752ca3f5686f62a81d3b35e674503519800dea..ca5e7fcee2baf689091c03bfd4d30ef2b8fd64d0 100644
--- a/webrtc/build/webrtc.gni
+++ b/webrtc/build/webrtc.gni
@@ -161,27 +161,29 @@ rtc_opus_dir = "//third_party/opus"
# different subdirectories.
webrtc_root = get_path_info("../", "abspath")
+rtc_common_config = webrtc_root + ":common_config"
kjellander_webrtc 2016/09/05 06:50:28 Let's document this one properly. Something like t
+
# Common configs to remove or add in all rtc targets.
rtc_remove_configs = []
-rtc_add_configs = []
+rtc_add_configs = [ rtc_common_config ]
set_defaults("rtc_test") {
- configs = []
+ configs = rtc_add_configs
suppressed_configs = []
}
set_defaults("rtc_source_set") {
- configs = []
+ configs = rtc_add_configs
suppressed_configs = []
}
set_defaults("rtc_executable") {
- configs = []
+ configs = rtc_add_configs
suppressed_configs = []
}
set_defaults("rtc_static_library") {
- configs = []
+ configs = rtc_add_configs
suppressed_configs = []
}
@@ -194,7 +196,6 @@ template("rtc_test") {
"suppressed_configs",
])
configs += invoker.configs
- configs += rtc_add_configs
configs -= rtc_remove_configs
configs -= invoker.suppressed_configs
}
@@ -209,7 +210,6 @@ template("rtc_source_set") {
"suppressed_configs",
])
configs += invoker.configs
- configs += rtc_add_configs
configs -= rtc_remove_configs
configs -= invoker.suppressed_configs
}
@@ -225,7 +225,6 @@ template("rtc_executable") {
"suppressed_configs",
])
configs += invoker.configs
- configs += rtc_add_configs
configs -= rtc_remove_configs
configs -= invoker.suppressed_configs
deps = [
@@ -244,7 +243,6 @@ template("rtc_static_library") {
"suppressed_configs",
])
configs += invoker.configs
- configs += rtc_add_configs
configs -= rtc_remove_configs
configs -= invoker.suppressed_configs
}
« no previous file with comments | « webrtc/base/BUILD.gn ('k') | webrtc/call/BUILD.gn » ('j') | webrtc/examples/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698