46eaab3959
Ran the following commands: find -name "BUILD.bazel" -exec sed -i -e '1iload("//bazel:macros.bzl", "cc_library", "exports_files_legacy")\nexports_files_legacy()' {} + buildifier --lint=fix --mode=fix -r . This had the effect of making sure we can export all of our files in G3 (until we no longer have legacy targets) and making all of our cc_libraries shim-able. bazel/macros.bzl has the human-contributed changes, the rest were mechanical. Change-Id: I8e24e30e74b038cfd072cdbe4078bfd1d213dd46 Bug: skia:13211 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/535359 Reviewed-by: Ben Wagner <bungeman@google.com>
111 lines
2.8 KiB
Python
111 lines
2.8 KiB
Python
load("//bazel:macros.bzl", "exports_files_legacy", "generated_cc_atom")
|
|
|
|
exports_files_legacy()
|
|
|
|
licenses(["notice"])
|
|
|
|
generated_cc_atom(
|
|
name = "GrVulkanDefines_hdr",
|
|
hdrs = ["GrVulkanDefines.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//include/core:SkTypes_hdr",
|
|
"//include/third_party/vulkan:skias_vulkan_headers",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "VkTestContext_hdr",
|
|
hdrs = ["VkTestContext.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":GrVulkanDefines_hdr",
|
|
"//include/gpu/vk:GrVkBackendContext_hdr",
|
|
"//tools/gpu:TestContext_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "VkTestContext_src",
|
|
srcs = ["VkTestContext.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":VkTestContext_hdr",
|
|
":VkTestUtils_hdr",
|
|
"//include/gpu:GrDirectContext_hdr",
|
|
"//include/gpu/vk:GrVkExtensions_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "VkTestHelper_hdr",
|
|
hdrs = ["VkTestHelper.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//include/core:SkRefCnt_hdr",
|
|
"//include/core:SkTypes_hdr",
|
|
"//include/gpu/vk:GrVkBackendContext_hdr",
|
|
"//include/gpu/vk:GrVkExtensions_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "VkTestHelper_src",
|
|
srcs = ["VkTestHelper.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":VkTestHelper_hdr",
|
|
":VkTestUtils_hdr",
|
|
"//include/core:SkSurface_hdr",
|
|
"//include/gpu:GrDirectContext_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "VkTestUtils_hdr",
|
|
hdrs = ["VkTestUtils.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":GrVulkanDefines_hdr",
|
|
"//include/core:SkTypes_hdr",
|
|
"//include/gpu/vk:GrVkBackendContext_hdr",
|
|
"//include/gpu/vk:GrVkTypes_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "VkTestUtils_src",
|
|
srcs = ["VkTestUtils.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":VkTestUtils_hdr",
|
|
"//include/gpu/vk:GrVkBackendContext_hdr",
|
|
"//include/gpu/vk:GrVkExtensions_hdr",
|
|
"//src/core:SkAutoMalloc_hdr",
|
|
"//src/ports:SkOSLibrary_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "VkYcbcrSamplerHelper_hdr",
|
|
hdrs = ["VkYcbcrSamplerHelper.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//include/core:SkTypes_hdr",
|
|
"//include/gpu:GrBackendSurface_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "VkYcbcrSamplerHelper_src",
|
|
srcs = ["VkYcbcrSamplerHelper.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":VkYcbcrSamplerHelper_hdr",
|
|
"//include/gpu:GrDirectContext_hdr",
|
|
"//src/gpu/ganesh:GrDirectContextPriv_hdr",
|
|
"//src/gpu/ganesh/vk:GrVkGpu_hdr",
|
|
"//src/gpu/ganesh/vk:GrVkUtil_hdr",
|
|
],
|
|
)
|