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

Unified Diff: grit/node/misc.py

Issue 1396493003: Include included files in depfiles. (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | grit/node/misc_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/node/misc.py
diff --git a/grit/node/misc.py b/grit/node/misc.py
index 1003b877548e243a4b8a8f9ddf9f3742c1aced04..bd999709bdc58275e36997797f30b997391f87f1 100755
--- a/grit/node/misc.py
+++ b/grit/node/misc.py
@@ -336,8 +336,10 @@ class GritNode(base.Node):
input_files.add(self.ToRealPath(input_path))
# If it's a flattened node, grab inlined resources too.
- if node.name == 'structure' and node.attrs['flattenhtml'] == 'true':
- node.RunPreSubstitutionGatherer()
+ if ((node.name == 'structure' or node.name == 'include')
+ and node.attrs['flattenhtml'] == 'true'):
+ if node.name == 'structure':
+ node.RunPreSubstitutionGatherer()
input_files.update(node.GetHtmlResourceFilenames())
self.SetOutputLanguage(old_output_language)
« no previous file with comments | « no previous file | grit/node/misc_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698