Chromium Code Reviews| 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 |