blob: f4076b79ef24d359c861fdd595646c2ba8aa4322 [file] [log] [blame]
load("//bazel:skia_rules.bzl", "skia_cc_library", "split_srcs_and_hdrs")
package(
default_applicable_licenses = ["//:license"],
)
licenses(["notice"])
MOCK_FILES = [
"GrMockAttachment.h",
"GrMockBuffer.h",
"GrMockCaps.cpp",
"GrMockCaps.h",
"GrMockGpu.cpp",
"GrMockGpu.h",
"GrMockOpTarget.h",
"GrMockOpsRenderPass.h",
"GrMockRenderTask.h",
"GrMockSurfaceProxy.h",
"GrMockTexture.h",
"GrMockTypes.cpp",
"GrMockTypesPriv.h",
]
split_srcs_and_hdrs(
name = "mock",
files = MOCK_FILES,
visibility = ["//src/gpu/ganesh:__pkg__"],
)
# TODO(kjlubick, egdaniel) If we decouple the mock Ganesh backend
# then the headers/sources should be put here.
skia_cc_library(
name = "ganesh_mock",
hdrs = [
"//include/gpu:shared_gpu_hdrs",
"//include/gpu/ganesh/mock:public_hdrs",
],
visibility = ["//:__pkg__"],
deps = [
"//src/gpu/ganesh",
],
)