OLD | NEW |
(Empty) | |
| 1 # Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # This builds the PNaCl IRT shim which part of the irt |
| 6 # Since it is built by nacl-gcc, it will be in the nacl-gcc build. |
| 7 |
| 8 { |
| 9 'variables': { |
| 10 # Define p2p_apis for ppapi_sources.gypi, |
| 11 # in case it wasn't already defined. |
| 12 # Somehow other gyp files get away with not defining this. |
| 13 'p2p_apis': 1, |
| 14 'glob_files': [ |
| 15 '>(python_exe)', '<(DEPTH)/native_client/build/gyp_glob.py', |
| 16 ], |
| 17 }, |
| 18 'includes': [ |
| 19 '../../../build/common.gypi', |
| 20 '../../../../ppapi/ppapi_sources.gypi', |
| 21 ], |
| 22 'targets' : [{ |
| 23 'target_name': 'shim_generated_source', |
| 24 'type': 'none', |
| 25 'actions' : [{ |
| 26 'action_name': 'generate_shim_source', |
| 27 'msvs_cygwin_shell': 0, |
| 28 'description': 'generating the pnacl IRT shim', |
| 29 'inputs': [ |
| 30 # Potentially all python scripts in the generators directory. |
| 31 '>!@(<(glob_files) ../../../../ppapi/generators/ *.py)', |
| 32 # Potentially all IDL files in the API and DEV-API directory. |
| 33 '>!@(<(glob_files) ../../../../ppapi/api/ *.idl)', |
| 34 '>!@(<(glob_files) ../../../../ppapi/api/dev/ *.idl)', |
| 35 ], |
| 36 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/pnacl_shim.c', ], |
| 37 'action': [ |
| 38 '>(python_exe)', |
| 39 '../../../../ppapi/generators/generator.py', |
| 40 '--srcroot=api', |
| 41 '--wnone', |
| 42 '--pnacl', |
| 43 '--pnaclshim=<(SHARED_INTERMEDIATE_DIR)/pnacl_shim.c', |
| 44 '<@(_inputs)', |
| 45 ], |
| 46 },], |
| 47 },], |
| 48 } |
OLD | NEW |