diff options
author | mseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-21 23:36:05 +0000 |
---|---|---|
committer | mseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-21 23:36:05 +0000 |
commit | f8a4a8ed5ff92b21f4e02b24db537ba37632e517 (patch) | |
tree | 6e0e22bc35627f9c750778b63a9f061bbc3ebb20 /ppapi/generators/idl_gen_wrapper.py | |
parent | d1c25560ce84c4158bf13b9344b227af1d590a11 (diff) | |
download | chromium_src-f8a4a8ed5ff92b21f4e02b24db537ba37632e517.zip chromium_src-f8a4a8ed5ff92b21f4e02b24db537ba37632e517.tar.gz chromium_src-f8a4a8ed5ff92b21f4e02b24db537ba37632e517.tar.bz2 |
PNaCl: Build a PPAPI shims library on all architectures
Before, the shims library was only built on x86-64. We change it to
build on x86-32 and ARM too, where we define _pnacl_wrapper_start() to
be a trivial wrapper which immediately calls the user code's _start()
function.
This will mean we won't need an conditional for x86-64 in the
translators.
Since Gyp doesn't allow files to be excluded per architecture, I've
put #ifdefs into shim_ppapi.c and pnacl_shim.c.
BUG=http://code.google.com/p/nativeclient/issues/detail?id=3018
TEST=I checked that libpnacl_irt_shim.a builds OK in Scons
Review URL: https://codereview.chromium.org/10950042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/generators/idl_gen_wrapper.py')
-rw-r--r-- | ppapi/generators/idl_gen_wrapper.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ppapi/generators/idl_gen_wrapper.py b/ppapi/generators/idl_gen_wrapper.py index 36ed8b7..7ed0df8 100644 --- a/ppapi/generators/idl_gen_wrapper.py +++ b/ppapi/generators/idl_gen_wrapper.py @@ -430,6 +430,8 @@ const void *__%(wrapper_prefix)s_PPPGetInterface(const char *name) { # Generate the includes. self.GenerateIncludes(iface_releases, out) + out.Write(self.GetGuardStart()) + # Write out static helper functions (mystrcmp). self.GenerateHelperFunctions(out) @@ -449,5 +451,7 @@ const void *__%(wrapper_prefix)s_PPPGetInterface(const char *name) { # Write out the IDL-invariant functions. self.GenerateFixedFunctions(out) + + out.Write(self.GetGuardEnd()) out.Close() return 0 |