summaryrefslogtreecommitdiffstats
path: root/tools/grit
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 21:48:04 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 21:48:04 +0000
commit2ce95ef06f6439da3e0d5722d1f50eeb05c94684 (patch)
treeadfe412f44acc44dfddbaef1fda66afc00065677 /tools/grit
parent55150c49fc13a00944360b803cec2b6598585b54 (diff)
downloadchromium_src-2ce95ef06f6439da3e0d5722d1f50eeb05c94684.zip
chromium_src-2ce95ef06f6439da3e0d5722d1f50eeb05c94684.tar.gz
chromium_src-2ce95ef06f6439da3e0d5722d1f50eeb05c94684.tar.bz2
Fix scons build where the internal theme files don't exist.
Review URL: http://codereview.chromium.org/28218 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10515 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/grit')
-rw-r--r--tools/grit/grit/scons.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/grit/grit/scons.py b/tools/grit/grit/scons.py
index 849e537..66d2771 100644
--- a/tools/grit/grit/scons.py
+++ b/tools/grit/grit/scons.py
@@ -147,7 +147,12 @@ def _Scanner(file_node, env, path):
node.parent.name == 'translations')):
files.append(os.path.abspath(node.GetFilePath()))
elif node.name == 'include':
- files.append(node.FilenameToOpen())
+ # We depend on all resources specified in the grd file. However, some
+ # files are only used by official builds and aren't in the public
+ # repository (e.g., the Google Chrome logo). If the file doesn't exist,
+ # just don't add it to the file dependencies.
+ if os.path.exists(node.FilenameToOpen()):
+ files.append(node.FilenameToOpen())
# Add in the grit source files. If one of these change, we want to re-run
# grit.