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
|
{
'targets': [{
'target_name': "unit-http",
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
},
'conditions': [
[ 'target_arch=="arm64"', {
'include_dirs': [
'/opt/homebrew/include'
],
'libraries' : [
'-L/opt/homebrew/lib',
'-lunit'
],
}],
['target_arch=="x64"', {
'include_dirs': [
'/usr/local/include',
],
'libraries' : [
'-L/usr/local/lib',
'-lunit'
],
}]
]}
]],
'sources': ["unit.cpp", "addon.cpp"],
'libraries': ["-lunit"]
}]
}
|