osb/scripts/ci/linux/build.sh
2024-03-07 13:56:23 +11:00

23 lines
382 B
Bash

#!/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=ON \
-DSTAR_ENABLE_STEAM_INTEGRATION=ON \
-DCMAKE_INCLUDE_PATH=../lib/linux/include \
-DCMAKE_LIBRARY_PATH=../lib/linux \
../source
make -j2
cd ..
mv dist linux_binaries
cp lib/linux/*.so linux_binaries/