skia2/include/gpu/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

170 lines
4.4 KiB
Python

load("//bazel:macros.bzl", "generated_cc_atom")
generated_cc_atom(
name = "GrBackendDrawableInfo_hdr",
hdrs = ["GrBackendDrawableInfo.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrTypes_hdr",
"//include/gpu/vk:GrVkTypes_hdr",
],
)
generated_cc_atom(
name = "GrBackendSemaphore_hdr",
hdrs = ["GrBackendSemaphore.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrTypes_hdr",
"//include/gpu/gl:GrGLTypes_hdr",
"//include/gpu/mtl:GrMtlTypes_hdr",
"//include/gpu/vk:GrVkTypes_hdr",
"//include/private:GrD3DTypesMinimal_hdr",
],
)
generated_cc_atom(
name = "GrBackendSurfaceMutableState_hdr",
hdrs = ["GrBackendSurfaceMutableState.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrTypes_hdr",
"//include/private:GrVkTypesPriv_hdr",
],
)
generated_cc_atom(
name = "GrBackendSurface_hdr",
hdrs = ["GrBackendSurface.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrBackendSurfaceMutableState_hdr",
":GrSurfaceInfo_hdr",
":GrTypes_hdr",
"//include/gpu/dawn:GrDawnTypes_hdr",
"//include/gpu/gl:GrGLTypes_hdr",
"//include/gpu/mock:GrMockTypes_hdr",
"//include/gpu/mtl:GrMtlTypes_hdr",
"//include/gpu/vk:GrVkTypes_hdr",
"//include/private:GrD3DTypesMinimal_hdr",
"//include/private:GrGLTypesPriv_hdr",
"//include/private:GrVkTypesPriv_hdr",
"//third_party:dawn",
],
)
generated_cc_atom(
name = "GrConfig_hdr",
hdrs = ["GrConfig.h"],
visibility = ["//:__subpackages__"],
deps = ["//include/core:SkTypes_hdr"],
)
generated_cc_atom(
name = "GrContextOptions_hdr",
hdrs = ["GrContextOptions.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrDriverBugWorkarounds_hdr",
":GrTypes_hdr",
":ShaderErrorHandler_hdr",
"//include/core:SkData_hdr",
"//include/core:SkString_hdr",
"//include/core:SkTypes_hdr",
"//include/private:GrTypesPriv_hdr",
],
)
generated_cc_atom(
name = "GrContextThreadSafeProxy_hdr",
hdrs = ["GrContextThreadSafeProxy.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrContextOptions_hdr",
":GrTypes_hdr",
"//include/core:SkImageInfo_hdr",
"//include/core:SkRefCnt_hdr",
],
)
generated_cc_atom(
name = "GrDirectContext_hdr",
hdrs = ["GrDirectContext.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrBackendSurface_hdr",
":GrRecordingContext_hdr",
"//include/core:SkUnPreMultiply_hdr",
],
)
generated_cc_atom(
name = "GrDriverBugWorkaroundsAutogen_hdr",
hdrs = ["GrDriverBugWorkaroundsAutogen.h"],
visibility = ["//:__subpackages__"],
)
generated_cc_atom(
name = "GrDriverBugWorkarounds_hdr",
hdrs = ["GrDriverBugWorkarounds.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrDriverBugWorkaroundsAutogen_hdr",
"//include/core:SkTypes_hdr",
],
)
generated_cc_atom(
name = "GrRecordingContext_hdr",
hdrs = ["GrRecordingContext.h"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkRefCnt_hdr",
"//include/private:GrImageContext_hdr",
"//include/private:SkTArray_hdr",
],
)
generated_cc_atom(
name = "GrSurfaceInfo_hdr",
hdrs = ["GrSurfaceInfo.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrTypes_hdr",
"//include/private:GrD3DTypesMinimal_hdr",
"//include/private:GrDawnTypesPriv_hdr",
"//include/private:GrGLTypesPriv_hdr",
"//include/private:GrMockTypesPriv_hdr",
"//include/private:GrMtlTypesPriv_hdr",
"//include/private:GrVkTypesPriv_hdr",
],
)
generated_cc_atom(
name = "GrTypes_hdr",
hdrs = ["GrTypes.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrConfig_hdr",
"//include/core:SkMath_hdr",
"//include/core:SkTypes_hdr",
],
)
generated_cc_atom(
name = "GrYUVABackendTextures_hdr",
hdrs = ["GrYUVABackendTextures.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrBackendSurface_hdr",
"//include/core:SkYUVAInfo_hdr",
],
)
generated_cc_atom(
name = "ShaderErrorHandler_hdr",
hdrs = ["ShaderErrorHandler.h"],
visibility = ["//:__subpackages__"],
deps = ["//include/core:SkTypes_hdr"],
)