您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Kevin Gu eea80dd6 | 5 年前 | |
---|---|---|
.. | ||
src | 5 年前 | |
third_party/Unity | 5 年前 | |
.gitignore | 5 年前 | |
Build.bee.cs | 5 年前 | |
README.md | 5 年前 | |
bee.exe | 5 年前 | |
bee.pdb | 5 年前 |
README.md
UIWidgets Engine
Introduction
This is the engine code of UIWidgets.
How to Build Depedencies (Windows)
Build Skia
- Install depot_tools
git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
Add ${PWD}/depot_tools to PATH
- Clone the skia Repo
git clone https://skia.googlesource.com/skia.git cd skia git checkout chrome/m85 python2 tools/git-sync-deps
- Build skia
bin/gn gen out/Debug
Update out/Debug/args.gn with the following content:
clang_win = "C:\Program Files\LLVM"
cc = "clang"
cxx = "clang++"
is_debug = true
skia_use_angle = true
skia_use_egl = true
extra_cflags = [
"/MTd",
"-I../../third_party/externals/angle2/include",
]
ninja -C out/Debug -k 0
Ignore this error: "lld-link: error: could not open 'EGL': no such file or directory"
Build flutter fml
- Setting up the Engine development environment
Follow https://github.com/flutter/flutter/wiki/Setting-up-the-Engine-development-environment
- Compiling for Windows
Follow https://github.com/flutter/flutter/wiki/Compiling-the-engine#compiling-for-windows
- Checkout flutter-1.17-candidate.5
cd engine/src/flutter
git checkout flutter-1.17-candidate.5
gclient sync -D
Apply the following diff:
diff --git a/fml/BUILD.gn b/fml/BUILD.gn
index 9b5626e78..da1322ce5 100644
--- a/fml/BUILD.gn
+++ b/fml/BUILD.gn
@@ -295,3 +295,10 @@ executable("fml_benchmarks") {
"//flutter/runtime:libdart",
]
}
+
+static_library("fml_lib") {
+ complete_static_lib = true
+ deps = [
+ "//flutter/fml",
+ ]
+}
set GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
cd engine/src
python ./flutter/tools/gn --unoptimized
ninja -C .\out\host_debug_unopt\ flutter/fml:fml_lib
Build flutter txt
...
How to Build Engine
bee