-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
61 lines (61 loc) · 1.71 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
{
'targets': [
{
'target_name': 'darkroom-xmp-tools',
'sources': [
'src/init.cpp',
'src/tools.cpp',
'src/sharpen.cpp',
'src/levels.cpp',
'src/shadhi.cpp',
'src/defringe.cpp',
'src/exposure.cpp',
'src/basecurve.cpp',
'src/blend.cpp',
'src/clipping.cpp',
'src/masks.cpp',
'src/flip.cpp'
],
'include_dirs' : [
"<!@(node -p \"require('node-addon-api').include\")"
],
'conditions': [
['OS=="mac"', {
'include_dirs' : [
'/usr/include',
'/usr/local/include',
'/usr/local/Cellar/glib/<!(pkg-config --modversion glib-2.0)/lib/glib-2.0/include',
'/usr/local/Cellar/glib/<!(pkg-config --modversion glib-2.0)/include/glib-2.0'
],
'libraries': [
'<!@(pkg-config --libs glib-2.0)',
'<!@(pkg-config --libs zlib)'
],
'cflags': [
'<!@(pkg-config --cflags glib-2.0)',
'<!@(pkg-config --cflags zlib)'
]
}],
['OS=="linux"', {
'include_dirs' : [
'/usr/include',
'/usr/local/include',
'/usr/include/glib-2.0',
'/usr/lib/x86_64-linux-gnu/glib-2.0/include'
],
'libraries': [
'<!@(pkg-config --libs glib-2.0)',
'<!@(pkg-config --libs zlib)'
],
'cflags': [
'<!@(pkg-config --cflags glib-2.0)',
'<!@(pkg-config --cflags zlib)'
]
}]
],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
}
]
}