Index: build/config/ios/rules.gni |
diff --git a/build/config/ios/rules.gni b/build/config/ios/rules.gni |
index 144916ca03e3a764ce7221c82fb198d8bde2d4f0..7f808eca97adbe2166005da17eb63e0c36ead093 100644 |
--- a/build/config/ios/rules.gni |
+++ b/build/config/ios/rules.gni |
@@ -848,6 +848,7 @@ template("ios_framework_bundle") { |
visibility = [ |
":$_target_name$_toolchain_suffix", |
":$_target_name+link$_toolchain_suffix", |
+ ":$_target_name+bundle$_toolchain_suffix", |
] |
configs += [ ":$_headers_map_config$_toolchain_suffix" ] |
@@ -892,6 +893,25 @@ template("ios_framework_bundle") { |
] |
} |
} |
+ |
+ if (!_is_fat_build || _is_fat_build_main_target) { |
justincohen
2016/07/21 18:34:51
I'm seeing `!_is_fat_build || _is_fat_build_main_t
|
+ bundle_data(_target_name + "+bundle") { |
+ forward_variables_from(invoker, |
+ [ |
+ "testonly", |
+ "visibility", |
+ ]) |
+ public_deps = [ |
+ ":$_framework_target", |
+ ] |
+ sources = [ |
+ "$root_out_dir/$_output_name.framework", |
+ ] |
+ outputs = [ |
+ "{{bundle_resources_dir}}/Frameworks/$_output_name.framework", |
+ ] |
+ } |
+ } |
} |
set_defaults("ios_framework_bundle") { |