| 1 |
load("//bazel:skia_rules.bzl", "skia_cc_library", "split_srcs_and_hdrs") |
| 2 |
|
| 3 |
package( |
| 4 |
default_applicable_licenses = ["//:license"], |
| 5 |
) |
| 6 |
|
| 7 |
licenses(["notice"]) |
| 8 |
|
| 9 |
MOCK_FILES = [ |
| 10 |
"GrMockAttachment.h", |
| 11 |
"GrMockBuffer.h", |
| 12 |
"GrMockCaps.cpp", |
| 13 |
"GrMockCaps.h", |
| 14 |
"GrMockGpu.cpp", |
| 15 |
"GrMockGpu.h", |
| 16 |
"GrMockOpTarget.h", |
| 17 |
"GrMockOpsRenderPass.h", |
| 18 |
"GrMockRenderTask.h", |
| 19 |
"GrMockSurfaceProxy.h", |
| 20 |
"GrMockTexture.h", |
| 21 |
"GrMockTypes.cpp", |
| 22 |
"GrMockTypesPriv.h", |
| 23 |
] |
| 24 |
|
| 25 |
split_srcs_and_hdrs( |
| 26 |
name = "mock", |
| 27 |
files = MOCK_FILES, |
| 28 |
visibility = ["//src/gpu/ganesh:__pkg__"], |
| 29 |
) |
| 30 |
|
| 31 |
# TODO(kjlubick, egdaniel) If we decouple the mock Ganesh backend |
| 32 |
# then the headers/sources should be put here. |
| 33 |
skia_cc_library( |
| 34 |
name = "ganesh_mock", |
| 35 |
hdrs = [ |
| 36 |
"//include/gpu:shared_gpu_hdrs", |
| 37 |
"//include/gpu/ganesh/mock:public_hdrs", |
| 38 |
], |
| 39 |
visibility = ["//:__pkg__"], |
| 40 |
deps = [ |
| 41 |
"//src/gpu/ganesh", |
| 42 |
], |
| 43 |
) |