summaryrefslogtreecommitdiffstats
path: root/ppapi/ppapi_nacl_test_common.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/ppapi_nacl_test_common.gypi')
-rw-r--r--ppapi/ppapi_nacl_test_common.gypi17
1 files changed, 6 insertions, 11 deletions
diff --git a/ppapi/ppapi_nacl_test_common.gypi b/ppapi/ppapi_nacl_test_common.gypi
index dd1adb1..99599ef 100644
--- a/ppapi/ppapi_nacl_test_common.gypi
+++ b/ppapi/ppapi_nacl_test_common.gypi
@@ -89,22 +89,17 @@
'extra_args': [
'--strip-all',
],
+ 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
},
'target_conditions': [
['generate_nmf==1 and build_newlib==1', {
'actions': [
{
'action_name': 'Generate NEWLIB NMF',
- # Unlike glibc, nexes are not actually inputs - only the names matter.
- # We don't have the nexes as inputs because the ARM nexe may not
- # exist. However, VS 2010 seems to blackhole this entire target if
- # there are no inputs to this action. To work around this we add a
- # bogus input.
- 'inputs': [],
+ 'inputs': ['>(create_nmf)'],
'outputs': ['>(nmf_newlib)'],
'action': [
'python',
- '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
'>@(_inputs)',
'--output=>(nmf_newlib)',
],
@@ -133,14 +128,13 @@
'actions': [
{
'action_name': 'Generate GLIBC NMF and copy libs',
- 'inputs': [],
+ 'inputs': ['>(create_nmf)'],
# NOTE: There is no explicit dependency for the lib32
# and lib64 directories created in the PRODUCT_DIR.
# They are created as a side-effect of NMF creation.
'outputs': ['>(nmf_glibc)'],
'action': [
'python',
- '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
'>@(_inputs)',
'--objdump=>(nacl_objdump)',
'--output=>(nmf_glibc)',
@@ -171,11 +165,12 @@
'actions': [
{
'action_name': 'Generate PNACL NEWLIB NMF',
- 'inputs': ['>(out_pnacl_newlib)'],
+ # NOTE: create_nmf must be first, it is the script python
+ # executes below.
+ 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib)'],
'outputs': ['>(nmf_pnacl_newlib)'],
'action': [
'python',
- '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
'>@(_inputs)',
'--output=>(nmf_pnacl_newlib)',
],