osb/attic/gitlab-ci/macos/build.sh

26 lines
486 B
Bash
Raw Permalink Normal View History

2023-06-20 04:33:09 +00:00
#!/bin/sh -e
mkdir -p build
cd build
rm -f CMakeCache.txt
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DSTAR_ENABLE_STATIC_LIBGCC_LIBSTDCXX=ON \
-DSTAR_USE_JEMALLOC=OFF \
-DSTAR_ENABLE_STEAM_INTEGRATION=ON \
-DSTAR_ENABLE_DISCORD_INTEGRATION=ON \
-DCMAKE_INCLUDE_PATH=../lib/osx/include \
-DCMAKE_LIBRARY_PATH=../lib/osx \
-DCMAKE_OSX_SYSROOT=/ \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
../source
make -j2
cd ..
mv dist macos_binaries
cp lib/osx/*.dylib macos_binaries/