blob: ccd6bc24f9055d458d6777b5719d2fe906260f6c [file] [log] [blame]
load("//bazel:macros.bzl", "exports_files_legacy", "split_srcs_and_hdrs")
licenses(["notice"])
exports_files_legacy()
CORE_FILES = [
"SkAnimCodecPlayer.cpp",
"SkBase64.cpp",
"SkBitSet.h",
"SkBlitterTrace.h",
"SkBlitterTraceCommon.h",
"SkCallableTraits.h",
"SkCamera.cpp",
"SkCanvasStack.cpp",
"SkCanvasStack.h",
"SkCanvasStateUtils.cpp",
"SkCharToGlyphCache.cpp",
"SkCharToGlyphCache.h",
"SkClipStackUtils.cpp",
"SkClipStackUtils.h",
"SkCustomTypeface.cpp",
"SkCycles.h",
"SkDashPath.cpp",
"SkDashPathPriv.h",
"SkEventTracer.cpp",
"SkFloatToDecimal.cpp",
"SkFloatToDecimal.h",
"SkFloatUtils.h",
"SkJSON.h",
"SkJSONWriter.h",
"SkMatrix22.cpp",
"SkMatrix22.h",
"SkMultiPictureDocument.cpp",
"SkMultiPictureDocument.h",
"SkMultiPictureDocumentPriv.h",
"SkNWayCanvas.cpp",
"SkNullCanvas.cpp",
"SkOSPath.cpp",
"SkOSPath.h",
"SkOrderedFontMgr.cpp",
"SkPaintFilterCanvas.cpp",
"SkParse.cpp",
"SkParseColor.cpp",
"SkParsePath.cpp",
"SkPatchUtils.cpp",
"SkPatchUtils.h",
"SkPolyUtils.cpp",
"SkPolyUtils.h",
"SkShadowTessellator.cpp",
"SkShadowTessellator.h",
"SkShadowUtils.cpp",
"SkShaperJSONWriter.h",
"SkTestCanvas.h",
"SkTextUtils.cpp",
"SkUTF.cpp",
"SkUTF.h",
"SkVMVisualizer.cpp",
"SkVMVisualizer.h",
]
split_srcs_and_hdrs(
name = "core",
files = CORE_FILES,
)
filegroup(
name = "json_srcs",
srcs = [
"SkJSON.cpp",
"SkJSON.h",
"SkJSONWriter.cpp",
"SkJSONWriter.h",
"SkShaperJSONWriter.cpp",
"SkShaperJSONWriter.h",
],
visibility = [
"//modules/skottie:__pkg__",
],
)
filegroup(
name = "srcs",
srcs = [
":core_srcs",
] + select({
"//bazel/common_config_settings:needs_sksl": ["SkShaderUtils.cpp"],
"//conditions:default": [],
}),
visibility = ["//src:__pkg__"],
)
filegroup(
name = "private_hdrs",
srcs = [
":core_hdrs",
] + select({
"//bazel/common_config_settings:needs_sksl": ["SkShaderUtils.h"],
"//conditions:default": [],
}),
visibility = ["//src:__pkg__"],
)