-
Notifications
You must be signed in to change notification settings - Fork 123
/
binding.gyp
47 lines (46 loc) · 1.39 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
{
'variables': {
'node_iconv_use_system_libiconv%': 0,
},
'targets': [
{
'target_name': 'iconv',
'sources': ['binding.c'],
'ccflags': ['-Wall', '-Wextra'],
# Have to repeat flags on mac because of gyp's xcode emulation "feature".
'xcode_settings': {
'WARNING_CFLAGS': ['-Wall', '-Wextra'],
},
'conditions': [
['node_iconv_use_system_libiconv==0', {
'defines': ['ICONV_CONST=const', 'ENABLE_EXTRA=1'],
'include_dirs': ['support'],
'sources': [
'deps/libiconv/lib/iconv.c',
'support/localcharset.c',
],
'cflags!': ['-W', '-Wall', '-Wextra'],
'msvs_settings': {
'VCCLCompilerTool': {
'DisableSpecificWarnings': [
'4018', # Signed/unsigned comparison.
'4090', # Const/non-const mismatch.
'4244', # Narrowing cast.
'4267', # Narrowing cast.
'4311', # https://github.com/bnoordhuis/node-iconv/issues/174
],
},
},
'xcode_settings': {
'WARNING_CFLAGS!': ['-W', '-Wall', '-Wextra'],
'WARNING_CFLAGS': [
'-Wno-parentheses-equality',
'-Wno-static-in-inline',
'-Wno-tautological-compare',
],
},
}],
],
},
],
}