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

Unified Diff: webrtc/build/webrtc.gni

Issue 2325603002: GN Templates: Introduce rtc_shared_library (Closed)
Patch Set: 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
« no previous file with comments | « webrtc/api/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/build/webrtc.gni
diff --git a/webrtc/build/webrtc.gni b/webrtc/build/webrtc.gni
index eabdeb20e6c52dcc2c17a7768a1fea71f4bc05cb..01670748b4f00417e050bbe995fcc84f322448cb 100644
--- a/webrtc/build/webrtc.gni
+++ b/webrtc/build/webrtc.gni
@@ -205,6 +205,11 @@ set_defaults("rtc_static_library") {
suppressed_configs = []
}
+set_defaults("rtc_shared_library") {
+ configs = rtc_add_configs
+ suppressed_configs = []
+}
+
template("rtc_test") {
test(target_name) {
forward_variables_from(invoker,
@@ -285,3 +290,22 @@ template("rtc_static_library") {
}
}
}
+
+template("rtc_shared_library") {
+ shared_library(target_name) {
+ forward_variables_from(invoker,
+ "*",
+ [
+ "configs",
+ "public_configs",
+ "suppressed_configs",
+ ])
+ configs += invoker.configs
+ configs -= rtc_remove_configs
+ configs -= invoker.suppressed_configs
+ public_configs = [ rtc_common_inherited_config ]
+ if (defined(invoker.public_configs)) {
+ public_configs += invoker.public_configs
+ }
+ }
+}
« no previous file with comments | « webrtc/api/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698