Skip to content

Commit fa52575

Browse files
Build script for Unix platforms
Added a simple shell script to build on non-Windows platform. ./build.sh builds retail by default ./build.sh -d builds debug
1 parent 1488485 commit fa52575

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

build.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#/usr/bin/env bash
2+
3+
if [ ! -d "BuildLinux" ]; then
4+
mkdir BuildLinux;
5+
fi
6+
7+
pushd BuildLinux > /dev/null
8+
9+
DEBUG_BUILD=0
10+
while getopts ":d" opt; do
11+
case $opt in
12+
d)
13+
DEBUG_BUILD=1
14+
;;
15+
esac
16+
done
17+
18+
if [ $DEBUG_BUILD -eq 1 ]; then
19+
echo Generating Debug makefiles
20+
cmake -DCMAKE_BUILD_TYPE=Debug ..
21+
else
22+
echo Generating Retail makefiles
23+
echo Building Retail;
24+
cmake ..
25+
fi
26+
27+
make |& tee build.log
28+
popd > /dev/null

0 commit comments

Comments
 (0)