diff options
| author | untodesu <kirill@untode.su> | 2025-09-11 13:10:52 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-09-11 13:10:52 +0500 |
| commit | 96bd73ae020ecca1f94698744c77498a89ad19f7 (patch) | |
| tree | dc0ee946138141e7a0327a7d3c566f4a37adff3f /tools | |
| parent | 6dc5194895b6bd61d19bf5c95021471784084325 (diff) | |
| download | voxelius-96bd73ae020ecca1f94698744c77498a89ad19f7.tar.bz2 voxelius-96bd73ae020ecca1f94698744c77498a89ad19f7.zip | |
Graft build scripts and buffer code from QFengine
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/build-unix.sh | 5 | ||||
| -rw-r--r-- | tools/build-win32.sh | 5 | ||||
| -rw-r--r-- | tools/build-win64.sh | 5 | ||||
| -rw-r--r-- | tools/pack-unix.sh | 5 | ||||
| -rw-r--r-- | tools/pack-win32.sh | 5 | ||||
| -rw-r--r-- | tools/pack-win64.sh | 5 |
6 files changed, 30 insertions, 0 deletions
diff --git a/tools/build-unix.sh b/tools/build-unix.sh new file mode 100755 index 0000000..ad1edd2 --- /dev/null +++ b/tools/build-unix.sh @@ -0,0 +1,5 @@ +#!/usr/bin/sh +cd $(dirname $(dirname ${0})) || exit 1 +cmake -B build/unix/${1:-Debug} -DCMAKE_BUILD_TYPE=${1:-Debug} || exit 1 +cmake --build build/unix/${1:-Debug} --config ${1:-Debug} --parallel $(nproc) || exit 1 +exit 0 diff --git a/tools/build-win32.sh b/tools/build-win32.sh new file mode 100644 index 0000000..af152fc --- /dev/null +++ b/tools/build-win32.sh @@ -0,0 +1,5 @@ +#!/usr/bin/sh +cd $(dirname $(dirname ${0})) || exit 1 +cmake -B build/win32 -A Win32 -DCMAKE_BUILD_TYPE=${1:-Debug} || exit 1 +cmake --build build/win32 --config ${1:-Debug} --parallel || exit 1 +exit 0 diff --git a/tools/build-win64.sh b/tools/build-win64.sh new file mode 100644 index 0000000..50ca07a --- /dev/null +++ b/tools/build-win64.sh @@ -0,0 +1,5 @@ +#!/usr/bin/sh +cd $(dirname $(dirname ${0})) || exit 1 +cmake -B build/win64 -A x64 -DCMAKE_BUILD_TYPE=${1:-Debug} || exit 1 +cmake --build build/win64 --config ${1:-Debug} --parallel || exit 1 +exit 0 diff --git a/tools/pack-unix.sh b/tools/pack-unix.sh new file mode 100644 index 0000000..cbadee4 --- /dev/null +++ b/tools/pack-unix.sh @@ -0,0 +1,5 @@ +#!/usr/bin/sh +cd $(dirname $(dirname ${0})) || exit 1 +${SHELL} tools/build-unix.sh Release || exit 1 +cpack --config build/unix/CPackConfig.cmake -G ZIP || exit 1 +exit 0 diff --git a/tools/pack-win32.sh b/tools/pack-win32.sh new file mode 100644 index 0000000..351df9d --- /dev/null +++ b/tools/pack-win32.sh @@ -0,0 +1,5 @@ +#!/usr/bin/sh +cd $(dirname $(dirname ${0})) || exit 1 +${SHELL} tools/build-win32.sh Release || exit 1 +cpack --config build/win32/CPackConfig.cmake -G ZIP || exit 1 +exit 0 diff --git a/tools/pack-win64.sh b/tools/pack-win64.sh new file mode 100644 index 0000000..5cb5404 --- /dev/null +++ b/tools/pack-win64.sh @@ -0,0 +1,5 @@ +#!/usr/bin/sh +cd $(dirname $(dirname ${0})) || exit 1 +${SHELL} tools/build-win64.sh Release || exit 1 +cpack --config build/win64/CPackConfig.cmake -G ZIP || exit 1 +exit 0 |
