forked from bnoordhuis/node-iconv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
37 lines (37 loc) · 844 Bytes
/
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
{
'targets': [
{
'target_name': 'iconv',
'defines': [
'ICONV_CONST=const',
'USE_AIX=1',
'USE_DOS=1',
'USE_EXTRA=1',
'USE_OSF1=1',
'LIBDIR="."', # not actually used
],
'include_dirs': [
'deps/libiconv/srclib',
'support',
],
'sources': [
'deps/libiconv/libcharset/lib/localcharset.c',
'deps/libiconv/lib/iconv.c',
'src/binding.cc',
],
'conditions': [
['OS == "win"', {
'defines': ['WIN32_NATIVE=1'],
}, {
'defines': ['HAVE_WORKING_O_NOFOLLOW=1'],
'cflags': [
# silence warnings from iconv.c
'-Wno-unused-function',
'-Wno-unused-parameter',
'-Wno-unused-variable',
],
}],
],
}
]
}