1# https://github.com/bazelbuild/bazel-skylib 2load("@bazel_skylib//lib:selects.bzl", "selects") 3 4package(default_visibility = ["//visibility:private"]) 5 6filegroup( 7 name = "core-srcs", 8 srcs = [ 9 "Sk4px.h", 10 "SkAAClip.cpp", 11 "SkAAClip.h", 12 "SkASAN.h", 13 "SkATrace.cpp", 14 "SkATrace.h", 15 "SkAdvancedTypefaceMetrics.h", 16 "SkAlphaRuns.cpp", 17 "SkAnalyticEdge.cpp", 18 "SkAnalyticEdge.h", 19 "SkAnnotation.cpp", 20 "SkAnnotationKeys.h", 21 "SkAntiRun.h", 22 "SkArenaAlloc.cpp", 23 "SkArenaAlloc.h", 24 "SkArenaAllocList.h", 25 "SkAutoBlitterChoose.h", 26 "SkAutoMalloc.h", 27 "SkAutoPixmapStorage.cpp", 28 "SkAutoPixmapStorage.h", 29 "SkBBHFactory.cpp", 30 "SkBigPicture.cpp", 31 "SkBigPicture.h", 32 "SkBitmap.cpp", 33 "SkBitmapCache.cpp", 34 "SkBitmapCache.h", 35 "SkBitmapDevice.cpp", 36 "SkBitmapDevice.h", 37 "SkBitmapProcState.cpp", 38 "SkBitmapProcState.h", 39 "SkBitmapProcState_matrixProcs.cpp", 40 "SkBlendMode.cpp", 41 "SkBlendModeBlender.cpp", 42 "SkBlendModeBlender.h", 43 "SkBlendModePriv.h", 44 "SkBlenderBase.h", 45 "SkBlitBWMaskTemplate.h", 46 "SkBlitRow.h", 47 "SkBlitRow_D32.cpp", 48 "SkBlitter.cpp", 49 "SkBlitter.h", 50 "SkBlitter_A8.cpp", 51 "SkBlitter_ARGB32.cpp", 52 "SkBlitter_RGB565.cpp", 53 "SkBlitter_Sprite.cpp", 54 "SkBlockAllocator.cpp", 55 "SkBlockAllocator.h", 56 "SkBlurMF.cpp", 57 "SkBlurMask.cpp", 58 "SkBlurMask.h", 59 "SkBuffer.cpp", 60 "SkBuffer.h", 61 "SkCachedData.cpp", 62 "SkCachedData.h", 63 "SkCanvas.cpp", 64 "SkCanvasPriv.cpp", 65 "SkCanvasPriv.h", 66 "SkClipStack.cpp", 67 "SkClipStack.h", 68 "SkClipStackDevice.cpp", 69 "SkClipStackDevice.h", 70 "SkColor.cpp", 71 "SkColorFilter.cpp", 72 "SkColorFilterBase.h", 73 "SkColorFilterPriv.h", 74 "SkColorFilter_Matrix.cpp", 75 "SkColorFilter_Matrix.h", 76 "SkColorSpace.cpp", 77 "SkColorSpacePriv.h", 78 "SkColorSpaceXformSteps.cpp", 79 "SkColorSpaceXformSteps.h", 80 "SkCompressedDataUtils.cpp", 81 "SkCompressedDataUtils.h", 82 "SkContourMeasure.cpp", 83 "SkConvertPixels.cpp", 84 "SkConvertPixels.h", 85 "SkCoreBlitters.h", 86 "SkCpu.cpp", 87 "SkCpu.h", 88 "SkCubicClipper.cpp", 89 "SkCubicClipper.h", 90 "SkCubicMap.cpp", 91 "SkCubicSolver.h", 92 "SkData.cpp", 93 "SkDataTable.cpp", 94 "SkDebug.cpp", 95 "SkDeferredDisplayList.cpp", 96 "SkDeferredDisplayListPriv.h", 97 "SkDeferredDisplayListRecorder.cpp", 98 "SkDeque.cpp", 99 "SkDescriptor.cpp", 100 "SkDescriptor.h", 101 "SkDevice.cpp", 102 "SkDevice.h", 103 "SkDiscardableMemory.h", 104 "SkDistanceFieldGen.cpp", 105 "SkDistanceFieldGen.h", 106 "SkDocument.cpp", 107 "SkDraw.cpp", 108 "SkDraw.h", 109 "SkDrawLooper.cpp", 110 "SkDrawProcs.h", 111 "SkDrawShadowInfo.cpp", 112 "SkDrawShadowInfo.h", 113 "SkDraw_atlas.cpp", 114 "SkDraw_text.cpp", 115 "SkDraw_vertices.cpp", 116 "SkDrawable.cpp", 117 "SkEdge.cpp", 118 "SkEdge.h", 119 "SkEdgeBuilder.cpp", 120 "SkEdgeBuilder.h", 121 "SkEdgeClipper.cpp", 122 "SkEdgeClipper.h", 123 "SkEffectPriv.h", 124 "SkEndian.h", 125 "SkEnumerate.h", 126 "SkExecutor.cpp", 127 "SkFDot6.h", 128 "SkFixed15.h", 129 "SkFlattenable.cpp", 130 "SkFont.cpp", 131 "SkFontDescriptor.cpp", 132 "SkFontDescriptor.h", 133 "SkFontMgr.cpp", 134 "SkFontMgrPriv.h", 135 "SkFontPriv.h", 136 "SkFontStream.cpp", 137 "SkFontStream.h", 138 "SkFont_serial.cpp", 139 "SkFuzzLogging.h", 140 "SkGaussFilter.cpp", 141 "SkGaussFilter.h", 142 "SkGeometry.cpp", 143 "SkGeometry.h", 144 "SkGlobalInitialization_core.cpp", 145 "SkGlyph.cpp", 146 "SkGlyph.h", 147 "SkGlyphBuffer.cpp", 148 "SkGlyphBuffer.h", 149 "SkGlyphRun.cpp", 150 "SkGlyphRun.h", 151 "SkGlyphRunPainter.cpp", 152 "SkGlyphRunPainter.h", 153 "SkGpuBlurUtils.cpp", 154 "SkGpuBlurUtils.h", 155 "SkGraphics.cpp", 156 "SkHalf.cpp", 157 "SkICC.cpp", 158 "SkICCPriv.h", 159 "SkIDChangeListener.cpp", 160 "SkIPoint16.h", 161 "SkImageFilter.cpp", 162 "SkImageFilterCache.cpp", 163 "SkImageFilterCache.h", 164 "SkImageFilterTypes.cpp", 165 "SkImageFilterTypes.h", 166 "SkImageFilter_Base.h", 167 "SkImageGenerator.cpp", 168 "SkImageInfo.cpp", 169 "SkImagePriv.h", 170 "SkLRUCache.h", 171 "SkLatticeIter.cpp", 172 "SkLatticeIter.h", 173 "SkLeanWindows.h", 174 "SkLineClipper.cpp", 175 "SkLineClipper.h", 176 "SkLocalMatrixImageFilter.cpp", 177 "SkLocalMatrixImageFilter.h", 178 "SkM44.cpp", 179 "SkMD5.cpp", 180 "SkMD5.h", 181 "SkMSAN.h", 182 "SkMalloc.cpp", 183 "SkMallocPixelRef.cpp", 184 "SkMarkerStack.cpp", 185 "SkMarkerStack.h", 186 "SkMask.cpp", 187 "SkMask.h", 188 "SkMaskBlurFilter.cpp", 189 "SkMaskBlurFilter.h", 190 "SkMaskCache.cpp", 191 "SkMaskCache.h", 192 "SkMaskFilter.cpp", 193 "SkMaskFilterBase.h", 194 "SkMaskGamma.cpp", 195 "SkMaskGamma.h", 196 "SkMath.cpp", 197 "SkMathPriv.h", 198 "SkMatrix.cpp", 199 "SkMatrixImageFilter.cpp", 200 "SkMatrixImageFilter.h", 201 "SkMatrixInvert.cpp", 202 "SkMatrixInvert.h", 203 "SkMatrixPriv.h", 204 "SkMatrixProvider.h", 205 "SkMatrixUtils.h", 206 "SkMessageBus.h", 207 "SkMiniRecorder.cpp", 208 "SkMiniRecorder.h", 209 "SkMipmap.cpp", 210 "SkMipmap.h", 211 "SkMipmapAccessor.cpp", 212 "SkMipmapAccessor.h", 213 "SkMipmapBuilder.h", 214 "SkModeColorFilter.cpp", 215 "SkModeColorFilter.h", 216 "SkNextID.h", 217 "SkOSFile.h", 218 "SkOpts.cpp", 219 "SkOpts.h", 220 "SkOpts_erms.cpp", 221 "SkOrderedReadBuffer.h", 222 "SkOverdrawCanvas.cpp", 223 "SkPaint.cpp", 224 "SkPaintDefaults.h", 225 "SkPaintPriv.cpp", 226 "SkPaintPriv.h", 227 "SkPath.cpp", 228 "SkPathBuilder.cpp", 229 "SkPathEffect.cpp", 230 "SkPathEffectBase.h", 231 "SkPathMakers.h", 232 "SkPathMeasure.cpp", 233 "SkPathMeasurePriv.h", 234 "SkPathPriv.h", 235 "SkPathRef.cpp", 236 "SkPath_serial.cpp", 237 "SkPicture.cpp", 238 "SkPictureCommon.h", 239 "SkPictureData.cpp", 240 "SkPictureData.h", 241 "SkPictureFlat.cpp", 242 "SkPictureFlat.h", 243 "SkPictureImageGenerator.cpp", 244 "SkPicturePlayback.cpp", 245 "SkPicturePlayback.h", 246 "SkPicturePriv.h", 247 "SkPictureRecord.cpp", 248 "SkPictureRecord.h", 249 "SkPictureRecorder.cpp", 250 "SkPixelRef.cpp", 251 "SkPixelRefPriv.h", 252 "SkPixmap.cpp", 253 "SkPixmapPriv.h", 254 "SkPoint.cpp", 255 "SkPoint3.cpp", 256 "SkPointPriv.h", 257 "SkPromiseImageTexture.cpp", 258 "SkPtrRecorder.cpp", 259 "SkPtrRecorder.h", 260 "SkQuadClipper.cpp", 261 "SkQuadClipper.h", 262 "SkRRect.cpp", 263 "SkRRectPriv.h", 264 "SkRTree.cpp", 265 "SkRTree.h", 266 "SkRasterClip.cpp", 267 "SkRasterClip.h", 268 "SkRasterClipStack.h", 269 "SkRasterPipeline.cpp", 270 "SkRasterPipeline.h", 271 "SkRasterPipelineBlitter.cpp", 272 "SkReadBuffer.cpp", 273 "SkReadBuffer.h", 274 "SkRecord.cpp", 275 "SkRecord.h", 276 "SkRecordDraw.cpp", 277 "SkRecordDraw.h", 278 "SkRecordOpts.cpp", 279 "SkRecordOpts.h", 280 "SkRecordPattern.h", 281 "SkRecordedDrawable.cpp", 282 "SkRecordedDrawable.h", 283 "SkRecorder.cpp", 284 "SkRecorder.h", 285 "SkRecords.cpp", 286 "SkRecords.h", 287 "SkRect.cpp", 288 "SkRectPriv.h", 289 "SkRegion.cpp", 290 "SkRegionPriv.h", 291 "SkRegion_path.cpp", 292 "SkRemoteGlyphCache.cpp", 293 "SkRemoteGlyphCache.h", 294 "SkResourceCache.cpp", 295 "SkResourceCache.h", 296 "SkRuntimeEffectPriv.h", 297 "SkSafeMath.h", 298 "SkSafeRange.h", 299 "SkSamplingPriv.h", 300 "SkScalar.cpp", 301 "SkScaleToSides.h", 302 "SkScalerCache.cpp", 303 "SkScalerCache.h", 304 "SkScalerContext.cpp", 305 "SkScalerContext.h", 306 "SkScan.cpp", 307 "SkScan.h", 308 "SkScanPriv.h", 309 "SkScan_AAAPath.cpp", 310 "SkScan_AntiPath.cpp", 311 "SkScan_Antihair.cpp", 312 "SkScan_Hairline.cpp", 313 "SkScan_Path.cpp", 314 "SkScopeExit.h", 315 "SkSemaphore.cpp", 316 "SkSharedMutex.cpp", 317 "SkSharedMutex.h", 318 "SkSpecialImage.cpp", 319 "SkSpecialImage.h", 320 "SkSpecialSurface.cpp", 321 "SkSpecialSurface.h", 322 "SkSpinlock.cpp", 323 "SkSpriteBlitter.h", 324 "SkSpriteBlitter_ARGB32.cpp", 325 "SkSpriteBlitter_RGB565.cpp", 326 "SkStream.cpp", 327 "SkStreamPriv.h", 328 "SkStrikeCache.cpp", 329 "SkStrikeCache.h", 330 "SkStrikeForGPU.cpp", 331 "SkStrikeForGPU.h", 332 "SkStrikeSpec.cpp", 333 "SkStrikeSpec.h", 334 "SkString.cpp", 335 "SkStringUtils.cpp", 336 "SkStringUtils.h", 337 "SkStringView.cpp", 338 "SkStroke.cpp", 339 "SkStroke.h", 340 "SkStrokeRec.cpp", 341 "SkStrokerPriv.cpp", 342 "SkStrokerPriv.h", 343 "SkSurfaceCharacterization.cpp", 344 "SkSurfacePriv.h", 345 "SkSwizzle.cpp", 346 "SkTBlockList.h", 347 "SkTDPQueue.h", 348 "SkTDynamicHash.h", 349 "SkTInternalLList.h", 350 "SkTLazy.h", 351 "SkTMultiMap.h", 352 "SkTSearch.cpp", 353 "SkTSearch.h", 354 "SkTSort.h", 355 "SkTaskGroup.cpp", 356 "SkTaskGroup.h", 357 "SkTextBlob.cpp", 358 "SkTextBlobPriv.h", 359 "SkTextBlobTrace.cpp", 360 "SkTextBlobTrace.h", 361 "SkTextFormatParams.h", 362 "SkThreadID.cpp", 363 "SkTime.cpp", 364 "SkTraceEvent.h", 365 "SkTraceEventCommon.h", 366 "SkTypeface.cpp", 367 "SkTypefaceCache.cpp", 368 "SkTypefaceCache.h", 369 "SkTypeface_remote.cpp", 370 "SkTypeface_remote.h", 371 "SkUnPreMultiply.cpp", 372 "SkUtils.cpp", 373 "SkUtils.h", 374 "SkUtilsArm.cpp", 375 "SkVM.cpp", 376 "SkVM.h", 377 "SkVMBlitter.cpp", 378 "SkVMBlitter.h", 379 "SkVM_fwd.h", 380 "SkValidationUtils.h", 381 "SkVertState.cpp", 382 "SkVertState.h", 383 "SkVertices.cpp", 384 "SkVerticesPriv.h", 385 "SkVptr.h", 386 "SkWriteBuffer.cpp", 387 "SkWriteBuffer.h", 388 "SkWritePixelsRec.h", 389 "SkWriter32.cpp", 390 "SkWriter32.h", 391 "SkXfermode.cpp", 392 "SkXfermodeInterpretation.cpp", 393 "SkXfermodeInterpretation.h", 394 "SkXfermodePriv.h", 395 "SkYUVAInfo.cpp", 396 "SkYUVAInfoLocation.h", 397 "SkYUVAPixmaps.cpp", 398 "SkYUVMath.cpp", 399 "SkYUVMath.h", 400 "SkYUVPlanesCache.cpp", 401 "SkYUVPlanesCache.h", 402 "SkZip.h", 403 ], 404) 405 406filegroup( 407 name = "sksl-srcs", 408 srcs = [ 409 "SkRuntimeEffect.cpp", 410 ], 411) 412 413filegroup( 414 name = "srcs", 415 srcs = [":core-srcs"] + selects.with_or({ 416 ("//bazel/common_config_settings:gl_backend", "//bazel/common_config_settings:vulkan_backend"): [ 417 ":sksl-srcs", 418 ], 419 "//conditions:default": [], 420 }), 421 visibility = ["//:__subpackages__"], 422) 423