|
|
|
|
|
|
engine_path= |
|
|
|
platform= |
|
|
|
gn_params="" |
|
|
|
optimize="--unoptimized" |
|
|
|
optimize="" |
|
|
|
ninja_params="" |
|
|
|
runtime_mode= |
|
|
|
bitcode="" |
|
|
|
|
|
|
bitcode="-bitcode_bundle -bitcode_verify" |
|
|
|
gn_params="$gn_params --bitcode" # enable-bitcode switch |
|
|
|
;; |
|
|
|
o) |
|
|
|
optimize="" # optimize code switch |
|
|
|
;; |
|
|
|
?) |
|
|
|
echo "unknown param" |
|
|
|
exit 1;; |
|
|
|
|
|
|
if [ "$runtime_mode" == "release" ] && [ "$optimize" == "--unoptimized" ]; |
|
|
|
if [ ! -d $engine_path ]; |
|
|
|
output_path="ios_release_unopt" |
|
|
|
ninja_params=" -C out/$output_path flutter/third_party/txt:txt_lib" |
|
|
|
elif [ "$runtime_mode" == "release" ] && [ "$optimize" == "" ]; |
|
|
|
mkdir $engine_path |
|
|
|
|
|
|
|
|
|
|
|
if [ "$runtime_mode" == "release" ]; |
|
|
|
optimize="" |
|
|
|
elif [ "$runtime_mode" == "debug" ] && [ "$optimize" == "--unoptimized" ]; |
|
|
|
then |
|
|
|
output_path="ios_debug_unopt" |
|
|
|
ninja_params=" -C out/$output_path flutter/third_party/txt:txt_lib" |
|
|
|
elif [ "$runtime_mode" == "debug" ] && [ "$optimize" == "" ]; |
|
|
|
elif [ "$runtime_mode" == "debug" ]; |
|
|
|
output_path="ios_debug" |
|
|
|
optimize="--unoptimized" |
|
|
|
output_path="ios_debug" |
|
|
|
ninja_params=" -C out/$output_path flutter/third_party/txt:txt_lib" |
|
|
|
elif [ "$runtime_mode" == "profile" ]; |
|
|
|
then |
|
|
|
|
|
|
then |
|
|
|
rm -rf build_release/* |
|
|
|
mono bee.exe ios_release |
|
|
|
rm -rf ../com.unity.uiwidgets/Runtime/Plugins/ios/* |
|
|
|
rm -rf ../com.unity.uiwidgets/Runtime/Plugins/ios/* |
|
|
|
cp -r build_debug/. ../com.unity.uiwidgets/Runtime/Plugins/ios |
|
|
|
fi |
|
|
|
|
|
|
|