skia2/tools/BUILD.bazel
Dominik Röttsches f27608b656 Reland (2): Add ToolUtils helper for generating GM UI sliders for variable fonts
numAxes check changed from != 0 to < 0, G3 build fix by updating bazel
files for skdiff to include SkMetaData, now with file name typo fixed.

Use this new tool in the COLRv1 GM test for creating sliders in the GM
UI if the test font provides variable axes. Preparation for testing
variable COLRv1 fonts while developing this feature in FreeType.

Bug: chromium:1311241
Cq-Include-Trybots: luci.skia.skia.primary:Canary-G3
Change-Id: I2a24fed2c46e1edc85ca45080db5b54a5c15b6bf
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/556936
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Commit-Queue: Dominik Röttsches <drott@google.com>
2022-07-08 15:30:26 +00:00

38 lines
853 B
Python

load("//bazel:macros.bzl", "cc_library", "exports_files_legacy", "py_binary")
licenses(["notice"])
exports_files_legacy()
cc_library(
name = "tool_utils",
testonly = True,
srcs = [
"Resources.cpp",
"ToolUtils.cpp",
"ResourceFactory.h",
"Resources.h",
"//tools/flags:core_srcs",
# TODO(kjlubick, bungeman): We should split out the font stuff into its own set of files
"//tools/fonts:test_font_manager_srcs",
"SkMetaData.h",
"SkMetaData.cpp",
],
hdrs = [
"ToolUtils.h",
],
textual_hdrs = [
"//tools/fonts:test_fonts",
],
visibility = ["//:__subpackages__"],
deps = [
"//:skia_internal",
],
)
py_binary(
name = "embed_resources",
srcs = ["embed_resources.py"],
visibility = ["//:__subpackages__"],
)