This commit is contained in:
Aria 2025-03-21 22:23:30 +11:00
commit 9c94d113d3
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
10260 changed files with 1237388 additions and 0 deletions

27
scripts/linux/setup.sh Normal file
View file

@ -0,0 +1,27 @@
#!/bin/sh
cd "`dirname \"$0\"`/../.."
mkdir -p dist
cp scripts/linux/sbinit.config dist/
mkdir -p build
cd build
if [ -d /usr/lib/ccache ]; then
export PATH=/usr/lib/ccache/:$PATH
fi
LINUX_LIB_DIR=../lib/linux
cmake \
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
-DCMAKE_BUILD_TYPE=RelWithAsserts \
-DSTAR_USE_JEMALLOC=ON \
-DCMAKE_INCLUDE_PATH=$LINUX_LIB_DIR/include \
-DCMAKE_LIBRARY_PATH=$LINUX_LIB_DIR/ \
../source
if [ $# -ne 0 ]; then
make -j$*
fi