blob: 9a112989bc5afd042dd3b343c36a8f53f75b5a1d [file] [log] [blame]
load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_cc_library", "skia_filegroup")
licenses(["notice"])
exports_files_legacy()
skia_filegroup(
name = "test_font_manager_srcs",
testonly = True,
srcs = [
"FontToolUtils.cpp",
"FontToolUtils.h",
"TestFontMgr.cpp",
"TestFontMgr.h",
"TestTypeface.cpp",
"TestTypeface.h",
],
visibility = [
"//tests:__pkg__",
"//tools:__subpackages__",
],
)
skia_filegroup(
name = "test_fonts",
testonly = True,
srcs = [
"test_font_index.inc",
"test_font_monospace.inc",
"test_font_sans_serif.inc",
"test_font_serif.inc",
],
visibility = [
"//tests:__pkg__",
"//tools:__subpackages__",
],
)
skia_filegroup(
name = "test_empty_typeface",
testonly = True,
srcs = ["TestEmptyTypeface.h"],
visibility = ["//tests:__pkg__"],
)
skia_cc_library(
name = "random_scaler_context",
srcs = ["RandomScalerContext.cpp"],
hdrs = ["RandomScalerContext.h"],
visibility = ["//tests:__pkg__"],
deps = ["//:skia_internal"],
)
skia_cc_library(
name = "font_tool_utils",
testonly = True,
srcs = [
"FontToolUtils.cpp",
"TestFontMgr.cpp",
"TestFontMgr.h",
"TestTypeface.cpp",
"TestTypeface.h",
],
hdrs = [
"FontToolUtils.h",
],
textual_hdrs = [
"//tools/fonts:test_fonts",
],
visibility = [
"//bench:__subpackages__",
"//gm:__subpackages__",
"//tests:__subpackages__",
],
deps = [
"//:core",
"//src/base",
"//src/core:core_priv",
"//tools:resources",
"//tools:tool_utils",
],
)