diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2018-06-06 22:15:57 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2018-06-06 22:15:57 +0200 |
| commit | bdf76d9811bed3a7956eee37191ddff58deb5eb2 (patch) | |
| tree | d2e37ee83b3a6bcda9a78d4f48ae15ee2e023b8f /build.sh | |
| parent | 00cd13dd935eebb70e6954d506ff32a987ae28bc (diff) | |
| download | crsm-master.tar.gz crsm-master.zip | |
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 32 |
1 files changed, 32 insertions, 0 deletions
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" |
