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

Update Skia build for Vulkan headers #55143

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions skia/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ skia_library_configs = [
":skia_library",
]

config("our_vulkan_headers") {
include_dirs = [ "include/third_party/vulkan" ]
defines = [ "SK_USE_INTERNAL_VULKAN_HEADERS" ]
}

# Use for CPU-specific Skia code that needs particular compiler flags.
template("opts") {
if (invoker.enabled) {
Expand Down Expand Up @@ -351,6 +356,7 @@ optional("fontmgr_win") {
optional("gpu_shared") {
enabled = skia_enable_ganesh

configs = []
deps = []
libs = []
public_defines = []
Expand All @@ -364,6 +370,7 @@ optional("gpu_shared") {
if (skia_use_vulkan) {
public_defines += [ "SK_VULKAN" ]
sources += skia_shared_vk_sources
configs += [ ":our_vulkan_headers" ]
if (skia_enable_vulkan_debug_layers) {
public_defines += [ "SK_ENABLE_VK_LAYERS" ]
}
Expand All @@ -380,6 +387,8 @@ optional("gpu_shared") {

optional("gpu") {
enabled = skia_enable_ganesh

configs = []
deps = [ ":gpu_shared" ]
public_defines = []
public_configs = []
Expand Down Expand Up @@ -445,6 +454,7 @@ optional("gpu") {
if (skia_use_vulkan) {
public += skia_gpu_vk_public
sources += skia_gpu_vk_private
configs += [ ":our_vulkan_headers" ]
if (is_fuchsia) {
public_deps += [ "${fuchsia_sdk}/pkg/vulkan" ]
}
Expand Down