-
Notifications
You must be signed in to change notification settings - Fork 142
/
binding.gyp
32 lines (32 loc) · 1.09 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
{
"targets":
[
{
"target_name": "configure",
"type": "none",
"actions": [ { "action_name": "js2c",
"inputs": [ "src/threads_a_gogo.cc" ],
"outputs": [ "src/threads_a_gogo.cc" ],
"action": ["bash", "-c", "cd <(module_root_dir)/src && node js2c.js"],
"message": "*** THREADS_A_GOGO: RUN JS2C" } ]
},
{
"target_name": "threads_a_gogo",
"sources": [ "src/threads_a_gogo.cc" ],
"cflags": [ "-O3", "-pedantic" ],
"cflags_c": [ "-O3", "-pedantic" ],
"cflags_cc": [ "-O3", "-pedantic" ],
# see https://gist.github.com/TooTallNate/1590684
"xcode_settings": { "OTHER_CFLAGS": [ "-O3", "-pedantic" ] },
"dependencies" : [ "configure" ]
},
{
"target_name": "install",
"type":"none",
"dependencies" : [ "threads_a_gogo" ],
"copies": [ {
"destination": "<(module_root_dir)/node_modules",
"files": ["<(module_root_dir)/build/Release/threads_a_gogo.node"]
}]
}]
}