| load("//bazel:skia_rules.bzl", "generate_cpp_files_for_headers", "skia_cc_library", "skia_filegroup") |
| |
| package( |
| default_applicable_licenses = ["//:license"], |
| ) |
| |
| licenses(["notice"]) |
| |
| XPS_HDRS = ["SkXPSDocument.h"] |
| |
| MULTI_PICTURE_DOCUMENT_HDRS = ["SkMultiPictureDocument.h"] |
| |
| PDF_HDRS = ["SkPDFDocument.h"] |
| |
| PDF_JPEG_HDRS = ["SkPDFJpegHelpers.h"] |
| |
| XPS_LIBPNG_HDRS = ["SkXPSLibpngHelpers.h"] |
| |
| XPS_RUST_PNG_HDRS = ["SkXPSRustPngHelpers.h"] |
| |
| # Not yet referenced by Bazel build. |
| # In separate group for exporting to xps.gni:skia_xps_public. |
| skia_filegroup( |
| name = "xps_hdrs", |
| srcs = XPS_HDRS, |
| ) |
| |
| skia_filegroup( |
| name = "multi_picture_document_hdrs", |
| srcs = MULTI_PICTURE_DOCUMENT_HDRS, |
| visibility = ["//src/utils:__pkg__"], |
| ) |
| |
| skia_filegroup( |
| name = "pdf_hdrs", |
| srcs = PDF_HDRS, |
| visibility = ["//src/pdf:__pkg__"], |
| ) |
| |
| skia_filegroup( |
| name = "pdf_jpeg_hdrs", |
| srcs = PDF_JPEG_HDRS, |
| visibility = ["//src/pdf:__pkg__"], |
| ) |
| |
| skia_cc_library( |
| name = "xps_libpng_hdrs", |
| hdrs = XPS_LIBPNG_HDRS, |
| visibility = [ |
| "//dm:__pkg__", |
| "//src/xps:__pkg__", |
| ], |
| deps = ["//:png_encode_libpng"], |
| ) |
| |
| skia_cc_library( |
| name = "xps_rust_png_hdrs", |
| hdrs = XPS_RUST_PNG_HDRS, |
| visibility = [ |
| "//dm:__pkg__", |
| "//src/xps:__pkg__", |
| ], |
| deps = ["//:png_encode_rust"], |
| ) |
| |
| generate_cpp_files_for_headers( |
| name = "headers_to_compile", |
| headers = XPS_HDRS + |
| MULTI_PICTURE_DOCUMENT_HDRS + |
| PDF_HDRS + |
| PDF_JPEG_HDRS + |
| XPS_LIBPNG_HDRS + |
| XPS_RUST_PNG_HDRS, |
| ) |