forked from ochafik/BridJS
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbinding.gyp
executable file
·81 lines (81 loc) · 3.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"targets": [
{
'target_name': 'bridjs',
'sources': [
'src/array_struct_v8.cc',
'src/bridjs_module.cc',
'src/dyncall_v8.cc',
'src/dyncall_v8_utils.cc',
'src/dynload_v8.cc',
'src/native_function_v8.cc',
'src/pointer_v8.cc',
'src/struct_v8.cc',
'src/union_struct_v8.cc',
'src/dyncallback_v8.cc',
'src/bridjs_module.cc',
'src/test.cc',
],
'include_dirs': [
'deps/dyncall-0.9/include',
"<!(node -e \"require('nan')\")"
],
"msbuild_settings": {
"Link": {
"ImageHasSafeExceptionHandlers": "false"
}
},
'conditions': [
['OS=="win"', {
'conditions': [
[ 'target_arch=="ia32"', {
'libraries': [
'../deps/dyncall-0.9/win32_ia32/libdyncall_s.lib',
'../deps/dyncall-0.9/win32_ia32/libdyncallback_s.lib',
'../deps/dyncall-0.9/win32_ia32/libdynload_s.lib',
]
} ],
[ 'target_arch=="x64"', {
'libraries': [
'../deps/dyncall-0.9/win32_x64/libdyncall_s.lib',
'../deps/dyncall-0.9/win32_x64/libdyncallback_s.lib',
'../deps/dyncall-0.9/win32_x64/libdynload_s.lib',
]
} ],
]
}],
['OS=="linux"', {
'conditions': [
[ 'target_arch=="ia32"', {
'libraries': [
'../deps/dyncall-0.9/linux_ia32/libdyncall_s.a',
'../deps/dyncall-0.9/linux_ia32/libdyncallback_s.a',
'../deps/dyncall-0.9/linux_ia32/libdynload_s.a',
]
} ],
[ 'target_arch=="x64"', {
'libraries': [
'../deps/dyncall-0.9/linux_x64/libdyncall_s.a',
'../deps/dyncall-0.9/linux_x64/libdyncallback_s.a',
'../deps/dyncall-0.9/linux_x64/libdynload_s.a',
]
} ],
]
}],
['OS=="mac"', {
'libraries': [
'../deps/dyncall-0.9/darwin/libdyncall_s.a',
'../deps/dyncall-0.9/darwin/libdyncallback_s.a',
'../deps/dyncall-0.9/darwin/libdynload_s.a',
],
'xcode_settings': {
'OTHER_CFLAGS': [
"-std=c++11", "-stdlib=libc++", "-O3", "-fexceptions", "-fPIC", "-mmacosx-version-min=10.9"
]},
},]
],
"cflags": ["-std=c++11","-O3", "-s", "-fPIC"],
"cflags_cc": ["-std=c++11", "-O3", "-s", "-fexceptions", "-fPIC"]
}
]
}