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

Unified Diff: tools/grit/grit_rule.gni

Issue 2690263004: Add option to GRIT to provide a resource ordering input file. (Closed)
Patch Set: Removed Mac resource ordering file. 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
« tools/grit/grit/tool/build.py ('K') | « tools/grit/grit/tool/build.py ('k') | no next file » | 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 00dd9258ec2077984a0c104fb4cd7d52246a6bb3..eab19564c1f2da85397b17c93305660e768585c0 100644
--- a/tools/grit/grit_rule.gni
+++ b/tools/grit/grit_rule.gni
@@ -249,6 +249,11 @@ _js_minifier = "//third_party/closure_compiler/js_minify.py"
grit_resource_id_file = "//tools/gritsettings/resource_ids"
grit_info_script = "//tools/grit/grit_info.py"
+grit_predetermined_resource_ids_file = ""
+
+# TODO(asvitkine): Add platform-specific resource id file paths here.
+# http://crbug.com/692670
+
template("grit") {
assert(defined(invoker.source),
"\"source\" must be defined for the grit template $target_name")
@@ -301,6 +306,12 @@ template("grit") {
rebase_path(resource_ids, root_build_dir),
]
}
+ if (grit_predetermined_resource_ids_file != "") {
+ grit_flags += [
+ "-p",
+ rebase_path(grit_predetermined_resource_ids_file, root_build_dir),
+ ]
+ }
if (defined(invoker.source_is_generated)) {
source_is_generated = invoker.source_is_generated
« tools/grit/grit/tool/build.py ('K') | « tools/grit/grit/tool/build.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698