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

Unified Diff: tools/grit/grit_rule.gni

Issue 2175413004: Enable whitelist generation for all builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + change output dir Created 4 years, 4 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 | « tools/grit/grit/format/repack.py ('k') | tools/grit/repack.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit_rule.gni
diff --git a/tools/grit/grit_rule.gni b/tools/grit/grit_rule.gni
index d314e9b82a60b00c8e3fff8b22e12dd84e0410e4..d1207ad63e5f0eb641a95686d8681779834d7bb9 100644
--- a/tools/grit/grit_rule.gni
+++ b/tools/grit/grit_rule.gni
@@ -85,10 +85,14 @@ import("//build/config/ui.gni")
import("//third_party/closure_compiler/closure_args.gni")
declare_args() {
- # Enables used resource whitelist generation.
- enable_resource_whitelist_generation = false
+ # Enables used resource whitelist generation. Set for official builds only
+ # as a large amount of build output is generated.
+ enable_resource_whitelist_generation = is_android && is_official_build
}
+assert(!enable_resource_whitelist_generation || is_android,
+ "resource whitelist generation only works on android")
+
grit_defines = []
# Mac and iOS want Title Case strings.
« no previous file with comments | « tools/grit/grit/format/repack.py ('k') | tools/grit/repack.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698