1load("//bazel:skia_rules.bzl", "generate_cpp_files_for_headers", "skia_cc_library", "split_srcs_and_hdrs") 2 3package( 4 default_applicable_licenses = ["//:license"], 5) 6 7licenses(["notice"]) 8 9VK_FILES = [ 10 "VulkanExtensions.cpp", 11 "VulkanInterface.cpp", 12 "VulkanInterface.h", 13 "VulkanMemory.cpp", 14 "VulkanMemory.h", 15 "VulkanUtilsPriv.cpp", 16 "VulkanUtilsPriv.h", 17 "VulkanMutableTextureStatePriv.h", 18 "VulkanMutableTextureState.cpp", 19] 20 21split_srcs_and_hdrs( 22 name = "_vk", 23 files = VK_FILES, 24) 25 26generate_cpp_files_for_headers( 27 name = "headers_to_compile", 28 headers = [ 29 "VulkanMutableTextureStatePriv.h", 30 ], 31) 32 33skia_cc_library( 34 name = "vk", 35 srcs = [ 36 ":_vk_srcs", 37 "//include/private/gpu/vk:private_hdrs", 38 ], 39 hdrs = [ 40 ":_vk_hdrs", 41 "//include/gpu/vk:shared_public_hdrs", 42 ], 43 features = ["layering_check"], 44 implementation_deps = [ 45 "//include/third_party/vulkan", 46 ], 47 local_defines = ["SK_USE_INTERNAL_VULKAN_HEADERS"], 48 visibility = [ 49 "//src/gpu/ganesh/vk:__pkg__", 50 "//src/gpu/graphite/vk:__pkg__", 51 "//src/gpu/vk/vulkanmemoryallocator:__pkg__", 52 ], 53 deps = [ 54 "//:core", 55 "//src/base", 56 "//src/gpu", 57 "//src/sksl/codegen:spirv", 58 ], 59) 60