forked from solettaproject/soletta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
62 lines (62 loc) · 1.59 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
{
"variables": {
"BUILD_SOLETTA": '<!(sh bindings/nodejs/establish-flags.sh BUILD_SOLETTA)',
"SOLETTA_CFLAGS": [ '<!@(sh bindings/nodejs/establish-flags.sh SOLETTA_CFLAGS)' ],
"SOLETTA_LIBS": [ '<!@(sh bindings/nodejs/establish-flags.sh SOLETTA_LIBS)' ]
},
"conditions": [
[ "'<(BUILD_SOLETTA)'=='true'", {
"targets": [
{
"target_name": "csdk",
"type": "none",
"actions": [ {
"action_name": "build-csdk",
"message": "Building C SDK",
"outputs": [ "build/soletta_sysroot" ],
"inputs": [ "" ],
"action": [ "sh", "bindings/nodejs/build-for-npm.sh" ]
} ]
}
]
}, {
"targets": [
{
"target_name": "collectbindings",
"type": "none",
"actions": [ {
"action_name": "collectbindings",
"message": "Collecting bindings",
"outputs": [ "bindings/nodejs/generated/main.cc" ],
"inputs": [
"bindings/nodejs/generated/main.cc.prologue",
"bindings/nodejs/generated/main.cc.epilogue",
],
"action": [
"sh",
"-c",
'./bindings/nodejs/generate-main.sh <(SOLETTA_CFLAGS)'
]
} ]
},
{
"target_name": "soletta",
"sources": [
"bindings/nodejs/generated/main.cc",
"bindings/nodejs/src/data.cc",
"bindings/nodejs/src/functions/simple.cc"
],
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"cflags": [ '<(SOLETTA_CFLAGS)' ],
"xcode_settings": {
"OTHER_CFLAGS": [ '<(SOLETTA_CFLAGS)' ]
},
"libraries": [ '<(SOLETTA_LIBS)' ],
"dependencies": [ "collectbindings" ]
}
]
} ]
]
}