Cog/ThirdParty/flac/README.md
Christopher Snowhill f05aada52d Dependencies: Update bundled libraries
libvgm: 7cad78367fa35c3f7b3ae16a296d31063cd3a7e4
flac: v1.5.0
ogg: v1.3.6
opus: v1.5.2-153-g7aa5be98
opusfile: v0.12-51-g24d6e75

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-07-17 03:41:57 -07:00

886 B

Build with CMake, using the following options:

cmake -B build-x86 -DCMAKE_LIBRARY_PATH=/usr/local/lib -DCMAKE_OSX_ARCHITECTURES="x86_64" \
    -DCMAKE_OSX_DEPLOYMENT_TARGET="10.13" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=ON
cmake -B build-arm -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=ON

For the debug overlay, BUILD_TYPE was replaced with Debug.

And some minor tweaks with install_name_tool -change to fix up the resulting libFLAC.14.dylib so that it imports libogg.0.dylib using an @rpath path instead of an absolute path to Homebrew's install.

Version 1.5.0 was used from the official source code download:

https://downloads.xiph.org/releases/flac/flac-1.5.0.tar.xz

x86_64 and arm64 were built separately, to allow for intrinsic functions to be used for x86_64.