-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbinding.gyp
47 lines (34 loc) · 1.35 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
{
"targets": [
{
"target_name": "hzeller-matrix",
"sources": [
"src/addon.cpp",
"src/run-image.cpp",
"src/run-rain.cpp",
"src/run-text.cpp",
"src/run-gif.cpp",
"src/run-perlin.cpp",
"src/run-clock.cpp"
],
"include_dirs": [
"<!(GraphicsMagick++-config --cppflags | grep -o -e '/.*')",
"./hzeller/include",
"<!(node -e \"require('nan')\")"
],
"link_settings": {
"libraries": [
"<!(pwd)/hzeller/lib/librgbmatrix.a",
"<!(GraphicsMagick++-config --libs)"
]
},
"ldflags" : ["-lrt -lm -lpthread", "<!(GraphicsMagick++-config --ldflags)"],
"ldflags!" : ["-rdynamic", "-shared"],
"cflags" : ["-Wall -O3 -g" ],
"cflags!" : ["-Wno-unused-parameter", "-Wextra", "-fno-omit-frame-pointer", "-std=gnu++0x", "-fno-exceptions", "-fno-rtti" ],
"cflags_cc" : ["-Wall -g -fno-strict-aliasing -O2 -pthread", "<!(GraphicsMagick++-config --cppflags)" ],
"cflags_cc!" : ["-Wno-unused-parameter", "-Wextra", "-fno-omit-frame-pointer", "-fno-exceptions", "-fno-rtti" ],
"conditions": [["OS=='mac'", {"xcode_settings": {"GCC_ENABLE_CPP_EXCEPTIONS": "YES"}}]]
}
]
}