Index: ios/web/shell/BUILD.gn |
diff --git a/ios/web/shell/BUILD.gn b/ios/web/shell/BUILD.gn |
index a65c0af1ff228429012c7483f611f6bb3895a6e4..077c8e47cc911f4483c86c05b64e5a98c3fb42d6 100644 |
--- a/ios/web/shell/BUILD.gn |
+++ b/ios/web/shell/BUILD.gn |
@@ -23,17 +23,24 @@ app("ios_web_shell") { |
"-Xlinker", |
"2", |
] |
+} |
+ |
+bundle_data_xib("main_view_bundle_data") { |
+ visibility = [ ":shell" ] |
+ source = "MainView.xib" |
+} |
- # TODO(crbug.com/546283): once gn supports bundle resources, add support for |
- # the following gyp code: |
- # |
- # 'mac_bundle_resources': [ |
- # 'shell/Default.png', |
- # 'shell/MainView.xib', |
- # 'shell/textfield_background@2x.png', |
- # 'shell/toolbar_back@2x.png', |
- # 'shell/toolbar_forward@2x.png', |
- # ], |
+bundle_data("shell_bundle_data") { |
+ visibility = [ ":shell" ] |
+ sources = [ |
+ "Default.png", |
+ "textfield_background@2x.png", |
+ "toolbar_back@2x.png", |
+ "toolbar_forward@2x.png", |
+ ] |
+ outputs = [ |
+ "{{bundle_resources_dir}}/{{source_file_part}}", |
+ ] |
} |
source_set("shell") { |
@@ -57,6 +64,8 @@ source_set("shell") { |
] |
deps = [ |
+ ":main_view_bundle_data", |
+ ":shell_bundle_data", |
"//base", |
"//ios/web", |
"//ios/web/public/app", |