blob: b4dad37997bc3f7ba5d3d122f1a3c617ad8c47e7 [file] [log] [blame]
load("//bazel:flags.bzl", "bool_flag")
load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_cc_library", "skia_filegroup")
package(
default_applicable_licenses = ["//:license"],
)
licenses(["notice"])
exports_files_legacy()
bool_flag(
name = "enable_svg_canvas",
default = False,
)
skia_filegroup(
name = "srcs",
srcs = [
"SkSVGCanvas.cpp",
"SkSVGDevice.cpp",
],
visibility = ["//src:__pkg__"],
)
skia_filegroup(
name = "private_hdrs",
srcs = [
"SkSVGDevice.h",
],
visibility = ["//src:__pkg__"],
)
skia_cc_library(
name = "svg",
srcs = [
"SkSVGCanvas.cpp",
"SkSVGDevice.cpp",
"SkSVGDevice.h",
],
hdrs = [
"//include/svg:public_hdrs",
],
defines = ["SK_ENABLE_SVG"],
features = ["layering_check"],
visibility = ["//:__pkg__"],
deps = [
"//:core",
"//:png_encode_codec",
"//src/base",
"//src/core:core_priv",
"//src/xml",
],
)