summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/asmjit/tools/configure-ninja.sh
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/asmjit/tools/configure-ninja.sh')
-rw-r--r--3rdparty/asmjit/tools/configure-ninja.sh22
1 files changed, 9 insertions, 13 deletions
diff --git a/3rdparty/asmjit/tools/configure-ninja.sh b/3rdparty/asmjit/tools/configure-ninja.sh
index 0ff2779062f..84808d24363 100644
--- a/3rdparty/asmjit/tools/configure-ninja.sh
+++ b/3rdparty/asmjit/tools/configure-ninja.sh
@@ -1,17 +1,13 @@
#!/bin/sh
-CURRENT_DIR=`pwd`
-BUILD_DIR="build"
-BUILD_OPTIONS="-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DASMJIT_TEST=1"
+CURRENT_DIR="`pwd`"
+BUILD_DIR="${CURRENT_DIR}/../build"
+BUILD_OPTIONS="-G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DASMJIT_TEST=1"
-echo "** Configuring ${BUILD_DIR}_dbg [Debug Build] **"
-mkdir -p ../${BUILD_DIR}_dbg
-cd ../${BUILD_DIR}_dbg
-eval cmake .. -G"Ninja" -DCMAKE_BUILD_TYPE=Debug ${BUILD_OPTIONS}
-cd ${CURRENT_DIR}
+echo "== [Configuring Build - Debug] =="
+eval cmake "${CURRENT_DIR}/.." -B "${BUILD_DIR}/Debug" -DCMAKE_BUILD_TYPE=Debug ${BUILD_OPTIONS}
+echo ""
-echo "** Configuring ${BUILD_DIR}_rel [Release Build] **"
-mkdir -p ../${BUILD_DIR}_rel
-cd ../${BUILD_DIR}_rel
-eval cmake .. -G"Ninja" -DCMAKE_BUILD_TYPE=Release ${BUILD_OPTIONS}
-cd ${CURRENT_DIR}
+echo "== [Configuring Build - Release] =="
+eval cmake "${CURRENT_DIR}/.." -B "${BUILD_DIR}/Release" -DCMAKE_BUILD_TYPE=Release ${BUILD_OPTIONS}
+echo ""