From bdf76d9811bed3a7956eee37191ddff58deb5eb2 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Wed, 6 Jun 2018 22:15:57 +0200 Subject: Add build.sh --- .gitignore | 1 + README.md | 2 ++ build.sh | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 .gitignore create mode 100755 build.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/README.md b/README.md index 50da59d..6e84f78 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,5 @@ CRSM - Clonk Rage Server Manager This repository contains all relevant parts of CRSM as submodules. Clone with `git clone --recursive`. + +To just build everything needed (currently without clonk) make sure that Qt5 is installed and launch `build.sh` diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..65e6765 --- /dev/null +++ b/build.sh @@ -0,0 +1,32 @@ +#!/bin/bash +set -e + +echo "Arguments passed to this script will be passed on to make." +echo "For example you can try to speed up building by passing the -j flag with the number of processor cores to enable concurrent compiling." + +cd $(dirname $(realpath $0)) +mkdir -p build build/processmanager build/crsm build/bin + +( +echo +echo "Building ProcessManager" +echo +cd build/processmanager +cmake ../../processmanager +make "$@" +cp ProcessManager ../bin/ +) + +( +echo +echo "Building CrServerManager" +echo +cd build/crsm +qmake ../../manager/src/CrServerManager.pro +make "$@" +cp CrServerManager ../bin/ +) + +echo +echo "Done. Output files are in $PWD/build/bin/" +echo "To clean up everything, just remove the directory $PWD/build" -- cgit v1.2.3-54-g00ecf