-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildDart.sh
executable file
·57 lines (45 loc) · 1.12 KB
/
buildDart.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
#!/bin/bash
#
# This script gives two options to build either DEFAULT or IMMIX
#
if [[ $# -eq 0 ]] ;
then
echo 'Please specify a mode to build.'
exit 1
fi
CURRENT_PATH="$(dirname "$0")"
DEFAULT_PATH="$CURRENT_PATH/default"
IMMIX_PATH="$CURRENT_PATH/immix"
RUNTIME_PATH="$(dirname "$CURRENT_PATH")"
ROOT_PATH="$(dirname "$RUNTIME_PATH")"
if [ "$1" = "-h" ]
then
echo -e " - Usage: $./buildDart.sh [MODE]\n"
echo -e " MODE: default or immix\n"
exit 1
fi
if [ "$1" = "default" ]
then
# Building default version.
echo "Start default building..."
echo " - Copying default files"
cp -r $DEFAULT_PATH/* $RUNTIME_PATH/.
echo " - Building"
cd $ROOT_PATH
python tools/build.py --mode release --arch x64 create_sdk
cd -
echo "Done."
elif [ "$1" = "immix" ]
then
# Building Immix version.
echo "Start Immix building..."
echo " - Copying Immix files"
cp -r $IMMIX_PATH/* $RUNTIME_PATH/.
echo " - Building"
cd $ROOT_PATH
python tools/build.py --mode release --arch x64 create_sdk
cd -
echo "Done."
else
echo "Please specify a correct mode name."
fi