-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbinding.gyp
45 lines (45 loc) · 1.4 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
{
'targets': [
{
'target_name': 'node_stringprep',
'cflags_cc!': [ '-fno-exceptions', '-fmax-errors=0' ],
'include_dirs': [
'<!(node -e "require(\'nan\')")'
],
'conditions': [
['OS=="win"', {
'conditions': [
['"<!@(cmd /C where /Q icu-config || echo n)"!="n"', {
'sources': [ 'node-stringprep.cc' ],
'cflags!': [ '-fno-exceptions', '`icu-config --cppflags`' ],
'libraries': [ '`icu-config --ldflags`' ]
}]
]
}, { # OS != win
'conditions': [
['"<!@(which icu-config > /dev/null || echo n)"!="n"', {
'sources': [ 'node-stringprep.cc' ],
'cflags!': [ '-fno-exceptions', '-fmax-errors=0', '`icu-config --cppflags`' ],
'libraries': [ '`icu-config --ldflags`' ],
'conditions': [
['OS=="freebsd" or OS=="openbsd"', {
'include_dirs': [
'/usr/local/include'
],
}],
['OS=="mac"', {
'include_dirs': [
'/opt/local/include', '/usr/local/include'
],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}]
]
}]
]
}]
]
}
]
}