xref: /unit/src/nodejs/unit-http/binding_pub.gyp (revision 2576:61599584950b)
1{
2    'targets': [{
3        'target_name': "unit-http",
4        'cflags!': [ '-fno-exceptions' ],
5        'cflags_cc!': [ '-fno-exceptions' ],
6        'conditions': [
7            ['OS=="mac"', {
8              'xcode_settings': {
9                'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
10              },
11              'conditions': [
12                  [ 'target_arch=="arm64"', {
13                      'include_dirs': [
14                          '/opt/homebrew/include'
15                      ],
16                      'libraries' : [
17                          '-L/opt/homebrew/lib',
18                          '-lunit'
19                      ],
20                  }],
21                  ['target_arch=="x64"', {
22                      'include_dirs': [
23                          '/usr/local/include',
24                      ],
25                      'libraries' : [
26                          '-L/usr/local/lib',
27                          '-lunit'
28                      ],
29                  }]
30              ]}
31            ]],
32        'sources': ["unit.cpp", "addon.cpp"],
33        'libraries': ["-lunit"]
34    }]
35}
36