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 6d64fa7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,33 @@
]
}
],
[
'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"
]
}
],
[
'OS=="win"',
{
Expand Down

0 comments on commit 6d64fa7

Please sign in to comment.