1load( 2 "//bazel:skia_rules.bzl", 3 "exports_files_legacy", 4 "skia_cc_library", 5 "skia_filegroup", 6) 7 8package( 9 default_applicable_licenses = ["//:license"], 10) 11 12licenses(["notice"]) 13 14exports_files_legacy() 15 16skia_filegroup( 17 name = "test_font_manager_srcs", 18 testonly = True, 19 srcs = [ 20 "FontToolUtils.cpp", 21 "FontToolUtils.h", 22 "TestFontMgr.cpp", 23 "TestFontMgr.h", 24 "TestTypeface.cpp", 25 "TestTypeface.h", 26 ], 27 visibility = [ 28 "//tests:__pkg__", 29 "//tools:__subpackages__", 30 ], 31) 32 33skia_filegroup( 34 name = "test_fonts", 35 testonly = True, 36 srcs = [ 37 "test_font_index.inc", 38 "test_font_monospace.inc", 39 "test_font_sans_serif.inc", 40 "test_font_serif.inc", 41 ], 42 visibility = [ 43 "//tests:__pkg__", 44 "//tools:__subpackages__", 45 ], 46) 47 48skia_filegroup( 49 name = "test_empty_typeface", 50 testonly = True, 51 srcs = ["TestEmptyTypeface.h"], 52 visibility = ["//tests:__pkg__"], 53) 54 55skia_cc_library( 56 name = "random_scaler_context", 57 srcs = ["RandomScalerContext.cpp"], 58 hdrs = ["RandomScalerContext.h"], 59 visibility = ["//tests:__pkg__"], 60 deps = ["//:skia_internal"], 61) 62 63skia_cc_library( 64 name = "font_tool_utils", 65 testonly = True, 66 srcs = [ 67 "FontToolUtils.cpp", 68 "TestFontMgr.cpp", 69 "TestFontMgr.h", 70 "TestTypeface.cpp", 71 "TestTypeface.h", 72 ], 73 hdrs = [ 74 "FontToolUtils.h", 75 ], 76 textual_hdrs = [ 77 "//tools/fonts:test_fonts", 78 ], 79 visibility = [ 80 "//bench:__subpackages__", 81 "//gm:__subpackages__", 82 "//tests:__subpackages__", 83 "//tools:__subpackages__", 84 ], 85 deps = [ 86 "//:core", 87 "//src/base", 88 "//src/core:core_priv", 89 "//tools:resources", 90 "//tools:tool_utils", 91 ] + select( 92 { 93 "//bazel/common_config_settings:use_fontations_true": ["//src/ports:fontmgr_fontations_empty"], 94 "//conditions:default": [], 95 }, 96 ), 97) 98