forked from elad/node-imagemagick-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
58 lines (58 loc) · 1.57 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
{
'conditions': [
['OS=="win"', {
'variables': {
'MAGICK_ROOT%': '<!(python get_regvalue.py)',
# download the dll binary and check off for libraries and includes
}
}, { # 'OS!="win"'
'variables': {
# no vars
}
}]
],
"targets": [
{
"target_name": "imagemagick",
"sources": [ "src/imagemagick.cc" ],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
"conditions": [
['OS=="win"', {
"libraries": [
'-l<(MAGICK_ROOT)/lib/CORE_RL_magick_.lib',
'-l<(MAGICK_ROOT)/lib/CORE_RL_Magick++_.lib',
'-l<(MAGICK_ROOT)/lib/CORE_RL_wand_.lib',
'-l<(MAGICK_ROOT)/lib/X11.lib'
],
'include_dirs': [
'<(MAGICK_ROOT)/include',
]
}], ['OS=="win" and target_arch!="x64"', {
'defines': [
'_SSIZE_T_',
]
}], ['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'OTHER_CFLAGS': [
'<!@(Magick++-config --cflags)'
]
},
"libraries": [
'<!@(Magick++-config --ldflags --libs)',
],
'cflags': [
'<!@(Magick++-config --cflags --cppflags)'
],
}], ['OS=="linux"', { # not windows not mac
"libraries": [
'<!@(Magick++-config --ldflags --libs)',
],
'cflags': [
'<!@(Magick++-config --cflags --cppflags)'
],
}]
]
}]
}