-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path3rdparty.sh
62 lines (42 loc) · 1.55 KB
/
3rdparty.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
#!/bin/sh
set -e
#--------------------------------------------------------------------------------------------------
# Settings
#--------------------------------------------------------------------------------------------------
source="https://github.com/omega-gg"
#--------------------------------------------------------------------------------------------------
# environment
compiler_win="mingw"
qt="qt5"
#--------------------------------------------------------------------------------------------------
# Syntax
#--------------------------------------------------------------------------------------------------
if [ $# != 1 -a $# != 2 ] \
|| \
[ $1 != "win32" -a $1 != "win64" -a $1 != "macOS" -a $1 != "linux" -a $1 != "android" ] \
|| \
[ $# = 2 -a "$2" != "all" ]; then
echo "Usage: 3rdparty <win32 | win64 | macOS | linux | android> [all]"
exit 1
fi
#--------------------------------------------------------------------------------------------------
# Clone
#--------------------------------------------------------------------------------------------------
cd ..
if [ ! -d "Sky" ]; then
git clone $source/Sky
fi
if [ ! -d "backend" ]; then
git clone $source/backend
fi
#--------------------------------------------------------------------------------------------------
# 3rdparty
#--------------------------------------------------------------------------------------------------
cd Sky
if [ "$2" = "all" ]; then
sh environment.sh $compiler_win
sh environment.sh $qt
sh 3rdparty.sh $1 all
else
sh 3rdparty.sh $1
fi