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

Unified Diff: grit/node/misc.py

Issue 691873002: Add support to override output_all_resource_defines from command line. (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n.git@master
Patch Set: Created 6 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/tool/build.py » ('j') | grit/tool/build.py » ('J')
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 9a23263d6074077908a49816008c12ccceea35e2..64c469063dc8980f969ee09ecdcfc891e0e43052 100755
--- a/grit/node/misc.py
+++ b/grit/node/misc.py
@@ -292,6 +292,11 @@ class GritNode(base.Node):
"""
return self.attrs['base_dir']
+ def SetShouldOutputAllResourceDefines(self, value):
+ """Overrides the value of output_all_resource_defines found in the grd file.
+ """
+ self.attrs['output_all_resource_defines'] = 'true' if value else 'false'
+
def ShouldOutputAllResourceDefines(self):
"""Returns true if all resource defines should be output, false if
defines for resources not emitted to resource files should be
« no previous file with comments | « no previous file | grit/tool/build.py » ('j') | grit/tool/build.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698