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