Merge pull request #412 from Laupetin/chore/better-build-scripts

chore: replace x64 build scripts with generic ones
This commit is contained in:
Jan 2025-04-20 17:54:29 +02:00 committed by GitHub
commit da90bbd356
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 23 additions and 13 deletions

23
scripts/build.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
# Go to repository root
cd "$(dirname "$0")/.." || exit 2
TARGET='all'
ARCHITECTURE='x86'
CONFIG='debug'
for var in "$@"
do
if [ "$var" == "debug" ] || [ "$var" == "release" ]; then
CONFIG="$var"
elif [ "$var" == "x86" ] || [ "$var" == "x64" ]; then
ARCHITECTURE="$var"
else
TARGET="$var"
fi
done
echo "Building config=${CONFIG} architecture=${ARCHITECTURE} target=${TARGET}"
make -C build -j$(nproc) config=${CONFIG}_${ARCHITECTURE} "${TARGET}"

View File

@ -1,6 +0,0 @@
#!/bin/bash
# Go to repository root
cd "$(dirname "$0")/.." || exit 2
make -C build -j$(nproc) config=debug_x64 all

View File

@ -1,7 +0,0 @@
#!/bin/bash
# Go to repository root
cd "$(dirname "$0")/.." || exit 2
echo "Start building with $(nproc) threads"
make -C build -j$(nproc) config=release_x64 all