-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
50 lines (50 loc) · 1.23 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
{
'variables': {
'mdsf_base_ccflags': [
'-Wall',
'-Wextra',
'-Wno-unused-parameter',
'-std=c++11'
],
'mdsf_debug_ccflags': ['-g', '-O0'],
'mdsf_release_ccflags': ['-O3'],
'mdsf_use_short_unicode_tables': '<!(node ./tools/echo-env MDSF_USE_SHORT_UNICODE_TABLES)'
},
'targets': [
{
'target_name': 'mdsf',
'sources': [
'src/node_bindings.cc',
'src/parser.cc',
'src/message_parser.cc',
'src/unicode_utils.cc'
],
'conditions': [
['not mdsf_use_short_unicode_tables', {
'defines': ['_PARSER_USE_FULL_TABLES_']
}]
],
'configurations': {
'Debug': {
'cflags_cc': ['<@(mdsf_debug_ccflags)'],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': ['<@(mdsf_debug_ccflags)']
}
},
'Release': {
'cflags_cc': ['<@(mdsf_release_ccflags)'],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': ['<@(mdsf_release_ccflags)']
}
}
},
'cflags_cc': ['<@(mdsf_base_ccflags)'],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': [
'<@(mdsf_base_ccflags)',
'-stdlib=libc++'
]
}
}
]
}