-
Notifications
You must be signed in to change notification settings - Fork 13
/
binding.gyp
43 lines (43 loc) · 1.1 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
{
'targets': [{
'target_name': 'binding',
'cflags': [
'-DNO_ALONE',
'-DDEBUG',
'-fno-inline',
'-O0',
'-fstrict-aliasing',
'-ffast-math',
'-funroll-loops',
'-fomit-frame-pointer',
'-ffinite-math-only',
'-std=c99'
],
'sources': [
'src/binding.cc',
'src/PQCompress.cc',
'src/pngquant/pngquant.c',
'src/pngquant/rwpng.c',
'src/pngquant/lib/pam.c',
'src/pngquant/lib/mediancut.c',
'src/pngquant/lib/blur.c',
'src/pngquant/lib/mempool.c',
'src/pngquant/lib/viter.c',
'src/pngquant/lib/nearest.c',
'src/pngquant/lib/libimagequant.c',
],
"dependencies": [
"./gyp/gyp/libpng.gyp:libpng"
],
"include_dirs": [
],
'conditions': [
['OS == "win"', {
}, {
'libraries': [
'-lm'
]
}]
],
}]
}