-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild-all.sh
More file actions
executable file
·54 lines (41 loc) · 1.05 KB
/
build-all.sh
File metadata and controls
executable file
·54 lines (41 loc) · 1.05 KB
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
#!/bin/bash
#--------------------------------------------------------------------
# Functions
Log()
{
echo ">>>>>> $@"
}
exitWithError()
{
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "! $@"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
exit -1
}
exitOnError()
{
if [[ 0 -eq $? ]]; then return 0; fi
exitWithError $@
}
doBuild()
{
echo "----------------------------------------"
Log "Building $1"
echo "----------------------------------------"
./build.sh build $CONFIG $1
exitOnError "Failed to build $1"
CFGBUILT="$CFGBUILT $1"
}
#--------------------------------------------------------------------
# Configuration
CFGBUILT=
CONFIG=$1
if [[ "release" != "$CONFIG" ]] && [[ "debug" != "$CONFIG" ]]; then
exitWithError "Specify \"release\" or \"debug\""
fi
#--------------------------------------------------------------------
# Build
doBuild arm64-apple-ios12.0
# doBuild arm64-apple-macos12.0
doBuild arm64_x86_64-apple-ios12.0-simulator
echo "Build succeeded: $CFGBUILT"