-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
44 lines (44 loc) · 1.05 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
32
33
34
35
36
37
38
39
40
41
42
43
44
{
'targets': [
{
'target_name': 'libgmp',
'type': 'none',
'conditions': [
['OS=="linux"', {
'actions': [{
'action_name': 'build_gmp_lib',
'inputs': [''],
'outputs': [''],
'action': ['sh', 'scripts/build.sh']
}]
}]
]
},
{
'target_name': 'gmp',
'dependencies': ['libgmp'],
'sources': [ 'src/gmp_node_addon.cc' ],
'conditions': [
['OS=="linux"', {
'cxxflags': ['-fPIC'],
'include_dirs': [
"<!(node -e \"require('nan')\")",
'<(module_root_dir)/src/gmp/include'
],
'libraries': ['<(module_root_dir)/src/gmp/lib/libgmp.a']
}]
]
},
{
'target_name': 'build',
'type': 'none',
'dependencies': ['gmp'],
'copies': [
{
'destination': '<(module_root_dir)/lib/binding/node-linux-<(target_arch)',
'files': ['<(PRODUCT_DIR)/gmp.node']
}
]
}
]
}