From 8d11bfc1404d3af912c220868940ded8fb3816f7 Mon Sep 17 00:00:00 2001 From: Miguel Casas-Sanchez Date: Mon, 4 Nov 2024 08:55:06 -0800 Subject: [PATCH] Disable Vulkan build when is_starboard is defined Vulkan is a new rendering (and presentation, and more) API intended to replace E/GL(ES). Starboard doesn't define it and it's likely unsupported by partners (and even if it is, the status would be unknown and by experience not ready). This CL/PR disables building it when starboard is defined. On dependencies, //gpu is a low level folder (like //base) so it can depend on //starboard concepts. Modifying it is not fully desirable (complicates future uprevs), however the CL tries to make the delta easy to rebase. b/371272304 --- gpu/vulkan/features.gni | 1 + 1 file changed, 1 insertion(+) diff --git a/gpu/vulkan/features.gni b/gpu/vulkan/features.gni index bcaa5a3273b7..aa2a4f1baccf 100644 --- a/gpu/vulkan/features.gni +++ b/gpu/vulkan/features.gni @@ -10,6 +10,7 @@ declare_args() { # Enable experimental vulkan backend. enable_vulkan = is_linux || is_chromeos || is_android || is_fuchsia || is_win || is_mac + && !use_starboard # Enable swiftshader vulkan. Disabling it can save build time, however # --use-vulkan=swiftshader and some tests which use swiftshader vulkan will