macOS: setup to build some dependencies from vcpkg

- zlib, vorbis, ogg, opus
- build static libraries with 10.9 deployment target
  (this is the lowest I can use on my 10.15 dev machine)
- build x86_64 only (I don't have an arm64 machine to test)
This commit is contained in:
Eric Wasylishen 2021-12-29 15:36:56 -07:00
parent 95bbcd6e47
commit 0899dacbfa
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,8 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES x86_64)
set(VCPKG_OSX_DEPLOYMENT_TARGET 10.9)

6
MacOSX/setup-vcpkg.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
git clone --depth 1 https://github.com/microsoft/vcpkg
./vcpkg/bootstrap-vcpkg.sh
./vcpkg/vcpkg install --overlay-triplets=custom-triplets --triplet=x64-osx-10.9 zlib libogg opus opusfile libvorbis