blob: 53f4644fc11d0298622d08d8ae8831508f7f5a26 [file] [log] [blame]
Tom Sepezb5451592016-02-22 16:48:02 -08001# Copyright 2016 The Chromium Authors. All rights reserved.
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07002# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Tom Sepeza32f7602015-01-15 09:34:34 -08005import("//testing/test.gni")
dsinclair038bf0b2016-04-30 06:00:05 -07006import("pdfium.gni")
John Abd-El-Malekef4dce42015-02-02 16:52:07 -08007
Dominik Röttsches4b0671a2017-03-30 11:07:43 +03008group("freetype_common") {
9 public_deps = []
10 if (pdf_bundle_freetype) {
11 public_deps += [ "third_party:fx_freetype" ]
12 } else {
13 public_deps += [ "//build/config/freetype" ]
14 }
15}
16
weili0abe6522016-06-06 14:41:22 -070017config("pdfium_common_config") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070018 cflags = []
dsinclair6e162b52017-01-24 11:18:16 -080019 ldflags = []
Dominik Röttsches4b0671a2017-03-30 11:07:43 +030020 include_dirs = [ "." ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070021 defines = [
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080022 "OPJ_STATIC",
John Abd-El-Malek385729b2015-02-06 15:51:11 -080023 "PNG_PREFIX",
John Abd-El-Malek385729b2015-02-06 15:51:11 -080024 "PNG_USE_READ_MACROS",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070025 ]
26
27 if (pdf_use_skia) {
28 defines += [ "_SKIA_SUPPORT_" ]
29 }
30
caryclarkaf177fe2016-11-16 10:10:03 -080031 if (pdf_use_skia_paths) {
32 defines += [ "_SKIA_SUPPORT_PATHS_" ]
33 }
34
Tom Sepez452b4f32015-10-13 09:27:27 -070035 if (pdf_enable_v8) {
36 defines += [ "PDF_ENABLE_V8" ]
37 }
38
Tom Sepeza8a39e22015-10-12 15:47:07 -070039 if (pdf_enable_xfa) {
40 defines += [ "PDF_ENABLE_XFA" ]
Tom Sepez73c9f3b2017-02-27 10:12:59 -080041 if (pdf_enable_xfa_bmp) {
42 defines += [ "PDF_ENABLE_XFA_BMP" ]
43 }
44 if (pdf_enable_xfa_gif) {
45 defines += [ "PDF_ENABLE_XFA_GIF" ]
46 }
47 if (pdf_enable_xfa_png) {
48 defines += [ "PDF_ENABLE_XFA_PNG" ]
49 }
50 if (pdf_enable_xfa_tiff) {
51 defines += [ "PDF_ENABLE_XFA_TIFF" ]
52 }
Tom Sepeza8a39e22015-10-12 15:47:07 -070053 }
thestig3e454bf2016-07-29 16:29:04 -070054
55 if (pdf_use_win32_gdi) {
56 defines += [ "PDFIUM_PRINT_TEXT_WITH_GDI" ]
57 }
dsinclair6e162b52017-01-24 11:18:16 -080058
59 if (use_coverage && is_clang) {
60 cflags += [
61 "--coverage",
62 "-g",
63 "-O0",
64 ]
65 ldflags += [ "--coverage" ]
66 }
Dan Sinclair77e2a6c2017-03-13 09:35:12 -040067
68 if (is_win) {
69 # Assume UTF-8 by default to avoid code page dependencies.
70 cflags += [ "/utf-8" ]
71 }
weili0abe6522016-06-06 14:41:22 -070072}
Tom Sepeza8a39e22015-10-12 15:47:07 -070073
weili0abe6522016-06-06 14:41:22 -070074config("pdfium_core_config") {
75 cflags = []
dsinclair8bd9ce02016-06-09 13:24:34 -070076 configs = [ ":pdfium_common_config" ]
77 defines = [ "V8_DEPRECATION_WARNINGS" ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070078 if (is_linux) {
Tom Sepez25d5be62015-06-18 17:44:29 -070079 if (current_cpu == "x64") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070080 defines += [ "_FX_CPU_=_FX_X64_" ]
81 cflags += [ "-fPIC" ]
Tom Sepez25d5be62015-06-18 17:44:29 -070082 } else if (current_cpu == "x86") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070083 defines += [ "_FX_CPU_=_FX_X86_" ]
84 }
85 }
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070086 if (is_win) {
Tom Sepez3bb57512017-03-28 14:09:43 -070087 cflags += [
88 "/wd4267",
89 "/wd4577",
90 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070091 }
weilidcc29b12016-05-27 17:58:23 -070092}
Lei Zhang476ac132015-11-05 20:07:27 -080093
weilidcc29b12016-05-27 17:58:23 -070094config("xfa_warnings") {
95 visibility = [ ":*" ]
Tom Sepez34209092016-03-18 09:00:33 -070096 if (is_posix && !is_clang) { # When GCC.
weilidcc29b12016-05-27 17:58:23 -070097 cflags = [ "-Wno-strict-overflow" ]
Tom Sepez34209092016-03-18 09:00:33 -070098 }
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070099}
100
101static_library("pdfium") {
102 sources = [
jaepark611adb82016-08-17 11:34:36 -0700103 "fpdfsdk/cba_annotiterator.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700104 "fpdfsdk/cba_annotiterator.h",
dsinclairb9590102016-04-27 06:38:59 -0700105 "fpdfsdk/cfx_systemhandler.cpp",
106 "fpdfsdk/cfx_systemhandler.h",
jaepark27362762016-08-11 13:10:39 -0700107 "fpdfsdk/cpdfsdk_annot.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700108 "fpdfsdk/cpdfsdk_annot.h",
jaepark98e10192016-08-15 10:51:11 -0700109 "fpdfsdk/cpdfsdk_annothandlermgr.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700110 "fpdfsdk/cpdfsdk_annothandlermgr.h",
tsepezd805eec2017-01-11 14:03:54 -0800111 "fpdfsdk/cpdfsdk_annotiteration.cpp",
112 "fpdfsdk/cpdfsdk_annotiteration.h",
jaepark27362762016-08-11 13:10:39 -0700113 "fpdfsdk/cpdfsdk_baannot.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700114 "fpdfsdk/cpdfsdk_baannot.h",
jaepark35512aa2016-08-29 17:15:08 -0700115 "fpdfsdk/cpdfsdk_baannothandler.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700116 "fpdfsdk/cpdfsdk_baannothandler.h",
jaepark27362762016-08-11 13:10:39 -0700117 "fpdfsdk/cpdfsdk_datetime.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700118 "fpdfsdk/cpdfsdk_datetime.h",
dsinclair735606d2016-10-05 15:47:02 -0700119 "fpdfsdk/cpdfsdk_formfillenvironment.cpp",
120 "fpdfsdk/cpdfsdk_formfillenvironment.h",
jaepark611adb82016-08-17 11:34:36 -0700121 "fpdfsdk/cpdfsdk_interform.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700122 "fpdfsdk/cpdfsdk_interform.h",
dsinclairf34518b2016-09-13 12:03:48 -0700123 "fpdfsdk/cpdfsdk_pageview.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700124 "fpdfsdk/cpdfsdk_pageview.h",
jaepark611adb82016-08-17 11:34:36 -0700125 "fpdfsdk/cpdfsdk_widget.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700126 "fpdfsdk/cpdfsdk_widget.h",
jaepark8c541822016-08-30 13:43:05 -0700127 "fpdfsdk/cpdfsdk_widgethandler.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700128 "fpdfsdk/cpdfsdk_widgethandler.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -0400129 "fpdfsdk/fpdf_dataavail.cpp",
130 "fpdfsdk/fpdf_ext.cpp",
131 "fpdfsdk/fpdf_flatten.cpp",
132 "fpdfsdk/fpdf_progressive.cpp",
133 "fpdfsdk/fpdf_searchex.cpp",
thestig9067fd62016-11-23 14:10:06 -0800134 "fpdfsdk/fpdf_structtree.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -0400135 "fpdfsdk/fpdf_sysfontinfo.cpp",
136 "fpdfsdk/fpdf_transformpage.cpp",
137 "fpdfsdk/fpdfdoc.cpp",
138 "fpdfsdk/fpdfeditimg.cpp",
139 "fpdfsdk/fpdfeditpage.cpp",
Nicolas Pena55e026b2017-02-07 14:59:23 -0500140 "fpdfsdk/fpdfeditpath.cpp",
Nicolas Pena49058402017-02-14 18:26:20 -0500141 "fpdfsdk/fpdfedittext.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -0400142 "fpdfsdk/fpdfformfill.cpp",
143 "fpdfsdk/fpdfppo.cpp",
144 "fpdfsdk/fpdfsave.cpp",
145 "fpdfsdk/fpdftext.cpp",
146 "fpdfsdk/fpdfview.cpp",
147 "fpdfsdk/fsdk_actionhandler.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700148 "fpdfsdk/fsdk_actionhandler.h",
Dan Sinclairae4656e2017-05-09 12:36:41 -0400149 "fpdfsdk/fsdk_filewriteadapter.cpp",
150 "fpdfsdk/fsdk_filewriteadapter.h",
weili9f515bc2016-07-24 08:08:24 -0700151 "fpdfsdk/fsdk_pauseadapter.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700152 "fpdfsdk/fsdk_pauseadapter.h",
jaepark611adb82016-08-17 11:34:36 -0700153 "fpdfsdk/pdfsdk_fieldaction.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700154 "fpdfsdk/pdfsdk_fieldaction.h",
Tom Sepez1d17a042017-03-16 13:22:47 -0700155 "public/cpp/fpdf_deleters.h",
Tom Sepez1ed8a212015-05-11 15:25:39 -0700156 "public/fpdf_dataavail.h",
157 "public/fpdf_doc.h",
158 "public/fpdf_edit.h",
159 "public/fpdf_ext.h",
160 "public/fpdf_flatten.h",
161 "public/fpdf_formfill.h",
162 "public/fpdf_fwlevent.h",
163 "public/fpdf_ppo.h",
164 "public/fpdf_progressive.h",
165 "public/fpdf_save.h",
166 "public/fpdf_searchex.h",
thestig9067fd62016-11-23 14:10:06 -0800167 "public/fpdf_structtree.h",
Tom Sepez1ed8a212015-05-11 15:25:39 -0700168 "public/fpdf_sysfontinfo.h",
169 "public/fpdf_text.h",
170 "public/fpdf_transformpage.h",
171 "public/fpdfview.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700172 ]
173
174 libs = []
weili0abe6522016-06-06 14:41:22 -0700175 configs += [ ":pdfium_core_config" ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700176
177 deps = [
178 ":fdrm",
179 ":formfiller",
180 ":fpdfapi",
181 ":fpdfdoc",
182 ":fpdftext",
183 ":fxcodec",
184 ":fxcrt",
185 ":fxedit",
186 ":fxge",
187 ":javascript",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700188 ":pdfwindow",
Dan Sinclairfffc9632016-03-08 08:57:05 -0500189 "third_party:bigint",
190 "third_party:pdfium_base",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700191 ]
192
thestig73c48562016-09-06 14:07:17 -0700193 public_deps = [
194 ":fxcrt",
195 ]
Tom Sepeza8a39e22015-10-12 15:47:07 -0700196 if (pdf_enable_xfa) {
jaepark611adb82016-08-17 11:34:36 -0700197 sources += [
198 "fpdfsdk/cpdfsdk_xfawidget.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700199 "fpdfsdk/cpdfsdk_xfawidget.h",
jaepark8c541822016-08-30 13:43:05 -0700200 "fpdfsdk/cpdfsdk_xfawidgethandler.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700201 "fpdfsdk/cpdfsdk_xfawidgethandler.h",
jaepark611adb82016-08-17 11:34:36 -0700202 ]
203
Tom Sepezb5451592016-02-22 16:48:02 -0800204 deps += [ ":fpdfxfa" ]
Tom Sepeza8a39e22015-10-12 15:47:07 -0700205 }
206
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700207 if (is_win) {
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400208 libs += [
209 "advapi32.lib",
210 "gdi32.lib",
211 "user32.lib",
212 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700213 }
214
215 if (is_mac) {
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400216 libs += [
217 "AppKit.framework",
218 "CoreFoundation.framework",
219 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700220 }
John Abd-El-Malekef4dce42015-02-02 16:52:07 -0800221
dan sinclairfa171d22017-03-26 22:38:17 -0400222 if (pdf_is_complete_lib) {
223 complete_static_lib = true
224 }
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700225}
226
brettwe283e472016-07-21 09:38:22 -0700227static_library("test_support") {
Tom Sepezd831dc72015-10-19 16:04:22 -0700228 testonly = true
229 sources = [
230 "testing/fx_string_testhelpers.cpp",
231 "testing/fx_string_testhelpers.h",
232 "testing/test_support.cpp",
233 "testing/test_support.h",
Oliver Changd46f1c82015-11-12 22:03:10 -0800234 "testing/utils/path_service.cpp",
thestigbcd3e532016-11-21 13:37:28 -0800235 "testing/utils/path_service.h",
Tom Sepezd831dc72015-10-19 16:04:22 -0700236 ]
jbudorickf6ee8202016-12-05 06:50:50 -0800237 data = [
238 "testing/resources/",
239 ]
Tom Sepezd831dc72015-10-19 16:04:22 -0700240 deps = [
Dan Sinclairfffc9632016-03-08 08:57:05 -0500241 ":pdfium",
Tom Sepezd831dc72015-10-19 16:04:22 -0700242 "//testing/gmock",
243 "//testing/gtest",
Tom Sepezd831dc72015-10-19 16:04:22 -0700244 ]
Lei Zhang8241df72015-11-06 14:38:48 -0800245 include_dirs = []
Tom Sepezd831dc72015-10-19 16:04:22 -0700246 if (pdf_enable_v8) {
247 deps += [
248 "//v8",
249 "//v8:v8_libplatform",
250 ]
251 include_dirs += [
252 "//v8",
253 "//v8/include",
254 ]
Jochen Eisinger7ed503d2015-12-10 14:38:06 +0100255 configs += [ "//v8:external_startup_data" ]
Tom Sepezd831dc72015-10-19 16:04:22 -0700256 }
weili0abe6522016-06-06 14:41:22 -0700257 configs += [ ":pdfium_core_config" ]
Tom Sepezd831dc72015-10-19 16:04:22 -0700258}
259
260# Targets below this are only visible within this file (and to the
261# top-level gn_visibility target used to help gn_all build everything).
262visibility = [
263 ":*",
264 "//:gn_visibility",
265]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700266
267static_library("fdrm") {
268 sources = [
Dan Sinclair764ec512016-03-14 13:35:12 -0400269 "core/fdrm/crypto/fx_crypt.cpp",
dsinclairb1469a22016-09-29 10:00:05 -0700270 "core/fdrm/crypto/fx_crypt.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400271 "core/fdrm/crypto/fx_crypt_aes.cpp",
272 "core/fdrm/crypto/fx_crypt_sha.cpp",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700273 ]
weili0abe6522016-06-06 14:41:22 -0700274 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -0700275 deps = [
276 ":fxcrt",
277 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700278}
279
280static_library("fpdfdoc") {
281 sources = [
dsinclair448c4332016-08-02 12:07:35 -0700282 "core/fpdfdoc/cline.cpp",
283 "core/fpdfdoc/cline.h",
dsinclair02e6f592016-08-02 11:25:48 -0700284 "core/fpdfdoc/cpdf_aaction.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700285 "core/fpdfdoc/cpdf_aaction.h",
dsinclair02e6f592016-08-02 11:25:48 -0700286 "core/fpdfdoc/cpdf_action.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700287 "core/fpdfdoc/cpdf_action.h",
dsinclair02e6f592016-08-02 11:25:48 -0700288 "core/fpdfdoc/cpdf_actionfields.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700289 "core/fpdfdoc/cpdf_actionfields.h",
jaepark3b6c7e92016-07-20 14:18:04 -0700290 "core/fpdfdoc/cpdf_annot.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700291 "core/fpdfdoc/cpdf_annot.h",
jaepark3b6c7e92016-07-20 14:18:04 -0700292 "core/fpdfdoc/cpdf_annotlist.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700293 "core/fpdfdoc/cpdf_annotlist.h",
dsinclair27053d82016-08-02 15:43:46 -0700294 "core/fpdfdoc/cpdf_apsettings.cpp",
dsinclaircac704d2016-07-28 12:59:09 -0700295 "core/fpdfdoc/cpdf_apsettings.h",
dsinclair02e6f592016-08-02 11:25:48 -0700296 "core/fpdfdoc/cpdf_bookmark.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700297 "core/fpdfdoc/cpdf_bookmark.h",
dsinclair02e6f592016-08-02 11:25:48 -0700298 "core/fpdfdoc/cpdf_bookmarktree.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700299 "core/fpdfdoc/cpdf_bookmarktree.h",
dsinclair27053d82016-08-02 15:43:46 -0700300 "core/fpdfdoc/cpdf_defaultappearance.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700301 "core/fpdfdoc/cpdf_defaultappearance.h",
dsinclair448c4332016-08-02 12:07:35 -0700302 "core/fpdfdoc/cpdf_dest.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700303 "core/fpdfdoc/cpdf_dest.h",
dsinclair02e6f592016-08-02 11:25:48 -0700304 "core/fpdfdoc/cpdf_docjsactions.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700305 "core/fpdfdoc/cpdf_docjsactions.h",
dsinclair448c4332016-08-02 12:07:35 -0700306 "core/fpdfdoc/cpdf_filespec.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700307 "core/fpdfdoc/cpdf_filespec.h",
dsinclair27053d82016-08-02 15:43:46 -0700308 "core/fpdfdoc/cpdf_formcontrol.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700309 "core/fpdfdoc/cpdf_formcontrol.h",
dsinclair27053d82016-08-02 15:43:46 -0700310 "core/fpdfdoc/cpdf_formfield.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700311 "core/fpdfdoc/cpdf_formfield.h",
dsinclair27053d82016-08-02 15:43:46 -0700312 "core/fpdfdoc/cpdf_iconfit.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700313 "core/fpdfdoc/cpdf_iconfit.h",
dsinclair27053d82016-08-02 15:43:46 -0700314 "core/fpdfdoc/cpdf_interform.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700315 "core/fpdfdoc/cpdf_interform.h",
dsinclair02e6f592016-08-02 11:25:48 -0700316 "core/fpdfdoc/cpdf_link.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700317 "core/fpdfdoc/cpdf_link.h",
dsinclair02e6f592016-08-02 11:25:48 -0700318 "core/fpdfdoc/cpdf_linklist.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700319 "core/fpdfdoc/cpdf_linklist.h",
dsinclair02e6f592016-08-02 11:25:48 -0700320 "core/fpdfdoc/cpdf_metadata.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700321 "core/fpdfdoc/cpdf_metadata.h",
dsinclair448c4332016-08-02 12:07:35 -0700322 "core/fpdfdoc/cpdf_nametree.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700323 "core/fpdfdoc/cpdf_nametree.h",
dsinclair27053d82016-08-02 15:43:46 -0700324 "core/fpdfdoc/cpdf_numbertree.cpp",
325 "core/fpdfdoc/cpdf_numbertree.h",
dsinclair448c4332016-08-02 12:07:35 -0700326 "core/fpdfdoc/cpdf_occontext.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700327 "core/fpdfdoc/cpdf_occontext.h",
dsinclair448c4332016-08-02 12:07:35 -0700328 "core/fpdfdoc/cpdf_pagelabel.cpp",
dsinclaircac704d2016-07-28 12:59:09 -0700329 "core/fpdfdoc/cpdf_pagelabel.h",
dan sinclair7f389612017-04-06 13:38:54 -0400330 "core/fpdfdoc/cpdf_structelement.cpp",
331 "core/fpdfdoc/cpdf_structelement.h",
332 "core/fpdfdoc/cpdf_structtree.cpp",
333 "core/fpdfdoc/cpdf_structtree.h",
dsinclairc7a73492016-04-05 12:01:42 -0700334 "core/fpdfdoc/cpdf_variabletext.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700335 "core/fpdfdoc/cpdf_variabletext.h",
dsinclair02e6f592016-08-02 11:25:48 -0700336 "core/fpdfdoc/cpdf_viewerpreferences.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700337 "core/fpdfdoc/cpdf_viewerpreferences.h",
dsinclair777b3332016-03-31 20:03:08 -0700338 "core/fpdfdoc/cpvt_color.cpp",
339 "core/fpdfdoc/cpvt_color.h",
340 "core/fpdfdoc/cpvt_dash.h",
dsinclairc7a73492016-04-05 12:01:42 -0700341 "core/fpdfdoc/cpvt_floatrect.h",
dsinclair777b3332016-03-31 20:03:08 -0700342 "core/fpdfdoc/cpvt_fontmap.cpp",
343 "core/fpdfdoc/cpvt_fontmap.h",
344 "core/fpdfdoc/cpvt_generateap.cpp",
345 "core/fpdfdoc/cpvt_generateap.h",
dsinclair1727aee2016-09-29 13:12:56 -0700346 "core/fpdfdoc/cpvt_line.h",
dsinclairc7a73492016-04-05 12:01:42 -0700347 "core/fpdfdoc/cpvt_lineinfo.h",
dsinclair1727aee2016-09-29 13:12:56 -0700348 "core/fpdfdoc/cpvt_secprops.h",
349 "core/fpdfdoc/cpvt_section.h",
weili5a6c1392016-07-11 14:43:40 -0700350 "core/fpdfdoc/cpvt_sectioninfo.cpp",
dsinclairc7a73492016-04-05 12:01:42 -0700351 "core/fpdfdoc/cpvt_sectioninfo.h",
dsinclair1727aee2016-09-29 13:12:56 -0700352 "core/fpdfdoc/cpvt_word.h",
weili5a6c1392016-07-11 14:43:40 -0700353 "core/fpdfdoc/cpvt_wordinfo.cpp",
dsinclairc7a73492016-04-05 12:01:42 -0700354 "core/fpdfdoc/cpvt_wordinfo.h",
dsinclair1727aee2016-09-29 13:12:56 -0700355 "core/fpdfdoc/cpvt_wordplace.h",
356 "core/fpdfdoc/cpvt_wordprops.h",
357 "core/fpdfdoc/cpvt_wordrange.h",
thestig9c845c32016-05-13 11:08:41 -0700358 "core/fpdfdoc/csection.cpp",
dsinclairc7a73492016-04-05 12:01:42 -0700359 "core/fpdfdoc/csection.h",
thestig9c845c32016-05-13 11:08:41 -0700360 "core/fpdfdoc/ctypeset.cpp",
dsinclairc7a73492016-04-05 12:01:42 -0700361 "core/fpdfdoc/ctypeset.h",
dsinclair1727aee2016-09-29 13:12:56 -0700362 "core/fpdfdoc/ipdf_formnotify.h",
363 "core/fpdfdoc/ipvt_fontmap.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700364 ]
weili0abe6522016-06-06 14:41:22 -0700365 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -0700366 deps = [
367 ":fxcrt",
368 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700369}
370
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700371static_library("fpdfapi") {
372 sources = [
dsinclaira6c92152016-10-04 10:58:54 -0700373 "core/fpdfapi/cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp",
374 "core/fpdfapi/cmaps/CNS1/B5pc-H_0.cpp",
375 "core/fpdfapi/cmaps/CNS1/B5pc-V_0.cpp",
376 "core/fpdfapi/cmaps/CNS1/CNS-EUC-H_0.cpp",
377 "core/fpdfapi/cmaps/CNS1/CNS-EUC-V_0.cpp",
378 "core/fpdfapi/cmaps/CNS1/ETen-B5-H_0.cpp",
379 "core/fpdfapi/cmaps/CNS1/ETen-B5-V_0.cpp",
380 "core/fpdfapi/cmaps/CNS1/ETenms-B5-H_0.cpp",
381 "core/fpdfapi/cmaps/CNS1/ETenms-B5-V_0.cpp",
382 "core/fpdfapi/cmaps/CNS1/HKscs-B5-H_5.cpp",
383 "core/fpdfapi/cmaps/CNS1/HKscs-B5-V_5.cpp",
384 "core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-H_3.cpp",
385 "core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-V_3.cpp",
386 "core/fpdfapi/cmaps/CNS1/UniCNS-UTF16-H_0.cpp",
387 "core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp",
388 "core/fpdfapi/cmaps/GB1/Adobe-GB1-UCS2_5.cpp",
389 "core/fpdfapi/cmaps/GB1/GB-EUC-H_0.cpp",
390 "core/fpdfapi/cmaps/GB1/GB-EUC-V_0.cpp",
391 "core/fpdfapi/cmaps/GB1/GBK-EUC-H_2.cpp",
392 "core/fpdfapi/cmaps/GB1/GBK-EUC-V_2.cpp",
393 "core/fpdfapi/cmaps/GB1/GBK2K-H_5.cpp",
394 "core/fpdfapi/cmaps/GB1/GBK2K-V_5.cpp",
395 "core/fpdfapi/cmaps/GB1/GBKp-EUC-H_2.cpp",
396 "core/fpdfapi/cmaps/GB1/GBKp-EUC-V_2.cpp",
397 "core/fpdfapi/cmaps/GB1/GBpc-EUC-H_0.cpp",
398 "core/fpdfapi/cmaps/GB1/GBpc-EUC-V_0.cpp",
399 "core/fpdfapi/cmaps/GB1/UniGB-UCS2-H_4.cpp",
400 "core/fpdfapi/cmaps/GB1/UniGB-UCS2-V_4.cpp",
401 "core/fpdfapi/cmaps/GB1/cmaps_gb1.cpp",
402 "core/fpdfapi/cmaps/Japan1/83pv-RKSJ-H_1.cpp",
403 "core/fpdfapi/cmaps/Japan1/90ms-RKSJ-H_2.cpp",
404 "core/fpdfapi/cmaps/Japan1/90ms-RKSJ-V_2.cpp",
405 "core/fpdfapi/cmaps/Japan1/90msp-RKSJ-H_2.cpp",
406 "core/fpdfapi/cmaps/Japan1/90msp-RKSJ-V_2.cpp",
407 "core/fpdfapi/cmaps/Japan1/90pv-RKSJ-H_1.cpp",
408 "core/fpdfapi/cmaps/Japan1/Add-RKSJ-H_1.cpp",
409 "core/fpdfapi/cmaps/Japan1/Add-RKSJ-V_1.cpp",
410 "core/fpdfapi/cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp",
411 "core/fpdfapi/cmaps/Japan1/EUC-H_1.cpp",
412 "core/fpdfapi/cmaps/Japan1/EUC-V_1.cpp",
413 "core/fpdfapi/cmaps/Japan1/Ext-RKSJ-H_2.cpp",
414 "core/fpdfapi/cmaps/Japan1/Ext-RKSJ-V_2.cpp",
415 "core/fpdfapi/cmaps/Japan1/H_1.cpp",
416 "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp",
417 "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp",
418 "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-H_4.cpp",
419 "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-V_4.cpp",
420 "core/fpdfapi/cmaps/Japan1/V_1.cpp",
421 "core/fpdfapi/cmaps/Japan1/cmaps_japan1.cpp",
422 "core/fpdfapi/cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp",
423 "core/fpdfapi/cmaps/Korea1/KSC-EUC-H_0.cpp",
424 "core/fpdfapi/cmaps/Korea1/KSC-EUC-V_0.cpp",
425 "core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-H_1.cpp",
426 "core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-V_1.cpp",
427 "core/fpdfapi/cmaps/Korea1/KSCms-UHC-H_1.cpp",
428 "core/fpdfapi/cmaps/Korea1/KSCms-UHC-V_1.cpp",
429 "core/fpdfapi/cmaps/Korea1/KSCpc-EUC-H_0.cpp",
430 "core/fpdfapi/cmaps/Korea1/UniKS-UCS2-H_1.cpp",
431 "core/fpdfapi/cmaps/Korea1/UniKS-UCS2-V_1.cpp",
432 "core/fpdfapi/cmaps/Korea1/UniKS-UTF16-H_0.cpp",
433 "core/fpdfapi/cmaps/Korea1/cmaps_korea1.cpp",
434 "core/fpdfapi/cmaps/cmap_int.h",
435 "core/fpdfapi/cmaps/fpdf_cmaps.cpp",
tsepezddffb572016-05-24 16:20:29 -0700436 "core/fpdfapi/cpdf_modulemgr.cpp",
dsinclair39c62fd2016-09-29 12:49:17 -0700437 "core/fpdfapi/cpdf_modulemgr.h",
weili9f515bc2016-07-24 08:08:24 -0700438 "core/fpdfapi/cpdf_pagerendercontext.cpp",
dsinclair39c62fd2016-09-29 12:49:17 -0700439 "core/fpdfapi/cpdf_pagerendercontext.h",
Dan Sinclaira0b19542017-05-09 12:36:08 -0400440 "core/fpdfapi/edit/cpdf_creator.cpp",
dsinclair24154352016-10-04 11:01:48 -0700441 "core/fpdfapi/edit/cpdf_creator.h",
Dan Sinclaira0b19542017-05-09 12:36:08 -0400442 "core/fpdfapi/edit/cpdf_encryptor.cpp",
443 "core/fpdfapi/edit/cpdf_encryptor.h",
444 "core/fpdfapi/edit/cpdf_flateencoder.cpp",
445 "core/fpdfapi/edit/cpdf_flateencoder.h",
dsinclair24154352016-10-04 11:01:48 -0700446 "core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp",
447 "core/fpdfapi/edit/cpdf_pagecontentgenerator.h",
dsinclairbc5e6d22016-10-04 11:08:49 -0700448 "core/fpdfapi/font/cpdf_cidfont.cpp",
449 "core/fpdfapi/font/cpdf_cidfont.h",
450 "core/fpdfapi/font/cpdf_font.cpp",
451 "core/fpdfapi/font/cpdf_font.h",
452 "core/fpdfapi/font/cpdf_fontencoding.cpp",
453 "core/fpdfapi/font/cpdf_fontencoding.h",
454 "core/fpdfapi/font/cpdf_simplefont.cpp",
455 "core/fpdfapi/font/cpdf_simplefont.h",
456 "core/fpdfapi/font/cpdf_truetypefont.cpp",
457 "core/fpdfapi/font/cpdf_truetypefont.h",
458 "core/fpdfapi/font/cpdf_type1font.cpp",
459 "core/fpdfapi/font/cpdf_type1font.h",
460 "core/fpdfapi/font/cpdf_type3char.cpp",
461 "core/fpdfapi/font/cpdf_type3char.h",
462 "core/fpdfapi/font/cpdf_type3font.cpp",
463 "core/fpdfapi/font/cpdf_type3font.h",
464 "core/fpdfapi/font/font_int.h",
465 "core/fpdfapi/font/fpdf_font.cpp",
466 "core/fpdfapi/font/fpdf_font_cid.cpp",
467 "core/fpdfapi/font/ttgsubtable.cpp",
468 "core/fpdfapi/font/ttgsubtable.h",
dsinclair41872fa2016-10-04 11:29:35 -0700469 "core/fpdfapi/page/cpdf_allstates.cpp",
470 "core/fpdfapi/page/cpdf_allstates.h",
471 "core/fpdfapi/page/cpdf_clippath.cpp",
472 "core/fpdfapi/page/cpdf_clippath.h",
473 "core/fpdfapi/page/cpdf_color.cpp",
474 "core/fpdfapi/page/cpdf_color.h",
475 "core/fpdfapi/page/cpdf_colorspace.cpp",
476 "core/fpdfapi/page/cpdf_colorspace.h",
477 "core/fpdfapi/page/cpdf_colorstate.cpp",
478 "core/fpdfapi/page/cpdf_colorstate.h",
479 "core/fpdfapi/page/cpdf_contentmark.cpp",
480 "core/fpdfapi/page/cpdf_contentmark.h",
481 "core/fpdfapi/page/cpdf_contentmarkitem.cpp",
482 "core/fpdfapi/page/cpdf_contentmarkitem.h",
npm014b0122016-11-07 08:42:11 -0800483 "core/fpdfapi/page/cpdf_contentparser.cpp",
tsepez1aff2652016-11-22 10:45:59 -0800484 "core/fpdfapi/page/cpdf_contentparser.h",
dsinclair41872fa2016-10-04 11:29:35 -0700485 "core/fpdfapi/page/cpdf_countedobject.h",
tsepez9fa95ef2016-10-11 12:29:38 -0700486 "core/fpdfapi/page/cpdf_docpagedata.cpp",
487 "core/fpdfapi/page/cpdf_docpagedata.h",
dsinclair41872fa2016-10-04 11:29:35 -0700488 "core/fpdfapi/page/cpdf_form.cpp",
489 "core/fpdfapi/page/cpdf_form.h",
490 "core/fpdfapi/page/cpdf_formobject.cpp",
491 "core/fpdfapi/page/cpdf_formobject.h",
492 "core/fpdfapi/page/cpdf_generalstate.cpp",
493 "core/fpdfapi/page/cpdf_generalstate.h",
494 "core/fpdfapi/page/cpdf_graphicstates.cpp",
495 "core/fpdfapi/page/cpdf_graphicstates.h",
496 "core/fpdfapi/page/cpdf_image.cpp",
497 "core/fpdfapi/page/cpdf_image.h",
498 "core/fpdfapi/page/cpdf_imageobject.cpp",
499 "core/fpdfapi/page/cpdf_imageobject.h",
500 "core/fpdfapi/page/cpdf_meshstream.cpp",
501 "core/fpdfapi/page/cpdf_meshstream.h",
502 "core/fpdfapi/page/cpdf_page.cpp",
503 "core/fpdfapi/page/cpdf_page.h",
504 "core/fpdfapi/page/cpdf_pagemodule.cpp",
505 "core/fpdfapi/page/cpdf_pagemodule.h",
506 "core/fpdfapi/page/cpdf_pageobject.cpp",
507 "core/fpdfapi/page/cpdf_pageobject.h",
508 "core/fpdfapi/page/cpdf_pageobjectholder.cpp",
509 "core/fpdfapi/page/cpdf_pageobjectholder.h",
510 "core/fpdfapi/page/cpdf_pageobjectlist.cpp",
511 "core/fpdfapi/page/cpdf_pageobjectlist.h",
512 "core/fpdfapi/page/cpdf_path.cpp",
513 "core/fpdfapi/page/cpdf_path.h",
514 "core/fpdfapi/page/cpdf_pathobject.cpp",
515 "core/fpdfapi/page/cpdf_pathobject.h",
516 "core/fpdfapi/page/cpdf_pattern.cpp",
517 "core/fpdfapi/page/cpdf_pattern.h",
518 "core/fpdfapi/page/cpdf_shadingobject.cpp",
519 "core/fpdfapi/page/cpdf_shadingobject.h",
520 "core/fpdfapi/page/cpdf_shadingpattern.cpp",
521 "core/fpdfapi/page/cpdf_shadingpattern.h",
tsepez271d9c02016-10-13 11:29:04 -0700522 "core/fpdfapi/page/cpdf_streamcontentparser.cpp",
523 "core/fpdfapi/page/cpdf_streamcontentparser.h",
npm014b0122016-11-07 08:42:11 -0800524 "core/fpdfapi/page/cpdf_streamparser.cpp",
tsepez1aff2652016-11-22 10:45:59 -0800525 "core/fpdfapi/page/cpdf_streamparser.h",
dsinclair41872fa2016-10-04 11:29:35 -0700526 "core/fpdfapi/page/cpdf_textobject.cpp",
527 "core/fpdfapi/page/cpdf_textobject.h",
528 "core/fpdfapi/page/cpdf_textstate.cpp",
529 "core/fpdfapi/page/cpdf_textstate.h",
530 "core/fpdfapi/page/cpdf_tilingpattern.cpp",
531 "core/fpdfapi/page/cpdf_tilingpattern.h",
532 "core/fpdfapi/page/fpdf_page_colors.cpp",
dsinclair41872fa2016-10-04 11:29:35 -0700533 "core/fpdfapi/page/fpdf_page_func.cpp",
dsinclair41872fa2016-10-04 11:29:35 -0700534 "core/fpdfapi/page/pageint.h",
dsinclair488b7ad2016-10-04 11:55:50 -0700535 "core/fpdfapi/parser/cfdf_document.cpp",
536 "core/fpdfapi/parser/cfdf_document.h",
537 "core/fpdfapi/parser/cpdf_array.cpp",
538 "core/fpdfapi/parser/cpdf_array.h",
539 "core/fpdfapi/parser/cpdf_boolean.cpp",
540 "core/fpdfapi/parser/cpdf_boolean.h",
541 "core/fpdfapi/parser/cpdf_crypto_handler.cpp",
542 "core/fpdfapi/parser/cpdf_crypto_handler.h",
543 "core/fpdfapi/parser/cpdf_data_avail.cpp",
544 "core/fpdfapi/parser/cpdf_data_avail.h",
545 "core/fpdfapi/parser/cpdf_dictionary.cpp",
546 "core/fpdfapi/parser/cpdf_dictionary.h",
547 "core/fpdfapi/parser/cpdf_document.cpp",
548 "core/fpdfapi/parser/cpdf_document.h",
549 "core/fpdfapi/parser/cpdf_hint_tables.cpp",
550 "core/fpdfapi/parser/cpdf_hint_tables.h",
551 "core/fpdfapi/parser/cpdf_indirect_object_holder.cpp",
552 "core/fpdfapi/parser/cpdf_indirect_object_holder.h",
tsepezc09625c2016-11-07 11:46:09 -0800553 "core/fpdfapi/parser/cpdf_linearized_header.cpp",
554 "core/fpdfapi/parser/cpdf_linearized_header.h",
dsinclair488b7ad2016-10-04 11:55:50 -0700555 "core/fpdfapi/parser/cpdf_name.cpp",
556 "core/fpdfapi/parser/cpdf_name.h",
557 "core/fpdfapi/parser/cpdf_null.cpp",
558 "core/fpdfapi/parser/cpdf_null.h",
559 "core/fpdfapi/parser/cpdf_number.cpp",
560 "core/fpdfapi/parser/cpdf_number.h",
561 "core/fpdfapi/parser/cpdf_object.cpp",
562 "core/fpdfapi/parser/cpdf_object.h",
563 "core/fpdfapi/parser/cpdf_parser.cpp",
564 "core/fpdfapi/parser/cpdf_parser.h",
565 "core/fpdfapi/parser/cpdf_reference.cpp",
566 "core/fpdfapi/parser/cpdf_reference.h",
567 "core/fpdfapi/parser/cpdf_security_handler.cpp",
568 "core/fpdfapi/parser/cpdf_security_handler.h",
569 "core/fpdfapi/parser/cpdf_simple_parser.cpp",
570 "core/fpdfapi/parser/cpdf_simple_parser.h",
571 "core/fpdfapi/parser/cpdf_stream.cpp",
572 "core/fpdfapi/parser/cpdf_stream.h",
573 "core/fpdfapi/parser/cpdf_stream_acc.cpp",
574 "core/fpdfapi/parser/cpdf_stream_acc.h",
575 "core/fpdfapi/parser/cpdf_string.cpp",
576 "core/fpdfapi/parser/cpdf_string.h",
577 "core/fpdfapi/parser/cpdf_syntax_parser.cpp",
578 "core/fpdfapi/parser/cpdf_syntax_parser.h",
579 "core/fpdfapi/parser/fpdf_parser_decode.cpp",
580 "core/fpdfapi/parser/fpdf_parser_decode.h",
581 "core/fpdfapi/parser/fpdf_parser_utility.cpp",
582 "core/fpdfapi/parser/fpdf_parser_utility.h",
npm483f3c42016-11-17 13:50:44 -0800583 "core/fpdfapi/render/cpdf_charposlist.cpp",
584 "core/fpdfapi/render/cpdf_charposlist.h",
Nicolas Pena8a463c52016-11-30 14:56:27 -0500585 "core/fpdfapi/render/cpdf_devicebuffer.cpp",
586 "core/fpdfapi/render/cpdf_devicebuffer.h",
Nicolas Pena0ef7ba02017-01-04 16:18:57 -0500587 "core/fpdfapi/render/cpdf_dibsource.cpp",
588 "core/fpdfapi/render/cpdf_dibsource.h",
npm4bed2af2016-12-02 14:01:36 -0800589 "core/fpdfapi/render/cpdf_dibtransferfunc.cpp",
590 "core/fpdfapi/render/cpdf_dibtransferfunc.h",
npm935c6312016-11-17 10:47:43 -0800591 "core/fpdfapi/render/cpdf_docrenderdata.cpp",
592 "core/fpdfapi/render/cpdf_docrenderdata.h",
npmd7ecb5f2016-12-01 15:37:42 -0800593 "core/fpdfapi/render/cpdf_imagecacheentry.cpp",
594 "core/fpdfapi/render/cpdf_imagecacheentry.h",
npmca5300a2016-11-21 07:28:42 -0800595 "core/fpdfapi/render/cpdf_imageloader.cpp",
596 "core/fpdfapi/render/cpdf_imageloader.h",
npm43f382c2016-11-23 07:35:23 -0800597 "core/fpdfapi/render/cpdf_imagerenderer.cpp",
598 "core/fpdfapi/render/cpdf_imagerenderer.h",
npmd7ecb5f2016-12-01 15:37:42 -0800599 "core/fpdfapi/render/cpdf_pagerendercache.cpp",
dsinclair69d9c682016-10-04 12:18:35 -0700600 "core/fpdfapi/render/cpdf_pagerendercache.h",
Nicolas Pena8a463c52016-11-30 14:56:27 -0500601 "core/fpdfapi/render/cpdf_progressiverenderer.cpp",
dsinclair69d9c682016-10-04 12:18:35 -0700602 "core/fpdfapi/render/cpdf_progressiverenderer.h",
Nicolas Pena8a463c52016-11-30 14:56:27 -0500603 "core/fpdfapi/render/cpdf_rendercontext.cpp",
dsinclair69d9c682016-10-04 12:18:35 -0700604 "core/fpdfapi/render/cpdf_rendercontext.h",
Nicolas Pena8a463c52016-11-30 14:56:27 -0500605 "core/fpdfapi/render/cpdf_renderoptions.cpp",
dsinclair69d9c682016-10-04 12:18:35 -0700606 "core/fpdfapi/render/cpdf_renderoptions.h",
npm483f3c42016-11-17 13:50:44 -0800607 "core/fpdfapi/render/cpdf_renderstatus.cpp",
608 "core/fpdfapi/render/cpdf_renderstatus.h",
Nicolas Pena8a463c52016-11-30 14:56:27 -0500609 "core/fpdfapi/render/cpdf_scaledrenderbuffer.cpp",
610 "core/fpdfapi/render/cpdf_scaledrenderbuffer.h",
npm4bed2af2016-12-02 14:01:36 -0800611 "core/fpdfapi/render/cpdf_textrenderer.cpp",
dsinclair69d9c682016-10-04 12:18:35 -0700612 "core/fpdfapi/render/cpdf_textrenderer.h",
npmca5300a2016-11-21 07:28:42 -0800613 "core/fpdfapi/render/cpdf_transferfunc.cpp",
614 "core/fpdfapi/render/cpdf_transferfunc.h",
dsinclair69d9c682016-10-04 12:18:35 -0700615 "core/fpdfapi/render/cpdf_type3cache.cpp",
616 "core/fpdfapi/render/cpdf_type3cache.h",
617 "core/fpdfapi/render/cpdf_type3glyphs.cpp",
618 "core/fpdfapi/render/cpdf_type3glyphs.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700619 ]
weili0abe6522016-06-06 14:41:22 -0700620 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -0700621 deps = [
622 ":fxcrt",
623 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700624}
625
626static_library("fpdftext") {
627 sources = [
npm2d396ac2016-08-26 10:00:25 -0700628 "core/fpdftext/cpdf_linkextract.cpp",
dsinclaire0307862016-09-29 13:25:38 -0700629 "core/fpdftext/cpdf_linkextract.h",
npm2d396ac2016-08-26 10:00:25 -0700630 "core/fpdftext/cpdf_textpage.cpp",
dsinclaire0307862016-09-29 13:25:38 -0700631 "core/fpdftext/cpdf_textpage.h",
npm2d396ac2016-08-26 10:00:25 -0700632 "core/fpdftext/cpdf_textpagefind.cpp",
dsinclaire0307862016-09-29 13:25:38 -0700633 "core/fpdftext/cpdf_textpagefind.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400634 "core/fpdftext/unicodenormalizationdata.cpp",
635 "core/fpdftext/unicodenormalizationdata.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700636 ]
weili0abe6522016-06-06 14:41:22 -0700637 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -0700638 deps = [
639 ":fxcrt",
640 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700641}
642
643static_library("fxcodec") {
644 sources = [
dsinclair8a4e2862016-09-29 13:43:30 -0700645 "core/fxcodec/JBig2_DocumentContext.h",
dsinclaird55e11e2016-04-12 11:21:22 -0700646 "core/fxcodec/codec/ccodec_basicmodule.h",
647 "core/fxcodec/codec/ccodec_faxmodule.h",
648 "core/fxcodec/codec/ccodec_flatemodule.h",
649 "core/fxcodec/codec/ccodec_iccmodule.h",
650 "core/fxcodec/codec/ccodec_jbig2module.h",
651 "core/fxcodec/codec/ccodec_jpegmodule.h",
652 "core/fxcodec/codec/ccodec_jpxmodule.h",
653 "core/fxcodec/codec/ccodec_scanlinedecoder.h",
Dan Sinclair0bb13332017-03-30 16:12:02 -0400654 "core/fxcodec/codec/cjpx_decoder.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400655 "core/fxcodec/codec/codec_int.h",
656 "core/fxcodec/codec/fx_codec.cpp",
657 "core/fxcodec/codec/fx_codec_fax.cpp",
658 "core/fxcodec/codec/fx_codec_flate.cpp",
659 "core/fxcodec/codec/fx_codec_icc.cpp",
660 "core/fxcodec/codec/fx_codec_jbig.cpp",
661 "core/fxcodec/codec/fx_codec_jpeg.cpp",
662 "core/fxcodec/codec/fx_codec_jpx_opj.cpp",
dsinclair8a4e2862016-09-29 13:43:30 -0700663 "core/fxcodec/fx_codec.h",
664 "core/fxcodec/fx_codec_def.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400665 "core/fxcodec/jbig2/JBig2_ArithDecoder.cpp",
666 "core/fxcodec/jbig2/JBig2_ArithDecoder.h",
667 "core/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp",
668 "core/fxcodec/jbig2/JBig2_ArithIntDecoder.h",
669 "core/fxcodec/jbig2/JBig2_BitStream.cpp",
670 "core/fxcodec/jbig2/JBig2_BitStream.h",
671 "core/fxcodec/jbig2/JBig2_Context.cpp",
672 "core/fxcodec/jbig2/JBig2_Context.h",
673 "core/fxcodec/jbig2/JBig2_Define.h",
674 "core/fxcodec/jbig2/JBig2_GrdProc.cpp",
675 "core/fxcodec/jbig2/JBig2_GrdProc.h",
676 "core/fxcodec/jbig2/JBig2_GrrdProc.cpp",
677 "core/fxcodec/jbig2/JBig2_GrrdProc.h",
678 "core/fxcodec/jbig2/JBig2_GsidProc.cpp",
679 "core/fxcodec/jbig2/JBig2_GsidProc.h",
680 "core/fxcodec/jbig2/JBig2_HtrdProc.cpp",
681 "core/fxcodec/jbig2/JBig2_HtrdProc.h",
682 "core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp",
683 "core/fxcodec/jbig2/JBig2_HuffmanDecoder.h",
684 "core/fxcodec/jbig2/JBig2_HuffmanTable.cpp",
685 "core/fxcodec/jbig2/JBig2_HuffmanTable.h",
Tom Sepez4161c5c2016-03-21 12:26:54 -0700686 "core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -0400687 "core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h",
688 "core/fxcodec/jbig2/JBig2_Image.cpp",
689 "core/fxcodec/jbig2/JBig2_Image.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400690 "core/fxcodec/jbig2/JBig2_Page.h",
691 "core/fxcodec/jbig2/JBig2_PatternDict.cpp",
692 "core/fxcodec/jbig2/JBig2_PatternDict.h",
693 "core/fxcodec/jbig2/JBig2_PddProc.cpp",
694 "core/fxcodec/jbig2/JBig2_PddProc.h",
695 "core/fxcodec/jbig2/JBig2_SddProc.cpp",
696 "core/fxcodec/jbig2/JBig2_SddProc.h",
697 "core/fxcodec/jbig2/JBig2_Segment.cpp",
698 "core/fxcodec/jbig2/JBig2_Segment.h",
699 "core/fxcodec/jbig2/JBig2_SymbolDict.cpp",
700 "core/fxcodec/jbig2/JBig2_SymbolDict.h",
701 "core/fxcodec/jbig2/JBig2_TrdProc.cpp",
702 "core/fxcodec/jbig2/JBig2_TrdProc.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700703 ]
thestig73c48562016-09-06 14:07:17 -0700704 configs += [ ":pdfium_core_config" ]
Lei Zhang8241df72015-11-06 14:38:48 -0800705 include_dirs = []
thestig73c48562016-09-06 14:07:17 -0700706 deps = [
707 ":fxcrt",
708 "third_party:fx_lcms2",
709 "third_party:fx_libopenjpeg",
Miklos Vajna2df760f2017-05-06 01:54:54 +0200710 "third_party:zlib",
thestig73c48562016-09-06 14:07:17 -0700711 "//third_party:jpeg",
712 ]
713
Tom Sepezd2e023b2015-12-08 14:36:16 -0800714 if (pdf_enable_xfa) {
715 sources += [
Tom Sepez73c9f3b2017-02-27 10:12:59 -0800716 "core/fxcodec/codec/ccodec_bmpmodule.cpp",
dsinclaird55e11e2016-04-12 11:21:22 -0700717 "core/fxcodec/codec/ccodec_bmpmodule.h",
Tom Sepez73c9f3b2017-02-27 10:12:59 -0800718 "core/fxcodec/codec/ccodec_gifmodule.cpp",
dsinclaird55e11e2016-04-12 11:21:22 -0700719 "core/fxcodec/codec/ccodec_gifmodule.h",
Tom Sepez73c9f3b2017-02-27 10:12:59 -0800720 "core/fxcodec/codec/ccodec_pngmodule.cpp",
dsinclaird55e11e2016-04-12 11:21:22 -0700721 "core/fxcodec/codec/ccodec_pngmodule.h",
dsinclair8a4e2862016-09-29 13:43:30 -0700722 "core/fxcodec/codec/ccodec_progressivedecoder.h",
Tom Sepez73c9f3b2017-02-27 10:12:59 -0800723 "core/fxcodec/codec/ccodec_tiffmodule.cpp",
dsinclaird55e11e2016-04-12 11:21:22 -0700724 "core/fxcodec/codec/ccodec_tiffmodule.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400725 "core/fxcodec/codec/fx_codec_progress.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -0400726 "core/fxcodec/lbmp/fx_bmp.cpp",
727 "core/fxcodec/lbmp/fx_bmp.h",
Nicolas Pena2199ab82017-05-11 18:44:29 -0400728 "core/fxcodec/lgif/cgifcontext.cpp",
729 "core/fxcodec/lgif/cgifcontext.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400730 "core/fxcodec/lgif/fx_gif.cpp",
731 "core/fxcodec/lgif/fx_gif.h",
Tom Sepezd2e023b2015-12-08 14:36:16 -0800732 ]
733 deps += [
734 "third_party:fx_lpng",
735 "third_party:fx_tiff",
736 ]
737 }
John Abd-El-Malekdef5c7d2014-06-09 16:07:18 -0700738 if (is_posix) {
Dan Sinclair764ec512016-03-14 13:35:12 -0400739 # core/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
John Abd-El-Malekdef5c7d2014-06-09 16:07:18 -0700740 # conversion to check that an address is 16-bit aligned (benign).
741 cflags_c = [ "-Wno-pointer-to-int-cast" ]
742 }
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400743}
744
745config("fxge_warnings") {
746 if (is_clang) {
747 cflags = [
748 # http://code.google.com/p/pdfium/issues/detail?id=188
749 "-Wno-switch",
750 ]
751 }
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700752}
753
754static_library("fxcrt") {
755 sources = [
Tom Sepezfcdb2df2017-03-31 10:32:07 -0700756 "core/fxcrt/cfx_bytestring.cpp",
757 "core/fxcrt/cfx_bytestring.h",
tsepez81b22462016-11-23 14:20:19 -0800758 "core/fxcrt/cfx_maybe_owned.h",
Dan Sinclair283a0432017-04-20 14:11:21 -0400759 "core/fxcrt/cfx_memorystream.cpp",
760 "core/fxcrt/cfx_memorystream.h",
dsinclaira52ab742016-09-29 13:59:29 -0700761 "core/fxcrt/cfx_observable.h",
762 "core/fxcrt/cfx_retain_ptr.h",
tsepez2239cee2016-10-17 11:20:01 -0700763 "core/fxcrt/cfx_shared_copy_on_write.h",
tsepezf7036ba2016-05-13 15:02:43 -0700764 "core/fxcrt/cfx_string_c_template.h",
tsepez6fb598b2016-04-05 12:40:47 -0700765 "core/fxcrt/cfx_string_data_template.h",
dsinclaira52ab742016-09-29 13:59:29 -0700766 "core/fxcrt/cfx_string_pool_template.h",
Tom Sepezcc205132017-05-16 14:01:47 -0700767 "core/fxcrt/cfx_unowned_ptr.h",
dsinclaira52ab742016-09-29 13:59:29 -0700768 "core/fxcrt/cfx_weak_ptr.h",
Tom Sepezfcdb2df2017-03-31 10:32:07 -0700769 "core/fxcrt/cfx_widestring.cpp",
770 "core/fxcrt/cfx_widestring.h",
dsinclaira52ab742016-09-29 13:59:29 -0700771 "core/fxcrt/fx_basic.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400772 "core/fxcrt/fx_basic_buffer.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -0400773 "core/fxcrt/fx_basic_gcc.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -0400774 "core/fxcrt/fx_basic_utf.cpp",
775 "core/fxcrt/fx_basic_util.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -0400776 "core/fxcrt/fx_bidi.cpp",
Dan Sinclaira8a28e02016-03-23 15:41:39 -0400777 "core/fxcrt/fx_bidi.h",
Dan Sinclairf51a02a2017-04-19 12:46:53 -0400778 "core/fxcrt/fx_codepage.h",
Tom Sepez63022882017-04-25 10:29:58 -0700779 "core/fxcrt/fx_coordinates.cpp",
dsinclaira52ab742016-09-29 13:59:29 -0700780 "core/fxcrt/fx_coordinates.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400781 "core/fxcrt/fx_extension.cpp",
Dan Sinclaircfb19442017-04-20 13:13:04 -0400782 "core/fxcrt/fx_extension.h",
Tom Sepeza9deea92017-04-25 10:37:47 -0700783 "core/fxcrt/fx_memory.cpp",
dsinclaira52ab742016-09-29 13:59:29 -0700784 "core/fxcrt/fx_memory.h",
785 "core/fxcrt/fx_safe_types.h",
Dan Sinclaircfb19442017-04-20 13:13:04 -0400786 "core/fxcrt/fx_stream.cpp",
dsinclaira52ab742016-09-29 13:59:29 -0700787 "core/fxcrt/fx_stream.h",
788 "core/fxcrt/fx_string.h",
Tom Sepez9ff306d2017-04-24 15:55:11 -0700789 "core/fxcrt/fx_system.cpp",
dsinclaira52ab742016-09-29 13:59:29 -0700790 "core/fxcrt/fx_system.h",
791 "core/fxcrt/fx_ucd.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400792 "core/fxcrt/fx_ucddata.cpp",
793 "core/fxcrt/fx_unicode.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -0400794 "core/fxcrt/fxcrt_posix.cpp",
795 "core/fxcrt/fxcrt_posix.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400796 "core/fxcrt/fxcrt_windows.cpp",
797 "core/fxcrt/fxcrt_windows.h",
Dan Sinclaircfb19442017-04-20 13:13:04 -0400798 "core/fxcrt/ifxcrt_fileaccess.h",
Dan Sinclair908c8482017-03-30 14:33:28 -0400799 "core/fxcrt/xml/cxml_attritem.cpp",
800 "core/fxcrt/xml/cxml_attritem.h",
801 "core/fxcrt/xml/cxml_attrmap.cpp",
802 "core/fxcrt/xml/cxml_attrmap.h",
Tom Sepez8a6fdad2017-05-09 15:03:33 -0700803 "core/fxcrt/xml/cxml_content.cpp",
Dan Sinclair908c8482017-03-30 14:33:28 -0400804 "core/fxcrt/xml/cxml_content.h",
Dan Sinclaireccf4052017-04-18 12:19:34 -0400805 "core/fxcrt/xml/cxml_databufacc.cpp",
806 "core/fxcrt/xml/cxml_databufacc.h",
Dan Sinclair908c8482017-03-30 14:33:28 -0400807 "core/fxcrt/xml/cxml_element.cpp",
808 "core/fxcrt/xml/cxml_element.h",
Tom Sepez8a6fdad2017-05-09 15:03:33 -0700809 "core/fxcrt/xml/cxml_object.cpp",
810 "core/fxcrt/xml/cxml_object.h",
Dan Sinclair908c8482017-03-30 14:33:28 -0400811 "core/fxcrt/xml/cxml_parser.cpp",
812 "core/fxcrt/xml/cxml_parser.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700813 ]
thestigc65e11e2016-08-30 21:56:33 -0700814 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -0700815 visibility += [ "third_party:*" ]
816 deps = [
817 "third_party:pdfium_base",
818 ]
819 public_deps = [
Dominik Röttsches4b0671a2017-03-30 11:07:43 +0300820 ":freetype_common",
thestig73c48562016-09-06 14:07:17 -0700821 "third_party:pdfium_base",
822 ]
thestigc65e11e2016-08-30 21:56:33 -0700823
Tom Sepezd2e023b2015-12-08 14:36:16 -0800824 if (pdf_enable_xfa) {
825 sources += [
Dan Sinclairac355892017-04-03 16:46:21 -0400826 "core/fxcrt/cfx_blockbuffer.cpp",
827 "core/fxcrt/cfx_blockbuffer.h",
Dan Sinclair893822a2017-03-13 15:32:07 -0400828 "core/fxcrt/cfx_char.cpp",
829 "core/fxcrt/cfx_char.h",
Dan Sinclairddb70162017-03-30 14:01:31 -0400830 "core/fxcrt/cfx_chariter.cpp",
831 "core/fxcrt/cfx_chariter.h",
832 "core/fxcrt/cfx_checksumcontext.cpp",
833 "core/fxcrt/cfx_checksumcontext.h",
Dan Sinclaircfb19442017-04-20 13:13:04 -0400834 "core/fxcrt/cfx_crtfileaccess.cpp",
835 "core/fxcrt/cfx_crtfileaccess.h",
Dan Sinclairb929ab02017-03-29 15:18:16 -0400836 "core/fxcrt/cfx_datetime.cpp",
837 "core/fxcrt/cfx_datetime.h",
838 "core/fxcrt/cfx_decimal.cpp",
839 "core/fxcrt/cfx_decimal.h",
Dan Sinclair3b71d262017-04-19 08:58:54 -0400840 "core/fxcrt/cfx_seekablestreamproxy.cpp",
841 "core/fxcrt/cfx_seekablestreamproxy.h",
Dan Sinclairddb70162017-03-30 14:01:31 -0400842 "core/fxcrt/cfx_wordbreak.cpp",
843 "core/fxcrt/cfx_wordbreak.h",
pcce3bbfa22016-04-19 12:40:07 -0700844 "core/fxcrt/fx_arabic.cpp",
dsinclaira52ab742016-09-29 13:59:29 -0700845 "core/fxcrt/fx_arabic.h",
Dan Sinclairddb70162017-03-30 14:01:31 -0400846 "core/fxcrt/ifx_chariter.h",
Dan Sinclairb929ab02017-03-29 15:18:16 -0400847 "core/fxcrt/ifx_locale.h",
Dan Sinclairddb70162017-03-30 14:01:31 -0400848 "core/fxcrt/xml/cfx_saxcontext.h",
849 "core/fxcrt/xml/cfx_saxreader.cpp",
850 "core/fxcrt/xml/cfx_saxreader.h",
851 "core/fxcrt/xml/cfx_saxreaderhandler.cpp",
852 "core/fxcrt/xml/cfx_saxreaderhandler.h",
Dan Sinclair0d86ecb2017-04-19 09:19:57 -0400853 "core/fxcrt/xml/cfx_xmlattributenode.cpp",
854 "core/fxcrt/xml/cfx_xmlattributenode.h",
855 "core/fxcrt/xml/cfx_xmlchardata.cpp",
856 "core/fxcrt/xml/cfx_xmlchardata.h",
857 "core/fxcrt/xml/cfx_xmldoc.cpp",
858 "core/fxcrt/xml/cfx_xmldoc.h",
859 "core/fxcrt/xml/cfx_xmlelement.cpp",
860 "core/fxcrt/xml/cfx_xmlelement.h",
861 "core/fxcrt/xml/cfx_xmlinstruction.cpp",
862 "core/fxcrt/xml/cfx_xmlinstruction.h",
863 "core/fxcrt/xml/cfx_xmlnode.cpp",
864 "core/fxcrt/xml/cfx_xmlnode.h",
865 "core/fxcrt/xml/cfx_xmlparser.cpp",
866 "core/fxcrt/xml/cfx_xmlparser.h",
867 "core/fxcrt/xml/cfx_xmlsyntaxparser.cpp",
868 "core/fxcrt/xml/cfx_xmlsyntaxparser.h",
869 "core/fxcrt/xml/cfx_xmltext.cpp",
870 "core/fxcrt/xml/cfx_xmltext.h",
Tom Sepezd2e023b2015-12-08 14:36:16 -0800871 ]
872 }
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700873}
874
875static_library("fxge") {
876 sources = [
npmcfcc11e2016-10-25 14:26:39 -0700877 "core/fxge/android/cfpf_skiabufferfont.h",
878 "core/fxge/android/cfpf_skiadevicemodule.cpp",
879 "core/fxge/android/cfpf_skiadevicemodule.h",
880 "core/fxge/android/cfpf_skiafilefont.h",
881 "core/fxge/android/cfpf_skiafont.cpp",
882 "core/fxge/android/cfpf_skiafont.h",
883 "core/fxge/android/cfpf_skiafontdescriptor.h",
npm83828032016-10-21 11:56:53 -0700884 "core/fxge/android/cfpf_skiafontmgr.cpp",
npmcfcc11e2016-10-25 14:26:39 -0700885 "core/fxge/android/cfpf_skiafontmgr.h",
886 "core/fxge/android/cfpf_skiapathfont.h",
887 "core/fxge/android/cfx_androidfontinfo.cpp",
888 "core/fxge/android/cfx_androidfontinfo.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400889 "core/fxge/android/fx_android_imp.cpp",
Dan Sinclaira5085d42017-05-11 16:26:50 -0400890 "core/fxge/cfx_defaultrenderdevice.h",
dsinclair74a34fc2016-09-29 16:41:42 -0700891 "core/fxge/cfx_facecache.h",
892 "core/fxge/cfx_fontcache.h",
893 "core/fxge/cfx_fontmapper.h",
894 "core/fxge/cfx_fontmgr.h",
dsinclair74a34fc2016-09-29 16:41:42 -0700895 "core/fxge/cfx_gemodule.h",
896 "core/fxge/cfx_graphstate.h",
897 "core/fxge/cfx_graphstatedata.h",
898 "core/fxge/cfx_pathdata.h",
899 "core/fxge/cfx_renderdevice.h",
900 "core/fxge/cfx_substfont.h",
901 "core/fxge/cfx_unicodeencoding.h",
Dan Sinclaira5085d42017-05-11 16:26:50 -0400902 "core/fxge/cfx_windowsrenderdevice.h",
Nicolas Pena0c972eb2017-04-03 13:43:52 -0400903 "core/fxge/dib/cfx_bitmapcomposer.cpp",
904 "core/fxge/dib/cfx_bitmapcomposer.h",
905 "core/fxge/dib/cfx_bitmapstorer.cpp",
906 "core/fxge/dib/cfx_bitmapstorer.h",
Nicolas Pena192e4d92017-04-03 12:48:00 -0400907 "core/fxge/dib/cfx_dibextractor.cpp",
908 "core/fxge/dib/cfx_dibextractor.h",
909 "core/fxge/dib/cfx_dibitmap.cpp",
Nicolas Penafc715c32017-03-31 10:22:11 -0400910 "core/fxge/dib/cfx_dibitmap.h",
911 "core/fxge/dib/cfx_dibsource.cpp",
912 "core/fxge/dib/cfx_dibsource.h",
Nicolas Penaac66da22017-03-31 14:38:21 -0400913 "core/fxge/dib/cfx_filtereddib.cpp",
Nicolas Penafc715c32017-03-31 10:22:11 -0400914 "core/fxge/dib/cfx_filtereddib.h",
Nicolas Penabdbb0bd2017-03-31 15:39:44 -0400915 "core/fxge/dib/cfx_imagerenderer.cpp",
916 "core/fxge/dib/cfx_imagerenderer.h",
Nicolas Pena0c972eb2017-04-03 13:43:52 -0400917 "core/fxge/dib/cfx_imagestretcher.cpp",
918 "core/fxge/dib/cfx_imagestretcher.h",
Nicolas Penabdbb0bd2017-03-31 15:39:44 -0400919 "core/fxge/dib/cfx_imagetransformer.cpp",
920 "core/fxge/dib/cfx_imagetransformer.h",
Nicolas Penaac66da22017-03-31 14:38:21 -0400921 "core/fxge/dib/cfx_scanlinecompositor.cpp",
922 "core/fxge/dib/cfx_scanlinecompositor.h",
Nicolas Pena236ce3b2017-04-04 17:47:50 -0400923 "core/fxge/dib/cstretchengine.cpp",
924 "core/fxge/dib/cstretchengine.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400925 "core/fxge/dib/fx_dib_main.cpp",
Nicolas Pena37cc5fb2017-04-04 12:12:49 -0400926 "core/fxge/dib/ifx_scanlinecomposer.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400927 "core/fxge/fontdata/chromefontdata/FoxitDingbats.cpp",
928 "core/fxge/fontdata/chromefontdata/FoxitFixed.cpp",
929 "core/fxge/fontdata/chromefontdata/FoxitFixedBold.cpp",
930 "core/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.cpp",
931 "core/fxge/fontdata/chromefontdata/FoxitFixedItalic.cpp",
932 "core/fxge/fontdata/chromefontdata/FoxitSans.cpp",
933 "core/fxge/fontdata/chromefontdata/FoxitSansBold.cpp",
934 "core/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.cpp",
935 "core/fxge/fontdata/chromefontdata/FoxitSansItalic.cpp",
936 "core/fxge/fontdata/chromefontdata/FoxitSansMM.cpp",
937 "core/fxge/fontdata/chromefontdata/FoxitSerif.cpp",
938 "core/fxge/fontdata/chromefontdata/FoxitSerifBold.cpp",
939 "core/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.cpp",
940 "core/fxge/fontdata/chromefontdata/FoxitSerifItalic.cpp",
941 "core/fxge/fontdata/chromefontdata/FoxitSerifMM.cpp",
942 "core/fxge/fontdata/chromefontdata/FoxitSymbol.cpp",
943 "core/fxge/fontdata/chromefontdata/chromefontdata.h",
944 "core/fxge/freetype/fx_freetype.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -0700945 "core/fxge/fx_dib.h",
946 "core/fxge/fx_font.h",
947 "core/fxge/fx_freetype.h",
npm660de3c2016-08-08 08:18:29 -0700948 "core/fxge/ge/cfx_cliprgn.cpp",
949 "core/fxge/ge/cfx_cliprgn.h",
npm19ecc232016-08-19 16:17:57 -0700950 "core/fxge/ge/cfx_facecache.cpp",
npmf73893a2016-07-27 13:54:25 -0700951 "core/fxge/ge/cfx_folderfontinfo.cpp",
952 "core/fxge/ge/cfx_folderfontinfo.h",
npm155c8802016-09-06 07:31:02 -0700953 "core/fxge/ge/cfx_font.cpp",
npmd6918992016-08-17 13:22:16 -0700954 "core/fxge/ge/cfx_fontcache.cpp",
npmf73893a2016-07-27 13:54:25 -0700955 "core/fxge/ge/cfx_fontmapper.cpp",
956 "core/fxge/ge/cfx_fontmgr.cpp",
npm26b86e62016-08-04 17:22:14 -0700957 "core/fxge/ge/cfx_gemodule.cpp",
tsepez7c9f0a12016-09-06 13:02:55 -0700958 "core/fxge/ge/cfx_graphstate.cpp",
npm9ada2d82016-08-10 07:51:38 -0700959 "core/fxge/ge/cfx_graphstatedata.cpp",
npm660de3c2016-08-08 08:18:29 -0700960 "core/fxge/ge/cfx_pathdata.cpp",
npm9ada2d82016-08-10 07:51:38 -0700961 "core/fxge/ge/cfx_renderdevice.cpp",
npm81ee14d2016-08-29 09:35:12 -0700962 "core/fxge/ge/cfx_substfont.cpp",
npm1a8946b2016-08-18 10:55:29 -0700963 "core/fxge/ge/cfx_unicodeencoding.cpp",
npm81ee14d2016-08-29 09:35:12 -0700964 "core/fxge/ge/cttfontdesc.cpp",
965 "core/fxge/ge/cttfontdesc.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400966 "core/fxge/ge/fx_ge_fontmap.cpp",
967 "core/fxge/ge/fx_ge_linux.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -0400968 "core/fxge/ge/fx_ge_text.cpp",
969 "core/fxge/ge/fx_text_int.h",
weili095d3462016-06-21 11:24:24 -0700970 "core/fxge/ifx_renderdevicedriver.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -0700971 "core/fxge/ifx_renderdevicedriver.h",
972 "core/fxge/ifx_systemfontinfo.h",
npm74847622016-07-29 15:20:25 -0700973 "core/fxge/win32/cfx_windowsdib.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700974 ]
975
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400976 configs += [
Lei Zhang7b16ba52015-10-26 17:06:53 -0700977 ":fxge_warnings",
weili0abe6522016-06-06 14:41:22 -0700978 ":pdfium_core_config",
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400979 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700980
thestig73c48562016-09-06 14:07:17 -0700981 deps = [
982 ":fxcrt",
983 ]
984
Lei Zhang3de50052017-03-29 21:02:13 -0700985 defines = [ "DEFINE_PS_TABLES" ]
986
npm1a8946b2016-08-18 10:55:29 -0700987 if (pdf_enable_xfa) {
988 sources += [
dsinclair74a34fc2016-09-29 16:41:42 -0700989 "core/fxge/cfx_unicodeencodingex.h",
npm1a8946b2016-08-18 10:55:29 -0700990 "core/fxge/ge/cfx_unicodeencodingex.cpp",
npm1a8946b2016-08-18 10:55:29 -0700991 ]
992 }
993
caryclarkaf177fe2016-11-16 10:10:03 -0800994 if (pdf_use_skia || pdf_use_skia_paths) {
Cary Clark59b3a482016-03-17 12:00:39 -0400995 sources += [ "core/fxge/skia/fx_skia_device.cpp" ]
thestig73c48562016-09-06 14:07:17 -0700996 deps += [ "//skia" ]
caryclark749c14c2016-05-19 07:01:03 -0700997 } else {
998 sources += [
999 "core/fxge/agg/fx_agg_driver.cpp",
1000 "core/fxge/agg/fx_agg_driver.h",
1001 ]
thestig73c48562016-09-06 14:07:17 -07001002 deps += [ "third_party:fx_agg" ]
Dan Sinclair72a39ce2017-03-21 16:44:03 -04001003 }
npma97fc7c2016-11-07 08:50:04 -08001004
Dan Sinclair72a39ce2017-03-21 16:44:03 -04001005 if (is_mac) {
1006 sources += [ "core/fxge/apple/fx_apple_platform.cpp" ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001007 }
1008
1009 if (is_win) {
1010 sources += [
rbpotter8d94b662017-01-06 08:10:18 -08001011 "core/fxge/win32/cfx_psrenderer.cpp",
1012 "core/fxge/win32/cfx_psrenderer.h",
1013 "core/fxge/win32/cpsoutput.cpp",
1014 "core/fxge/win32/cpsoutput.h",
Dan Sinclair764ec512016-03-14 13:35:12 -04001015 "core/fxge/win32/dwrite_int.h",
1016 "core/fxge/win32/fx_win32_device.cpp",
1017 "core/fxge/win32/fx_win32_dib.cpp",
1018 "core/fxge/win32/fx_win32_dwrite.cpp",
1019 "core/fxge/win32/fx_win32_gdipext.cpp",
1020 "core/fxge/win32/fx_win32_print.cpp",
1021 "core/fxge/win32/win32_int.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001022 ]
Tom Sepez465ed872015-12-09 14:55:41 -08001023 configs -= [ "//build/config/win:lean_and_mean" ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001024 }
npma97fc7c2016-11-07 08:50:04 -08001025
1026 if (is_mac) {
1027 sources += [
1028 "core/fxge/apple/apple_int.h",
1029 "core/fxge/apple/fx_mac_imp.cpp",
1030 "core/fxge/apple/fx_quartz_device.cpp",
1031 ]
1032 }
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001033}
1034
1035static_library("fxedit") {
1036 sources = [
dsinclair0bb385b2016-09-29 17:03:59 -07001037 "fpdfsdk/fxedit/fx_edit.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001038 "fpdfsdk/fxedit/fxet_ap.cpp",
1039 "fpdfsdk/fxedit/fxet_edit.cpp",
dsinclair0bb385b2016-09-29 17:03:59 -07001040 "fpdfsdk/fxedit/fxet_edit.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001041 "fpdfsdk/fxedit/fxet_list.cpp",
dsinclair0bb385b2016-09-29 17:03:59 -07001042 "fpdfsdk/fxedit/fxet_list.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001043 ]
weili0abe6522016-06-06 14:41:22 -07001044 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -07001045 deps = [
1046 ":fxcrt",
1047 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001048}
1049
1050static_library("pdfwindow") {
1051 sources = [
Dan Sinclairf766ad22016-03-14 13:51:24 -04001052 "fpdfsdk/pdfwindow/PWL_Button.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001053 "fpdfsdk/pdfwindow/PWL_Button.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001054 "fpdfsdk/pdfwindow/PWL_Caret.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001055 "fpdfsdk/pdfwindow/PWL_Caret.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001056 "fpdfsdk/pdfwindow/PWL_ComboBox.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001057 "fpdfsdk/pdfwindow/PWL_ComboBox.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001058 "fpdfsdk/pdfwindow/PWL_Edit.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001059 "fpdfsdk/pdfwindow/PWL_Edit.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001060 "fpdfsdk/pdfwindow/PWL_EditCtrl.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001061 "fpdfsdk/pdfwindow/PWL_EditCtrl.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001062 "fpdfsdk/pdfwindow/PWL_FontMap.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001063 "fpdfsdk/pdfwindow/PWL_FontMap.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001064 "fpdfsdk/pdfwindow/PWL_Icon.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001065 "fpdfsdk/pdfwindow/PWL_Icon.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001066 "fpdfsdk/pdfwindow/PWL_ListBox.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001067 "fpdfsdk/pdfwindow/PWL_ListBox.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001068 "fpdfsdk/pdfwindow/PWL_ScrollBar.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001069 "fpdfsdk/pdfwindow/PWL_ScrollBar.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001070 "fpdfsdk/pdfwindow/PWL_SpecialButton.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001071 "fpdfsdk/pdfwindow/PWL_SpecialButton.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001072 "fpdfsdk/pdfwindow/PWL_Utils.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001073 "fpdfsdk/pdfwindow/PWL_Utils.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001074 "fpdfsdk/pdfwindow/PWL_Wnd.cpp",
dan sinclair89e904b2016-03-23 19:29:15 -04001075 "fpdfsdk/pdfwindow/PWL_Wnd.h",
Dan Sinclairfc54e052017-02-23 09:59:05 -05001076 "fpdfsdk/pdfwindow/cpwl_color.cpp",
Dan Sinclairbc8dcc32017-01-19 13:53:02 -05001077 "fpdfsdk/pdfwindow/cpwl_color.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001078 ]
weili0abe6522016-06-06 14:41:22 -07001079 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -07001080 deps = [
1081 ":fxcrt",
1082 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001083}
1084
1085static_library("javascript") {
1086 sources = [
Tom Sepezd6ae2af2017-02-16 11:49:55 -08001087 "fpdfsdk/javascript/ijs_event_context.h",
dsinclair64376be2016-03-31 20:03:24 -07001088 "fpdfsdk/javascript/ijs_runtime.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001089 ]
thestig73c48562016-09-06 14:07:17 -07001090 configs += [ ":pdfium_core_config" ]
1091 deps = [
1092 ":fxcrt",
1093 ]
1094
Tom Sepez452b4f32015-10-13 09:27:27 -07001095 if (pdf_enable_v8) {
1096 sources += [
tonikitoo618cb1f2016-08-18 20:10:17 -07001097 "fpdfsdk/javascript/Annot.cpp",
1098 "fpdfsdk/javascript/Annot.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001099 "fpdfsdk/javascript/Consts.cpp",
1100 "fpdfsdk/javascript/Consts.h",
1101 "fpdfsdk/javascript/Document.cpp",
1102 "fpdfsdk/javascript/Document.h",
1103 "fpdfsdk/javascript/Field.cpp",
1104 "fpdfsdk/javascript/Field.h",
1105 "fpdfsdk/javascript/Icon.cpp",
1106 "fpdfsdk/javascript/Icon.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001107 "fpdfsdk/javascript/JS_Define.h",
1108 "fpdfsdk/javascript/JS_EventHandler.cpp",
1109 "fpdfsdk/javascript/JS_EventHandler.h",
1110 "fpdfsdk/javascript/JS_GlobalData.cpp",
1111 "fpdfsdk/javascript/JS_GlobalData.h",
weili47228ac2016-07-20 10:35:31 -07001112 "fpdfsdk/javascript/JS_KeyValue.cpp",
1113 "fpdfsdk/javascript/JS_KeyValue.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001114 "fpdfsdk/javascript/JS_Object.cpp",
1115 "fpdfsdk/javascript/JS_Object.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001116 "fpdfsdk/javascript/JS_Value.cpp",
1117 "fpdfsdk/javascript/JS_Value.h",
1118 "fpdfsdk/javascript/PublicMethods.cpp",
1119 "fpdfsdk/javascript/PublicMethods.h",
1120 "fpdfsdk/javascript/app.cpp",
1121 "fpdfsdk/javascript/app.h",
Tom Sepezd6ae2af2017-02-16 11:49:55 -08001122 "fpdfsdk/javascript/cjs_event_context.cpp",
1123 "fpdfsdk/javascript/cjs_event_context.h",
dsinclair64376be2016-03-31 20:03:24 -07001124 "fpdfsdk/javascript/cjs_runtime.cpp",
1125 "fpdfsdk/javascript/cjs_runtime.h",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001126 "fpdfsdk/javascript/color.cpp",
1127 "fpdfsdk/javascript/color.h",
1128 "fpdfsdk/javascript/console.cpp",
1129 "fpdfsdk/javascript/console.h",
1130 "fpdfsdk/javascript/event.cpp",
1131 "fpdfsdk/javascript/event.h",
1132 "fpdfsdk/javascript/global.cpp",
1133 "fpdfsdk/javascript/global.h",
1134 "fpdfsdk/javascript/report.cpp",
1135 "fpdfsdk/javascript/report.h",
1136 "fpdfsdk/javascript/resource.cpp",
1137 "fpdfsdk/javascript/resource.h",
1138 "fpdfsdk/javascript/util.cpp",
1139 "fpdfsdk/javascript/util.h",
Tom Sepez452b4f32015-10-13 09:27:27 -07001140 ]
thestig73c48562016-09-06 14:07:17 -07001141 deps += [ ":fxjs" ]
Jochen Eisinger7ed503d2015-12-10 14:38:06 +01001142 configs += [ "//v8:external_startup_data" ]
Tom Sepez452b4f32015-10-13 09:27:27 -07001143 } else {
Dan Sinclairf766ad22016-03-14 13:51:24 -04001144 sources += [ "fpdfsdk/javascript/JS_Runtime_Stub.cpp" ]
Tom Sepez452b4f32015-10-13 09:27:27 -07001145 }
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001146}
1147
1148static_library("formfiller") {
1149 sources = [
Dan Sinclairedbb3192016-03-21 09:08:24 -04001150 "fpdfsdk/formfiller/cba_fontmap.cpp",
1151 "fpdfsdk/formfiller/cba_fontmap.h",
1152 "fpdfsdk/formfiller/cffl_checkbox.cpp",
1153 "fpdfsdk/formfiller/cffl_checkbox.h",
1154 "fpdfsdk/formfiller/cffl_combobox.cpp",
1155 "fpdfsdk/formfiller/cffl_combobox.h",
1156 "fpdfsdk/formfiller/cffl_formfiller.cpp",
1157 "fpdfsdk/formfiller/cffl_formfiller.h",
dsinclairb94d7c92016-09-21 12:07:00 -07001158 "fpdfsdk/formfiller/cffl_interactiveformfiller.cpp",
1159 "fpdfsdk/formfiller/cffl_interactiveformfiller.h",
Dan Sinclairedbb3192016-03-21 09:08:24 -04001160 "fpdfsdk/formfiller/cffl_listbox.cpp",
1161 "fpdfsdk/formfiller/cffl_listbox.h",
1162 "fpdfsdk/formfiller/cffl_pushbutton.cpp",
1163 "fpdfsdk/formfiller/cffl_pushbutton.h",
1164 "fpdfsdk/formfiller/cffl_radiobutton.cpp",
1165 "fpdfsdk/formfiller/cffl_radiobutton.h",
1166 "fpdfsdk/formfiller/cffl_textfield.cpp",
1167 "fpdfsdk/formfiller/cffl_textfield.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001168 ]
weili0abe6522016-06-06 14:41:22 -07001169 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -07001170 deps = [
1171 ":fxcrt",
1172 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001173}
Tom Sepezc706fc02014-11-14 13:39:20 -08001174
dsinclairb3f24672016-07-12 10:42:14 -07001175if (pdf_enable_v8) {
dsinclair7f9c8602016-07-12 10:41:43 -07001176 static_library("fxjs") {
1177 sources = [
dsinclairb3f24672016-07-12 10:42:14 -07001178 "fxjs/fxjs_v8.cpp",
dsinclair43554682016-09-29 17:29:48 -07001179 "fxjs/fxjs_v8.h",
dsinclair7f9c8602016-07-12 10:41:43 -07001180 ]
thestig73c48562016-09-06 14:07:17 -07001181 configs += [ ":pdfium_core_config" ]
1182 deps = [
1183 ":fxcrt",
1184 "//v8",
1185 "//v8:v8_libplatform",
1186 ]
1187 include_dirs = [
1188 "//v8",
1189 "//v8/include",
1190 ]
1191 public_deps = [
1192 "//v8",
1193 ]
1194
dsinclairb3f24672016-07-12 10:42:14 -07001195 if (pdf_enable_xfa) {
1196 sources += [
1197 "fxjs/cfxjse_arguments.cpp",
dsinclair43554682016-09-29 17:29:48 -07001198 "fxjs/cfxjse_arguments.h",
dsinclairb3f24672016-07-12 10:42:14 -07001199 "fxjs/cfxjse_class.cpp",
dsinclair43554682016-09-29 17:29:48 -07001200 "fxjs/cfxjse_class.h",
dsinclairb3f24672016-07-12 10:42:14 -07001201 "fxjs/cfxjse_context.cpp",
dsinclair43554682016-09-29 17:29:48 -07001202 "fxjs/cfxjse_context.h",
dsinclairb3f24672016-07-12 10:42:14 -07001203 "fxjs/cfxjse_isolatetracker.cpp",
1204 "fxjs/cfxjse_isolatetracker.h",
1205 "fxjs/cfxjse_runtimedata.cpp",
1206 "fxjs/cfxjse_runtimedata.h",
1207 "fxjs/cfxjse_value.cpp",
dsinclair43554682016-09-29 17:29:48 -07001208 "fxjs/cfxjse_value.h",
1209 "fxjs/fxjse.h",
dsinclairb3f24672016-07-12 10:42:14 -07001210 ]
1211 }
dsinclair7f9c8602016-07-12 10:41:43 -07001212 }
dsinclairb3f24672016-07-12 10:42:14 -07001213}
dsinclair7f9c8602016-07-12 10:41:43 -07001214
dsinclairb3f24672016-07-12 10:42:14 -07001215if (pdf_enable_xfa) {
Tom Sepezb36747d2015-12-08 15:49:25 -08001216 static_library("fpdfxfa") {
1217 sources = [
dsinclair521b7502016-11-02 13:02:28 -07001218 "fpdfsdk/fpdfxfa/cpdfxfa_context.cpp",
1219 "fpdfsdk/fpdfxfa/cpdfxfa_context.h",
dsinclaira440bb32016-09-14 07:01:54 -07001220 "fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp",
dsinclairbec76922016-09-29 16:52:30 -07001221 "fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h",
dsinclair4d29e782016-10-04 14:02:47 -07001222 "fpdfsdk/fpdfxfa/cpdfxfa_page.cpp",
1223 "fpdfsdk/fpdfxfa/cpdfxfa_page.h",
1224 "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.cpp",
1225 "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h",
Tom Sepez452b4f32015-10-13 09:27:27 -07001226 ]
1227 deps = [
thestig73c48562016-09-06 14:07:17 -07001228 ":fxcrt",
dsinclair8837c912016-11-01 11:22:37 -07001229 ":fxjs",
Tom Sepezb36747d2015-12-08 15:49:25 -08001230 ":xfa",
1231 ]
weili0abe6522016-06-06 14:41:22 -07001232 configs += [ ":pdfium_core_config" ]
Tom Sepezb36747d2015-12-08 15:49:25 -08001233 }
1234
Dan Sinclaire7786682017-03-29 15:18:41 -04001235 static_library("fxbarcode") {
1236 sources = [
Dan Sinclaire7786682017-03-29 15:18:41 -04001237 "fxbarcode/BC_Library.cpp",
1238 "fxbarcode/BC_Library.h",
1239 "fxbarcode/BC_TwoDimWriter.cpp",
1240 "fxbarcode/BC_TwoDimWriter.h",
1241 "fxbarcode/BC_UtilCodingConvert.cpp",
1242 "fxbarcode/BC_UtilCodingConvert.h",
1243 "fxbarcode/BC_Utils.cpp",
1244 "fxbarcode/BC_Writer.cpp",
1245 "fxbarcode/BC_Writer.h",
1246 "fxbarcode/cbc_codabar.cpp",
1247 "fxbarcode/cbc_codabar.h",
1248 "fxbarcode/cbc_code128.cpp",
1249 "fxbarcode/cbc_code128.h",
1250 "fxbarcode/cbc_code39.cpp",
1251 "fxbarcode/cbc_code39.h",
1252 "fxbarcode/cbc_codebase.cpp",
1253 "fxbarcode/cbc_codebase.h",
1254 "fxbarcode/cbc_datamatrix.cpp",
1255 "fxbarcode/cbc_datamatrix.h",
1256 "fxbarcode/cbc_ean13.cpp",
1257 "fxbarcode/cbc_ean13.h",
1258 "fxbarcode/cbc_ean8.cpp",
1259 "fxbarcode/cbc_ean8.h",
1260 "fxbarcode/cbc_onecode.cpp",
1261 "fxbarcode/cbc_onecode.h",
1262 "fxbarcode/cbc_pdf417i.cpp",
1263 "fxbarcode/cbc_pdf417i.h",
1264 "fxbarcode/cbc_qrcode.cpp",
1265 "fxbarcode/cbc_qrcode.h",
1266 "fxbarcode/cbc_upca.cpp",
1267 "fxbarcode/cbc_upca.h",
1268 "fxbarcode/common/BC_CommonBitArray.cpp",
1269 "fxbarcode/common/BC_CommonBitArray.h",
1270 "fxbarcode/common/BC_CommonBitMatrix.cpp",
1271 "fxbarcode/common/BC_CommonBitMatrix.h",
1272 "fxbarcode/common/BC_CommonByteArray.cpp",
1273 "fxbarcode/common/BC_CommonByteArray.h",
1274 "fxbarcode/common/BC_CommonByteMatrix.cpp",
1275 "fxbarcode/common/BC_CommonByteMatrix.h",
1276 "fxbarcode/common/reedsolomon/BC_ReedSolomon.cpp",
1277 "fxbarcode/common/reedsolomon/BC_ReedSolomon.h",
1278 "fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.cpp",
1279 "fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h",
1280 "fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.cpp",
1281 "fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.h",
1282 "fxbarcode/datamatrix/BC_ASCIIEncoder.cpp",
1283 "fxbarcode/datamatrix/BC_ASCIIEncoder.h",
1284 "fxbarcode/datamatrix/BC_Base256Encoder.cpp",
1285 "fxbarcode/datamatrix/BC_Base256Encoder.h",
1286 "fxbarcode/datamatrix/BC_C40Encoder.cpp",
1287 "fxbarcode/datamatrix/BC_C40Encoder.h",
1288 "fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.cpp",
1289 "fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.h",
1290 "fxbarcode/datamatrix/BC_DataMatrixWriter.cpp",
1291 "fxbarcode/datamatrix/BC_DataMatrixWriter.h",
1292 "fxbarcode/datamatrix/BC_DefaultPlacement.cpp",
1293 "fxbarcode/datamatrix/BC_DefaultPlacement.h",
1294 "fxbarcode/datamatrix/BC_EdifactEncoder.cpp",
1295 "fxbarcode/datamatrix/BC_EdifactEncoder.h",
1296 "fxbarcode/datamatrix/BC_Encoder.cpp",
1297 "fxbarcode/datamatrix/BC_Encoder.h",
1298 "fxbarcode/datamatrix/BC_EncoderContext.cpp",
1299 "fxbarcode/datamatrix/BC_EncoderContext.h",
1300 "fxbarcode/datamatrix/BC_ErrorCorrection.cpp",
1301 "fxbarcode/datamatrix/BC_ErrorCorrection.h",
1302 "fxbarcode/datamatrix/BC_HighLevelEncoder.cpp",
1303 "fxbarcode/datamatrix/BC_HighLevelEncoder.h",
1304 "fxbarcode/datamatrix/BC_SymbolInfo.cpp",
1305 "fxbarcode/datamatrix/BC_SymbolInfo.h",
1306 "fxbarcode/datamatrix/BC_SymbolShapeHint.cpp",
1307 "fxbarcode/datamatrix/BC_SymbolShapeHint.h",
1308 "fxbarcode/datamatrix/BC_TextEncoder.cpp",
1309 "fxbarcode/datamatrix/BC_TextEncoder.h",
1310 "fxbarcode/datamatrix/BC_X12Encoder.cpp",
1311 "fxbarcode/datamatrix/BC_X12Encoder.h",
1312 "fxbarcode/oned/BC_OneDimWriter.cpp",
1313 "fxbarcode/oned/BC_OneDimWriter.h",
1314 "fxbarcode/oned/BC_OnedCodaBarWriter.cpp",
1315 "fxbarcode/oned/BC_OnedCodaBarWriter.h",
1316 "fxbarcode/oned/BC_OnedCode128Writer.cpp",
1317 "fxbarcode/oned/BC_OnedCode128Writer.h",
1318 "fxbarcode/oned/BC_OnedCode39Writer.cpp",
1319 "fxbarcode/oned/BC_OnedCode39Writer.h",
1320 "fxbarcode/oned/BC_OnedEAN13Writer.cpp",
1321 "fxbarcode/oned/BC_OnedEAN13Writer.h",
1322 "fxbarcode/oned/BC_OnedEAN8Writer.cpp",
1323 "fxbarcode/oned/BC_OnedEAN8Writer.h",
1324 "fxbarcode/oned/BC_OnedUPCAWriter.cpp",
1325 "fxbarcode/oned/BC_OnedUPCAWriter.h",
1326 "fxbarcode/pdf417/BC_PDF417.cpp",
1327 "fxbarcode/pdf417/BC_PDF417.h",
1328 "fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp",
1329 "fxbarcode/pdf417/BC_PDF417BarcodeMatrix.h",
1330 "fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp",
1331 "fxbarcode/pdf417/BC_PDF417BarcodeRow.h",
1332 "fxbarcode/pdf417/BC_PDF417Compaction.cpp",
1333 "fxbarcode/pdf417/BC_PDF417Compaction.h",
1334 "fxbarcode/pdf417/BC_PDF417ErrorCorrection.cpp",
1335 "fxbarcode/pdf417/BC_PDF417ErrorCorrection.h",
1336 "fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp",
1337 "fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h",
1338 "fxbarcode/pdf417/BC_PDF417Writer.cpp",
1339 "fxbarcode/pdf417/BC_PDF417Writer.h",
1340 "fxbarcode/qrcode/BC_QRCodeWriter.cpp",
1341 "fxbarcode/qrcode/BC_QRCodeWriter.h",
1342 "fxbarcode/qrcode/BC_QRCoder.cpp",
1343 "fxbarcode/qrcode/BC_QRCoder.h",
1344 "fxbarcode/qrcode/BC_QRCoderBitVector.cpp",
1345 "fxbarcode/qrcode/BC_QRCoderBitVector.h",
1346 "fxbarcode/qrcode/BC_QRCoderBlockPair.cpp",
1347 "fxbarcode/qrcode/BC_QRCoderBlockPair.h",
Dan Sinclaire7786682017-03-29 15:18:41 -04001348 "fxbarcode/qrcode/BC_QRCoderECBlocks.cpp",
1349 "fxbarcode/qrcode/BC_QRCoderECBlocks.h",
Lei Zhang8a24b252017-04-06 14:23:26 -07001350 "fxbarcode/qrcode/BC_QRCoderECBlocksData.cpp",
1351 "fxbarcode/qrcode/BC_QRCoderECBlocksData.h",
Dan Sinclaire7786682017-03-29 15:18:41 -04001352 "fxbarcode/qrcode/BC_QRCoderEncoder.cpp",
1353 "fxbarcode/qrcode/BC_QRCoderEncoder.h",
1354 "fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.cpp",
1355 "fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h",
1356 "fxbarcode/qrcode/BC_QRCoderMaskUtil.cpp",
1357 "fxbarcode/qrcode/BC_QRCoderMaskUtil.h",
1358 "fxbarcode/qrcode/BC_QRCoderMatrixUtil.cpp",
1359 "fxbarcode/qrcode/BC_QRCoderMatrixUtil.h",
1360 "fxbarcode/qrcode/BC_QRCoderMode.cpp",
1361 "fxbarcode/qrcode/BC_QRCoderMode.h",
1362 "fxbarcode/qrcode/BC_QRCoderVersion.cpp",
1363 "fxbarcode/qrcode/BC_QRCoderVersion.h",
1364 "fxbarcode/utils.h",
1365 ]
1366 deps = [
1367 ":fxcrt",
1368 ]
1369 configs += [ ":pdfium_core_config" ]
1370 }
1371
Tom Sepezb36747d2015-12-08 15:49:25 -08001372 static_library("xfa") {
1373 sources = [
Dan Sinclaird9828fd2017-03-30 10:58:49 -04001374 "xfa/fde/cfde_brush.h",
dsinclairacd0d592016-04-21 11:06:27 -07001375 "xfa/fde/cfde_path.cpp",
1376 "xfa/fde/cfde_path.h",
Dan Sinclaird9828fd2017-03-30 10:58:49 -04001377 "xfa/fde/cfde_pen.h",
1378 "xfa/fde/cfde_rendercontext.cpp",
1379 "xfa/fde/cfde_rendercontext.h",
1380 "xfa/fde/cfde_renderdevice.cpp",
Dan Sinclairbccf5732017-03-30 14:10:32 -04001381 "xfa/fde/cfde_textout.cpp",
1382 "xfa/fde/cfde_textout.h",
dsinclair65395182016-05-18 11:09:47 -07001383 "xfa/fde/cfde_txtedtbuf.cpp",
1384 "xfa/fde/cfde_txtedtbuf.h",
dsinclair65395182016-05-18 11:09:47 -07001385 "xfa/fde/cfde_txtedtdorecord_deleterange.cpp",
1386 "xfa/fde/cfde_txtedtdorecord_deleterange.h",
1387 "xfa/fde/cfde_txtedtdorecord_insert.cpp",
1388 "xfa/fde/cfde_txtedtdorecord_insert.h",
1389 "xfa/fde/cfde_txtedtengine.cpp",
1390 "xfa/fde/cfde_txtedtengine.h",
1391 "xfa/fde/cfde_txtedtpage.cpp",
1392 "xfa/fde/cfde_txtedtpage.h",
1393 "xfa/fde/cfde_txtedtparag.cpp",
1394 "xfa/fde/cfde_txtedtparag.h",
1395 "xfa/fde/cfde_txtedttextset.cpp",
1396 "xfa/fde/cfde_txtedttextset.h",
Dan Sinclaird9828fd2017-03-30 10:58:49 -04001397 "xfa/fde/cfde_visualsetiterator.cpp",
1398 "xfa/fde/cfde_visualsetiterator.h",
Dan Sinclair19c209d2017-01-18 12:47:24 -05001399 "xfa/fde/css/cfde_csscolorvalue.cpp",
1400 "xfa/fde/css/cfde_csscolorvalue.h",
Dan Sinclair95bec802017-01-19 10:27:58 -05001401 "xfa/fde/css/cfde_csscomputedstyle.cpp",
1402 "xfa/fde/css/cfde_csscomputedstyle.h",
Dan Sinclair21e954b2017-02-08 10:05:05 -05001403 "xfa/fde/css/cfde_csscustomproperty.cpp",
Dan Sinclair95bec802017-01-19 10:27:58 -05001404 "xfa/fde/css/cfde_csscustomproperty.h",
1405 "xfa/fde/css/cfde_cssdeclaration.cpp",
1406 "xfa/fde/css/cfde_cssdeclaration.h",
Dan Sinclair19c209d2017-01-18 12:47:24 -05001407 "xfa/fde/css/cfde_cssenumvalue.cpp",
1408 "xfa/fde/css/cfde_cssenumvalue.h",
1409 "xfa/fde/css/cfde_cssnumbervalue.cpp",
1410 "xfa/fde/css/cfde_cssnumbervalue.h",
Dan Sinclair95bec802017-01-19 10:27:58 -05001411 "xfa/fde/css/cfde_csspropertyholder.cpp",
1412 "xfa/fde/css/cfde_csspropertyholder.h",
npm69f160d2016-07-20 10:48:27 -07001413 "xfa/fde/css/cfde_cssrulecollection.cpp",
Dan Sinclair95bec802017-01-19 10:27:58 -05001414 "xfa/fde/css/cfde_cssrulecollection.h",
1415 "xfa/fde/css/cfde_cssselector.cpp",
1416 "xfa/fde/css/cfde_cssselector.h",
Dan Sinclair19c209d2017-01-18 12:47:24 -05001417 "xfa/fde/css/cfde_cssstringvalue.cpp",
1418 "xfa/fde/css/cfde_cssstringvalue.h",
Dan Sinclair95bec802017-01-19 10:27:58 -05001419 "xfa/fde/css/cfde_cssstylerule.cpp",
1420 "xfa/fde/css/cfde_cssstylerule.h",
1421 "xfa/fde/css/cfde_cssstyleselector.cpp",
1422 "xfa/fde/css/cfde_cssstyleselector.h",
1423 "xfa/fde/css/cfde_cssstylesheet.cpp",
1424 "xfa/fde/css/cfde_cssstylesheet.h",
1425 "xfa/fde/css/cfde_csssyntaxparser.cpp",
1426 "xfa/fde/css/cfde_csssyntaxparser.h",
Dan Sinclair95bec802017-01-19 10:27:58 -05001427 "xfa/fde/css/cfde_csstextbuf.cpp",
1428 "xfa/fde/css/cfde_csstextbuf.h",
Dan Sinclair6efd0d72017-01-16 16:05:17 -05001429 "xfa/fde/css/cfde_cssvalue.cpp",
1430 "xfa/fde/css/cfde_cssvalue.h",
Dan Sinclair19c209d2017-01-18 12:47:24 -05001431 "xfa/fde/css/cfde_cssvaluelist.cpp",
1432 "xfa/fde/css/cfde_cssvaluelist.h",
1433 "xfa/fde/css/cfde_cssvaluelistparser.cpp",
1434 "xfa/fde/css/cfde_cssvaluelistparser.h",
Dan Sinclair1770c022016-03-14 14:14:16 -04001435 "xfa/fde/css/fde_css.h",
Dan Sinclair1770c022016-03-14 14:14:16 -04001436 "xfa/fde/css/fde_cssdatatable.cpp",
1437 "xfa/fde/css/fde_cssdatatable.h",
dsinclair65395182016-05-18 11:09:47 -07001438 "xfa/fde/ifde_txtedtdorecord.h",
1439 "xfa/fde/ifde_txtedtengine.h",
1440 "xfa/fde/ifde_txtedtpage.h",
Dan Sinclairb929ab02017-03-29 15:18:16 -04001441 "xfa/fgas/crt/cfgas_formatstring.cpp",
1442 "xfa/fgas/crt/cfgas_formatstring.h",
npm8f3eb602016-11-11 17:16:23 -08001443 "xfa/fgas/font/cfgas_fontmgr.cpp",
1444 "xfa/fgas/font/cfgas_fontmgr.h",
npm4b91a2d2016-11-21 15:19:44 -08001445 "xfa/fgas/font/cfgas_gefont.cpp",
1446 "xfa/fgas/font/cfgas_gefont.h",
Dan Sinclair1770c022016-03-14 14:14:16 -04001447 "xfa/fgas/font/fgas_fontutils.cpp",
1448 "xfa/fgas/font/fgas_fontutils.h",
Dan Sinclaire533b932017-03-16 11:47:20 -04001449 "xfa/fgas/layout/cfx_break.cpp",
1450 "xfa/fgas/layout/cfx_break.h",
Dan Sinclair893822a2017-03-13 15:32:07 -04001451 "xfa/fgas/layout/cfx_breakline.cpp",
1452 "xfa/fgas/layout/cfx_breakline.h",
1453 "xfa/fgas/layout/cfx_breakpiece.cpp",
1454 "xfa/fgas/layout/cfx_breakpiece.h",
Dan Sinclair994acdc2017-04-18 13:56:39 -04001455 "xfa/fgas/layout/cfx_linebreak.cpp",
1456 "xfa/fgas/layout/cfx_linebreak.h",
1457 "xfa/fgas/layout/cfx_rtfbreak.cpp",
1458 "xfa/fgas/layout/cfx_rtfbreak.h",
1459 "xfa/fgas/layout/cfx_txtbreak.cpp",
1460 "xfa/fgas/layout/cfx_txtbreak.h",
dsinclair447b1f32016-12-08 10:06:32 -08001461 "xfa/fwl/cfwl_app.cpp",
1462 "xfa/fwl/cfwl_app.h",
1463 "xfa/fwl/cfwl_barcode.cpp",
1464 "xfa/fwl/cfwl_barcode.h",
1465 "xfa/fwl/cfwl_caret.cpp",
1466 "xfa/fwl/cfwl_caret.h",
1467 "xfa/fwl/cfwl_checkbox.cpp",
1468 "xfa/fwl/cfwl_checkbox.h",
1469 "xfa/fwl/cfwl_combobox.cpp",
1470 "xfa/fwl/cfwl_combobox.h",
1471 "xfa/fwl/cfwl_comboboxproxy.cpp",
1472 "xfa/fwl/cfwl_comboboxproxy.h",
1473 "xfa/fwl/cfwl_comboedit.cpp",
1474 "xfa/fwl/cfwl_comboedit.h",
1475 "xfa/fwl/cfwl_combolist.cpp",
1476 "xfa/fwl/cfwl_combolist.h",
1477 "xfa/fwl/cfwl_datetimeedit.cpp",
1478 "xfa/fwl/cfwl_datetimeedit.h",
1479 "xfa/fwl/cfwl_datetimepicker.cpp",
1480 "xfa/fwl/cfwl_datetimepicker.h",
1481 "xfa/fwl/cfwl_edit.cpp",
1482 "xfa/fwl/cfwl_edit.h",
1483 "xfa/fwl/cfwl_event.cpp",
1484 "xfa/fwl/cfwl_event.h",
1485 "xfa/fwl/cfwl_eventcheckword.cpp",
1486 "xfa/fwl/cfwl_eventcheckword.h",
1487 "xfa/fwl/cfwl_eventmouse.cpp",
1488 "xfa/fwl/cfwl_eventmouse.h",
1489 "xfa/fwl/cfwl_eventscroll.cpp",
1490 "xfa/fwl/cfwl_eventscroll.h",
1491 "xfa/fwl/cfwl_eventselectchanged.cpp",
1492 "xfa/fwl/cfwl_eventselectchanged.h",
1493 "xfa/fwl/cfwl_eventtarget.cpp",
1494 "xfa/fwl/cfwl_eventtarget.h",
1495 "xfa/fwl/cfwl_eventtextchanged.cpp",
1496 "xfa/fwl/cfwl_eventtextchanged.h",
1497 "xfa/fwl/cfwl_eventvalidate.cpp",
1498 "xfa/fwl/cfwl_eventvalidate.h",
1499 "xfa/fwl/cfwl_form.cpp",
1500 "xfa/fwl/cfwl_form.h",
1501 "xfa/fwl/cfwl_formproxy.cpp",
1502 "xfa/fwl/cfwl_formproxy.h",
1503 "xfa/fwl/cfwl_listbox.cpp",
1504 "xfa/fwl/cfwl_listbox.h",
1505 "xfa/fwl/cfwl_listitem.cpp",
1506 "xfa/fwl/cfwl_listitem.h",
1507 "xfa/fwl/cfwl_message.cpp",
1508 "xfa/fwl/cfwl_message.h",
1509 "xfa/fwl/cfwl_messagekey.cpp",
1510 "xfa/fwl/cfwl_messagekey.h",
1511 "xfa/fwl/cfwl_messagekillfocus.cpp",
1512 "xfa/fwl/cfwl_messagekillfocus.h",
1513 "xfa/fwl/cfwl_messagemouse.cpp",
1514 "xfa/fwl/cfwl_messagemouse.h",
1515 "xfa/fwl/cfwl_messagemousewheel.cpp",
1516 "xfa/fwl/cfwl_messagemousewheel.h",
1517 "xfa/fwl/cfwl_messagesetfocus.cpp",
1518 "xfa/fwl/cfwl_messagesetfocus.h",
1519 "xfa/fwl/cfwl_monthcalendar.cpp",
1520 "xfa/fwl/cfwl_monthcalendar.h",
1521 "xfa/fwl/cfwl_notedriver.cpp",
1522 "xfa/fwl/cfwl_notedriver.h",
1523 "xfa/fwl/cfwl_noteloop.cpp",
1524 "xfa/fwl/cfwl_noteloop.h",
1525 "xfa/fwl/cfwl_picturebox.cpp",
1526 "xfa/fwl/cfwl_picturebox.h",
1527 "xfa/fwl/cfwl_pushbutton.cpp",
1528 "xfa/fwl/cfwl_pushbutton.h",
1529 "xfa/fwl/cfwl_scrollbar.cpp",
1530 "xfa/fwl/cfwl_scrollbar.h",
1531 "xfa/fwl/cfwl_spinbutton.cpp",
1532 "xfa/fwl/cfwl_spinbutton.h",
dsinclair447b1f32016-12-08 10:06:32 -08001533 "xfa/fwl/cfwl_themebackground.h",
1534 "xfa/fwl/cfwl_themepart.cpp",
1535 "xfa/fwl/cfwl_themepart.h",
1536 "xfa/fwl/cfwl_themetext.h",
1537 "xfa/fwl/cfwl_timer.cpp",
1538 "xfa/fwl/cfwl_timer.h",
1539 "xfa/fwl/cfwl_timerinfo.cpp",
1540 "xfa/fwl/cfwl_timerinfo.h",
1541 "xfa/fwl/cfwl_widget.cpp",
1542 "xfa/fwl/cfwl_widget.h",
1543 "xfa/fwl/cfwl_widgetmgr.cpp",
1544 "xfa/fwl/cfwl_widgetmgr.h",
1545 "xfa/fwl/cfwl_widgetproperties.cpp",
1546 "xfa/fwl/cfwl_widgetproperties.h",
1547 "xfa/fwl/cfx_barcode.cpp",
1548 "xfa/fwl/cfx_barcode.h",
dsinclair447b1f32016-12-08 10:06:32 -08001549 "xfa/fwl/fwl_widgetdef.h",
1550 "xfa/fwl/fwl_widgethit.h",
1551 "xfa/fwl/ifwl_adaptertimermgr.h",
1552 "xfa/fwl/ifwl_themeprovider.h",
1553 "xfa/fwl/ifwl_widgetdelegate.h",
1554 "xfa/fwl/ifwl_widgetmgrdelegate.h",
dsinclair7f432a12016-03-29 12:38:01 -07001555 "xfa/fwl/theme/cfwl_barcodetp.cpp",
1556 "xfa/fwl/theme/cfwl_barcodetp.h",
1557 "xfa/fwl/theme/cfwl_carettp.cpp",
1558 "xfa/fwl/theme/cfwl_carettp.h",
1559 "xfa/fwl/theme/cfwl_checkboxtp.cpp",
1560 "xfa/fwl/theme/cfwl_checkboxtp.h",
1561 "xfa/fwl/theme/cfwl_comboboxtp.cpp",
1562 "xfa/fwl/theme/cfwl_comboboxtp.h",
weilibeecc342016-08-04 11:57:22 -07001563 "xfa/fwl/theme/cfwl_datetimepickertp.cpp",
dsinclair7f432a12016-03-29 12:38:01 -07001564 "xfa/fwl/theme/cfwl_datetimepickertp.h",
1565 "xfa/fwl/theme/cfwl_edittp.cpp",
1566 "xfa/fwl/theme/cfwl_edittp.h",
dsinclair7f432a12016-03-29 12:38:01 -07001567 "xfa/fwl/theme/cfwl_listboxtp.cpp",
1568 "xfa/fwl/theme/cfwl_listboxtp.h",
1569 "xfa/fwl/theme/cfwl_monthcalendartp.cpp",
1570 "xfa/fwl/theme/cfwl_monthcalendartp.h",
1571 "xfa/fwl/theme/cfwl_pictureboxtp.cpp",
1572 "xfa/fwl/theme/cfwl_pictureboxtp.h",
1573 "xfa/fwl/theme/cfwl_pushbuttontp.cpp",
1574 "xfa/fwl/theme/cfwl_pushbuttontp.h",
1575 "xfa/fwl/theme/cfwl_scrollbartp.cpp",
1576 "xfa/fwl/theme/cfwl_scrollbartp.h",
1577 "xfa/fwl/theme/cfwl_utils.h",
1578 "xfa/fwl/theme/cfwl_widgettp.cpp",
1579 "xfa/fwl/theme/cfwl_widgettp.h",
Dan Sinclair1f5d4982017-01-10 16:37:32 -05001580 "xfa/fxfa/app/cxfa_csstagprovider.cpp",
1581 "xfa/fxfa/app/cxfa_csstagprovider.h",
Dan Sinclair1f5d4982017-01-10 16:37:32 -05001582 "xfa/fxfa/app/cxfa_linkuserdata.cpp",
1583 "xfa/fxfa/app/cxfa_linkuserdata.h",
1584 "xfa/fxfa/app/cxfa_loadercontext.cpp",
1585 "xfa/fxfa/app/cxfa_loadercontext.h",
1586 "xfa/fxfa/app/cxfa_pieceline.cpp",
1587 "xfa/fxfa/app/cxfa_pieceline.h",
1588 "xfa/fxfa/app/cxfa_textlayout.cpp",
1589 "xfa/fxfa/app/cxfa_textlayout.h",
1590 "xfa/fxfa/app/cxfa_textparsecontext.cpp",
1591 "xfa/fxfa/app/cxfa_textparsecontext.h",
1592 "xfa/fxfa/app/cxfa_textparser.cpp",
1593 "xfa/fxfa/app/cxfa_textparser.h",
1594 "xfa/fxfa/app/cxfa_texttabstopscontext.cpp",
1595 "xfa/fxfa/app/cxfa_texttabstopscontext.h",
1596 "xfa/fxfa/app/cxfa_textuserdata.cpp",
1597 "xfa/fxfa/app/cxfa_textuserdata.h",
Dan Sinclair1770c022016-03-14 14:14:16 -04001598 "xfa/fxfa/app/xfa_ffbarcode.cpp",
1599 "xfa/fxfa/app/xfa_ffbarcode.h",
1600 "xfa/fxfa/app/xfa_ffcheckbutton.cpp",
1601 "xfa/fxfa/app/xfa_ffcheckbutton.h",
1602 "xfa/fxfa/app/xfa_ffchoicelist.cpp",
1603 "xfa/fxfa/app/xfa_ffchoicelist.h",
Dan Sinclair1770c022016-03-14 14:14:16 -04001604 "xfa/fxfa/app/xfa_ffdraw.cpp",
1605 "xfa/fxfa/app/xfa_ffdraw.h",
1606 "xfa/fxfa/app/xfa_ffexclgroup.cpp",
1607 "xfa/fxfa/app/xfa_ffexclgroup.h",
1608 "xfa/fxfa/app/xfa_fffield.cpp",
1609 "xfa/fxfa/app/xfa_fffield.h",
1610 "xfa/fxfa/app/xfa_ffimage.cpp",
1611 "xfa/fxfa/app/xfa_ffimage.h",
1612 "xfa/fxfa/app/xfa_ffimageedit.cpp",
1613 "xfa/fxfa/app/xfa_ffimageedit.h",
1614 "xfa/fxfa/app/xfa_ffnotify.cpp",
1615 "xfa/fxfa/app/xfa_ffnotify.h",
Dan Sinclair1770c022016-03-14 14:14:16 -04001616 "xfa/fxfa/app/xfa_ffpath.cpp",
1617 "xfa/fxfa/app/xfa_ffpath.h",
1618 "xfa/fxfa/app/xfa_ffpushbutton.cpp",
1619 "xfa/fxfa/app/xfa_ffpushbutton.h",
1620 "xfa/fxfa/app/xfa_ffsignature.cpp",
1621 "xfa/fxfa/app/xfa_ffsignature.h",
1622 "xfa/fxfa/app/xfa_ffsubform.cpp",
1623 "xfa/fxfa/app/xfa_ffsubform.h",
1624 "xfa/fxfa/app/xfa_fftext.cpp",
1625 "xfa/fxfa/app/xfa_fftext.h",
1626 "xfa/fxfa/app/xfa_fftextedit.cpp",
1627 "xfa/fxfa/app/xfa_fftextedit.h",
Dan Sinclair1770c022016-03-14 14:14:16 -04001628 "xfa/fxfa/app/xfa_ffwidgetacc.cpp",
1629 "xfa/fxfa/app/xfa_ffwidgetacc.h",
Dan Sinclair1770c022016-03-14 14:14:16 -04001630 "xfa/fxfa/app/xfa_fwladapter.cpp",
1631 "xfa/fxfa/app/xfa_fwladapter.h",
1632 "xfa/fxfa/app/xfa_fwltheme.cpp",
1633 "xfa/fxfa/app/xfa_fwltheme.h",
Dan Sinclair1f5d4982017-01-10 16:37:32 -05001634 "xfa/fxfa/app/xfa_textpiece.cpp",
1635 "xfa/fxfa/app/xfa_textpiece.h",
Dan Sinclair80c48782017-03-23 12:11:20 -04001636 "xfa/fxfa/cxfa_deffontmgr.cpp",
1637 "xfa/fxfa/cxfa_deffontmgr.h",
1638 "xfa/fxfa/cxfa_eventparam.cpp",
dsinclair5b493092016-09-29 20:20:24 -07001639 "xfa/fxfa/cxfa_eventparam.h",
Dan Sinclair80c48782017-03-23 12:11:20 -04001640 "xfa/fxfa/cxfa_ffapp.cpp",
1641 "xfa/fxfa/cxfa_ffapp.h",
1642 "xfa/fxfa/cxfa_ffdoc.cpp",
1643 "xfa/fxfa/cxfa_ffdoc.h",
1644 "xfa/fxfa/cxfa_ffdochandler.cpp",
1645 "xfa/fxfa/cxfa_ffdochandler.h",
1646 "xfa/fxfa/cxfa_ffdocview.cpp",
1647 "xfa/fxfa/cxfa_ffdocview.h",
1648 "xfa/fxfa/cxfa_ffpageview.cpp",
1649 "xfa/fxfa/cxfa_ffpageview.h",
1650 "xfa/fxfa/cxfa_ffwidget.cpp",
1651 "xfa/fxfa/cxfa_ffwidget.h",
1652 "xfa/fxfa/cxfa_ffwidgethandler.cpp",
1653 "xfa/fxfa/cxfa_ffwidgethandler.h",
Dan Sinclair9d6a2082017-04-12 11:32:32 -04001654 "xfa/fxfa/cxfa_fileread.cpp",
1655 "xfa/fxfa/cxfa_fileread.h",
Dan Sinclair80c48782017-03-23 12:11:20 -04001656 "xfa/fxfa/cxfa_fontmgr.cpp",
1657 "xfa/fxfa/cxfa_fontmgr.h",
1658 "xfa/fxfa/cxfa_pdffontmgr.cpp",
1659 "xfa/fxfa/cxfa_pdffontmgr.h",
1660 "xfa/fxfa/cxfa_rendercontext.cpp",
1661 "xfa/fxfa/cxfa_rendercontext.h",
Dan Sinclair80c48782017-03-23 12:11:20 -04001662 "xfa/fxfa/cxfa_widgetacc.cpp",
1663 "xfa/fxfa/cxfa_widgetacc.h",
1664 "xfa/fxfa/cxfa_widgetacciterator.cpp",
1665 "xfa/fxfa/cxfa_widgetacciterator.h",
Dan Sinclair2e9d47a2017-05-16 15:14:02 -04001666 "xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp",
1667 "xfa/fxfa/fm2js/cxfa_fm2jscontext.h",
Dan Sinclair2e9d47a2017-05-16 15:14:02 -04001668 "xfa/fxfa/fm2js/cxfa_fmexpression.cpp",
1669 "xfa/fxfa/fm2js/cxfa_fmexpression.h",
1670 "xfa/fxfa/fm2js/cxfa_fmlexer.cpp",
1671 "xfa/fxfa/fm2js/cxfa_fmlexer.h",
1672 "xfa/fxfa/fm2js/cxfa_fmparse.cpp",
1673 "xfa/fxfa/fm2js/cxfa_fmparse.h",
Dan Sinclair2e9d47a2017-05-16 15:14:02 -04001674 "xfa/fxfa/fm2js/cxfa_fmsimpleexpression.cpp",
1675 "xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h",
dsinclair5b493092016-09-29 20:20:24 -07001676 "xfa/fxfa/fxfa.h",
1677 "xfa/fxfa/fxfa_basic.h",
dsinclairc1515ef2016-07-20 06:16:06 -07001678 "xfa/fxfa/parser/cscript_datawindow.cpp",
1679 "xfa/fxfa/parser/cscript_datawindow.h",
1680 "xfa/fxfa/parser/cscript_eventpseudomodel.cpp",
1681 "xfa/fxfa/parser/cscript_eventpseudomodel.h",
1682 "xfa/fxfa/parser/cscript_hostpseudomodel.cpp",
1683 "xfa/fxfa/parser/cscript_hostpseudomodel.h",
1684 "xfa/fxfa/parser/cscript_layoutpseudomodel.cpp",
1685 "xfa/fxfa/parser/cscript_layoutpseudomodel.h",
1686 "xfa/fxfa/parser/cscript_logpseudomodel.cpp",
1687 "xfa/fxfa/parser/cscript_logpseudomodel.h",
1688 "xfa/fxfa/parser/cscript_signaturepseudomodel.cpp",
1689 "xfa/fxfa/parser/cscript_signaturepseudomodel.h",
dsinclair44d054c2016-04-06 10:23:46 -07001690 "xfa/fxfa/parser/cxfa_arc.h",
dsinclair5b36f0a2016-07-19 10:56:23 -07001691 "xfa/fxfa/parser/cxfa_arraynodelist.cpp",
Dan Sinclairefcae5d2017-03-29 14:47:46 -04001692 "xfa/fxfa/parser/cxfa_arraynodelist.h",
dsinclair44d054c2016-04-06 10:23:46 -07001693 "xfa/fxfa/parser/cxfa_assist.cpp",
1694 "xfa/fxfa/parser/cxfa_assist.h",
dsinclair5b36f0a2016-07-19 10:56:23 -07001695 "xfa/fxfa/parser/cxfa_attachnodelist.cpp",
Dan Sinclairefcae5d2017-03-29 14:47:46 -04001696 "xfa/fxfa/parser/cxfa_attachnodelist.h",
dsinclair44d054c2016-04-06 10:23:46 -07001697 "xfa/fxfa/parser/cxfa_bind.cpp",
1698 "xfa/fxfa/parser/cxfa_bind.h",
1699 "xfa/fxfa/parser/cxfa_binditems.cpp",
1700 "xfa/fxfa/parser/cxfa_binditems.h",
1701 "xfa/fxfa/parser/cxfa_border.h",
1702 "xfa/fxfa/parser/cxfa_box.cpp",
1703 "xfa/fxfa/parser/cxfa_box.h",
1704 "xfa/fxfa/parser/cxfa_calculate.cpp",
1705 "xfa/fxfa/parser/cxfa_calculate.h",
1706 "xfa/fxfa/parser/cxfa_caption.cpp",
1707 "xfa/fxfa/parser/cxfa_caption.h",
dsinclair0b851ff2016-07-21 12:03:01 -07001708 "xfa/fxfa/parser/cxfa_containerlayoutitem.cpp",
1709 "xfa/fxfa/parser/cxfa_containerlayoutitem.h",
1710 "xfa/fxfa/parser/cxfa_contentlayoutitem.cpp",
1711 "xfa/fxfa/parser/cxfa_contentlayoutitem.h",
dsinclair44d054c2016-04-06 10:23:46 -07001712 "xfa/fxfa/parser/cxfa_corner.h",
1713 "xfa/fxfa/parser/cxfa_data.cpp",
1714 "xfa/fxfa/parser/cxfa_data.h",
dsinclair3a7cc732016-07-21 12:04:34 -07001715 "xfa/fxfa/parser/cxfa_dataexporter.cpp",
1716 "xfa/fxfa/parser/cxfa_dataexporter.h",
1717 "xfa/fxfa/parser/cxfa_dataimporter.cpp",
1718 "xfa/fxfa/parser/cxfa_dataimporter.h",
dsinclair16280242016-07-21 12:03:47 -07001719 "xfa/fxfa/parser/cxfa_document.cpp",
1720 "xfa/fxfa/parser/cxfa_document.h",
dsinclair34f86b02016-07-11 08:42:33 -07001721 "xfa/fxfa/parser/cxfa_document_parser.cpp",
1722 "xfa/fxfa/parser/cxfa_document_parser.h",
dsinclair44d054c2016-04-06 10:23:46 -07001723 "xfa/fxfa/parser/cxfa_edge.h",
1724 "xfa/fxfa/parser/cxfa_event.cpp",
1725 "xfa/fxfa/parser/cxfa_event.h",
1726 "xfa/fxfa/parser/cxfa_exdata.cpp",
1727 "xfa/fxfa/parser/cxfa_exdata.h",
1728 "xfa/fxfa/parser/cxfa_fill.cpp",
1729 "xfa/fxfa/parser/cxfa_fill.h",
1730 "xfa/fxfa/parser/cxfa_font.cpp",
1731 "xfa/fxfa/parser/cxfa_font.h",
1732 "xfa/fxfa/parser/cxfa_image.cpp",
1733 "xfa/fxfa/parser/cxfa_image.h",
Dan Sinclairec1843d2017-03-28 16:04:41 -04001734 "xfa/fxfa/parser/cxfa_itemlayoutprocessor.cpp",
1735 "xfa/fxfa/parser/cxfa_itemlayoutprocessor.h",
1736 "xfa/fxfa/parser/cxfa_layoutcontext.h",
dsinclair0b851ff2016-07-21 12:03:01 -07001737 "xfa/fxfa/parser/cxfa_layoutitem.cpp",
1738 "xfa/fxfa/parser/cxfa_layoutitem.h",
dsinclair8d0cc672016-08-03 12:58:53 -07001739 "xfa/fxfa/parser/cxfa_layoutpagemgr.cpp",
1740 "xfa/fxfa/parser/cxfa_layoutpagemgr.h",
dsinclair0b851ff2016-07-21 12:03:01 -07001741 "xfa/fxfa/parser/cxfa_layoutprocessor.cpp",
1742 "xfa/fxfa/parser/cxfa_layoutprocessor.h",
dsinclair44d054c2016-04-06 10:23:46 -07001743 "xfa/fxfa/parser/cxfa_line.cpp",
1744 "xfa/fxfa/parser/cxfa_line.h",
Dan Sinclairec1843d2017-03-28 16:04:41 -04001745 "xfa/fxfa/parser/cxfa_localemgr.cpp",
1746 "xfa/fxfa/parser/cxfa_localemgr.h",
1747 "xfa/fxfa/parser/cxfa_localevalue.cpp",
1748 "xfa/fxfa/parser/cxfa_localevalue.h",
dsinclair44d054c2016-04-06 10:23:46 -07001749 "xfa/fxfa/parser/cxfa_margin.cpp",
1750 "xfa/fxfa/parser/cxfa_margin.h",
dsinclair9eb0db12016-07-21 12:01:39 -07001751 "xfa/fxfa/parser/cxfa_measurement.cpp",
1752 "xfa/fxfa/parser/cxfa_measurement.h",
dsinclair5b36f0a2016-07-19 10:56:23 -07001753 "xfa/fxfa/parser/cxfa_node.cpp",
Dan Sinclairefcae5d2017-03-29 14:47:46 -04001754 "xfa/fxfa/parser/cxfa_node.h",
dsinclair31f87402016-07-20 06:34:45 -07001755 "xfa/fxfa/parser/cxfa_nodehelper.cpp",
1756 "xfa/fxfa/parser/cxfa_nodehelper.h",
dsinclair5b36f0a2016-07-19 10:56:23 -07001757 "xfa/fxfa/parser/cxfa_nodelist.cpp",
Dan Sinclairefcae5d2017-03-29 14:47:46 -04001758 "xfa/fxfa/parser/cxfa_nodelist.h",
Dan Sinclairec1843d2017-03-28 16:04:41 -04001759 "xfa/fxfa/parser/cxfa_nodelocale.cpp",
1760 "xfa/fxfa/parser/cxfa_nodelocale.h",
dsinclair5b36f0a2016-07-19 10:56:23 -07001761 "xfa/fxfa/parser/cxfa_object.cpp",
Dan Sinclairefcae5d2017-03-29 14:47:46 -04001762 "xfa/fxfa/parser/cxfa_object.h",
dsinclair44d054c2016-04-06 10:23:46 -07001763 "xfa/fxfa/parser/cxfa_occur.cpp",
1764 "xfa/fxfa/parser/cxfa_occur.h",
1765 "xfa/fxfa/parser/cxfa_para.cpp",
1766 "xfa/fxfa/parser/cxfa_para.h",
1767 "xfa/fxfa/parser/cxfa_rectangle.h",
dsinclair31f87402016-07-20 06:34:45 -07001768 "xfa/fxfa/parser/cxfa_resolveprocessor.cpp",
1769 "xfa/fxfa/parser/cxfa_resolveprocessor.h",
dsinclair44d054c2016-04-06 10:23:46 -07001770 "xfa/fxfa/parser/cxfa_script.cpp",
1771 "xfa/fxfa/parser/cxfa_script.h",
dsinclair31f87402016-07-20 06:34:45 -07001772 "xfa/fxfa/parser/cxfa_scriptcontext.cpp",
1773 "xfa/fxfa/parser/cxfa_scriptcontext.h",
dsinclair34f86b02016-07-11 08:42:33 -07001774 "xfa/fxfa/parser/cxfa_simple_parser.cpp",
1775 "xfa/fxfa/parser/cxfa_simple_parser.h",
dsinclair44d054c2016-04-06 10:23:46 -07001776 "xfa/fxfa/parser/cxfa_stroke.cpp",
1777 "xfa/fxfa/parser/cxfa_stroke.h",
1778 "xfa/fxfa/parser/cxfa_submit.cpp",
1779 "xfa/fxfa/parser/cxfa_submit.h",
1780 "xfa/fxfa/parser/cxfa_text.cpp",
1781 "xfa/fxfa/parser/cxfa_text.h",
dsinclair5b36f0a2016-07-19 10:56:23 -07001782 "xfa/fxfa/parser/cxfa_thisproxy.cpp",
Dan Sinclairefcae5d2017-03-29 14:47:46 -04001783 "xfa/fxfa/parser/cxfa_thisproxy.h",
Dan Sinclairec1843d2017-03-28 16:04:41 -04001784 "xfa/fxfa/parser/cxfa_timezoneprovider.cpp",
1785 "xfa/fxfa/parser/cxfa_timezoneprovider.h",
dsinclair44d054c2016-04-06 10:23:46 -07001786 "xfa/fxfa/parser/cxfa_tooltip.cpp",
1787 "xfa/fxfa/parser/cxfa_tooltip.h",
dsinclair6ea5ba02016-08-03 10:20:32 -07001788 "xfa/fxfa/parser/cxfa_traversestrategy_contentareacontainerlayoutitem.h",
1789 "xfa/fxfa/parser/cxfa_traversestrategy_contentlayoutitem.h",
dsinclair0b851ff2016-07-21 12:03:01 -07001790 "xfa/fxfa/parser/cxfa_traversestrategy_layoutitem.h",
Dan Sinclairefcae5d2017-03-29 14:47:46 -04001791 "xfa/fxfa/parser/cxfa_traversestrategy_xfacontainernode.h",
1792 "xfa/fxfa/parser/cxfa_traversestrategy_xfanode.h",
dsinclair44d054c2016-04-06 10:23:46 -07001793 "xfa/fxfa/parser/cxfa_validate.cpp",
1794 "xfa/fxfa/parser/cxfa_validate.h",
1795 "xfa/fxfa/parser/cxfa_value.cpp",
1796 "xfa/fxfa/parser/cxfa_value.h",
dsinclair8f3074b2016-06-02 17:45:25 -07001797 "xfa/fxfa/parser/cxfa_valuearray.cpp",
1798 "xfa/fxfa/parser/cxfa_valuearray.h",
dsinclair44d054c2016-04-06 10:23:46 -07001799 "xfa/fxfa/parser/cxfa_widgetdata.cpp",
1800 "xfa/fxfa/parser/cxfa_widgetdata.h",
Dan Sinclairec1843d2017-03-28 16:04:41 -04001801 "xfa/fxfa/parser/cxfa_xmllocale.cpp",
1802 "xfa/fxfa/parser/cxfa_xmllocale.h",
Dan Sinclair1770c022016-03-14 14:14:16 -04001803 "xfa/fxfa/parser/xfa_basic_data.cpp",
dsinclairf1494f02016-07-07 12:56:17 -07001804 "xfa/fxfa/parser/xfa_basic_data.h",
dsinclair8bdbc882016-07-07 07:55:39 -07001805 "xfa/fxfa/parser/xfa_basic_data_attributes.cpp",
1806 "xfa/fxfa/parser/xfa_basic_data_element_attributes.cpp",
1807 "xfa/fxfa/parser/xfa_basic_data_element_properties.cpp",
1808 "xfa/fxfa/parser/xfa_basic_data_element_script.cpp",
1809 "xfa/fxfa/parser/xfa_basic_data_enum.cpp",
1810 "xfa/fxfa/parser/xfa_basic_data_packets.cpp",
Dan Sinclair1770c022016-03-14 14:14:16 -04001811 "xfa/fxfa/parser/xfa_document_datamerger_imp.cpp",
1812 "xfa/fxfa/parser/xfa_document_datamerger_imp.h",
dsinclair31f87402016-07-20 06:34:45 -07001813 "xfa/fxfa/parser/xfa_resolvenode_rs.h",
dsinclair39fdfc32016-07-21 12:09:45 -07001814 "xfa/fxfa/parser/xfa_utils.cpp",
Dan Sinclair1770c022016-03-14 14:14:16 -04001815 "xfa/fxfa/parser/xfa_utils.h",
Dan Sinclair811b8a42016-03-17 08:59:42 -04001816 "xfa/fxgraphics/cfx_color.cpp",
1817 "xfa/fxgraphics/cfx_color.h",
1818 "xfa/fxgraphics/cfx_graphics.cpp",
dsinclair202ad722016-09-29 17:41:42 -07001819 "xfa/fxgraphics/cfx_graphics.h",
Dan Sinclair811b8a42016-03-17 08:59:42 -04001820 "xfa/fxgraphics/cfx_path.cpp",
1821 "xfa/fxgraphics/cfx_path.h",
Dan Sinclair811b8a42016-03-17 08:59:42 -04001822 "xfa/fxgraphics/cfx_pattern.cpp",
1823 "xfa/fxgraphics/cfx_pattern.h",
1824 "xfa/fxgraphics/cfx_shading.cpp",
1825 "xfa/fxgraphics/cfx_shading.h",
Tom Sepezb36747d2015-12-08 15:49:25 -08001826 ]
dsinclairb3f24672016-07-12 10:42:14 -07001827 include_dirs = [ "." ]
dsinclair8bd9ce02016-06-09 13:24:34 -07001828 deps = [
Dan Sinclaire7786682017-03-29 15:18:41 -04001829 ":fxbarcode",
thestig73c48562016-09-06 14:07:17 -07001830 ":fxcrt",
dsinclair7f9c8602016-07-12 10:41:43 -07001831 ":fxjs",
dsinclair8bd9ce02016-06-09 13:24:34 -07001832 ]
Tom Sepezb36747d2015-12-08 15:49:25 -08001833 configs += [
weili0abe6522016-06-06 14:41:22 -07001834 ":pdfium_core_config",
weilidcc29b12016-05-27 17:58:23 -07001835 ":xfa_warnings",
Tom Sepez452b4f32015-10-13 09:27:27 -07001836 ]
1837 }
Tom Sepezc706fc02014-11-14 13:39:20 -08001838}
Tom Sepez04681f32015-01-09 13:59:19 -08001839
1840test("pdfium_unittests") {
1841 sources = [
tsepezf5cabbf2016-11-21 12:08:22 -08001842 "core/fdrm/crypto/fx_crypt_unittest.cpp",
Nicolas Pena4bd0d992017-02-02 14:32:21 -05001843 "core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp",
dsinclairbc5e6d22016-10-04 11:08:49 -07001844 "core/fpdfapi/font/fpdf_font_cid_unittest.cpp",
1845 "core/fpdfapi/font/fpdf_font_unittest.cpp",
Nicolas Pena67912952017-03-10 15:15:33 -05001846 "core/fpdfapi/page/cpdf_devicecs_unittest.cpp",
npm014b0122016-11-07 08:42:11 -08001847 "core/fpdfapi/page/cpdf_streamcontentparser_unittest.cpp",
1848 "core/fpdfapi/page/cpdf_streamparser_unittest.cpp",
dsinclair488b7ad2016-10-04 11:55:50 -07001849 "core/fpdfapi/parser/cpdf_array_unittest.cpp",
npm3cad5962016-10-21 16:02:15 -07001850 "core/fpdfapi/parser/cpdf_document_unittest.cpp",
dsinclair488b7ad2016-10-04 11:55:50 -07001851 "core/fpdfapi/parser/cpdf_object_unittest.cpp",
1852 "core/fpdfapi/parser/cpdf_parser_unittest.cpp",
1853 "core/fpdfapi/parser/cpdf_simple_parser_unittest.cpp",
1854 "core/fpdfapi/parser/cpdf_syntax_parser_unittest.cpp",
1855 "core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp",
dsinclairc59fa882016-11-08 06:55:40 -08001856 "core/fpdfdoc/cpdf_dest_unittest.cpp",
dsinclair448c4332016-08-02 12:07:35 -07001857 "core/fpdfdoc/cpdf_filespec_unittest.cpp",
thestig695aac52016-08-25 09:13:52 -07001858 "core/fpdfdoc/cpdf_formfield_unittest.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -04001859 "core/fpdftext/fpdf_text_int_unittest.cpp",
rbpotterdb764702017-01-12 10:31:43 -08001860 "core/fxcodec/codec/fx_codec_a85_unittest.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -04001861 "core/fxcodec/codec/fx_codec_jpx_unittest.cpp",
rbpotterdb764702017-01-12 10:31:43 -08001862 "core/fxcodec/codec/fx_codec_rle_unittest.cpp",
Dan Sinclair0eb74762017-03-28 10:19:22 -04001863 "core/fxcodec/jbig2/JBig2_BitStream_unittest.cpp",
tsepeze21501d2016-08-02 13:36:16 -07001864 "core/fxcodec/jbig2/JBig2_Image_unittest.cpp",
Tom Sepezfcdb2df2017-03-31 10:32:07 -07001865 "core/fxcrt/cfx_bytestring_unittest.cpp",
tsepez81b22462016-11-23 14:20:19 -08001866 "core/fxcrt/cfx_maybe_owned_unittest.cpp",
tsepez1c620542016-09-12 09:47:52 -07001867 "core/fxcrt/cfx_observable_unittest.cpp",
tsepez602aebc2016-03-29 15:04:21 -07001868 "core/fxcrt/cfx_retain_ptr_unittest.cpp",
tsepez2239cee2016-10-17 11:20:01 -07001869 "core/fxcrt/cfx_shared_copy_on_write_unittest.cpp",
tsepezd9871432016-09-15 14:01:31 -07001870 "core/fxcrt/cfx_string_pool_template_unittest.cpp",
Tom Sepezcc205132017-05-16 14:01:47 -07001871 "core/fxcrt/cfx_unowned_ptr_unittest.cpp",
tsepez4ba37c62016-09-28 14:49:01 -07001872 "core/fxcrt/cfx_weak_ptr_unittest.cpp",
Tom Sepezfcdb2df2017-03-31 10:32:07 -07001873 "core/fxcrt/cfx_widestring_unittest.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -04001874 "core/fxcrt/fx_basic_gcc_unittest.cpp",
thestig1b99b2d2016-05-20 11:50:06 -07001875 "core/fxcrt/fx_basic_util_unittest.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -04001876 "core/fxcrt/fx_bidi_unittest.cpp",
Dan Sinclair233360e2017-04-25 15:08:04 -04001877 "core/fxcrt/fx_coordinates_unittest.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -04001878 "core/fxcrt/fx_extension_unittest.cpp",
Tom Sepeza9deea92017-04-25 10:37:47 -07001879 "core/fxcrt/fx_memory_unittest.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -04001880 "core/fxcrt/fx_system_unittest.cpp",
Nicolas Pena236ce3b2017-04-04 17:47:50 -04001881 "core/fxge/dib/cstretchengine_unittest.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001882 "fpdfsdk/fpdfdoc_unittest.cpp",
thestigdc359b02016-08-09 15:46:20 -07001883 "fpdfsdk/fpdfeditimg_unittest.cpp",
tsepez02759102016-12-01 08:29:25 -08001884 "fpdfsdk/fpdfview_unittest.cpp",
Tom Sepez64ee2c32017-04-24 15:04:25 -07001885 "testing/unit_test_main.cpp",
Tom Sepez04681f32015-01-09 13:59:19 -08001886 ]
1887 deps = [
Tom Sepezd831dc72015-10-19 16:04:22 -07001888 ":pdfium",
1889 ":test_support",
Tom Sepez16b9d772017-04-17 09:07:48 -07001890 "//testing/gmock",
Dan Sinclairfffc9632016-03-08 08:57:05 -05001891 "//testing/gtest",
Tom Sepez04681f32015-01-09 13:59:19 -08001892 ]
Dan Sinclair30410ce2016-03-16 10:20:24 -04001893 include_dirs = []
Tom Sepezd2e023b2015-12-08 14:36:16 -08001894 if (pdf_enable_xfa) {
1895 sources += [
Tom Sepez16b9d772017-04-17 09:07:48 -07001896 "core/fxcrt/xml/cfx_saxreader_unittest.cpp",
Dan Sinclair0d86ecb2017-04-19 09:19:57 -04001897 "core/fxcrt/xml/cfx_xmlsyntaxparser_unittest.cpp",
Lei Zhang3684a152017-04-24 16:22:54 -07001898 "fxbarcode/oned/BC_OnedCode128Writer_unittest.cpp",
Dan Sinclaire7786682017-03-29 15:18:41 -04001899 "fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp",
dsinclair5e9066c2017-01-09 13:43:07 -08001900 "xfa/fde/cfde_txtedtbuf_unittest.cpp",
Dan Sinclair95bec802017-01-19 10:27:58 -05001901 "xfa/fde/css/cfde_cssdeclaration_unittest.cpp",
Dan Sinclair3285c562017-01-17 16:35:16 -05001902 "xfa/fde/css/cfde_cssstylesheet_unittest.cpp",
Dan Sinclair36c18c82017-02-07 11:47:24 -05001903 "xfa/fde/css/cfde_cssvaluelistparser_unittest.cpp",
Dan Sinclair994acdc2017-04-18 13:56:39 -04001904 "xfa/fgas/layout/cfx_rtfbreak_unittest.cpp",
Tom Sepez5628fd72017-04-27 14:58:53 -07001905 "xfa/fwl/cfx_barcode_unittest.cpp",
Dan Sinclair1f5d4982017-01-10 16:37:32 -05001906 "xfa/fxfa/app/cxfa_textparser_unittest.cpp",
Dan Sinclair67b2a352017-04-24 09:45:54 -04001907 "xfa/fxfa/app/xfa_ffbarcode_unittest.cpp",
Chris Palmer2b797292017-04-06 14:45:39 -07001908 "xfa/fxfa/cxfa_ffapp_unittest.cpp",
Dan Sinclair2e9d47a2017-05-16 15:14:02 -04001909 "xfa/fxfa/fm2js/cxfa_fmlexer_unittest.cpp",
Dan Sinclairc5591562017-05-17 09:39:04 -04001910 "xfa/fxfa/fm2js/cxfa_fmparse_unittest.cpp",
Dan Sinclair2e9d47a2017-05-16 15:14:02 -04001911 "xfa/fxfa/fm2js/cxfa_fmsimpleexpression_unittest.cpp",
dsinclair39fdfc32016-07-21 12:09:45 -07001912 "xfa/fxfa/parser/xfa_utils_unittest.cpp",
Tom Sepezd2e023b2015-12-08 14:36:16 -08001913 ]
1914 }
caryclarkaf177fe2016-11-16 10:10:03 -08001915 if (pdf_use_skia || pdf_use_skia_paths) {
caryclarke89391e2016-06-29 07:10:49 -07001916 sources += [ "core/fxge/skia/fx_skia_device_unittest.cpp" ]
1917 deps += [ "//skia" ]
1918 }
Wei Li614d20a2016-03-15 13:55:12 -07001919 if (pdf_enable_v8) {
Dan Sinclair811b8a42016-03-17 08:59:42 -04001920 sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ]
Wei Li614d20a2016-03-15 13:55:12 -07001921 include_dirs += [
1922 "//v8",
1923 "//v8/include",
1924 ]
1925 }
weili0abe6522016-06-06 14:41:22 -07001926 configs += [ ":pdfium_core_config" ]
jbudorick7f3a15f2016-06-10 06:28:40 -07001927 if (is_android) {
jbudorick7f3a15f2016-06-10 06:28:40 -07001928 use_raw_android_executable = true
1929 }
Tom Sepez04681f32015-01-09 13:59:19 -08001930}
Tom Sepez1b1bb492015-01-22 17:36:32 -08001931
1932test("pdfium_embeddertests") {
1933 sources = [
dsinclair41872fa2016-10-04 11:29:35 -07001934 "core/fpdfapi/page/fpdf_page_func_embeddertest.cpp",
dsinclair488b7ad2016-10-04 11:55:50 -07001935 "core/fpdfapi/parser/cpdf_parser_embeddertest.cpp",
1936 "core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp",
1937 "core/fpdfapi/parser/fpdf_parser_decode_embeddertest.cpp",
dsinclair69d9c682016-10-04 12:18:35 -07001938 "core/fpdfapi/render/fpdf_render_loadimage_embeddertest.cpp",
1939 "core/fpdfapi/render/fpdf_render_pattern_embeddertest.cpp",
weili6faf9f92016-08-02 11:34:08 -07001940 "core/fxcodec/codec/fx_codec_embeddertest.cpp",
ochangb8627c92016-04-11 13:47:41 -07001941 "core/fxge/ge/fx_ge_text_embeddertest.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001942 "fpdfsdk/fpdf_dataavail_embeddertest.cpp",
tsepezd0ecd892016-11-08 17:30:04 -08001943 "fpdfsdk/fpdf_flatten_embeddertest.cpp",
thestig9067fd62016-11-23 14:10:06 -08001944 "fpdfsdk/fpdf_structtree_embeddertest.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001945 "fpdfsdk/fpdfdoc_embeddertest.cpp",
1946 "fpdfsdk/fpdfedit_embeddertest.cpp",
1947 "fpdfsdk/fpdfext_embeddertest.cpp",
1948 "fpdfsdk/fpdfformfill_embeddertest.cpp",
tsepez211d4ed2016-11-11 17:23:48 -08001949 "fpdfsdk/fpdfppo_embeddertest.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001950 "fpdfsdk/fpdfsave_embeddertest.cpp",
1951 "fpdfsdk/fpdftext_embeddertest.cpp",
1952 "fpdfsdk/fpdfview_c_api_test.c",
1953 "fpdfsdk/fpdfview_c_api_test.h",
1954 "fpdfsdk/fpdfview_embeddertest.cpp",
1955 "fpdfsdk/fsdk_baseform_embeddertest.cpp",
Tom Sepez1b1bb492015-01-22 17:36:32 -08001956 "testing/embedder_test.cpp",
1957 "testing/embedder_test.h",
Tom Sepeza310e002015-02-27 13:03:07 -08001958 "testing/embedder_test_mock_delegate.h",
Tom Sepez6efc0ad2015-06-02 17:11:18 -07001959 "testing/embedder_test_timer_handling_delegate.h",
Tom Sepez1b1bb492015-01-22 17:36:32 -08001960 ]
1961 deps = [
Tom Sepez452b4f32015-10-13 09:27:27 -07001962 ":pdfium",
Tom Sepezd831dc72015-10-19 16:04:22 -07001963 ":test_support",
Dan Sinclairfffc9632016-03-08 08:57:05 -05001964 "//testing/gmock",
1965 "//testing/gtest",
Tom Sepez1b1bb492015-01-22 17:36:32 -08001966 ]
dsinclair685bb882016-04-20 07:32:39 -07001967 include_dirs = [ "testing/gmock/include" ]
thestigc65e11e2016-08-30 21:56:33 -07001968 configs += [ ":pdfium_core_config" ]
1969
Tom Sepez452b4f32015-10-13 09:27:27 -07001970 if (pdf_enable_v8) {
Lei Zhang1ac47eb2015-12-21 11:04:44 -08001971 sources += [
Dan Sinclairf766ad22016-03-14 13:51:24 -04001972 "fpdfsdk/javascript/public_methods_embeddertest.cpp",
dsinclairb3f24672016-07-12 10:42:14 -07001973 "fxjs/fxjs_v8_embeddertest.cpp",
Lei Zhang1ac47eb2015-12-21 11:04:44 -08001974 "testing/js_embedder_test.cpp",
1975 "testing/js_embedder_test.h",
1976 ]
dsinclairb3f24672016-07-12 10:42:14 -07001977 deps += [ ":fxjs" ]
Jochen Eisinger7ed503d2015-12-10 14:38:06 +01001978 configs += [ "//v8:external_startup_data" ]
Tom Sepez452b4f32015-10-13 09:27:27 -07001979 }
Dan Sinclair14aacd52017-05-18 14:11:29 -04001980 if (pdf_enable_xfa) {
1981 sources += [
1982 "testing/xfa_js_embedder_test.cpp",
1983 "testing/xfa_js_embedder_test.h",
1984 "xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp",
1985 "xfa/fxfa/parser/cxfa_simple_parser_embeddertest.cpp",
1986 ]
1987 }
jbudorick7f3a15f2016-06-10 06:28:40 -07001988 if (is_android) {
1989 ignore_all_data_deps = true
1990 use_raw_android_executable = true
1991 }
Tom Sepez1b1bb492015-01-22 17:36:32 -08001992}
dsinclair685bb882016-04-20 07:32:39 -07001993
1994if (pdf_is_standalone) {
1995 source_set("samples") {
1996 testonly = true
1997 deps = [
1998 "//samples",
1999 ]
2000 }
thestig62114cf2016-11-08 12:59:30 -08002001 group("fuzzers") {
2002 testonly = true
2003 deps = [
2004 "//testing/libfuzzer",
2005 ]
2006 }
dsinclair685bb882016-04-20 07:32:39 -07002007}
Lei Zhangf02c8bf2017-04-01 01:35:01 -07002008
2009group("pdfium_all") {
2010 testonly = true
2011 deps = [
2012 ":pdfium_embeddertests",
2013 ":pdfium_unittests",
2014 ]
2015 if (pdf_is_standalone) {
2016 deps += [
2017 ":fuzzers",
2018 ":samples",
2019 ]
2020 }
2021}