1load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_cc_library") 2 3package( 4 default_applicable_licenses = ["//:license"], 5) 6 7licenses(["notice"]) 8 9exports_files_legacy() 10 11skia_cc_library( 12 name = "vulkanmemoryallocator", 13 srcs = [ 14 "VulkanMemoryAllocatorWrapper.cpp", 15 ], 16 copts = [ 17 # Because `copts` options don't propagate up the stack, some static errors in 18 # `vk_mem_alloc.h` need to be suppressed in the BUILD rule which includes the library. 19 # 20 # https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/issues/298 21 "-Wno-unused-variable", 22 # https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/issues/299 23 "-Wno-implicit-fallthrough", 24 ], 25 textual_hdrs = [ 26 "VulkanMemoryAllocatorWrapper.h", 27 ], 28 visibility = ["//:__subpackages__"], 29 deps = [ 30 "//include/third_party/vulkan", 31 "@vulkanmemoryallocator//:hdrs", 32 ], 33) 34