From ebebba1fb9d278b32d00dce551952cdb57d7e38c Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Mon, 20 Feb 2023 23:49:02 +0800 Subject: [PATCH] Add build scripts for macOS Include build scripts for generating CMake cache as well as building from ninja. --- 00-build-cache-debug-x64 | 3 +++ 01-build-game | 3 +++ 02-build-server | 3 +++ 3 files changed, 9 insertions(+) create mode 100755 00-build-cache-debug-x64 create mode 100755 01-build-game create mode 100755 02-build-server diff --git a/00-build-cache-debug-x64 b/00-build-cache-debug-x64 new file mode 100755 index 0000000..8bd7151 --- /dev/null +++ b/00-build-cache-debug-x64 @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +cmake -DPROJECT_SOURCE_DIR=. -DCMAKE_SIZEOF_VOID_P=8 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=ninja -DCMAKE_C_COMPILER=cc -DCMAKE_C_COMPILER_WORKS=1 -DCMAKE_C_FLAGS=-m64 -G Ninja -S . -B ./build/Debug diff --git a/01-build-game b/01-build-game new file mode 100755 index 0000000..e995a64 --- /dev/null +++ b/01-build-game @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +cmake --build build/Debug -t game diff --git a/02-build-server b/02-build-server new file mode 100755 index 0000000..0be2f80 --- /dev/null +++ b/02-build-server @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +cmake --build build/Debug -t server