aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
blob: 65e6765026a9e85f5c645c3a5df2fd11070150ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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"