blob: a103d8b652a2551cfe9b49637531fa2966f8b458 [file] [log] [blame]
load("//bazel:skia_rules.bzl", "generate_cpp_files_for_headers", "skia_filegroup")
package(
default_applicable_licenses = ["//:license"],
)
licenses(["notice"])
# In own skia_filegroup for mapping to the //gn/sksl.gni file.
skia_filegroup(
name = "sksl_private_hdrs",
srcs = [
"SkSLSampleUsage.h",
],
)
skia_filegroup(
name = "core_priv_hdrs",
srcs = [
# Files listed here will be available to Skia internals via the core_priv target.
"SkIDChangeListener.h",
"SkSLSampleUsage.h",
"SkGainmapShader.h",
"SkGainmapInfo.h",
],
visibility = ["//src/core:__pkg__"],
)
skia_filegroup(
name = "core_srcs",
srcs = [
# We really don't want this header to be used outside of SkPath and SkPathBuilder
# so we add it to core under srcs instead to enforce that.
"SkPathRef.h",
"SkWeakRefCnt.h",
],
visibility = ["//src/core:__pkg__"],
)
skia_filegroup(
name = "decode_srcs",
srcs = [
"SkEncodedInfo.h",
"SkExif.h",
],
visibility = ["//src/codec:__pkg__"],
)
skia_filegroup(
name = "jpeg_decode_srcs",
srcs = [
"SkJpegMetadataDecoder.h",
],
visibility = ["//src/codec:__pkg__"],
)
generate_cpp_files_for_headers(
name = "headers_to_compile",
headers = [
"SkIDChangeListener.h",
"SkWeakRefCnt.h",
],
)