• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:skia_rules.bzl", "exports_files_legacy", "generate_cpp_files_for_headers", "skia_filegroup", "split_srcs_and_hdrs")
2
3package(
4    default_applicable_licenses = ["//:license"],
5)
6
7licenses(["notice"])
8
9exports_files_legacy()
10
11TESSELLATE_FILES = [
12    "AffineMatrix.h",
13    "CullTest.h",
14    "FixedCountBufferUtils.cpp",
15    "FixedCountBufferUtils.h",
16    "LinearTolerances.h",
17    "MiddleOutPolygonTriangulator.h",
18    "MidpointContourParser.h",
19    "PatchWriter.h",
20    "StrokeIterator.h",
21    "Tessellation.cpp",
22    "Tessellation.h",
23    "WangsFormula.h",
24]
25
26split_srcs_and_hdrs(
27    name = "tessellate",
28    files = TESSELLATE_FILES,
29)
30
31skia_filegroup(
32    name = "srcs",
33    srcs = [":tessellate_srcs"],
34    visibility = ["//src/gpu:__pkg__"],
35)
36
37skia_filegroup(
38    name = "private_hdrs",
39    srcs = [":tessellate_hdrs"],
40    visibility = [
41        "//src/gpu:__pkg__",
42        "//src/gpu/ganesh:__pkg__",
43    ],
44)
45
46generate_cpp_files_for_headers(
47    name = "headers_to_compile",
48    headers = [
49        "AffineMatrix.h",
50        "CullTest.h",
51        "LinearTolerances.h",
52        "MiddleOutPolygonTriangulator.h",
53        "MidpointContourParser.h",
54        "PatchWriter.h",
55        "StrokeIterator.h",
56        "WangsFormula.h",
57    ],
58)
59