forked from zhangyuanwei/node-images
-
Notifications
You must be signed in to change notification settings - Fork 5
/
binding.gyp
58 lines (58 loc) · 1.67 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
{
'variables': {
'with_png%': 'true',
'with_jpeg%': 'true',
'with_gif%': 'true',
'with_webp%': 'true',
'with_bmp%': 'false',
'with_raw%': 'true',
},
'targets': [{
'target_name': 'binding',
'sources': [
'src/Image.cc',
'src/Resize.cc',
'src/resampler.cpp'
],
"include_dirs" : [
],
'conditions': [
['with_png=="true"', {
'defines': ['HAVE_PNG'],
'sources': ['src/Png.cc'],
'dependencies': [
'gyp/gyp/libpng.gyp:libpng',
]
}],
['with_jpeg=="true"', {
'defines': ['HAVE_JPEG'],
'sources': ['src/Jpeg.cc'],
'dependencies': [
'gyp/gyp/libjpeg-turbo.gyp:libjpeg-turbo',
]
}],
['with_gif=="true"', {
'defines': ['HAVE_GIF'],
'sources': ['src/Gif.cc'],
'dependencies': [
'gyp/gyp/giflib.gyp:giflib',
]
}],
['with_webp=="false"', {
'defines': ['HAVE_WEBP'],
'sources': ['src/Webp.cc'],
'dependencies': [
'gyp/gyp/libwebp.gyp:libwebp',
]
}],
['with_bmp=="true"', {
'defines': ['HAVE_BMP'],
'sources': ['src/Bmp.cc']
}],
['with_raw=="true"', {
'defines': ['HAVE_RAW'],
'sources': ['src/Raw.cc']
}]
]
}]
}