Debian Codegraph @

src/gpu/vk/BUILD.bazel

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