|
|
|
|
|
|
engine_path= |
|
|
|
platform= |
|
|
|
gn_params="" |
|
|
|
optimize="--unoptimized" |
|
|
|
optimize="" |
|
|
|
ninja_params="" |
|
|
|
runtime_mode= |
|
|
|
|
|
|
|
|
|
|
esac |
|
|
|
done |
|
|
|
|
|
|
|
if [ "$runtime_mode" == "release" ] && [ "$optimize" == "--unoptimized" ]; |
|
|
|
if [ ! -d $engine_path ]; |
|
|
|
output_path="host_release_unopt" |
|
|
|
ninja_params=" -C out/host_release_unopt flutter/third_party/txt:txt_lib" |
|
|
|
elif [ "$runtime_mode" == "release" ] && [ "$optimize" == "" ]; |
|
|
|
mkdir $engine_path |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$runtime_mode" == "release" ]; |
|
|
|
optimize="" |
|
|
|
elif [ "$runtime_mode" == "debug" ] && [ "$optimize" == "--unoptimized" ]; |
|
|
|
then |
|
|
|
output_path="host_debug_unopt" |
|
|
|
ninja_params=" -C out/host_debug_unopt flutter/third_party/txt:txt_lib" |
|
|
|
elif [ "$runtime_mode" == "debug" ] && [ "$optimize" == "" ]; |
|
|
|
elif [ "$runtime_mode" == "debug" ]; |
|
|
|
optimize="--unoptimized" |
|
|
|
output_path="host_debug" |
|
|
|
ninja_params=" -C out/host_debug flutter/third_party/txt:txt_lib" |
|
|
|
elif [ "$runtime_mode" == "profile" ]; |
|
|
|
|
|
|
then |
|
|
|
rm -rf build_release/* |
|
|
|
mono bee.exe mac_release |
|
|
|
rm -rf ../com.unity.uiwidgets/Runtime/Plugins/osx/* |
|
|
|
rm -rf ../com.unity.uiwidgets/Runtime/Plugins/osx/* |
|
|
|
cp -r build_debug/. ../com.unity.uiwidgets/Runtime/Plugins/osx |
|
|
|
fi |