diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-17 06:17:04 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-17 06:17:04 +0000 |
commit | e752af9e037d9dcf409190505ab904aee672b7aa (patch) | |
tree | 0a7e05af6437951001bb5302ff42e3b256393d4d /tools/grit | |
parent | 3bd77d47b5653209dfe032396e07953019e65c1e (diff) | |
download | chromium_src-e752af9e037d9dcf409190505ab904aee672b7aa.zip chromium_src-e752af9e037d9dcf409190505ab904aee672b7aa.tar.gz chromium_src-e752af9e037d9dcf409190505ab904aee672b7aa.tar.bz2 |
Run GRIT on all platforms.
* RCFLAGS may not exist in SCons environment. Use empty list if absent.
* Accumulate generated files in grit_files and run RES on win32 only.
Patch by Seo Sanghyeon <sanxiyn@gmail.com> originally from
http://codereview.chromium.org/7247/show
Review URL: http://codereview.chromium.org/7614
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3517 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/grit')
-rw-r--r-- | tools/grit/grit/scons.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/grit/grit/scons.py b/tools/grit/grit/scons.py index feea8f5..12516b0 100644 --- a/tools/grit/grit/scons.py +++ b/tools/grit/grit/scons.py @@ -41,7 +41,7 @@ def _Builder(target, source, env): builder = build.RcBuilder() # Get the CPP defines from the environment. - for flag in env['RCFLAGS']: + for flag in env.get('RCFLAGS', []): if flag.startswith('/D'): flag = flag[2:] name, val = build.ParseDefine(flag) |