-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinding.gyp
41 lines (40 loc) · 1.13 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
{
"targets":[
{
"target_name": "build_rpc",
"type": "none",
'conditions': [
['OS=="win"', {
"actions": [
{
"action_name": "build_golang_rpc_win",
"inputs": ["bc_node/gosafex/pkg/json_rpc/json_rpc.go"],
"outputs": [
"bc_node/gosafex/pkg/json_rpc/json_rpc",
],
"action": [
"cd ..\\bc_node\gosafex\pkg\json_rpc\ && go build && move json_rpc.exe ..\..\..\..\\bin\\"
],
"message": "Building safex libraries windows"
}
]
}],
['OS!="win"',{
"actions": [
{
"action_name": "build_golang_rpc_lin_mac",
"inputs": ["bc_node/gosafex/pkg/json_rpc/json_rpc.go"],
"outputs": [
"./json_rpc",
],
"action": [
"make", "--directory=./"
],
"message": "Building safex libraries linux"
}
]
}],
],
}
]
}