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

Unified Diff: build/config/mac/rules.gni

Issue 1890263002: [iOS/Mac/GN] Hoist the public_configs for a framework bundle into the base template. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/ios/rules.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/mac/rules.gni
diff --git a/build/config/mac/rules.gni b/build/config/mac/rules.gni
index 4e9ea68fa1e7708009c4f746885b2f3be561a348..9ab140ed5a7792795ef42dad4eb99667ec968895 100644
--- a/build/config/mac/rules.gni
+++ b/build/config/mac/rules.gni
@@ -74,6 +74,18 @@ template("framework_bundle") {
]
}
+ _framework_public_config = _target_name + "_public_config"
+ config(_framework_public_config) {
+ # TODO(sdefresne): should we have a framework_dirs similar to lib_dirs
sdefresne 2016/04/18 09:02:58 nit: can you add visibility? visibility = [ ":$_f
Robert Sesek 2016/04/18 15:13:09 Done.
+ # and include_dirs to avoid duplicate values on the command-line.
+ common_flags = [ "-F" + rebase_path("$root_out_dir/.", root_out_dir) ]
+ cflags_objc = common_flags
+ cflags_objcc = common_flags
+ ldflags = common_flags
+ lib_dirs = [ root_out_dir ]
+ libs = [ _framework_name ]
+ }
+
create_bundle(_framework_target) {
forward_variables_from(invoker,
[
@@ -94,6 +106,11 @@ template("framework_bundle") {
}
public_deps += [ ":$_shared_library_bundle_data" ]
+ if (!defined(public_configs)) {
sdefresne 2016/04/18 09:02:58 You do not forward the public_configs in "forward_
Robert Sesek 2016/04/18 15:13:09 Done.
+ public_configs = []
+ }
+ public_configs += [ ":$_framework_public_config" ]
+
bundle_root_dir = _framework_root_dir
bundle_resources_dir = "$bundle_root_dir/Resources"
bundle_executable_dir = "$bundle_root_dir"
« no previous file with comments | « build/config/ios/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698