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

Unified Diff: chrome/browser/resources/settings/BUILD.gn

Issue 2573943002: WebUI: Vulcanize MD Settings at compile time. (Closed)
Patch Set: Rebase Created 3 years, 10 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 | « chrome/browser/resources/BUILD.gn ('k') | chrome/browser/resources/settings/about_page/about_page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/BUILD.gn
diff --git a/chrome/browser/resources/settings/BUILD.gn b/chrome/browser/resources/settings/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..8a905acd624b42b856ac872fbbd30a45ccd07e7f
--- /dev/null
+++ b/chrome/browser/resources/settings/BUILD.gn
@@ -0,0 +1,41 @@
+import("../vulcanize.gni")
+import("//tools/grit/grit_rule.gni")
+import("//chrome/common/features.gni")
+
+vulcanized_unbuilt = "vulcanized.unbuilt.html"
+
+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"
+ js_out_file = "crisper.js"
+
+ deps = [
+ ":flattened_resources",
+ ]
+}
+
+polymer_css_build("build") {
+ input_files = [ vulcanized_unbuilt ]
+ output_files = [ "vulcanized.html" ]
+ deps = [
+ ":vulcanize",
+ ]
+}
+
+grit("flattened_resources") {
+ source = "settings_resources.grd"
+
+ # TODO(thestig): use_qualified_include = true
+ defines = chrome_grit_defines
+ outputs = [
+ "grit/settings_resources.h",
+ "grit/settings_resources_map.cc",
+ "grit/settings_resources_map.h",
+ "settings_resources.pak",
+ ]
+ output_dir = "$root_gen_dir/chrome/browser/resources/settings"
+}
« no previous file with comments | « chrome/browser/resources/BUILD.gn ('k') | chrome/browser/resources/settings/about_page/about_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698