forked from nicolasroger17/libxmljs2-xsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
58 lines (58 loc) · 1.52 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
{
'variables': {
'xmljs_include_dirs%': [],
'xmljs_libraries%': [],
},
"targets": [
{
"target_name": "node-libxml-xsd",
"product_extension": "node",
"type": "shared_library",
"win_delay_load_hook": "false",
"sources": [ "src/schema.cc", "src/xml_errors.cc", "src/node_libxml_xsd.cc" ],
"include_dirs": [
"<!(node -e \"require('nan')\")",
'<@(xmljs_include_dirs)'
],
"cflags": ["-Wall"],
"xcode_settings": {"OTHER_CFLAGS": ["-Wall"]},
'link_settings': {
'libraries': [
'<@(xmljs_libraries)'
]
},
"conditions": [
[
'OS=="mac"',
{
# node-gyp 2.x doesn't add this anymore
# https://github.com/TooTallNate/node-gyp/pull/612
"xcode_settings": {
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
"OTHER_LDFLAGS": ["-undefined dynamic_lookup"],
},
},
]
],
'default_configuration': 'Release',
'configurations': {
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 1 # static debug
}
}
},
'Release': {
'defines': [ 'NDEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 0 # static release
}
}
}
}
}
]
}