xref: /aosp_15_r20/external/skia/src/gpu/ganesh/ops/BUILD.bazel (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1load("//bazel:skia_rules.bzl", "generate_cpp_files_for_headers", "split_srcs_and_hdrs")
2
3package(
4    default_applicable_licenses = ["//:license"],
5)
6
7licenses(["notice"])
8
9OPS_FILES = [
10    "AAConvexPathRenderer.cpp",
11    "AAConvexPathRenderer.h",
12    "AAHairLinePathRenderer.cpp",
13    "AAHairLinePathRenderer.h",
14    "AALinearizingConvexPathRenderer.cpp",
15    "AALinearizingConvexPathRenderer.h",
16    "AtlasInstancedHelper.cpp",
17    "AtlasInstancedHelper.h",
18    "AtlasPathRenderer.cpp",
19    "AtlasPathRenderer.h",
20    "AtlasRenderTask.cpp",
21    "AtlasRenderTask.h",
22    "AtlasTextOp.cpp",
23    "AtlasTextOp.h",
24    "ClearOp.cpp",
25    "ClearOp.h",
26    "DashLinePathRenderer.cpp",
27    "DashLinePathRenderer.h",
28    "DashOp.cpp",
29    "DashOp.h",
30    "DefaultPathRenderer.cpp",
31    "DefaultPathRenderer.h",
32    "DrawAtlasOp.cpp",
33    "DrawAtlasOp.h",
34    "DrawAtlasPathOp.cpp",
35    "DrawAtlasPathOp.h",
36    "DrawMeshOp.cpp",
37    "DrawMeshOp.h",
38    "DrawableOp.cpp",
39    "DrawableOp.h",
40    "FillPathFlags.h",
41    "FillRRectOp.cpp",
42    "FillRRectOp.h",
43    "FillRectOp.cpp",
44    "FillRectOp.h",
45    "GrDrawOp.h",
46    "GrMeshDrawOp.cpp",
47    "GrMeshDrawOp.h",
48    "GrOp.cpp",
49    "GrOp.h",
50    "GrOvalOpFactory.cpp",
51    "GrOvalOpFactory.h",
52    "GrPathStencilSettings.h",
53    "GrSimpleMeshDrawOpHelper.cpp",
54    "GrSimpleMeshDrawOpHelper.h",
55    "GrSimpleMeshDrawOpHelperWithStencil.cpp",
56    "GrSimpleMeshDrawOpHelperWithStencil.h",
57    "LatticeOp.cpp",
58    "LatticeOp.h",
59    "OpsTask.cpp",
60    "OpsTask.h",
61    "PathInnerTriangulateOp.cpp",
62    "PathInnerTriangulateOp.h",
63    "PathStencilCoverOp.cpp",
64    "PathStencilCoverOp.h",
65    "PathTessellateOp.cpp",
66    "PathTessellateOp.h",
67    "QuadPerEdgeAA.cpp",
68    "QuadPerEdgeAA.h",
69    "RegionOp.cpp",
70    "RegionOp.h",
71    "ShadowRRectOp.cpp",
72    "ShadowRRectOp.h",
73    "SmallPathAtlasMgr.cpp",
74    "SmallPathAtlasMgr.h",
75    "SmallPathRenderer.cpp",
76    "SmallPathRenderer.h",
77    "SmallPathShapeData.cpp",
78    "SmallPathShapeData.h",
79    "SoftwarePathRenderer.cpp",
80    "SoftwarePathRenderer.h",
81    "StrokeRectOp.cpp",
82    "StrokeRectOp.h",
83    "StrokeTessellateOp.cpp",
84    "StrokeTessellateOp.h",
85    "TessellationPathRenderer.cpp",
86    "TessellationPathRenderer.h",
87    "TextureOp.cpp",
88    "TextureOp.h",
89    "TriangulatingPathRenderer.cpp",
90    "TriangulatingPathRenderer.h",
91]
92
93split_srcs_and_hdrs(
94    name = "ops",
95    files = OPS_FILES,
96    visibility = ["//src/gpu/ganesh:__pkg__"],
97)
98
99generate_cpp_files_for_headers(
100    name = "headers_to_compile",
101    headers = [
102        "FillPathFlags.h",
103        "GrDrawOp.h",
104        "GrPathStencilSettings.h",
105    ],
106)
107