浏览代码

revert patches

/zgh-build_scripts
guanghuispark 3 年前
当前提交
a4a32df2
共有 4 个文件被更改,包括 36 次插入0 次删除
  1. 9
      engine/Scripts/lib_build_android.sh
  2. 6
      engine/Scripts/lib_build_ios.sh
  3. 7
      engine/Scripts/lib_build_mac.sh
  4. 14
      engine/Scripts/lib_build_win.py

9
engine/Scripts/lib_build_android.sh


$FLUTTER_ROOT_PATH/buildtools/mac-x64/clang/bin/clang++ @"artifacts/rsp/14590475716575637239.rsp"
cp artifacts/libUIWidgets/release_Android_arm32/libUIWidgets.so ../com.unity.uiwidgets/Runtime/Plugins/Android/libUIWidgets.so
echo "\nRevert patches..."
cd $FLUTTER_ROOT_PATH/flutter/third_party/txt
patch -R < BUILD.gn.patch
cd $FLUTTER_ROOT_PATH/build/secondary/third_party/libcxxabi
patch -R < BUILD_2.gn.patch
cd $FLUTTER_ROOT_PATH/build/mac
patch -R < find_sdk.patch

6
engine/Scripts/lib_build_ios.sh


tundra_file="$work_path/../artifacts/tundra.dag.json"
python3 Scripts/prelink.py $tundra_file $runtime_mode $output_path $work_path $bitcode
echo "\nRevert patches..."
cd $FLUTTER_ROOT_PATH/flutter/third_party/txt
patch -R < BUILD.gn.patch
cd $FLUTTER_ROOT_PATH/build/mac
patch -R < find_sdk.patch

7
engine/Scripts/lib_build_mac.sh


mono bee.exe mac_debug
cp -r build_debug/. ../com.unity.uiwidgets/Runtime/Plugins/osx
fi
echo "\nRevert patches..."
cd $FLUTTER_ROOT_PATH/flutter/third_party/txt
patch -R < BUILD.gn.patch
cd $FLUTTER_ROOT_PATH/build/mac
patch -R < find_sdk.patch

14
engine/Scripts/lib_build_win.py


os.system("mono bee.exe win_debug")
os.system("cp -r build_debug/. ../com.unity.uiwidgets/Runtime/Plugins/x86_64")
def revert_patches():
print("\nRevert patches...")
os.chdir(flutter_root_path + "/flutter/third_party/txt")
os.system("patch -R < BUILD.gn.patch")
os.chdir(flutter_root_path + "/third_party/angle")
os.system("patch -R < BUILD.gn.patch -N")
os.chdir(flutter_root_path + "/third_party/angle/src/libANGLE/renderer/d3d/d3d11/")
os.system("patch -R < cpp.patch")
os.chdir(flutter_root_path + "/third_party/skia/")
os.system("patch -R < BUILD_2.gn.patch")
def main():
get_opts()

get_flutter_engine()
compile_engine()
build_engine()
revert_patches()
if __name__=="__main__":
main()
正在加载...
取消
保存