File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -320,13 +320,23 @@ index 0000000..564c582
320320diff --git a/engine/src/flutter/shell/testing/BUILD.gn b/engine/src/flutter/shell/testing/BUILD.gn
321321--- a/engine/src/flutter/shell/testing/BUILD.gn
322322+++ b/engine/src/flutter/shell/testing/BUILD.gn
323- @@ -100,6 +100,10 @@ tester("flutter_tester") {
323+ @@ -63,6 +63,9 @@ template("tester") {
324+ "shlwapi.lib",
325+ ]
326+ }
327+ + if (defined(invoker.libs)) {
328+ + libs += invoker.libs
329+ + }
330+
331+ deps = [
332+ "$dart_src/runtime:libdart_jit",
333+ @@ -104,6 +107,10 @@ tester("flutter_tester") {
324334 deps = [
325335 ":tester_gpu_configuration",
326336 "//flutter/third_party/swiftshader/src/Vulkan:swiftshader_libvulkan_static",
327337 ]
328338+ if (is_termux) {
329- + libs + = [ "vk_swiftshader" ]
339+ + libs = [ "vk_swiftshader" ]
330340+ deps -= [ "//flutter/third_party/swiftshader/src/Vulkan:swiftshader_libvulkan_static" ]
331341+ }
332342 }
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ def test_engine_patch_contains_termux_build_fixes(self):
7575 )
7676 self .assertIn ('#if defined(__TERMUX__)' , patch_contents )
7777 self .assertIn ('diff --git a/engine/src/flutter/shell/platform/linux/fl_view_accessible.cc' , patch_contents )
78+ self .assertIn ('+ if (defined(invoker.libs)) {' , patch_contents )
79+ self .assertIn ('+ libs += invoker.libs' , patch_contents )
80+ self .assertIn ('+ libs = [ "vk_swiftshader" ]' , patch_contents )
7881 fl_view_accessible_hunk = re .search (
7982 r"\+\+\+ b/engine/src/flutter/shell/platform/linux/fl_view_accessible\.cc\n"
8083 r"@@ -\d+,\d+ \+\d+,\d+ @@\n"
You can’t perform that action at this time.
0 commit comments