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

Unified Diff: chrome/browser/resources/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/BUILD.gn
diff --git a/chrome/browser/resources/BUILD.gn b/chrome/browser/resources/BUILD.gn
index c8edb250ebac5dc12eb76b18b214a977d52139fe..e6a122a354ab421204002b7a747e27cea0679a3a 100644
--- a/chrome/browser/resources/BUILD.gn
+++ b/chrome/browser/resources/BUILD.gn
@@ -94,7 +94,18 @@ if (!is_ios) {
}
grit("settings_resources") {
- source = "settings/settings_resources.grd"
+ if (use_vulcanize) {
+ source = "settings/settings_resources_vulcanized.grd"
+ deps = [
+ "//chrome/browser/resources/settings:vulcanize",
+ ]
+ grit_flags = [
+ "-E",
+ "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
+ ]
+ } else {
+ source = "settings/settings_resources.grd"
+ }
# TODO(thestig): use_qualified_include = true
defines = chrome_grit_defines

Powered by Google App Engine
This is Rietveld 408576698