xref: /aosp_15_r20/external/skia/src/gpu/tessellate/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
9TESSELLATE_FILES = [
10    "AffineMatrix.h",
11    "CullTest.h",
12    "FixedCountBufferUtils.cpp",
13    "FixedCountBufferUtils.h",
14    "LinearTolerances.h",
15    "MiddleOutPolygonTriangulator.h",
16    "MidpointContourParser.h",
17    "PatchWriter.h",
18    "StrokeIterator.h",
19    "Tessellation.cpp",
20    "Tessellation.h",
21    "WangsFormula.h",
22]
23
24split_srcs_and_hdrs(
25    name = "tessellate",
26    files = TESSELLATE_FILES,
27    visibility = ["//src/gpu:__pkg__"],
28)
29
30generate_cpp_files_for_headers(
31    name = "headers_to_compile",
32    headers = [
33        "AffineMatrix.h",
34        "CullTest.h",
35        "LinearTolerances.h",
36        "MiddleOutPolygonTriangulator.h",
37        "MidpointContourParser.h",
38        "PatchWriter.h",
39        "StrokeIterator.h",
40        "WangsFormula.h",
41    ],
42)
43