| 1 |
load("//bazel:skia_rules.bzl", "generate_cpp_files_for_headers", "skia_filegroup") |
| 2 |
|
| 3 |
package( |
| 4 |
default_applicable_licenses = ["//:license"], |
| 5 |
) |
| 6 |
|
| 7 |
licenses(["notice"]) |
| 8 |
|
| 9 |
PUBLIC_HEADERS = [ |
| 10 |
"SkAlphaType.h", |
| 11 |
"SkAnnotation.h", |
| 12 |
"SkArc.h", |
| 13 |
"SkBBHFactory.h", |
| 14 |
"SkBitmap.h", |
| 15 |
"SkBlendMode.h", |
| 16 |
"SkBlender.h", |
| 17 |
"SkBlurTypes.h", |
| 18 |
"SkCPUContext.h", |
| 19 |
"SkCPURecorder.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 |
"SkPathIter.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 |
"SkRecorder.h", |
| 78 |
"SkRect.h", |
| 79 |
"SkRefCnt.h", |
| 80 |
"SkRegion.h", |
| 81 |
"SkSamplingOptions.h", |
| 82 |
"SkScalar.h", |
| 83 |
"SkSerialProcs.h", |
| 84 |
"SkShader.h", |
| 85 |
"SkSize.h", |
| 86 |
"SkSpan.h", |
| 87 |
"SkStream.h", |
| 88 |
"SkString.h", |
| 89 |
"SkStrokeRec.h", |
| 90 |
"SkSurface.h", |
| 91 |
"SkSurfaceProps.h", |
| 92 |
"SkSwizzle.h", |
| 93 |
"SkTextBlob.h", |
| 94 |
"SkTextureCompressionType.h", |
| 95 |
"SkTileMode.h", |
| 96 |
"SkTiledImageUtils.h", |
| 97 |
"SkTraceMemoryDump.h", |
| 98 |
"SkTypeface.h", |
| 99 |
"SkTypes.h", |
| 100 |
"SkUnPreMultiply.h", |
| 101 |
"SkVertices.h", |
| 102 |
"SkYUVAInfo.h", |
| 103 |
"SkYUVAPixmaps.h", |
| 104 |
] |
| 105 |
|
| 106 |
skia_filegroup( |
| 107 |
name = "core_hdrs", |
| 108 |
srcs = PUBLIC_HEADERS, |
| 109 |
visibility = ["//src/core:__pkg__"], |
| 110 |
) |
| 111 |
|
| 112 |
generate_cpp_files_for_headers( |
| 113 |
name = "headers_to_compile", |
| 114 |
headers = PUBLIC_HEADERS, |
| 115 |
) |
| 116 |
|
| 117 |
skia_filegroup( |
| 118 |
name = "opts_srcs", |
| 119 |
srcs = [ |
| 120 |
"SkAlphaType.h", |
| 121 |
"SkColor.h", |
| 122 |
"SkScalar.h", |
| 123 |
"SkTypes.h", |
| 124 |
], |
| 125 |
visibility = ["//src/opts:__pkg__"], |
| 126 |
) |