-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
83 lines (83 loc) · 1.77 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
'targets': [
{
'target_name': 'zopflipng',
'sources': [
'src/zopflipng.cc',
'src/zopflipng/zopflipng_lib.cc',
'src/lodepng/lodepng.cc',
'src/lodepng/lodepng_util.cc',
"src/zopfli/deflate.c",
"src/zopfli/util.c",
"src/zopfli/blocksplitter.c",
"src/zopfli/lz77.c",
"src/zopfli/hash.c",
"src/zopfli/tree.c",
"src/zopfli/katajainen.c",
"src/zopfli/cache.c",
"src/zopfli/squeeze.c"
],
'include_dirs': [
'src'
],
'dependencies': [
"<!(node -p \"require('node-addon-api').targets\"):node_addon_api"
],
'cflags': [
'-Wextra',
'-Wall',
'-Wno-unused-function',
'-Wno-unused-parameter',
'-ansi',
'-pedantic',
'-O3',
'-flto',
],
'cflags_cc': [
'-Wextra',
'-Wall',
'-std=c++17',
'-pedantic',
'-O3',
'-flto',
],
'ldflags': [
'-flto'
],
'conditions': [
['OS=="mac"', {
'cflags+': ['-fvisibility=hidden']
}]
],
'xcode_settings': {
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
'OTHER_CFLAGS': [
'-Wextra',
'-Wall',
'-Wno-unused-function',
'-Wno-unused-parameter',
'-ansi',
'-pedantic',
'-O3',
'-flto'
],
'OTHER_CPLUSPLUSFLAGS': [
'-Wextra',
'-Wall',
'-std=c++17',
'-pedantic',
'-O3',
'-flto'
],
'OTHER_LDFLAGS': [
'-flto'
]
},
"defines": [
"NODE_ADDON_API_DISABLE_DEPRECATED",
"NAPI_VERSION=3",
"NDEBUG"
],
}
]
}