forked from parro-it/netcdf4
-
Notifications
You must be signed in to change notification settings - Fork 2
/
binding.gyp
65 lines (65 loc) · 2.28 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
{
"targets": [
{
"libraries": [
"-lnetcdf"
],
'cflags_cc': [
'-Wall',
'-Wextra',
'--pedantic-errors',
'-Wfloat-equal',
'-Wuninitialized',
'-Wunreachable-code',
'-Wold-style-cast',
'-Werror',
'-fexceptions',
'-std=c++14'
],
"sources": [
"src/Group.cpp",
"src/File.cpp",
"src/Variable.cpp",
"src/Dimension.cpp",
"src/Attribute.cpp",
"src/netcdf4js.cpp",
"src/netcdf4jstypes.cpp"
],
"target_name": "netcdf4",
"include_dirs": ["<!@(node -p \"require('node-addon-api').include\")"],
"target_name": "netcdf4",
'defines': ['NAPI_CPP_EXCEPTIONS'],
"conditions": [
['OS=="mac"', {
'cflags+': ['-fvisibility=hidden','-std=c++14'],
'xcode_settings': {
'WARNING_CFLAGS!': ['-Wall', '-Wextra'],
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'OTHER_CPLUSPLUSFLAGS' : ['-std=c++14']
}
}],
['OS=="win"', {
"variables": {
"netcdf_dir%": "<!(echo %NETCDF_DIR%)"
},
"include_dirs": [
"<(netcdf_dir)/include"
],
"msvs_settings": {
'VCCLCompilerTool': {
'WarningLevel': '3',
'WarnAsError': 'false',
'ExceptionHandling': 1
},
"VCLinkerTool": {
"AdditionalLibraryDirectories": "<(netcdf_dir)/lib"
}
}
}]
]
}
]
}