diff options
author | noelallen@chromium.org <noelallen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-02 00:21:15 +0000 |
---|---|---|
committer | noelallen@chromium.org <noelallen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-02 00:21:15 +0000 |
commit | 384498bf064892e7cd0226b70f6d6c566038cfb4 (patch) | |
tree | 149635b5c3db19c6392a5ac47c8289b98a088f96 /ppapi/generators | |
parent | f1ff29a5b2e74743f51ddf41794083ac72b1aaa8 (diff) | |
download | chromium_src-384498bf064892e7cd0226b70f6d6c566038cfb4.zip chromium_src-384498bf064892e7cd0226b70f6d6c566038cfb4.tar.gz chromium_src-384498bf064892e7cd0226b70f6d6c566038cfb4.tar.bz2 |
Fix generation of Single version IDL for SDK
When branching, if a new Interface has not been created with the new
branch number, the IDL will report a failure to generate. We should
instead produce the previous set of headers, but update the version
macro in pp_macros.h
BUG=158980
TBR=sehr@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11275112
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165572 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/generators')
-rwxr-xr-x | ppapi/generators/idl_generator.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ppapi/generators/idl_generator.py b/ppapi/generators/idl_generator.py index e3676153..bd30217 100755 --- a/ppapi/generators/idl_generator.py +++ b/ppapi/generators/idl_generator.py @@ -107,6 +107,16 @@ class Generator(object): releasestr = ast.releases[0] if releasestr == 'end': releasestr = ast.releases[-1] + + if releasestr > ast.releases[0]: + InfoOut.Log('There is no unique release for %s, using last release.' % + releasestr) + releasestr = ast.releases[-1] + + if releasestr not in ast.releases: + self.Error('Release %s not in [%s].' % + (releasestr, ', '.join(ast.releases))) + if releasestr: InfoOut.Log('Generate release %s of %s.' % (releasestr, self.name)) ret = self.GenerateRelease(ast, releasestr, options) |