Index: build/secondary/tools/grit/grit_rule.gni |
diff --git a/build/secondary/tools/grit/grit_rule.gni b/build/secondary/tools/grit/grit_rule.gni |
index 5d3b1e44357ed5a2f6b4fa91e48587c804b10439..117ef9ba6ec293cba419d186ad3da8a0014ac146 100644 |
--- a/build/secondary/tools/grit/grit_rule.gni |
+++ b/build/secondary/tools/grit/grit_rule.gni |
@@ -299,11 +299,14 @@ template("grit") { |
assert(defined(invoker.source), |
"\"source\" must be defined for the grit template $target_name") |
+ grit_inputs = [ invoker.source ] |
+ |
if (defined(invoker.resource_ids)) { |
resource_ids = invoker.resource_ids |
} else { |
resource_ids = grit_resource_id_file |
} |
+ grit_inputs += [ resource_ids ] # Script depends on ID file. |
if (defined(invoker.output_dir)) { |
output_dir = invoker.output_dir |
@@ -331,8 +334,6 @@ template("grit") { |
grit_flags = [] # These are optional so default to empty list. |
} |
- grit_inputs = [ invoker.source ] |
- |
assert_files_flags = [] |
# We want to make sure the declared outputs actually match what Grit is |