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

Unified Diff: ppapi/generators/idl_c_header.py

Issue 10356116: Add "libraries" directory to SDK (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « native_client_sdk/src/build_tools/build_sdk.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/idl_c_header.py
===================================================================
--- ppapi/generators/idl_c_header.py (revision 136360)
+++ ppapi/generators/idl_c_header.py (working copy)
@@ -7,6 +7,7 @@
import glob
import os
+import re
import sys
from idl_log import ErrOut, InfoOut, WarnOut
@@ -172,6 +173,15 @@
if include == cur_include: continue
out.Write('#include "%s"\n' % include)
+ # If we are generating a single release, then create a macro for the highest
dmichael (off chromium) 2012/05/10 22:33:58 What do you mean by single release here?
noelallen1 2012/05/11 18:07:27 Only when you use --release=M21, so not standard C
+ # available release number.
+ if filenode.GetProperty('NAME').endswith('pp_macros.idl'):
+ releasestr = GetOption('release')
+ if releasestr:
+ release_numbers = re.findall('\d+', releasestr)
+ if release_numbers:
+ out.Write('\n#define PPAPI_RELEASE %s\n' % release_numbers[0])
dmichael (off chromium) 2012/05/10 22:33:58 This sounds like a good idea. Are you going to upd
noelallen1 2012/05/11 18:07:27 No, see above. Looks like: /* Copyright (c) 2012
+
# Generate all interface defines
out.Write('\n')
for node in filenode.GetListOf('Interface'):
« no previous file with comments | « native_client_sdk/src/build_tools/build_sdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698