blob: f999f92ed1a49211d984222e5bc847cdc043f186 [file] [log] [blame]
load("//bazel:macros.bzl", "select_multi")
package(default_visibility = ["//visibility:private"])
filegroup(
name = "core-srcs",
srcs = [
"SkImageEncoder.cpp",
"SkImageEncoderFns.h",
"SkImageEncoderPriv.h",
],
)
filegroup(
name = "jpeg-srcs",
srcs = [
"SkJPEGWriteUtility.cpp",
"SkJPEGWriteUtility.h",
"SkJpegEncoder.cpp",
],
)
filegroup(
name = "png-srcs",
srcs = [
"SkPngEncoder.cpp",
],
)
filegroup(
name = "webp-srcs",
srcs = [
"SkWebpEncoder.cpp",
],
)
filegroup(
name = "srcs",
srcs = [
":core-srcs",
] + select_multi(
{
"//bazel/common_config_settings:jpeg_encode_codec": [":jpeg-srcs"],
"//bazel/common_config_settings:png_encode_codec": [":png-srcs"],
"//bazel/common_config_settings:webp_encode_codec": [":webp-srcs"],
},
default = [],
),
visibility = ["//:__subpackages__"],
)