-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinding.gyp
24 lines (24 loc) · 974 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
{
"targets": [
{
"target_name": "node-musl",
"type": "none",
"actions": [
{
"action_name": "Build bootstrap",
"inputs": [ "src/" ],
"outputs": [ "bootstrap" ],
"message": "Building bootstrap for rebuilding",
"action": [ "eval", "cd src/ && node ../generateBootstrapConfig.js <(target_arch) > config.mak && make clean && MAKEFLAGS=-w make -j<!@(node -p 'process.env.CI ? 1 : (os.cpus().length + 1)') && make install" ]
},
{
"action_name": "Build static toolchain",
"inputs": [ "src/" ],
"outputs": [ "<(target_arch)" ],
"message": "Building musl",
"action": [ "eval", "cd src/ && node ../generateConfig.js <(target_arch) > config.mak && make clean && MAKEFLAGS=-w make -j<!@(node -p 'process.env.CI ? 1 : (os.cpus().length + 1)') && make install && cd .. && touch <(target_arch)/node_musl.node" ]
}
]
}
]
}