1load("//bazel:skia_rules.bzl", "exports_files_legacy", "generate_cpp_files_for_headers", "skia_filegroup") 2 3package( 4 default_applicable_licenses = ["//:license"], 5) 6 7licenses(["notice"]) 8 9exports_files_legacy() 10 11skia_filegroup( 12 name = "public_hdrs", 13 srcs = [ 14 "SkAlphaType.h", 15 "SkAnnotation.h", 16 "SkArc.h", 17 "SkBBHFactory.h", 18 "SkBitmap.h", 19 "SkBlendMode.h", 20 "SkBlender.h", 21 "SkBlurTypes.h", 22 "SkCanvas.h", 23 "SkCanvasVirtualEnforcer.h", 24 "SkCapabilities.h", 25 "SkClipOp.h", 26 "SkColor.h", 27 "SkColorFilter.h", 28 "SkColorPriv.h", 29 "SkColorSpace.h", 30 "SkColorTable.h", 31 "SkColorType.h", 32 "SkContourMeasure.h", 33 "SkCoverageMode.h", 34 "SkCubicMap.h", 35 "SkData.h", 36 "SkDataTable.h", 37 "SkDocument.h", 38 "SkDrawable.h", 39 "SkExecutor.h", 40 "SkFlattenable.h", 41 "SkFont.h", 42 "SkFontArguments.h", 43 "SkFontMetrics.h", 44 "SkFontMgr.h", 45 "SkFontParameters.h", 46 "SkFontStyle.h", 47 "SkFontTypes.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 = ["//include:__pkg__"], 105) 106 107skia_filegroup( 108 name = "core_hdrs", 109 srcs = [ 110 "SkAlphaType.h", 111 "SkAnnotation.h", 112 "SkArc.h", 113 "SkBBHFactory.h", 114 "SkBitmap.h", 115 "SkBlendMode.h", 116 "SkBlender.h", 117 "SkBlurTypes.h", 118 "SkCanvas.h", 119 "SkCanvasVirtualEnforcer.h", 120 "SkCapabilities.h", 121 "SkClipOp.h", 122 "SkColor.h", 123 "SkColorFilter.h", 124 "SkColorPriv.h", 125 "SkColorSpace.h", 126 "SkColorTable.h", 127 "SkColorType.h", 128 "SkContourMeasure.h", 129 "SkCoverageMode.h", 130 "SkCubicMap.h", 131 "SkData.h", 132 "SkDataTable.h", 133 "SkDocument.h", 134 "SkDrawable.h", 135 "SkExecutor.h", 136 "SkFlattenable.h", 137 "SkFont.h", 138 "SkFontArguments.h", 139 "SkFontMetrics.h", 140 "SkFontMgr.h", 141 "SkFontParameters.h", 142 "SkFontStyle.h", 143 "SkFontTypes.h", 144 "SkGraphics.h", 145 "SkImage.h", 146 "SkImageFilter.h", 147 "SkImageGenerator.h", 148 "SkImageInfo.h", 149 "SkM44.h", 150 "SkMallocPixelRef.h", 151 "SkMaskFilter.h", 152 "SkMatrix.h", 153 "SkMesh.h", 154 "SkMilestone.h", 155 "SkOpenTypeSVGDecoder.h", 156 "SkOverdrawCanvas.h", 157 "SkPaint.h", 158 "SkPath.h", 159 "SkPathBuilder.h", 160 "SkPathEffect.h", 161 "SkPathMeasure.h", 162 "SkPathTypes.h", 163 "SkPathUtils.h", 164 "SkPicture.h", 165 "SkPictureRecorder.h", 166 "SkPixelRef.h", 167 "SkPixmap.h", 168 "SkPoint.h", 169 "SkPoint3.h", 170 "SkRRect.h", 171 "SkRSXform.h", 172 "SkRasterHandleAllocator.h", 173 "SkRect.h", 174 "SkRefCnt.h", 175 "SkRegion.h", 176 "SkSamplingOptions.h", 177 "SkScalar.h", 178 "SkSerialProcs.h", 179 "SkShader.h", 180 "SkSize.h", 181 "SkSpan.h", 182 "SkStream.h", 183 "SkString.h", 184 "SkStrokeRec.h", 185 "SkSurface.h", 186 "SkSurfaceProps.h", 187 "SkSwizzle.h", 188 "SkTextBlob.h", 189 "SkTextureCompressionType.h", 190 "SkTileMode.h", 191 "SkTiledImageUtils.h", 192 "SkTraceMemoryDump.h", 193 "SkTypeface.h", 194 "SkTypes.h", 195 "SkUnPreMultiply.h", 196 "SkVertices.h", 197 "SkYUVAInfo.h", 198 "SkYUVAPixmaps.h", 199 ], 200 visibility = ["//src/core:__pkg__"], 201) 202 203skia_filegroup( 204 name = "opts_srcs", 205 srcs = [ 206 "SkAlphaType.h", 207 "SkColor.h", 208 "SkColorPriv.h", 209 "SkScalar.h", 210 "SkTypes.h", 211 ], 212 visibility = ["//src/opts:__pkg__"], 213) 214 215generate_cpp_files_for_headers( 216 name = "headers_to_compile", 217 headers = [ 218 # All headers listed here will have a .cpp file generated that is a copy of the header file 219 # just with a .cpp suffix so Bazel will try to compile it. 220 # This allows us to run IWYU on these files. 221 "SkAlphaType.h", 222 "SkBlendMode.h", 223 "SkBlurTypes.h", 224 "SkCoverageMode.h", 225 "SkFontStyle.h", 226 "SkFontTypes.h", 227 "SkPathTypes.h", 228 "SkRefCnt.h", 229 "SkScalar.h", 230 "SkSerialProcs.h", 231 "SkShader.h", 232 "SkSize.h", 233 "SkTypes.h", 234 ], 235) 236