skia2/include/gpu/BUILD.bazel
Kevin Lubick 24f0b884c0 [bazel] Move Dawn BUILD.bazel to third_party/bazel
Rather than having a monolithic third_party/BUILD.bazel, this moves
our Dawn rules to their own subdirectory and makes it callable via
@dawn instead of //third_party/dawn.

This will help with the G3 roll and make our rules more organized in
general.

This also rolls Dawn
Roll Dawn from ab9757036bd6 to e831fb61046b (22 revisions)

https://dawn.googlesource.com/dawn.git/+log/ab9757036bd6..e831fb61046b

Suggested Review Order:
 - WORKSPACE.bazel, where we define @dawn and its deps
   (@vulkan_headers and @vulkan_tools). I initially thought
   I needed to define all of Dawn's deps in the workspace_file_content
   for new_local_repository, but that WORKSPACE file is
   ignored when building Skia rules.
 - third_party/dawn/BUILD.bazel, the contents of which were copied
   from //third_party/BUILD.bazel and modified largely via
   find-and-replace to point to files relative to
   //third_party/externals/dawn. One exception is the cpu_wasm
   config_setting because @dawn isn't able to see Skia's
   //bazel/macros.bzl.
 - All other files

Change-Id: Ib2d7bc972ef00b6b68370ce5c2839ffb70ed9a2f
Bug: skia:12541, skia:13211
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/538638
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-05-16 14:06:59 +00:00

181 lines
4.7 KiB
Python

load("//bazel:macros.bzl", "exports_files_legacy", "generated_cc_atom")
licenses(["notice"])
exports_files_legacy()
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/gpu/ganesh:GrD3DTypesMinimal_hdr",
],
)
generated_cc_atom(
name = "GrBackendSurfaceMutableState_hdr",
hdrs = ["GrBackendSurfaceMutableState.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrTypes_hdr",
"//include/private/gpu/ganesh: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/gpu/ganesh:GrD3DTypesMinimal_hdr",
"//include/private/gpu/ganesh:GrGLTypesPriv_hdr",
"//include/private/gpu/ganesh:GrVkTypesPriv_hdr",
"@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/gpu/ganesh: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:SkTArray_hdr",
"//include/private/gpu/ganesh:GrImageContext_hdr",
],
)
generated_cc_atom(
name = "GrSurfaceInfo_hdr",
hdrs = ["GrSurfaceInfo.h"],
visibility = ["//:__subpackages__"],
deps = [
":GrTypes_hdr",
"//include/private/gpu/ganesh:GrD3DTypesMinimal_hdr",
"//include/private/gpu/ganesh:GrDawnTypesPriv_hdr",
"//include/private/gpu/ganesh:GrGLTypesPriv_hdr",
"//include/private/gpu/ganesh:GrMockTypesPriv_hdr",
"//include/private/gpu/ganesh:GrMtlTypesPriv_hdr",
"//include/private/gpu/ganesh: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"],
)
generated_cc_atom(
name = "GpuTypes_hdr",
hdrs = ["GpuTypes.h"],
visibility = ["//:__subpackages__"],
deps = ["//include/core:SkTypes_hdr"],
)