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

Unified Diff: src/untrusted/irt/shim_generator.gyp

Issue 10826171: Incorporate shimming into the irt (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 4 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
« src/untrusted/irt/nacl.scons ('K') | « src/untrusted/irt/shim_dummy.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/irt/shim_generator.gyp
===================================================================
--- src/untrusted/irt/shim_generator.gyp (revision 0)
+++ src/untrusted/irt/shim_generator.gyp (revision 0)
@@ -0,0 +1,48 @@
+# Copyright 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This builds the PNaCl IRT shim which part of the irt
+# Since it is built by nacl-gcc, it will be in the nacl-gcc build.
+
+{
+ 'variables': {
+ # Define p2p_apis for ppapi_sources.gypi,
+ # in case it wasn't already defined.
+ # Somehow other gyp files get away with not defining this.
+ 'p2p_apis': 1,
+ 'glob_files': [
+ '>(python_exe)', '<(DEPTH)/native_client/build/gyp_glob.py',
+ ],
+ },
+ 'includes': [
+ '../../../build/common.gypi',
+ '../../../../ppapi/ppapi_sources.gypi',
+ ],
+ 'targets' : [{
+ 'target_name': 'shim_generated_source',
+ 'type': 'none',
+ 'actions' : [{
+ 'action_name': 'generate_shim_source',
+ 'msvs_cygwin_shell': 0,
+ 'description': 'generating the pnacl IRT shim',
+ 'inputs': [
+ # Potentially all python scripts in the generators directory.
Nick Bray (chromium) 2012/08/27 23:00:02 The globbing isn't thrilling, but we realize its i
+ '>!@(<(glob_files) ../../../../ppapi/generators/ *.py)',
+ # Potentially all IDL files in the API and DEV-API directory.
+ '>!@(<(glob_files) ../../../../ppapi/api/ *.idl)',
+ '>!@(<(glob_files) ../../../../ppapi/api/dev/ *.idl)',
+ ],
+ 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/pnacl_shim.c', ],
+ 'action': [
+ '>(python_exe)',
+ '../../../../ppapi/generators/generator.py',
Nick Bray (chromium) 2012/08/27 23:00:02 Note how everything here (including the generator
+ '--srcroot=api',
+ '--wnone',
+ '--pnacl',
+ '--pnaclshim=<(SHARED_INTERMEDIATE_DIR)/pnacl_shim.c',
+ '<@(_inputs)',
+ ],
+ },],
+ },],
+}
Property changes on: src/untrusted/irt/shim_generator.gyp
___________________________________________________________________
Added: svn:eol-style
+ LF
« src/untrusted/irt/nacl.scons ('K') | « src/untrusted/irt/shim_dummy.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698