-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
31 lines (31 loc) · 1.04 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
'variables': {
'simulator%': '0',
},
'targets': [
{
'target_name': 'rf.node',
'type': 'none',
'actions': [
{
'action_name': 'build.py',
'action': [
'python3',
'build.py',
'--os=<(OS)',
'--arch=<(target_arch)',
'--simulator=<(simulator)',
'--out-dir', '<(PRODUCT_DIR)/',
'--cargo-build-dir', '<(INTERMEDIATE_DIR)/rust'
],
'inputs': [],
'outputs': [
'<(PRODUCT_DIR)/<(_target_name)',
# This really needs to be environment-variable-sensitive, but node-gyp doesn't support that. Cargo will still save work if possible.
'<(PRODUCT_DIR)/nonexistent-file-to-force-rebuild'
]
}
]
}
]
}