-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
44 lines (42 loc) · 932 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"target_defaults": {
"default_configuration": "Release",
"configurations": {
"Release": { "defines": ["NDEBUG"] }
},
"conditions": [
["OS=='linux' or OS=='mac'", {
"cflags_cc": ["-std=c++17", "-fvisibility=hidden"],
"cflags_cc!": ["-std=gnu++1y"]
}]
]
},
"targets": [{
"target_name": "b2djs",
"sources": [
"blend2d-js.cpp",
"blend2d-js.h"
],
"include_dirs": [
"<!@(node -p \"require('njs-api').include\")",
"../blend2d/src"
],
"conditions": [
["OS == 'win'", {
"library_dirs": [
"../blend2d/build_vs2017_x64/Release",
"../blend2d/build_vs2017_x64/Debug"
],
"libraries": [
"-lblend2d"
]
}, {
"libraries": [
"-L../../blend2d/build_rel",
"-L../../blend2d/build_dbg",
"-lblend2d"
]
}]
]
}]
}