skia2/tools/sk_app/win/BUILD.bazel
Kevin Lubick 7ac7413f08 [bazel] Support Vulkan
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>
2022-03-08 21:21:17 +00:00

118 lines
3.2 KiB
Python

load("//bazel:macros.bzl", "generated_cc_atom")
generated_cc_atom(
name = "ANGLEWindowContext_win_src",
srcs = ["ANGLEWindowContext_win.cpp"],
visibility = ["//:__subpackages__"],
deps = [
":WindowContextFactory_win_hdr",
"//include/gpu/gl:GrGLAssembleInterface_hdr",
"//src/gpu/gl:GrGLDefines_hdr",
"//tools/sk_app:GLWindowContext_hdr",
],
)
generated_cc_atom(
name = "D3D12WindowContext_win_src",
srcs = ["D3D12WindowContext_win.cpp"],
visibility = ["//:__subpackages__"],
deps = [
":WindowContextFactory_win_hdr",
"//include/core:SkSurface_hdr",
"//include/gpu:GrDirectContext_hdr",
"//include/gpu/d3d:GrD3DBackendContext_hdr",
"//tools/gpu/d3d:D3DTestUtils_hdr",
"//tools/sk_app:WindowContext_hdr",
],
)
generated_cc_atom(
name = "DawnD3D12WindowContext_win_src",
srcs = ["DawnD3D12WindowContext_win.cpp"],
visibility = ["//:__subpackages__"],
deps = [
":WindowContextFactory_win_hdr",
"//third_party:dawn",
"//tools/sk_app:DawnWindowContext_hdr",
],
)
generated_cc_atom(
name = "GLWindowContext_win_src",
srcs = ["GLWindowContext_win.cpp"],
visibility = ["//:__subpackages__"],
deps = [
":WindowContextFactory_win_hdr",
"//include/gpu/gl:GrGLInterface_hdr",
"//src/utils/win:SkWGL_hdr",
"//tools/sk_app:GLWindowContext_hdr",
],
)
generated_cc_atom(
name = "RasterWindowContext_win_src",
srcs = ["RasterWindowContext_win.cpp"],
visibility = ["//:__subpackages__"],
deps = [
":WindowContextFactory_win_hdr",
"//include/core:SkSurface_hdr",
"//src/core:SkAutoMalloc_hdr",
"//tools/sk_app:RasterWindowContext_hdr",
],
)
generated_cc_atom(
name = "VulkanWindowContext_win_src",
srcs = ["VulkanWindowContext_win.cpp"],
visibility = ["//:__subpackages__"],
deps = [
":WindowContextFactory_win_hdr",
":Window_win_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_win_hdr",
hdrs = ["WindowContextFactory_win.h"],
visibility = ["//:__subpackages__"],
)
generated_cc_atom(
name = "Window_win_hdr",
hdrs = ["Window_win.h"],
visibility = ["//:__subpackages__"],
deps = ["//tools/sk_app:Window_hdr"],
)
generated_cc_atom(
name = "Window_win_src",
srcs = ["Window_win.cpp"],
visibility = ["//:__subpackages__"],
deps = [
":WindowContextFactory_win_hdr",
":Window_win_hdr",
"//include/gpu/vk:GrVkVulkan_hdr",
"//src/utils:SkUTF_hdr",
"//tools/sk_app:VulkanWindowContext_hdr",
"//tools/sk_app:WindowContext_hdr",
"//tools/skui:ModifierKey_hdr",
],
)
generated_cc_atom(
name = "main_win_src",
srcs = ["main_win.cpp"],
visibility = ["//:__subpackages__"],
deps = [
":Window_win_hdr",
"//include/core:SkTypes_hdr",
"//tools/sk_app:Application_hdr",
"//tools/timer:Timer_hdr",
],
)