diff options
| author | Ippolitov Igor <iippolitov@nginx.com> | 2023-10-19 12:50:39 +0100 |
|---|---|---|
| committer | Ippolitov Igor <iippolitov@nginx.com> | 2023-10-19 12:50:39 +0100 |
| commit | c43629880472bba8d389dfb0b7ae6d883b0ba499 (patch) | |
| tree | acecdcb36cfb85fac3d8cdbfbe473c26ac2e2686 /src/nodejs/unit-http/binding_pub.gyp | |
| parent | 8c4425ccb9a413e8d0506e0254f0e84bd89a32a6 (diff) | |
| parent | fb33ec86a3b6ca6a844dfa6980bb9e083094abec (diff) | |
| download | unit-1.31.1-1.tar.gz unit-1.31.1-1.tar.bz2 | |
Merged with the default branch.1.31.1-1
Diffstat (limited to '')
| -rw-r--r-- | src/nodejs/unit-http/binding_pub.gyp | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/src/nodejs/unit-http/binding_pub.gyp b/src/nodejs/unit-http/binding_pub.gyp index 3c39933a..3dadf4a5 100644 --- a/src/nodejs/unit-http/binding_pub.gyp +++ b/src/nodejs/unit-http/binding_pub.gyp @@ -7,9 +7,28 @@ ['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"] }] |
