-
Notifications
You must be signed in to change notification settings - Fork 142
/
binding.gyp
29 lines (28 loc) · 893 Bytes
/
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
{
"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_cc": [ "-O2", "-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"]
}]
}]
}