7ac7413f08
PS1 regenerates BUILD.bazel files I suggest reviewing the deltas between PS1 and the latest PS to focus on the interesting bits. The changes here allow for a Vulkan-only build of HelloWorld based on sk_app. The toughest change was properly fetching the VisualID after removing the gl calls that used to fill that in. There are a few changes that fix resolution of Dawn header files, but those won't actually be built until a follow-on CL. Change-Id: I54fb58b5dd7ecd4313562aed401759b3eaed53c0 Bug: skia:12541 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/516999 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
111 lines
2.9 KiB
Python
111 lines
2.9 KiB
Python
load("//bazel:macros.bzl", "generated_cc_atom")
|
|
|
|
generated_cc_atom(
|
|
name = "DawnVulkanWindowContext_unix_src",
|
|
srcs = ["DawnVulkanWindowContext_unix.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":WindowContextFactory_unix_hdr",
|
|
"//include/third_party:skias_vulkan_headers",
|
|
"//src/ports:SkOSLibrary_hdr",
|
|
"//third_party:dawn",
|
|
"//tools/gpu/vk:VkTestUtils_hdr",
|
|
"//tools/sk_app:DawnWindowContext_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "GLWindowContext_unix_src",
|
|
srcs = ["GLWindowContext_unix.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":WindowContextFactory_unix_hdr",
|
|
"//include/gpu/gl:GrGLInterface_hdr",
|
|
"//tools/sk_app:GLWindowContext_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "RasterWindowContext_unix_src",
|
|
srcs = ["RasterWindowContext_unix.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":WindowContextFactory_unix_hdr",
|
|
"//include/core:SkSurface_hdr",
|
|
"//tools/sk_app:RasterWindowContext_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "VulkanWindowContext_unix_src",
|
|
srcs = ["VulkanWindowContext_unix.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":WindowContextFactory_unix_hdr",
|
|
"//include/gpu/vk:GrVkVulkan_hdr",
|
|
"//src/gpu/vk:GrVkInterface_hdr",
|
|
"//src/gpu/vk:GrVkUtil_hdr",
|
|
"//tools/gpu/vk:VkTestUtils_hdr",
|
|
"//tools/sk_app:VulkanWindowContext_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "WindowContextFactory_unix_hdr",
|
|
hdrs = ["WindowContextFactory_unix.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = ["//third_party:dawn"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "Window_unix_hdr",
|
|
hdrs = ["Window_unix.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//include/private:SkChecksum_hdr",
|
|
"//src/core:SkTDynamicHash_hdr",
|
|
"//tools/sk_app:Window_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "Window_unix_src",
|
|
srcs = ["Window_unix.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":WindowContextFactory_unix_hdr",
|
|
":Window_unix_hdr",
|
|
":keysym2ucs_hdr",
|
|
"//src/utils:SkUTF_hdr",
|
|
"//tools/sk_app:GLWindowContext_hdr",
|
|
"//tools/skui:ModifierKey_hdr",
|
|
"//tools/timer:Timer_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "keysym2ucs_hdr",
|
|
hdrs = ["keysym2ucs.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "keysym2ucs_src",
|
|
srcs = ["keysym2ucs.c"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [":keysym2ucs_hdr"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "main_unix_src",
|
|
srcs = ["main_unix.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":Window_unix_hdr",
|
|
"//include/core:SkTypes_hdr",
|
|
"//include/private:SkTHash_hdr",
|
|
"//tools/sk_app:Application_hdr",
|
|
"//tools/timer:Timer_hdr",
|
|
],
|
|
)
|