Skip to content

Commit 3b37722

Browse files
committed
Add flags to choose config script
1 parent 596fa8d commit 3b37722

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

build.sh

100644100755
+13-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
#!/bin/bash
22

33
if [ "$1" == "" ] ; then
4-
CONFIG=Debug
4+
CONFIG=Debug
55
else
6-
CONFIG=$1
6+
CONFIG=$1
77
fi
88

9-
source config_all.sh $CONFIG
9+
if [ "$1" == "qt" ]; then
10+
CONF_SCRIPT="config_qt.sh"
11+
elif ["$1" == "imgui"];then
12+
CONF_SCRIPT="config_imgui.sh"
13+
else
14+
CONF_SCRIPT="config.sh"
15+
fi
16+
17+
source $CONF_SCRIPT $CONFIG
1018

1119
if [[ "$OSTYPE" == "darwin"* ]]; then
12-
PACKAGE_TYPE=osx
20+
PACKAGE_TYPE=osx
1321
else
14-
PACKAGE_TYPE=linux
22+
PACKAGE_TYPE=linux
1523
fi
1624

1725
cd build

config_imgui.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ cd build
55
if [ "$1" != "" ] ; then
66
cmake -G "Unix Makefiles" -DBUILD_QT=OFF -DBUILD_IMGUI=ON -DCMAKE_BUILD_TYPE=$1 ../
77
else
8-
cmake -G "Unix Makefiles" -DBUILD_QT=OFF -DBUILD_IMGUI=ON -DCMAKE_BUILD_TYPE=Release ../
8+
cmake -G "Unix Makefiles" -DBUILD_QT=OFF -DBUILD_IMGUI=ON -DBUILD_EXTENSIONS=ON -DCMAKE_BUILD_TYPE=Release ../
99
fi
1010
cd ../

0 commit comments

Comments
 (0)