summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Romeo <vittorio.romeo@outlook.com>2021-11-13 00:40:05 +0000
committerVittorio Romeo <vittorio.romeo@outlook.com>2021-11-13 00:40:05 +0000
commit5fbfaf2032386a524f248b2971103896435b87b4 (patch)
treebd2cf1a126f9a19dd1fe52f711af39b44d49843e
parent3a7b87aa1a1c31e2b0991d24040fac60f84838b2 (diff)
scripts
-rwxr-xr-xbuildlx/make_debug_client_linux_clang.sh8
-rwxr-xr-xbuildlx/make_debug_client_linux_clang_0_cmake.sh20
-rwxr-xr-xbuildlx/make_debug_client_linux_clang_1_build.sh11
-rwxr-xr-xbuildlx/make_debug_client_linux_clang_2_copy.sh19
4 files changed, 58 insertions, 0 deletions
diff --git a/buildlx/make_debug_client_linux_clang.sh b/buildlx/make_debug_client_linux_clang.sh
new file mode 100755
index 00000000..9ddc6a71
--- /dev/null
+++ b/buildlx/make_debug_client_linux_clang.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -e
+
+./make_debug_client_linux_clang_0_cmake.sh
+./make_debug_client_linux_clang_1_build.sh
+./make_debug_client_linux_clang_2_copy.sh
+
diff --git a/buildlx/make_debug_client_linux_clang_0_cmake.sh b/buildlx/make_debug_client_linux_clang_0_cmake.sh
new file mode 100755
index 00000000..b8d73d2e
--- /dev/null
+++ b/buildlx/make_debug_client_linux_clang_0_cmake.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+set -e
+
+echo ""
+echo ""
+echo "--------------------------------------------------------------------"
+echo "| RUNNING CMAKE IN DEBUG MODE (NINJA) |"
+echo "--------------------------------------------------------------------"
+cmake .. -G"Ninja" \
+ -DCMAKE_BUILD_TYPE=DEBUG \
+ -DCMAKE_C_COMPILER="clang" \
+ -DCMAKE_CXX_COMPILER="clang++" \
+ -DCMAKE_CXX_FLAGS="\
+ -O0 -fno-omit-frame-pointer \
+ -Wall -Wextra -Wpedantic -Wno-braced-scalar-init -Wno-missing-field-initializers \
+ -D_GLIBCXX_ASSERTIONS=1 \
+ -fstack-protector -Wno-pragmas \
+ -fsanitize=address"
+
diff --git a/buildlx/make_debug_client_linux_clang_1_build.sh b/buildlx/make_debug_client_linux_clang_1_build.sh
new file mode 100755
index 00000000..37d60505
--- /dev/null
+++ b/buildlx/make_debug_client_linux_clang_1_build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -e
+
+echo ""
+echo ""
+echo "--------------------------------------------------------------------"
+echo "| BUILDING WITH NINJA |"
+echo "--------------------------------------------------------------------"
+ninja
+ninja check
diff --git a/buildlx/make_debug_client_linux_clang_2_copy.sh b/buildlx/make_debug_client_linux_clang_2_copy.sh
new file mode 100755
index 00000000..ea1336ea
--- /dev/null
+++ b/buildlx/make_debug_client_linux_clang_2_copy.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+set -e
+
+echo ""
+echo ""
+echo "--------------------------------------------------------------------"
+echo "| COPYING ALL EXECUTABLES TO _RELEASE FOLDER |"
+echo "--------------------------------------------------------------------"
+cp ./SSVOpenHexagon.exe ../_RELEASE
+cp ./OHWorkshopUploader.exe ../_RELEASE
+cp ./OHServerControl.exe ../_RELEASE
+
+echo ""
+echo ""
+echo "--------------------------------------------------------------------"
+echo "| COPYING LIBRARIES |"
+echo "--------------------------------------------------------------------"
+./copylibs.sh