浏览代码

add default scripts

/zgh-build_scripts
guanghuispark 3 年前
当前提交
33b35dbb
共有 3 个文件被更改,包括 63 次插入0 次删除
  1. 19
      engine/Scripts/lib_build_android.sh
  2. 24
      engine/Scripts/lib_build_ios.sh
  3. 20
      engine/Scripts/lib_build_mac.sh

19
engine/Scripts/lib_build_android.sh


engine_path=$(pwd)
runtime_mode=release
while getopts ":r:m:" opt
do
case $opt in
r)
engine_path=$OPTARG # set engine_path, depot_tools and flutter engine folder will be put into this path
;;
m)
runtime_mode=$OPTARG
;;
?)
echo "unknown param"
exit 1;;
esac
done
python3 lib_build.py -r $engine_path -p android -m $runtime_mode

24
engine/Scripts/lib_build_ios.sh


engine_path=$(pwd)
runtime_mode=release
bitcode=""
while getopts ":r:m:e" opt
do
case $opt in
r)
engine_path=$OPTARG # set engine_path, depot_tools and flutter engine folder will be put into this path
;;
m)
runtime_mode=$OPTARG
;;
e)
bitcode="-e" # enable-bitcode switch
;;
?)
echo "unknown param"
exit 1;;
esac
done
python3 lib_build.py -r $engine_path -p ios -m $runtime_mode $bitcode

20
engine/Scripts/lib_build_mac.sh


engine_path=$(pwd)
runtime_mode=release
while getopts ":r:m:" opt
do
case $opt in
r)
engine_path=$OPTARG # set engine_path, depot_tools and flutter engine folder will be put into this path
;;
m)
runtime_mode=$OPTARG
;;
?)
echo "unknown param"
exit 1;;
esac
done
python3 lib_build.py -r $engine_path -p mac -m $runtime_mode
正在加载...
取消
保存