-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·63 lines (43 loc) · 1.06 KB
/
build.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
CURRENT_ARCHITECTURE=""
CURRENT_PLATFORM=""
BUILD_TYPE="Release"
GL_TARGET="ogl"
. scipts/detectArchitecture.sh
echo "Architecture : ${CURRENT_ARCHITECTURE}"
. scipts/detectPlatform.sh
echo "Platform : ${CURRENT_PLATFORM}"
echo ""
if [[ $CURRENT_ARCHITECTURE == "arm" ]]; then
GL_TARGET="es2-rpi"
fi
for i in "$@"
do
case $i in
-buildtype=*)
if [[ ${i#*=} == "Release" || ${i#*=} == "Debug" ]]; then
BUILD_TYPE="${i#*=}"
else
echo "Err : Build type is unknown. Use default type - Release"
fi
;;
--arch=*)
if [[ ${i#*=} == "arm" || ${i#*=} == "x86_64" ]]; then
CURRENT_ARCHITECTURE="${i#*=}"
else
echo "Err : Seted architecture is unknown. Use default arch - x86_64"
CURRENT_ARCHITECTURE="x86_64"
fi
;;
-gltarget=*)
GL_TARGET="${i#*=}"
;;
--platform=*)
CURRENT_PLATFORM="${i#*=}"
;;
esac
done
. scipts/detectTools.sh
# . scipts/installPackages.sh
. scipts/installCinder.sh
. scipts/installApp.sh