ee62fad9a4
Organization v3.5, if we are keeping track :) This splits the "srcs" filegroup into "srcs" and "private_hdrs", and renames "hdrs" to "public_hdrs". To assist with the split, I created the macro split_srcs_and_hdrs. Rather than keep two separate lists of header and source files, I figured it would be easiest, at least for the common case, to keep one list of files and then have a for loop split them apart. I've tried to be consistent with having the list of files be named with a _FILES suffix - maybe we can use this as a marker to generate .gni files in the future? Suggested review order: - //bazel/macros.bzl. Note this needs a corresponding G3 change (http://cl/452279799) as well. The exports_files_legacy change is the better approach to something I manually handled yesterday when fixing the G3 roll. - //BUILD.bazel to see the new target skia_internal and the previous skia_core renamed to skia_public. - //src/core/BUILD.bazel to see a typical usage of split_srcs_and_hdrs. - //include/... to see the change to public_hdrs and private_hdrs - //src/... to see many more usages of split_srcs_and_hdrs - //tools/... to see changes to skia_internal where appropriate. - Everything else. Note that //modules/... might also need to be built with skia_internal instead of skia_public, but we can fix that up later, if necessary. Change-Id: Ie1cc969455d97b029b2d77faa222c4a9bad70671 Bug: skia:12541 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/545716 Reviewed-by: Ben Wagner <bungeman@google.com> Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
109 lines
2.6 KiB
Python
109 lines
2.6 KiB
Python
load("//bazel:macros.bzl", "exports_files_legacy")
|
|
|
|
licenses(["notice"])
|
|
|
|
exports_files_legacy()
|
|
|
|
filegroup(
|
|
name = "public_hdrs",
|
|
srcs = [
|
|
"SkAlphaType.h",
|
|
"SkAnnotation.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",
|
|
"SkColorType.h",
|
|
"SkCombinationBuilder.h",
|
|
"SkContourMeasure.h",
|
|
"SkCoverageMode.h",
|
|
"SkCubicMap.h",
|
|
"SkData.h",
|
|
"SkDataTable.h",
|
|
"SkDeferredDisplayList.h",
|
|
"SkDeferredDisplayListRecorder.h",
|
|
"SkDocument.h",
|
|
"SkDrawLooper.h",
|
|
"SkDrawable.h",
|
|
"SkEncodedImageFormat.h",
|
|
"SkExecutor.h",
|
|
"SkFlattenable.h",
|
|
"SkFont.h",
|
|
"SkFontArguments.h",
|
|
"SkFontMetrics.h",
|
|
"SkFontMgr.h",
|
|
"SkFontParameters.h",
|
|
"SkFontStyle.h",
|
|
"SkFontTypes.h",
|
|
"SkGraphics.h",
|
|
"SkICC.h",
|
|
"SkImage.h",
|
|
"SkImageEncoder.h",
|
|
"SkImageFilter.h",
|
|
"SkImageGenerator.h",
|
|
"SkImageInfo.h",
|
|
"SkM44.h",
|
|
"SkMallocPixelRef.h",
|
|
"SkMaskFilter.h",
|
|
"SkMath.h",
|
|
"SkMatrix.h",
|
|
"SkMesh.h",
|
|
"SkMilestone.h",
|
|
"SkOpenTypeSVGDecoder.h",
|
|
"SkOverdrawCanvas.h",
|
|
"SkPaint.h",
|
|
"SkPath.h",
|
|
"SkPathBuilder.h",
|
|
"SkPathEffect.h",
|
|
"SkPathMeasure.h",
|
|
"SkPathTypes.h",
|
|
"SkPicture.h",
|
|
"SkPictureRecorder.h",
|
|
"SkPixelRef.h",
|
|
"SkPixmap.h",
|
|
"SkPngChunkReader.h",
|
|
"SkPoint.h",
|
|
"SkPoint3.h",
|
|
"SkPromiseImageTexture.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",
|
|
"SkSurfaceCharacterization.h",
|
|
"SkSurfaceProps.h",
|
|
"SkSwizzle.h",
|
|
"SkTextBlob.h",
|
|
"SkTileMode.h",
|
|
"SkTime.h",
|
|
"SkTraceMemoryDump.h",
|
|
"SkTypeface.h",
|
|
"SkTypes.h",
|
|
"SkUnPreMultiply.h",
|
|
"SkVertices.h",
|
|
"SkYUVAInfo.h",
|
|
"SkYUVAPixmaps.h",
|
|
],
|
|
visibility = ["//include:__pkg__"],
|
|
)
|