-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
45 lines (45 loc) · 1.36 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': 'xlsx',
'sources': [
'cpp/AsyncError.cpp',
'cpp/AsyncReader.cpp',
'cpp/init.cpp',
'cpp/readXlsxAsync.cpp',
'cpp/replaceAllNapi.cpp',
'cpp/Sheet.cpp',
'cpp/toLowerNapi.cpp',
'cpp/Val.cpp',
'cpp/xlsx.cpp',
'cpp/third-party/xlsxio/lib/xlsxio_read.c',
'cpp/third-party/xlsxio/lib/xlsxio_read_sharedstrings.c',
'cpp/third-party/xlsxio/lib/xlsxio_write.c',
],
'defines': [ 'USE_MINIZIP' ],
'include_dirs': [
'cpp/third-party/xlsxio/include',
'cpp/third-party/xlsxio/lib',
'cpp/third-party/zlib-gyp/contrib/minizip',
'cpp/third-party/zlib-gyp/contrib',
'cpp/third-party/libexpat',
"<!@(node -p \"require('node-addon-api').include\")",
],
'dependencies': [
'cpp/third-party/libexpat/libexpat.gyp:expat',
'cpp/third-party/zlib-gyp/zlib.gyp:minizip',
"<!(node -p \"require('node-addon-api').gyp\")",
],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.7',
},
'msvs_settings': {
'VCCLCompilerTool': { 'ExceptionHandling': 1 },
},
}
]
}