Chromium Code Reviews| Index: chrome/browser/resources/settings/BUILD.gn |
| diff --git a/chrome/browser/resources/settings/BUILD.gn b/chrome/browser/resources/settings/BUILD.gn |
| index 8a905acd624b42b856ac872fbbd30a45ccd07e7f..5bc5ff9f338cfd34786218ec52b3650748829eba 100644 |
| --- a/chrome/browser/resources/settings/BUILD.gn |
| +++ b/chrome/browser/resources/settings/BUILD.gn |
| @@ -3,17 +3,27 @@ import("//tools/grit/grit_rule.gni") |
| import("//chrome/common/features.gni") |
| vulcanized_unbuilt = "vulcanized.unbuilt.html" |
| +settings_pak_file = "settings_resources.pak" |
| +unpack_pak_folder = "settings_resources.unpak" |
|
Dan Beam
2017/03/10 00:10:32
nit: unpack_pak -> unpak everywhere? ;)
dpapad
2017/03/10 01:42:31
Done (except from renaming unpack_pak.py itself).
|
| vulcanize("vulcanize") { |
| host = "md-settings" |
| html_in_file = "settings.html" |
| html_out_file = vulcanized_unbuilt |
| insert_in_head = "<base href=\"chrome://\$i18n{hostname}\">" |
| - input = rebase_path(root_gen_dir, root_build_dir) + |
| - "/chrome/browser/resources/settings/settings_resources.pak" |
| + input = rebase_path("$target_gen_dir/$unpack_pak_folder", root_build_dir) |
| js_out_file = "crisper.js" |
| deps = [ |
| + ":unpack", |
| + ] |
| +} |
| + |
| +unpack_pak("unpack") { |
| + pak_file = settings_pak_file |
| + out_folder = unpack_pak_folder |
| + |
| + deps = [ |
| ":flattened_resources", |
| ] |
| } |
| @@ -35,7 +45,7 @@ grit("flattened_resources") { |
| "grit/settings_resources.h", |
| "grit/settings_resources_map.cc", |
| "grit/settings_resources_map.h", |
| - "settings_resources.pak", |
| + settings_pak_file, |
| ] |
| output_dir = "$root_gen_dir/chrome/browser/resources/settings" |
| } |