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

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

Issue 2573943002: WebUI: Vulcanize MD Settings at compile time. (Closed)
Patch Set: Nit 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
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..45cc80d12f828fe0ab85d9bc885d20c106dd2440
--- /dev/null
+++ b/chrome/browser/resources/settings/BUILD.gn
@@ -0,0 +1,31 @@
+import("../vulcanize.gni")
+import("//tools/grit/grit_rule.gni")
+import("//chrome/common/features.gni")
+
+vulcanize("vulcanize") {
+ host = "md-settings"
+ html_in_file = "settings.html"
+ html_out_file = "vulcanized.html"
+ 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",
+ ]
+}
+
+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"
+}

Powered by Google App Engine
This is Rietveld 408576698