• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_cc_library", "skia_filegroup", "split_srcs_and_hdrs")
2
3package(
4    default_applicable_licenses = ["//:license"],
5)
6
7licenses(["notice"])
8
9exports_files_legacy()
10
11PATHOPS_FILES = [
12    "SkAddIntersections.cpp",
13    "SkAddIntersections.h",
14    "SkDConicLineIntersection.cpp",
15    "SkDCubicLineIntersection.cpp",
16    "SkDCubicToQuads.cpp",
17    "SkDLineIntersection.cpp",
18    "SkDQuadLineIntersection.cpp",
19    "SkIntersectionHelper.h",
20    "SkIntersections.cpp",
21    "SkIntersections.h",
22    "SkLineParameters.h",
23    "SkOpAngle.cpp",
24    "SkOpAngle.h",
25    "SkOpBuilder.cpp",
26    "SkOpCoincidence.cpp",
27    "SkOpCoincidence.h",
28    "SkOpContour.cpp",
29    "SkOpContour.h",
30    "SkOpCubicHull.cpp",
31    "SkOpEdgeBuilder.cpp",
32    "SkOpEdgeBuilder.h",
33    "SkOpSegment.cpp",
34    "SkOpSegment.h",
35    "SkOpSpan.cpp",
36    "SkOpSpan.h",
37    "SkPathOpsAsWinding.cpp",
38    "SkPathOpsBounds.h",
39    "SkPathOpsCommon.cpp",
40    "SkPathOpsCommon.h",
41    "SkPathOpsConic.cpp",
42    "SkPathOpsConic.h",
43    "SkPathOpsCubic.cpp",
44    "SkPathOpsCubic.h",
45    "SkPathOpsCurve.cpp",
46    "SkPathOpsCurve.h",
47    "SkPathOpsDebug.cpp",
48    "SkPathOpsDebug.h",
49    "SkPathOpsLine.cpp",
50    "SkPathOpsLine.h",
51    "SkPathOpsOp.cpp",
52    "SkPathOpsPoint.h",
53    "SkPathOpsQuad.cpp",
54    "SkPathOpsQuad.h",
55    "SkPathOpsRect.cpp",
56    "SkPathOpsRect.h",
57    "SkPathOpsSimplify.cpp",
58    "SkPathOpsTCurve.h",
59    "SkPathOpsTSect.cpp",
60    "SkPathOpsTSect.h",
61    "SkPathOpsTightBounds.cpp",
62    "SkPathOpsTypes.cpp",
63    "SkPathOpsTypes.h",
64    "SkPathOpsWinding.cpp",
65    "SkPathWriter.cpp",
66    "SkPathWriter.h",
67    "SkReduceOrder.cpp",
68    "SkReduceOrder.h",
69]
70
71split_srcs_and_hdrs(
72    name = "legacy_pathops",
73    files = PATHOPS_FILES,
74)
75
76skia_filegroup(
77    name = "srcs",
78    srcs = [
79        ":legacy_pathops_srcs",
80    ],
81    visibility = ["//src:__pkg__"],
82)
83
84skia_filegroup(
85    name = "private_hdrs",
86    srcs = [
87        ":legacy_pathops_hdrs",
88    ],
89    visibility = ["//src:__pkg__"],
90)
91
92skia_cc_library(
93    name = "pathops",
94    srcs = [
95        ":legacy_pathops_hdrs",
96        ":legacy_pathops_srcs",
97    ],
98    hdrs = [
99        "//include/pathops:public_hdrs",
100    ],
101    features = ["layering_check"],
102    visibility = ["//:__pkg__"],
103    deps = [
104        "//src/base",
105        "//src/core",
106        "//src/core:core_priv",
107    ],
108)
109