Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Commit d01da27

Browse files
authored
Update build configs for ANGLE, vulkan-deps, and SwiftShader roll (#669)
Our tests depend on the Xcb and Wayland Vulkan extensions that are provided by SwiftShader. The latest version of SwiftShader now requires you to opt-in to these extensions through build flags. See: flutter/engine#38650 Part of: flutter/flutter#117932
1 parent 5ca962c commit d01da27

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

build/config/BUILDCONFIG.gn

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,15 @@ is_castos = false
297297
is_chromecast = false
298298
is_chromeos_lacros = false
299299
ozone_platform_headless = false
300-
ozone_platform_x11 = false
301-
ozone_platform_wayland = false
300+
301+
# Needed for //third_party/swiftshader and //third_party/angle.
302+
if (is_linux) {
303+
ozone_platform_x11 = true
304+
ozone_platform_wayland = true
305+
} else {
306+
ozone_platform_x11 = false
307+
ozone_platform_wayland = false
308+
}
302309

303310
default_library_type = "static_library"
304311

build_overrides/wayland.gni

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
# found in the LICENSE file.
44

55
# ANGLE expects this to be here.
6+
7+
# Flutter has no wayland third-party dir
8+
wayland_gn_dir = ""

0 commit comments

Comments
 (0)