xref: /aosp_15_r20/external/skia/include/core/BUILD.bazel (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1load("//bazel:skia_rules.bzl", "generate_cpp_files_for_headers", "skia_filegroup")
2
3package(
4    default_applicable_licenses = ["//:license"],
5)
6
7licenses(["notice"])
8
9skia_filegroup(
10    name = "core_hdrs",
11    srcs = [
12        "SkAlphaType.h",
13        "SkAnnotation.h",
14        "SkArc.h",
15        "SkBBHFactory.h",
16        "SkBitmap.h",
17        "SkBlendMode.h",
18        "SkBlender.h",
19        "SkBlurTypes.h",
20        "SkCanvas.h",
21        "SkCanvasVirtualEnforcer.h",
22        "SkCapabilities.h",
23        "SkClipOp.h",
24        "SkColor.h",
25        "SkColorFilter.h",
26        "SkColorPriv.h",
27        "SkColorSpace.h",
28        "SkColorTable.h",
29        "SkColorType.h",
30        "SkContourMeasure.h",
31        "SkCoverageMode.h",
32        "SkCubicMap.h",
33        "SkData.h",
34        "SkDataTable.h",
35        "SkDocument.h",
36        "SkDrawable.h",
37        "SkExecutor.h",
38        "SkFlattenable.h",
39        "SkFont.h",
40        "SkFontArguments.h",
41        "SkFontMetrics.h",
42        "SkFontMgr.h",
43        "SkFontParameters.h",
44        "SkFontScanner.h",
45        "SkFontStyle.h",
46        "SkFontTypes.h",
47        "SkFourByteTag.h",
48        "SkGraphics.h",
49        "SkImage.h",
50        "SkImageFilter.h",
51        "SkImageGenerator.h",
52        "SkImageInfo.h",
53        "SkM44.h",
54        "SkMallocPixelRef.h",
55        "SkMaskFilter.h",
56        "SkMatrix.h",
57        "SkMesh.h",
58        "SkMilestone.h",
59        "SkOpenTypeSVGDecoder.h",
60        "SkOverdrawCanvas.h",
61        "SkPaint.h",
62        "SkPath.h",
63        "SkPathBuilder.h",
64        "SkPathEffect.h",
65        "SkPathMeasure.h",
66        "SkPathTypes.h",
67        "SkPathUtils.h",
68        "SkPicture.h",
69        "SkPictureRecorder.h",
70        "SkPixelRef.h",
71        "SkPixmap.h",
72        "SkPoint.h",
73        "SkPoint3.h",
74        "SkRRect.h",
75        "SkRSXform.h",
76        "SkRasterHandleAllocator.h",
77        "SkRect.h",
78        "SkRefCnt.h",
79        "SkRegion.h",
80        "SkSamplingOptions.h",
81        "SkScalar.h",
82        "SkSerialProcs.h",
83        "SkShader.h",
84        "SkSize.h",
85        "SkSpan.h",
86        "SkStream.h",
87        "SkString.h",
88        "SkStrokeRec.h",
89        "SkSurface.h",
90        "SkSurfaceProps.h",
91        "SkSwizzle.h",
92        "SkTextBlob.h",
93        "SkTextureCompressionType.h",
94        "SkTileMode.h",
95        "SkTiledImageUtils.h",
96        "SkTraceMemoryDump.h",
97        "SkTypeface.h",
98        "SkTypes.h",
99        "SkUnPreMultiply.h",
100        "SkVertices.h",
101        "SkYUVAInfo.h",
102        "SkYUVAPixmaps.h",
103    ],
104    visibility = ["//src/core:__pkg__"],
105)
106
107skia_filegroup(
108    name = "opts_srcs",
109    srcs = [
110        "SkAlphaType.h",
111        "SkColor.h",
112        "SkColorPriv.h",
113        "SkScalar.h",
114        "SkTypes.h",
115    ],
116    visibility = ["//src/opts:__pkg__"],
117)
118
119generate_cpp_files_for_headers(
120    name = "headers_to_compile",
121    headers = [
122        # All headers listed here will have a .cpp file generated that is a copy of the header file
123        # just with a .cpp suffix so Bazel will try to compile it.
124        # This allows us to run IWYU on these files.
125        "SkAlphaType.h",
126        "SkBlendMode.h",
127        "SkBlurTypes.h",
128        "SkCoverageMode.h",
129        "SkFontArguments.h",
130        "SkFontParameters.h",
131        "SkFontStyle.h",
132        "SkFontTypes.h",
133        "SkFourByteTag.h",
134        "SkPathTypes.h",
135        "SkRefCnt.h",
136        "SkScalar.h",
137        "SkSerialProcs.h",
138        "SkShader.h",
139        "SkSize.h",
140        "SkTypes.h",
141    ],
142)
143