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