-
Notifications
You must be signed in to change notification settings - Fork 4
/
binding.gyp
45 lines (45 loc) · 1.08 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
{
'targets': [
{
'target_name': 'node-minizip',
'sources': [
'src/zip.cc',
'src/zip.h',
'src/zip_api.cc',
'src/zip_async_worker.cc',
'src/zip_async_worker.h',
'src/zip_internal.cc',
'src/zip_internal.h',
'src/zip_reader.cc',
'src/zip_reader.h',
'src/zip_utils.cc',
'src/zip_utils.h',
],
'dependencies': [ 'deps/zlib/zlib.gyp:zlib' ],
'include_dirs': [
'deps/',
'<!(node -e "require(\'nan\')")'
],
'conditions': [
['OS=="win"', {
'defines': [
'OS_WIN',
# _HAS_EXCEPTIONS must match ExceptionHandling in msvs_settings.
'_HAS_EXCEPTIONS=0',
],
}],
['OS=="mac" or OS=="linux"', {
'defines': [
'OS_POSIX',
],
}],
['OS=="linux"', {
'cflags':[
# Don't warn about the "struct foo f = {0};" initialization pattern.
'-Wno-missing-field-initializers',
],
}],
],
},
]
}