Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit cb8f324

Browse files
author
guanghuispark
committed
add default scripts
1 parent a4b2bbf commit cb8f324

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
engine_path=$(pwd)
2+
runtime_mode=release
3+
4+
while getopts ":r:m:" opt
5+
do
6+
case $opt in
7+
r)
8+
engine_path=$OPTARG # set engine_path, depot_tools and flutter engine folder will be put into this path
9+
;;
10+
m)
11+
runtime_mode=$OPTARG
12+
;;
13+
?)
14+
echo "unknown param"
15+
exit 1;;
16+
esac
17+
done
18+
19+
python3 lib_build.py -r $engine_path -p android -m $runtime_mode

engine/Scripts/lib_build_ios.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
engine_path=$(pwd)
2+
runtime_mode=release
3+
bitcode=""
4+
5+
while getopts ":r:m:e" opt
6+
do
7+
case $opt in
8+
r)
9+
engine_path=$OPTARG # set engine_path, depot_tools and flutter engine folder will be put into this path
10+
;;
11+
m)
12+
runtime_mode=$OPTARG
13+
;;
14+
e)
15+
bitcode="-e" # enable-bitcode switch
16+
;;
17+
?)
18+
echo "unknown param"
19+
exit 1;;
20+
esac
21+
done
22+
23+
python3 lib_build.py -r $engine_path -p ios -m $runtime_mode $bitcode
24+

engine/Scripts/lib_build_mac.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
engine_path=$(pwd)
2+
runtime_mode=release
3+
4+
while getopts ":r:m:" opt
5+
do
6+
case $opt in
7+
r)
8+
engine_path=$OPTARG # set engine_path, depot_tools and flutter engine folder will be put into this path
9+
;;
10+
m)
11+
runtime_mode=$OPTARG
12+
;;
13+
?)
14+
echo "unknown param"
15+
exit 1;;
16+
esac
17+
done
18+
19+
python3 lib_build.py -r $engine_path -p mac -m $runtime_mode
20+

0 commit comments

Comments
 (0)