| load("//bazel:skia_rules.bzl", "exports_files_legacy", "select_multi", "skia_filegroup") |
| |
| package( |
| default_applicable_licenses = ["//:license"], |
| ) |
| |
| licenses(["notice"]) |
| |
| exports_files_legacy() |
| |
| skia_filegroup( |
| name = "android_fontmgr_hdrs", |
| srcs = ["SkFontMgr_android.h"], |
| visibility = ["//src/ports:__pkg__"], |
| ) |
| |
| skia_filegroup( |
| name = "core_foundation_hdrs", |
| srcs = ["SkCFObject.h"], |
| visibility = [ |
| "//src/gpu/ganesh/mtl:__pkg__", |
| "//src/ports:__pkg__", |
| ], |
| ) |
| |
| skia_filegroup( |
| name = "coretext_fontmgr_hdrs", |
| srcs = ["SkFontMgr_mac_ct.h"], |
| visibility = ["//src/ports:__pkg__"], |
| ) |
| |
| skia_filegroup( |
| name = "directory_fontmgr_hdrs", |
| srcs = ["SkFontMgr_directory.h"], |
| visibility = ["//src/ports:__pkg__"], |
| ) |
| |
| skia_filegroup( |
| name = "data_fontmgr_hdrs", |
| srcs = ["SkFontMgr_data.h"], |
| visibility = ["//src/ports:__pkg__"], |
| ) |
| |
| skia_filegroup( |
| name = "empty_fontmgr_hdrs", |
| srcs = ["SkFontMgr_empty.h"], |
| visibility = ["//src/ports:__pkg__"], |
| ) |
| |
| skia_filegroup( |
| name = "fontconfig_fontmgr_hdrs", |
| srcs = ["SkFontMgr_fontconfig.h"], |
| visibility = ["//src/ports:__pkg__"], |
| ) |
| |
| skia_filegroup( |
| name = "fci_fontmgr_hdrs", |
| srcs = [ |
| "SkFontConfigInterface.h", |
| "SkFontMgr_FontConfigInterface.h", |
| ], |
| ) |
| |
| skia_filegroup( |
| name = "typeface_fontations_hdrs", |
| srcs = ["SkTypeface_fontations.h"], |
| visibility = ["//src/ports:__pkg__"], |
| ) |
| |
| skia_filegroup( |
| name = "fontmgr_fontations_hdrs", |
| srcs = ["SkFontMgr_Fontations.h"], |
| visibility = ["//src/ports:__pkg__"], |
| ) |
| |
| skia_filegroup( |
| name = "fontmgr", |
| srcs = select_multi( |
| { |
| "//bazel/common_config_settings:android_fontmgr": [":android_fontmgr_hdrs"], |
| "//bazel/common_config_settings:custom_directory_fontmgr": [":directory_fontmgr_hdrs"], |
| "//bazel/common_config_settings:custom_embedded_fontmgr": [":data_fontmgr_hdrs"], |
| "//bazel/common_config_settings:custom_empty_fontmgr": [":empty_fontmgr_hdrs"], |
| "//bazel/common_config_settings:fci_fontmgr": [":fci_fontmgr_hdrs"], |
| # TODO(kjlubick, bungeman) fuchsia_fontmgr, fontmgr_mac_ct, fontmgr_win |
| }, |
| ) + select({ |
| "@platforms//os:linux": [":fontconfig_fontmgr_hdrs"], |
| "//conditions:default": [], |
| }), |
| ) |
| |
| skia_filegroup( |
| name = "public_hdrs", |
| srcs = [ |
| "SkImageGeneratorCG.h", |
| "SkImageGeneratorNDK.h", |
| "SkImageGeneratorWIC.h", |
| ":fontmgr", |
| ] + select({ |
| "@platforms//os:macos": ["SkCFObject.h"], |
| "@platforms//os:ios": ["SkCFObject.h"], |
| "//conditions:default": [], |
| }) + select({ |
| "@platforms//os:macos": ["SkTypeface_mac.h"], |
| "@platforms//os:windows": ["SkTypeface_win.h"], |
| "//conditions:default": [], |
| }) + select({ |
| "//bazel/common_config_settings:use_fontations_true": [ |
| ":typeface_fontations_hdrs", |
| ], |
| "//conditions:default": [], |
| }), |
| visibility = ["//include:__pkg__"], |
| ) |
| |
| skia_filegroup( |
| name = "imagegenerator_cg_hdrs", |
| srcs = ["SkImageGeneratorCG.h"], |
| visibility = [ |
| "//src/gpu/ganesh/mtl:__pkg__", |
| "//src/ports:__pkg__", |
| ], |
| ) |
| |
| skia_filegroup( |
| name = "mac_typeface", |
| srcs = ["SkTypeface_mac.h"], |
| visibility = [ |
| "//src/gpu/ganesh/mtl:__pkg__", |
| "//src/ports:__pkg__", |
| ], |
| ) |