Debian Codegraph @

src/pdf/BUILD.bazel

raw
1 load("//bazel:skia_rules.bzl", "skia_cc_library", "split_srcs_and_hdrs")
2
3 package(
4 default_applicable_licenses = ["//:license"],
5 )
6
7 licenses(["notice"])
8
9 PDF_FILES = [
10 "SkBitmapKey.h",
11 "SkClusterator.cpp",
12 "SkClusterator.h",
13 "SkDeflate.cpp",
14 "SkDeflate.h",
15 "SkKeyedImage.cpp",
16 "SkKeyedImage.h",
17 "SkPDFBitmap.cpp",
18 "SkPDFBitmap.h",
19 "SkPDFDevice.cpp",
20 "SkPDFDevice.h",
21 "SkPDFDocument.cpp",
22 "SkPDFDocumentPriv.h",
23 "SkPDFFont.cpp",
24 "SkPDFFont.h",
25 "SkPDFFormXObject.cpp",
26 "SkPDFFormXObject.h",
27 "SkPDFGlyphUse.h",
28 "SkPDFGradientShader.cpp",
29 "SkPDFGradientShader.h",
30 "SkPDFGraphicStackState.cpp",
31 "SkPDFGraphicStackState.h",
32 "SkPDFGraphicState.cpp",
33 "SkPDFGraphicState.h",
34 "SkPDFMakeCIDGlyphWidthsArray.cpp",
35 "SkPDFMakeCIDGlyphWidthsArray.h",
36 "SkPDFMakeToUnicodeCmap.cpp",
37 "SkPDFMakeToUnicodeCmap.h",
38 "SkPDFMetadata.cpp",
39 "SkPDFMetadata.h",
40 "SkPDFResourceDict.cpp",
41 "SkPDFResourceDict.h",
42 "SkPDFShader.cpp",
43 "SkPDFShader.h",
44 "SkPDFSubsetFont.cpp",
45 "SkPDFSubsetFont.h",
46 "SkPDFTag.cpp",
47 "SkPDFTag.h",
48 "SkPDFType1Font.cpp",
49 "SkPDFType1Font.h",
50 "SkPDFTypes.cpp",
51 "SkPDFTypes.h",
52 "SkPDFUnion.h",
53 "SkPDFUtils.cpp",
54 "SkPDFUtils.h",
55 "SkUUID.h",
56 ]
57
58 split_srcs_and_hdrs(
59 name = "_pdf",
60 files = PDF_FILES,
61 )
62
63 skia_cc_library(
64 name = "pdf",
65 srcs = [
66 ":_pdf_hdrs",
67 ":_pdf_srcs",
68 ],
69 hdrs = [
70 "//include/docs:pdf_hdrs",
71 ],
72 features = ["layering_check"],
73 implementation_deps = [
74 "@zlib",
75 ] +
76 # We have this harfbuzz dependency all by itself because we need to turn this into a
77 # select statement when rolling into G3.
78 [
79 "@harfbuzz",
80 ],
81 local_defines = ["SK_PDF_USE_HARFBUZZ_SUBSET"],
82 visibility = ["//:__pkg__"],
83 deps = [
84 "//:core",
85 "//src/base",
86 "//:pathops",
87 "//src/codec:codec_support_priv",
88 "//src/encode:icc_support",
89 "//src/core:core_priv",
90 "//src/utils:clip_stack_utils",
91 "//src/utils:float_to_decimal",
92 "//modules/skcms",
93 # TODO(kjlubick) Remove this dependency after migrating clients
94 ":jpeg_helpers",
95 ],
96 )
97
98 skia_cc_library(
99 name = "jpeg_helpers",
100 hdrs = [
101 "//include/docs:pdf_hdrs",
102 "//include/docs:pdf_jpeg_hdrs",
103 ],
104 features = ["layering_check"],
105 visibility = ["//:__pkg__"],
106 deps = [
107 "//:core",
108 "//:jpeg_decode_codec",
109 "//:jpeg_encode_codec",
110 "//src/base",
111 ],
112 )