diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-29 23:30:48 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-29 23:30:48 +0000 |
commit | 9a2bba4ed0996b8bc9f8dab235ad83af3f155948 (patch) | |
tree | 487f654fefd45a044c03bce146eb0bbf3fac8288 /webkit/build | |
parent | 6968c4e063dce2e6befb5db3f67680d64e26c183 (diff) | |
download | chromium_src-9a2bba4ed0996b8bc9f8dab235ad83af3f155948.zip chromium_src-9a2bba4ed0996b8bc9f8dab235ad83af3f155948.tar.gz chromium_src-9a2bba4ed0996b8bc9f8dab235ad83af3f155948.tar.bz2 |
Have the V8BindingsEmitter handle when the source .idl file doesn't exist.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/build')
-rw-r--r-- | webkit/build/port/SConscript | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/build/port/SConscript b/webkit/build/port/SConscript index b503255..b53b8c1 100644 --- a/webkit/build/port/SConscript +++ b/webkit/build/port/SConscript @@ -96,7 +96,11 @@ bindings_perl_modules = env.Glob('$BINDINGS_SCRIPTS_DIR/*.pm') def BindingsEmitter(target, source, env):
- idl_contents = open(source[0].rfile().abspath, 'r').read()
+ source.append('$BINDINGS_SCRIPT')
+ try:
+ idl_contents = open(source[0].rfile().abspath, 'r').read()
+ except EnvironmentError:
+ return target, source
idl_contents = re.sub('//[^\\n]*\\n', '', idl_contents)
interfaces = re.findall('interface\\s*(?:\\[[^]]+\\])?\\s*'
'(\\w+)[^{]*[{]', idl_contents)
@@ -107,7 +111,6 @@ def BindingsEmitter(target, source, env): new_target.extend([new_cpp, new_h])
env.Depends(new_cpp, bindings_perl_modules)
env.Depends(new_h, bindings_perl_modules)
- source.append('$BINDINGS_SCRIPT')
return new_target, source
|