1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "external_pdfium_license"
// to get the below license kinds:
// SPDX-license-identifier-Artistic
// SPDX-license-identifier-BSD
// SPDX-license-identifier-FTL
// SPDX-license-identifier-MIT
// SPDX-license-identifier-Zlib
// SPDX-license-identifier-libtiff
// legacy_unencumbered
default_applicable_licenses: ["external_pdfium_license"],
}
cc_defaults {
name: "pdfium-third-party",
defaults: [
"pdfium-common"
],
visibility: ["//external/pdfium:__subpackages__"],
}
cc_library_static {
name: "libpdfium-third_party-base",
defaults: ["pdfium-third-party"],
visibility: ["//external/pdfium:__subpackages__"],
arch: {
arm: {
cflags: [
"-DARCH_CPU_32_BITS",
"-DARCH_CPU_ARMEL",
],
},
arm64: {
cflags: [
"-DARCH_CPU_64_BITS",
"-DARCH_CPU_ARM64",
],
},
x86: {
cflags: [
"-DARCH_CPU_32_BITS",
"-DARCH_CPU_X86",
],
},
x86_64: {
cflags: [
"-DARCH_CPU_64_BITS",
"-DARCH_CPU_X86_64",
],
},
},
srcs: [
"base/debug/*.cc",
"base/allocator/partition_allocator/*.cc",
],
}
cc_library_static {
name: "libpdfium-lcms2",
defaults: ["pdfium-third-party"],
cflags: [
// cmslut.cc is sloppy with aggregate initialization. Version 2.7 of this
// library doesn't appear to have this problem.
"-Wno-missing-braces",
// FindPrev() in cmsplugin.c is unused.
"-Wno-unused-function",
],
srcs: [
"lcms/src/*.c",
],
}
cc_library_static {
name: "libpdfium-libopenjpeg2",
defaults: ["pdfium-third-party"],
visibility: ["//cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8332"],
exclude_srcs: [
"libopenjpeg20/t1_generate_luts.c",
],
srcs: [
"libopenjpeg20/*.c",
],
}
cc_library_static {
name: "libpdfium-agg",
defaults: ["pdfium-third-party"],
cflags: [
// calc_butt_cap() in agg_vcgen_stroke.cpp is unused.
"-Wno-unused-function",
],
srcs: [
"agg23/*.cpp",
]
}
cc_library_static {
name: "libpdfium-skia_shared",
defaults: ["pdfium-third-party"],
srcs: [
"skia_shared/*.cpp",
],
}
|