@@ -31,6 +31,7 @@ gclient sync -D
3131```
3232
3333Apply the following diff:
34+ modify flutter/third_party/txt/BUILD.gn
3435```
3536--- a/third_party/txt/BUILD.gn
3637+++ b/third_party/txt/BUILD.gn
@@ -55,6 +56,44 @@ Apply the following diff:
5556+}
5657```
5758
59+ modify third_party/angnle/BUILD.gn
60+ ```
61+ diff --git a/BUILD.gn b/BUILD.gn
62+ index 06bf3bbbe..b4289dfa7 100644
63+ --- a/BUILD.gn
64+ +++ b/BUILD.gn
65+ @@ -1252,3 +1252,17 @@ if (!is_component_build && is_android &&
66+ ]
67+ }
68+ }
69+ +angle_static_library("angle_lib"){
70+ + complete_static_lib = true
71+ +
72+ + deps = [
73+ + ":libANGLE",
74+ + ":libANGLE_base",
75+ + ":angle_system_utils",
76+ + ":angle_version",
77+ + ]
78+ +
79+ + public_deps = [
80+ + ":includes",
81+ + ]
82+ +}
83+ diff --git a/src/libANGLE/renderer/d3d/d3d11/ExternalImageSiblingImpl11.cpp b/src/libANGLE/renderer/d3d/d3d11/ExternalImageSiblingImpl11.cpp
84+ index adeeb5aa1..c9677bd8d 100644
85+ --- a/src/libANGLE/renderer/d3d/d3d11/ExternalImageSiblingImpl11.cpp
86+ +++ b/src/libANGLE/renderer/d3d/d3d11/ExternalImageSiblingImpl11.cpp
87+ @@ -144,7 +144,7 @@ angle::Result ExternalImageSiblingImpl11::createRenderTarget(const gl::Context *
88+
89+ mRenderTarget = std::make_unique<TextureRenderTarget11>(
90+ std::move(rtv), mTexture, std::move(srv), std::move(blitSrv), formatInfo.internalFormat,
91+ - formatInfo, mSize.width, mSize.height, 1, 1);
92+ + formatInfo, mSize.width, mSize.height, 1, mSamples);
93+ return angle::Result::Continue;
94+ }
95+ ```
96+
5897
5998update ` out\host_debug_unopt\args.gn `
6099```
@@ -82,39 +121,10 @@ set GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\C
82121cd engine/src
83122python ./flutter/tools/gn --unoptimized
84123ninja -C out\host_debug_unopt flutter/third_party/txt:txt_lib
124+ ninja -C out\host_debug_unopt third_party/angle:angle_lib
125+ ninja -C out\host_debug_unopt third_party/angle:libEGL_static
85126```
86127
87- ### Build Skia
88- 1 . Install LLVM
89-
90- https://clang.llvm.org/get_started.html
91-
92- 2 . Build skia
93- ```
94- cd $FLUTTER_ROOT/third_party/skia
95- python2 tools/git-sync-deps
96- bin/gn gen out/Debug
97- ```
98-
99- Update out/Debug/args.gn with the following content:
100- ```
101- clang_win = "C:\Program Files\LLVM/third_party/skia"
102- win_vc = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC"
103- cc = "clang"
104- cxx = "clang++"
105- is_debug = true
106- skia_use_angle = true
107- skia_use_egl = true
108- extra_cflags = [
109- "/MTd",
110- "-I../../third_party/externals/angle2/include",
111- ]
112- ```
113- ```
114- ninja -C out/Debug -k 0
115- ```
116- Ignore this error: "lld-link: error: could not open 'EGL': no such file or directory"
117-
118128convert icudtl.dat to object file in flutter
119129```
120130cd flutterRoot/third_party/icu/flutter/
0 commit comments