浏览代码

Update lib_build_mac.sh

/zgh-build_scripts
guanghuispark 4 年前
当前提交
815888e7
共有 1 个文件被更改,包括 9 次插入12 次删除
  1. 21
      engine/Scripts/lib_build_mac.sh

21
engine/Scripts/lib_build_mac.sh


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
正在加载...
取消
保存