Skip to content

Commit

Permalink
feat: add macOs condition in binding.gyp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafyh committed Jul 31, 2024
1 parent fbdc8e3 commit ea071b8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,37 @@
]
}
],
[
'OS=="mac"',
{
"variables": {
"VCPKG_LIB_ROOT%": "<!(echo $VCPKG_LIB_ROOT)",
"conditions": [
[
'"<!(echo $VCPKG_LIB_ROOT)" == ""',
{
"VCPKG_LIB_ROOT%": "~/vcpkg/installed/x64-osx"
}
]
]
},
"libraries": [
"<(VCPKG_LIB_ROOT)/lib/libheif.a",
"<(VCPKG_LIB_ROOT)/lib/libturbojpeg.a",
"<(VCPKG_LIB_ROOT)/lib/libpng16.a",
"<(VCPKG_LIB_ROOT)/lib/libde265.a",
"<(VCPKG_LIB_ROOT)/lib/libx265.a"
],
"include_dirs": [
"<(VCPKG_LIB_ROOT)/include",
"<(VCPKG_LIB_ROOT)/include/libheif"
],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES'
},
}
],
[
'OS=="win"',
{
Expand Down

0 comments on commit ea071b8

Please sign in to comment.