blob: 5227fcb268ea958150d10d5485eee677b446dd9c [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
Bruce Dawsonaeac9512017-08-12 21:45:12 -07005import("//build/config/freetype/freetype.gni")
Lei Zhang81a1ac42017-12-21 21:49:55 -08006import("//build/config/jumbo.gni")
Tom Sepeza32f7602015-01-15 09:34:34 -08007import("//testing/test.gni")
dsinclair038bf0b2016-04-30 06:00:05 -07008import("pdfium.gni")
John Abd-El-Malekef4dce42015-02-02 16:52:07 -08009
Dominik Röttsches4b0671a2017-03-30 11:07:43 +030010group("freetype_common") {
11 public_deps = []
12 if (pdf_bundle_freetype) {
13 public_deps += [ "third_party:fx_freetype" ]
14 } else {
15 public_deps += [ "//build/config/freetype" ]
16 }
17}
18
weili0abe6522016-06-06 14:41:22 -070019config("pdfium_common_config") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070020 cflags = []
dsinclair6e162b52017-01-24 11:18:16 -080021 ldflags = []
Dominik Röttsches4b0671a2017-03-30 11:07:43 +030022 include_dirs = [ "." ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070023 defines = [
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080024 "OPJ_STATIC",
John Abd-El-Malek385729b2015-02-06 15:51:11 -080025 "PNG_PREFIX",
John Abd-El-Malek385729b2015-02-06 15:51:11 -080026 "PNG_USE_READ_MACROS",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070027 ]
28
Tom Sepez452b4f32015-10-13 09:27:27 -070029 if (pdf_enable_v8) {
30 defines += [ "PDF_ENABLE_V8" ]
31 }
32
Ryan Harrison9ce75b82018-06-06 19:45:14 +000033 if (pdf_enable_click_logging) {
34 defines += [ "PDF_ENABLE_CLICK_LOGGING" ]
35 }
36
Tom Sepeza8a39e22015-10-12 15:47:07 -070037 if (pdf_enable_xfa) {
38 defines += [ "PDF_ENABLE_XFA" ]
Tom Sepez73c9f3b2017-02-27 10:12:59 -080039 if (pdf_enable_xfa_bmp) {
40 defines += [ "PDF_ENABLE_XFA_BMP" ]
41 }
42 if (pdf_enable_xfa_gif) {
43 defines += [ "PDF_ENABLE_XFA_GIF" ]
44 }
45 if (pdf_enable_xfa_png) {
46 defines += [ "PDF_ENABLE_XFA_PNG" ]
47 }
48 if (pdf_enable_xfa_tiff) {
49 defines += [ "PDF_ENABLE_XFA_TIFF" ]
50 }
Tom Sepeza8a39e22015-10-12 15:47:07 -070051 }
thestig3e454bf2016-07-29 16:29:04 -070052
Lei Zhang360edeb2017-12-19 18:06:35 +000053 if (pdf_use_skia) {
54 defines += [ "_SKIA_SUPPORT_" ]
55 }
56
57 if (pdf_use_skia_paths) {
58 defines += [ "_SKIA_SUPPORT_PATHS_" ]
59 }
60
thestig3e454bf2016-07-29 16:29:04 -070061 if (pdf_use_win32_gdi) {
62 defines += [ "PDFIUM_PRINT_TEXT_WITH_GDI" ]
63 }
dsinclair6e162b52017-01-24 11:18:16 -080064
Dan Sinclair77e2a6c2017-03-13 09:35:12 -040065 if (is_win) {
66 # Assume UTF-8 by default to avoid code page dependencies.
67 cflags += [ "/utf-8" ]
68 }
weili0abe6522016-06-06 14:41:22 -070069}
Tom Sepeza8a39e22015-10-12 15:47:07 -070070
weili0abe6522016-06-06 14:41:22 -070071config("pdfium_core_config") {
72 cflags = []
dsinclair8bd9ce02016-06-09 13:24:34 -070073 configs = [ ":pdfium_common_config" ]
74 defines = [ "V8_DEPRECATION_WARNINGS" ]
Ryan Harrison3a3a3692018-08-23 21:12:35 +000075 if (is_clang) {
76 cflags += [ "-Wshadow" ]
77 }
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 += [
Tom Sepez5171a272017-06-01 12:29:09 -070088 "/wd4324",
Tom Sepez3bb57512017-03-28 14:09:43 -070089 "/wd4577",
90 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070091 }
Will Harrisb6dbcb22018-08-29 23:28:23 +000092 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
weilidcc29b12016-05-27 17:58:23 -070093}
Lei Zhang476ac132015-11-05 20:07:27 -080094
Lei Zhang81a1ac42017-12-21 21:49:55 -080095jumbo_static_library("pdfium") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070096 sources = [
dsinclairb9590102016-04-27 06:38:59 -070097 "fpdfsdk/cfx_systemhandler.cpp",
98 "fpdfsdk/cfx_systemhandler.h",
Tom Sepez525147a2018-05-03 17:19:53 +000099 "fpdfsdk/cpdf_annotcontext.cpp",
100 "fpdfsdk/cpdf_annotcontext.h",
Dan Sinclair7d125322018-03-28 18:49:34 +0000101 "fpdfsdk/cpdfsdk_actionhandler.cpp",
102 "fpdfsdk/cpdfsdk_actionhandler.h",
jaepark27362762016-08-11 13:10:39 -0700103 "fpdfsdk/cpdfsdk_annot.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700104 "fpdfsdk/cpdfsdk_annot.h",
jaepark98e10192016-08-15 10:51:11 -0700105 "fpdfsdk/cpdfsdk_annothandlermgr.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700106 "fpdfsdk/cpdfsdk_annothandlermgr.h",
tsepezd805eec2017-01-11 14:03:54 -0800107 "fpdfsdk/cpdfsdk_annotiteration.cpp",
108 "fpdfsdk/cpdfsdk_annotiteration.h",
Dan Sinclaircbf76e62018-03-28 21:00:35 +0000109 "fpdfsdk/cpdfsdk_annotiterator.cpp",
110 "fpdfsdk/cpdfsdk_annotiterator.h",
jaepark27362762016-08-11 13:10:39 -0700111 "fpdfsdk/cpdfsdk_baannot.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700112 "fpdfsdk/cpdfsdk_baannot.h",
jaepark35512aa2016-08-29 17:15:08 -0700113 "fpdfsdk/cpdfsdk_baannothandler.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700114 "fpdfsdk/cpdfsdk_baannothandler.h",
Dan Sinclair00d47a62018-03-28 18:39:04 +0000115 "fpdfsdk/cpdfsdk_common.h",
Dan Sinclair7aba4722018-03-28 17:04:16 +0000116 "fpdfsdk/cpdfsdk_customaccess.cpp",
117 "fpdfsdk/cpdfsdk_customaccess.h",
Dan Sinclair7d125322018-03-28 18:49:34 +0000118 "fpdfsdk/cpdfsdk_fieldaction.cpp",
119 "fpdfsdk/cpdfsdk_fieldaction.h",
120 "fpdfsdk/cpdfsdk_filewriteadapter.cpp",
121 "fpdfsdk/cpdfsdk_filewriteadapter.h",
dsinclair735606d2016-10-05 15:47:02 -0700122 "fpdfsdk/cpdfsdk_formfillenvironment.cpp",
123 "fpdfsdk/cpdfsdk_formfillenvironment.h",
Dan Sinclair00d47a62018-03-28 18:39:04 +0000124 "fpdfsdk/cpdfsdk_helpers.cpp",
125 "fpdfsdk/cpdfsdk_helpers.h",
Lei Zhangc3450652018-10-11 16:54:42 +0000126 "fpdfsdk/cpdfsdk_interactiveform.cpp",
127 "fpdfsdk/cpdfsdk_interactiveform.h",
dsinclairf34518b2016-09-13 12:03:48 -0700128 "fpdfsdk/cpdfsdk_pageview.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700129 "fpdfsdk/cpdfsdk_pageview.h",
jaepark611adb82016-08-17 11:34:36 -0700130 "fpdfsdk/cpdfsdk_widget.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700131 "fpdfsdk/cpdfsdk_widget.h",
jaepark8c541822016-08-30 13:43:05 -0700132 "fpdfsdk/cpdfsdk_widgethandler.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700133 "fpdfsdk/cpdfsdk_widgethandler.h",
Dan Sinclair971a6742018-03-28 19:23:25 +0000134 "fpdfsdk/fpdf_annot.cpp",
135 "fpdfsdk/fpdf_attachment.cpp",
136 "fpdfsdk/fpdf_catalog.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -0400137 "fpdfsdk/fpdf_dataavail.cpp",
Dan Sinclair971a6742018-03-28 19:23:25 +0000138 "fpdfsdk/fpdf_doc.cpp",
139 "fpdfsdk/fpdf_editimg.cpp",
140 "fpdfsdk/fpdf_editpage.cpp",
141 "fpdfsdk/fpdf_editpath.cpp",
142 "fpdfsdk/fpdf_edittext.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -0400143 "fpdfsdk/fpdf_ext.cpp",
144 "fpdfsdk/fpdf_flatten.cpp",
Dan Sinclair971a6742018-03-28 19:23:25 +0000145 "fpdfsdk/fpdf_formfill.cpp",
Lei Zhangf7c84e92018-02-02 00:01:39 +0000146 "fpdfsdk/fpdf_ppo.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -0400147 "fpdfsdk/fpdf_progressive.cpp",
Dan Sinclair971a6742018-03-28 19:23:25 +0000148 "fpdfsdk/fpdf_save.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -0400149 "fpdfsdk/fpdf_searchex.cpp",
thestig9067fd62016-11-23 14:10:06 -0800150 "fpdfsdk/fpdf_structtree.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -0400151 "fpdfsdk/fpdf_sysfontinfo.cpp",
Dan Sinclair971a6742018-03-28 19:23:25 +0000152 "fpdfsdk/fpdf_text.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -0400153 "fpdfsdk/fpdf_transformpage.cpp",
Dan Sinclair971a6742018-03-28 19:23:25 +0000154 "fpdfsdk/fpdf_view.cpp",
Dan Sinclair7aba4722018-03-28 17:04:16 +0000155 "fpdfsdk/ipdfsdk_annothandler.h",
Dan Sinclair7d125322018-03-28 18:49:34 +0000156 "fpdfsdk/ipdfsdk_pauseadapter.cpp",
157 "fpdfsdk/ipdfsdk_pauseadapter.h",
Tom Sepez1d17a042017-03-16 13:22:47 -0700158 "public/cpp/fpdf_deleters.h",
Tom Sepeze08d2b12018-04-25 18:49:32 +0000159 "public/cpp/fpdf_scopers.h",
Jane Liu4fd9a472017-06-01 18:56:09 -0400160 "public/fpdf_annot.h",
Jane Liu53aafa92017-07-12 19:55:02 -0400161 "public/fpdf_attachment.h",
Henrique Nakashima077f6432017-10-16 13:32:01 -0400162 "public/fpdf_catalog.h",
Tom Sepez1ed8a212015-05-11 15:25:39 -0700163 "public/fpdf_dataavail.h",
164 "public/fpdf_doc.h",
165 "public/fpdf_edit.h",
166 "public/fpdf_ext.h",
167 "public/fpdf_flatten.h",
168 "public/fpdf_formfill.h",
169 "public/fpdf_fwlevent.h",
170 "public/fpdf_ppo.h",
171 "public/fpdf_progressive.h",
172 "public/fpdf_save.h",
173 "public/fpdf_searchex.h",
thestig9067fd62016-11-23 14:10:06 -0800174 "public/fpdf_structtree.h",
Tom Sepez1ed8a212015-05-11 15:25:39 -0700175 "public/fpdf_sysfontinfo.h",
176 "public/fpdf_text.h",
177 "public/fpdf_transformpage.h",
178 "public/fpdfview.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700179 ]
180
181 libs = []
weili0abe6522016-06-06 14:41:22 -0700182 configs += [ ":pdfium_core_config" ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700183
184 deps = [
Lei Zhang26170562018-04-17 17:01:52 +0000185 ":constants",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700186 ":fdrm",
187 ":formfiller",
188 ":fpdfapi",
189 ":fpdfdoc",
190 ":fpdftext",
191 ":fxcodec",
192 ":fxcrt",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700193 ":fxge",
Dan Sinclairc411eb92017-07-25 09:39:30 -0400194 ":pwl",
Lei Zhanga7dec322018-10-12 18:36:51 +0000195 "fxjs",
Dan Sinclairfffc9632016-03-08 08:57:05 -0500196 "third_party:pdfium_base",
Dan Sinclair844d79e2018-02-16 03:46:26 +0000197 "third_party:skia_shared",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700198 ]
199
thestig73c48562016-09-06 14:07:17 -0700200 public_deps = [
201 ":fxcrt",
202 ]
Tom Sepeza8a39e22015-10-12 15:47:07 -0700203 if (pdf_enable_xfa) {
jaepark611adb82016-08-17 11:34:36 -0700204 sources += [
205 "fpdfsdk/cpdfsdk_xfawidget.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700206 "fpdfsdk/cpdfsdk_xfawidget.h",
jaepark8c541822016-08-30 13:43:05 -0700207 "fpdfsdk/cpdfsdk_xfawidgethandler.cpp",
dsinclair114e46a2016-09-29 17:18:21 -0700208 "fpdfsdk/cpdfsdk_xfawidgethandler.h",
jaepark611adb82016-08-17 11:34:36 -0700209 ]
210
Tom Sepezb5451592016-02-22 16:48:02 -0800211 deps += [ ":fpdfxfa" ]
Tom Sepeza8a39e22015-10-12 15:47:07 -0700212 }
213
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700214 if (is_win) {
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400215 libs += [
216 "advapi32.lib",
217 "gdi32.lib",
218 "user32.lib",
219 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700220 }
221
222 if (is_mac) {
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400223 libs += [
224 "AppKit.framework",
225 "CoreFoundation.framework",
226 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700227 }
John Abd-El-Malekef4dce42015-02-02 16:52:07 -0800228
dan sinclairfa171d22017-03-26 22:38:17 -0400229 if (pdf_is_complete_lib) {
230 complete_static_lib = true
Tom Andersonda89ac42018-03-21 03:56:15 +0000231 configs -= [ "//build/config/compiler:thin_archive" ]
dan sinclairfa171d22017-03-26 22:38:17 -0400232 }
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700233}
234
Lei Zhang1e5ebaa2018-10-11 16:59:02 +0000235jumbo_source_set("test_support") {
Tom Sepezd831dc72015-10-19 16:04:22 -0700236 testonly = true
237 sources = [
Henrique Nakashimab9776c72017-06-23 15:03:50 -0400238 "testing/fx_string_testhelpers.cpp",
239 "testing/fx_string_testhelpers.h",
Dan Sinclair048afc62018-05-01 17:01:54 +0000240 "testing/string_write_stream.cpp",
241 "testing/string_write_stream.h",
Tom Sepezd831dc72015-10-19 16:04:22 -0700242 "testing/test_support.cpp",
243 "testing/test_support.h",
Henrique Nakashimaf956bad2018-08-16 16:41:42 +0000244 "testing/utils/bitmap_saver.cpp",
245 "testing/utils/bitmap_saver.h",
Oliver Changd46f1c82015-11-12 22:03:10 -0800246 "testing/utils/path_service.cpp",
thestigbcd3e532016-11-21 13:37:28 -0800247 "testing/utils/path_service.h",
Tom Sepezd831dc72015-10-19 16:04:22 -0700248 ]
jbudorickf6ee8202016-12-05 06:50:50 -0800249 data = [
250 "testing/resources/",
251 ]
Tom Sepezd831dc72015-10-19 16:04:22 -0700252 deps = [
Henrique Nakashimaf956bad2018-08-16 16:41:42 +0000253 ":image_diff",
Dan Sinclairfffc9632016-03-08 08:57:05 -0500254 ":pdfium",
Tom Sepezd831dc72015-10-19 16:04:22 -0700255 "//testing/gmock",
256 "//testing/gtest",
Tom Sepezd831dc72015-10-19 16:04:22 -0700257 ]
Lei Zhang8241df72015-11-06 14:38:48 -0800258 include_dirs = []
Tom Sepezd831dc72015-10-19 16:04:22 -0700259 if (pdf_enable_v8) {
260 deps += [
261 "//v8",
262 "//v8:v8_libplatform",
263 ]
Jochen Eisinger7ed503d2015-12-10 14:38:06 +0100264 configs += [ "//v8:external_startup_data" ]
Tom Sepezd831dc72015-10-19 16:04:22 -0700265 }
weili0abe6522016-06-06 14:41:22 -0700266 configs += [ ":pdfium_core_config" ]
Tom Sepezd831dc72015-10-19 16:04:22 -0700267}
268
Lei Zhang1e5ebaa2018-10-11 16:59:02 +0000269jumbo_source_set("image_diff") {
Lei Zhang143959d2017-06-22 12:20:58 -0700270 testonly = true
271 sources = [
272 "testing/image_diff/image_diff_png.cpp",
273 "testing/image_diff/image_diff_png.h",
274 ]
Lei Zhangba57b6c2017-06-26 11:50:54 -0700275 configs += [ ":pdfium_core_config" ]
Ryan Harrison607f3cd2018-05-09 21:06:22 +0000276 deps = [
277 "third_party:png",
278 ]
Lei Zhang143959d2017-06-22 12:20:58 -0700279}
280
Tom Sepezd831dc72015-10-19 16:04:22 -0700281# Targets below this are only visible within this file (and to the
282# top-level gn_visibility target used to help gn_all build everything).
283visibility = [
284 ":*",
285 "//:gn_visibility",
286]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700287
Lei Zhang0a624272018-10-11 16:58:32 +0000288jumbo_source_set("constants") {
Lei Zhang26170562018-04-17 17:01:52 +0000289 sources = [
Lei Zhang28df4062018-10-05 21:18:16 +0000290 "constants/form_flags.h",
Lei Zhangfc615c62018-06-08 20:40:15 +0000291 "constants/page_object.h",
Lei Zhang26170562018-04-17 17:01:52 +0000292 "constants/stream_dict_common.h",
Lei Zhangfdd0ef62018-05-08 19:06:38 +0000293 "constants/transparency.h",
Lei Zhang26170562018-04-17 17:01:52 +0000294 ]
295}
296
Lei Zhang1e5ebaa2018-10-11 16:59:02 +0000297jumbo_source_set("fdrm") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700298 sources = [
Dan Sinclair764ec512016-03-14 13:35:12 -0400299 "core/fdrm/crypto/fx_crypt.cpp",
dsinclairb1469a22016-09-29 10:00:05 -0700300 "core/fdrm/crypto/fx_crypt.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400301 "core/fdrm/crypto/fx_crypt_aes.cpp",
302 "core/fdrm/crypto/fx_crypt_sha.cpp",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700303 ]
weili0abe6522016-06-06 14:41:22 -0700304 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -0700305 deps = [
306 ":fxcrt",
307 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700308}
309
Lei Zhang1e5ebaa2018-10-11 16:59:02 +0000310jumbo_source_set("fpdfdoc") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700311 sources = [
dsinclair448c4332016-08-02 12:07:35 -0700312 "core/fpdfdoc/cline.cpp",
313 "core/fpdfdoc/cline.h",
dsinclair02e6f592016-08-02 11:25:48 -0700314 "core/fpdfdoc/cpdf_aaction.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700315 "core/fpdfdoc/cpdf_aaction.h",
dsinclair02e6f592016-08-02 11:25:48 -0700316 "core/fpdfdoc/cpdf_action.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700317 "core/fpdfdoc/cpdf_action.h",
dsinclair02e6f592016-08-02 11:25:48 -0700318 "core/fpdfdoc/cpdf_actionfields.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700319 "core/fpdfdoc/cpdf_actionfields.h",
jaepark3b6c7e92016-07-20 14:18:04 -0700320 "core/fpdfdoc/cpdf_annot.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700321 "core/fpdfdoc/cpdf_annot.h",
jaepark3b6c7e92016-07-20 14:18:04 -0700322 "core/fpdfdoc/cpdf_annotlist.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700323 "core/fpdfdoc/cpdf_annotlist.h",
dsinclair27053d82016-08-02 15:43:46 -0700324 "core/fpdfdoc/cpdf_apsettings.cpp",
dsinclaircac704d2016-07-28 12:59:09 -0700325 "core/fpdfdoc/cpdf_apsettings.h",
dsinclair02e6f592016-08-02 11:25:48 -0700326 "core/fpdfdoc/cpdf_bookmark.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700327 "core/fpdfdoc/cpdf_bookmark.h",
dsinclair02e6f592016-08-02 11:25:48 -0700328 "core/fpdfdoc/cpdf_bookmarktree.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700329 "core/fpdfdoc/cpdf_bookmarktree.h",
dsinclair27053d82016-08-02 15:43:46 -0700330 "core/fpdfdoc/cpdf_defaultappearance.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700331 "core/fpdfdoc/cpdf_defaultappearance.h",
dsinclair448c4332016-08-02 12:07:35 -0700332 "core/fpdfdoc/cpdf_dest.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700333 "core/fpdfdoc/cpdf_dest.h",
dsinclair02e6f592016-08-02 11:25:48 -0700334 "core/fpdfdoc/cpdf_docjsactions.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700335 "core/fpdfdoc/cpdf_docjsactions.h",
dsinclair448c4332016-08-02 12:07:35 -0700336 "core/fpdfdoc/cpdf_filespec.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700337 "core/fpdfdoc/cpdf_filespec.h",
dsinclair27053d82016-08-02 15:43:46 -0700338 "core/fpdfdoc/cpdf_formcontrol.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700339 "core/fpdfdoc/cpdf_formcontrol.h",
dsinclair27053d82016-08-02 15:43:46 -0700340 "core/fpdfdoc/cpdf_formfield.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700341 "core/fpdfdoc/cpdf_formfield.h",
dsinclair27053d82016-08-02 15:43:46 -0700342 "core/fpdfdoc/cpdf_iconfit.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700343 "core/fpdfdoc/cpdf_iconfit.h",
Lei Zhangc3450652018-10-11 16:54:42 +0000344 "core/fpdfdoc/cpdf_interactiveform.cpp",
345 "core/fpdfdoc/cpdf_interactiveform.h",
dsinclair02e6f592016-08-02 11:25:48 -0700346 "core/fpdfdoc/cpdf_link.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700347 "core/fpdfdoc/cpdf_link.h",
dsinclair02e6f592016-08-02 11:25:48 -0700348 "core/fpdfdoc/cpdf_linklist.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700349 "core/fpdfdoc/cpdf_linklist.h",
dsinclair02e6f592016-08-02 11:25:48 -0700350 "core/fpdfdoc/cpdf_metadata.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700351 "core/fpdfdoc/cpdf_metadata.h",
dsinclair448c4332016-08-02 12:07:35 -0700352 "core/fpdfdoc/cpdf_nametree.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700353 "core/fpdfdoc/cpdf_nametree.h",
dsinclair27053d82016-08-02 15:43:46 -0700354 "core/fpdfdoc/cpdf_numbertree.cpp",
355 "core/fpdfdoc/cpdf_numbertree.h",
dsinclair448c4332016-08-02 12:07:35 -0700356 "core/fpdfdoc/cpdf_occontext.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700357 "core/fpdfdoc/cpdf_occontext.h",
dsinclair448c4332016-08-02 12:07:35 -0700358 "core/fpdfdoc/cpdf_pagelabel.cpp",
dsinclaircac704d2016-07-28 12:59:09 -0700359 "core/fpdfdoc/cpdf_pagelabel.h",
dan sinclair7f389612017-04-06 13:38:54 -0400360 "core/fpdfdoc/cpdf_structelement.cpp",
361 "core/fpdfdoc/cpdf_structelement.h",
362 "core/fpdfdoc/cpdf_structtree.cpp",
363 "core/fpdfdoc/cpdf_structtree.h",
dsinclairc7a73492016-04-05 12:01:42 -0700364 "core/fpdfdoc/cpdf_variabletext.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700365 "core/fpdfdoc/cpdf_variabletext.h",
dsinclair02e6f592016-08-02 11:25:48 -0700366 "core/fpdfdoc/cpdf_viewerpreferences.cpp",
dsinclair1727aee2016-09-29 13:12:56 -0700367 "core/fpdfdoc/cpdf_viewerpreferences.h",
dsinclairc7a73492016-04-05 12:01:42 -0700368 "core/fpdfdoc/cpvt_floatrect.h",
dsinclair777b3332016-03-31 20:03:08 -0700369 "core/fpdfdoc/cpvt_fontmap.cpp",
370 "core/fpdfdoc/cpvt_fontmap.h",
371 "core/fpdfdoc/cpvt_generateap.cpp",
372 "core/fpdfdoc/cpvt_generateap.h",
dsinclair1727aee2016-09-29 13:12:56 -0700373 "core/fpdfdoc/cpvt_line.h",
dsinclairc7a73492016-04-05 12:01:42 -0700374 "core/fpdfdoc/cpvt_lineinfo.h",
dsinclair1727aee2016-09-29 13:12:56 -0700375 "core/fpdfdoc/cpvt_word.h",
weili5a6c1392016-07-11 14:43:40 -0700376 "core/fpdfdoc/cpvt_wordinfo.cpp",
dsinclairc7a73492016-04-05 12:01:42 -0700377 "core/fpdfdoc/cpvt_wordinfo.h",
dsinclair1727aee2016-09-29 13:12:56 -0700378 "core/fpdfdoc/cpvt_wordplace.h",
dsinclair1727aee2016-09-29 13:12:56 -0700379 "core/fpdfdoc/cpvt_wordrange.h",
thestig9c845c32016-05-13 11:08:41 -0700380 "core/fpdfdoc/csection.cpp",
dsinclairc7a73492016-04-05 12:01:42 -0700381 "core/fpdfdoc/csection.h",
thestig9c845c32016-05-13 11:08:41 -0700382 "core/fpdfdoc/ctypeset.cpp",
dsinclairc7a73492016-04-05 12:01:42 -0700383 "core/fpdfdoc/ctypeset.h",
dsinclair1727aee2016-09-29 13:12:56 -0700384 "core/fpdfdoc/ipdf_formnotify.h",
385 "core/fpdfdoc/ipvt_fontmap.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700386 ]
weili0abe6522016-06-06 14:41:22 -0700387 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -0700388 deps = [
389 ":fxcrt",
390 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700391}
392
Lei Zhang1e5ebaa2018-10-11 16:59:02 +0000393jumbo_source_set("fpdfapi") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700394 sources = [
dsinclaira6c92152016-10-04 10:58:54 -0700395 "core/fpdfapi/cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp",
396 "core/fpdfapi/cmaps/CNS1/B5pc-H_0.cpp",
397 "core/fpdfapi/cmaps/CNS1/B5pc-V_0.cpp",
398 "core/fpdfapi/cmaps/CNS1/CNS-EUC-H_0.cpp",
399 "core/fpdfapi/cmaps/CNS1/CNS-EUC-V_0.cpp",
400 "core/fpdfapi/cmaps/CNS1/ETen-B5-H_0.cpp",
401 "core/fpdfapi/cmaps/CNS1/ETen-B5-V_0.cpp",
402 "core/fpdfapi/cmaps/CNS1/ETenms-B5-H_0.cpp",
403 "core/fpdfapi/cmaps/CNS1/ETenms-B5-V_0.cpp",
404 "core/fpdfapi/cmaps/CNS1/HKscs-B5-H_5.cpp",
405 "core/fpdfapi/cmaps/CNS1/HKscs-B5-V_5.cpp",
406 "core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-H_3.cpp",
407 "core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-V_3.cpp",
408 "core/fpdfapi/cmaps/CNS1/UniCNS-UTF16-H_0.cpp",
409 "core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp",
410 "core/fpdfapi/cmaps/GB1/Adobe-GB1-UCS2_5.cpp",
411 "core/fpdfapi/cmaps/GB1/GB-EUC-H_0.cpp",
412 "core/fpdfapi/cmaps/GB1/GB-EUC-V_0.cpp",
413 "core/fpdfapi/cmaps/GB1/GBK-EUC-H_2.cpp",
414 "core/fpdfapi/cmaps/GB1/GBK-EUC-V_2.cpp",
415 "core/fpdfapi/cmaps/GB1/GBK2K-H_5.cpp",
416 "core/fpdfapi/cmaps/GB1/GBK2K-V_5.cpp",
417 "core/fpdfapi/cmaps/GB1/GBKp-EUC-H_2.cpp",
418 "core/fpdfapi/cmaps/GB1/GBKp-EUC-V_2.cpp",
419 "core/fpdfapi/cmaps/GB1/GBpc-EUC-H_0.cpp",
420 "core/fpdfapi/cmaps/GB1/GBpc-EUC-V_0.cpp",
421 "core/fpdfapi/cmaps/GB1/UniGB-UCS2-H_4.cpp",
422 "core/fpdfapi/cmaps/GB1/UniGB-UCS2-V_4.cpp",
423 "core/fpdfapi/cmaps/GB1/cmaps_gb1.cpp",
424 "core/fpdfapi/cmaps/Japan1/83pv-RKSJ-H_1.cpp",
425 "core/fpdfapi/cmaps/Japan1/90ms-RKSJ-H_2.cpp",
426 "core/fpdfapi/cmaps/Japan1/90ms-RKSJ-V_2.cpp",
427 "core/fpdfapi/cmaps/Japan1/90msp-RKSJ-H_2.cpp",
428 "core/fpdfapi/cmaps/Japan1/90msp-RKSJ-V_2.cpp",
429 "core/fpdfapi/cmaps/Japan1/90pv-RKSJ-H_1.cpp",
430 "core/fpdfapi/cmaps/Japan1/Add-RKSJ-H_1.cpp",
431 "core/fpdfapi/cmaps/Japan1/Add-RKSJ-V_1.cpp",
432 "core/fpdfapi/cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp",
433 "core/fpdfapi/cmaps/Japan1/EUC-H_1.cpp",
434 "core/fpdfapi/cmaps/Japan1/EUC-V_1.cpp",
435 "core/fpdfapi/cmaps/Japan1/Ext-RKSJ-H_2.cpp",
436 "core/fpdfapi/cmaps/Japan1/Ext-RKSJ-V_2.cpp",
437 "core/fpdfapi/cmaps/Japan1/H_1.cpp",
438 "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp",
439 "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp",
440 "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-H_4.cpp",
441 "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-V_4.cpp",
442 "core/fpdfapi/cmaps/Japan1/V_1.cpp",
443 "core/fpdfapi/cmaps/Japan1/cmaps_japan1.cpp",
444 "core/fpdfapi/cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp",
445 "core/fpdfapi/cmaps/Korea1/KSC-EUC-H_0.cpp",
446 "core/fpdfapi/cmaps/Korea1/KSC-EUC-V_0.cpp",
447 "core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-H_1.cpp",
448 "core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-V_1.cpp",
449 "core/fpdfapi/cmaps/Korea1/KSCms-UHC-H_1.cpp",
450 "core/fpdfapi/cmaps/Korea1/KSCms-UHC-V_1.cpp",
451 "core/fpdfapi/cmaps/Korea1/KSCpc-EUC-H_0.cpp",
452 "core/fpdfapi/cmaps/Korea1/UniKS-UCS2-H_1.cpp",
453 "core/fpdfapi/cmaps/Korea1/UniKS-UCS2-V_1.cpp",
454 "core/fpdfapi/cmaps/Korea1/UniKS-UTF16-H_0.cpp",
455 "core/fpdfapi/cmaps/Korea1/cmaps_korea1.cpp",
456 "core/fpdfapi/cmaps/cmap_int.h",
457 "core/fpdfapi/cmaps/fpdf_cmaps.cpp",
tsepezddffb572016-05-24 16:20:29 -0700458 "core/fpdfapi/cpdf_modulemgr.cpp",
dsinclair39c62fd2016-09-29 12:49:17 -0700459 "core/fpdfapi/cpdf_modulemgr.h",
weili9f515bc2016-07-24 08:08:24 -0700460 "core/fpdfapi/cpdf_pagerendercontext.cpp",
dsinclair39c62fd2016-09-29 12:49:17 -0700461 "core/fpdfapi/cpdf_pagerendercontext.h",
Dan Sinclaira0b19542017-05-09 12:36:08 -0400462 "core/fpdfapi/edit/cpdf_creator.cpp",
dsinclair24154352016-10-04 11:01:48 -0700463 "core/fpdfapi/edit/cpdf_creator.h",
Dan Sinclaira0b19542017-05-09 12:36:08 -0400464 "core/fpdfapi/edit/cpdf_encryptor.cpp",
465 "core/fpdfapi/edit/cpdf_encryptor.h",
466 "core/fpdfapi/edit/cpdf_flateencoder.cpp",
467 "core/fpdfapi/edit/cpdf_flateencoder.h",
dsinclair24154352016-10-04 11:01:48 -0700468 "core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp",
469 "core/fpdfapi/edit/cpdf_pagecontentgenerator.h",
Henrique Nakashima81a30852018-06-12 22:00:25 +0000470 "core/fpdfapi/edit/cpdf_pagecontentmanager.cpp",
471 "core/fpdfapi/edit/cpdf_pagecontentmanager.h",
Henrique Nakashimab4bcf692018-07-11 21:19:22 +0000472 "core/fpdfapi/edit/cpdf_stringarchivestream.cpp",
473 "core/fpdfapi/edit/cpdf_stringarchivestream.h",
Nicolas Pena169b3012017-05-26 14:38:03 -0400474 "core/fpdfapi/font/cfx_cttgsubtable.cpp",
475 "core/fpdfapi/font/cfx_cttgsubtable.h",
476 "core/fpdfapi/font/cfx_stockfontarray.cpp",
477 "core/fpdfapi/font/cfx_stockfontarray.h",
478 "core/fpdfapi/font/cpdf_cid2unicodemap.cpp",
479 "core/fpdfapi/font/cpdf_cid2unicodemap.h",
dsinclairbc5e6d22016-10-04 11:08:49 -0700480 "core/fpdfapi/font/cpdf_cidfont.cpp",
481 "core/fpdfapi/font/cpdf_cidfont.h",
Nicolas Pena169b3012017-05-26 14:38:03 -0400482 "core/fpdfapi/font/cpdf_cmap.cpp",
483 "core/fpdfapi/font/cpdf_cmap.h",
484 "core/fpdfapi/font/cpdf_cmapmanager.cpp",
485 "core/fpdfapi/font/cpdf_cmapmanager.h",
486 "core/fpdfapi/font/cpdf_cmapparser.cpp",
487 "core/fpdfapi/font/cpdf_cmapparser.h",
dsinclairbc5e6d22016-10-04 11:08:49 -0700488 "core/fpdfapi/font/cpdf_font.cpp",
489 "core/fpdfapi/font/cpdf_font.h",
490 "core/fpdfapi/font/cpdf_fontencoding.cpp",
491 "core/fpdfapi/font/cpdf_fontencoding.h",
Nicolas Pena169b3012017-05-26 14:38:03 -0400492 "core/fpdfapi/font/cpdf_fontglobals.cpp",
493 "core/fpdfapi/font/cpdf_fontglobals.h",
dsinclairbc5e6d22016-10-04 11:08:49 -0700494 "core/fpdfapi/font/cpdf_simplefont.cpp",
495 "core/fpdfapi/font/cpdf_simplefont.h",
Nicolas Pena169b3012017-05-26 14:38:03 -0400496 "core/fpdfapi/font/cpdf_tounicodemap.cpp",
497 "core/fpdfapi/font/cpdf_tounicodemap.h",
dsinclairbc5e6d22016-10-04 11:08:49 -0700498 "core/fpdfapi/font/cpdf_truetypefont.cpp",
499 "core/fpdfapi/font/cpdf_truetypefont.h",
500 "core/fpdfapi/font/cpdf_type1font.cpp",
501 "core/fpdfapi/font/cpdf_type1font.h",
502 "core/fpdfapi/font/cpdf_type3char.cpp",
503 "core/fpdfapi/font/cpdf_type3char.h",
504 "core/fpdfapi/font/cpdf_type3font.cpp",
505 "core/fpdfapi/font/cpdf_type3font.h",
dsinclair41872fa2016-10-04 11:29:35 -0700506 "core/fpdfapi/page/cpdf_allstates.cpp",
507 "core/fpdfapi/page/cpdf_allstates.h",
508 "core/fpdfapi/page/cpdf_clippath.cpp",
509 "core/fpdfapi/page/cpdf_clippath.h",
510 "core/fpdfapi/page/cpdf_color.cpp",
511 "core/fpdfapi/page/cpdf_color.h",
512 "core/fpdfapi/page/cpdf_colorspace.cpp",
513 "core/fpdfapi/page/cpdf_colorspace.h",
514 "core/fpdfapi/page/cpdf_colorstate.cpp",
515 "core/fpdfapi/page/cpdf_colorstate.h",
dsinclair41872fa2016-10-04 11:29:35 -0700516 "core/fpdfapi/page/cpdf_contentmarkitem.cpp",
517 "core/fpdfapi/page/cpdf_contentmarkitem.h",
Henrique Nakashima673b90a2018-10-10 23:17:03 +0000518 "core/fpdfapi/page/cpdf_contentmarks.cpp",
519 "core/fpdfapi/page/cpdf_contentmarks.h",
npm014b0122016-11-07 08:42:11 -0800520 "core/fpdfapi/page/cpdf_contentparser.cpp",
tsepez1aff2652016-11-22 10:45:59 -0800521 "core/fpdfapi/page/cpdf_contentparser.h",
dsinclair41872fa2016-10-04 11:29:35 -0700522 "core/fpdfapi/page/cpdf_countedobject.h",
Dan Sinclair5acacd32017-05-25 14:04:59 -0400523 "core/fpdfapi/page/cpdf_devicecs.cpp",
524 "core/fpdfapi/page/cpdf_devicecs.h",
tsepez9fa95ef2016-10-11 12:29:38 -0700525 "core/fpdfapi/page/cpdf_docpagedata.cpp",
526 "core/fpdfapi/page/cpdf_docpagedata.h",
Dan Sinclair5acacd32017-05-25 14:04:59 -0400527 "core/fpdfapi/page/cpdf_expintfunc.cpp",
528 "core/fpdfapi/page/cpdf_expintfunc.h",
dsinclair41872fa2016-10-04 11:29:35 -0700529 "core/fpdfapi/page/cpdf_form.cpp",
530 "core/fpdfapi/page/cpdf_form.h",
531 "core/fpdfapi/page/cpdf_formobject.cpp",
532 "core/fpdfapi/page/cpdf_formobject.h",
Dan Sinclair5acacd32017-05-25 14:04:59 -0400533 "core/fpdfapi/page/cpdf_function.cpp",
534 "core/fpdfapi/page/cpdf_function.h",
dsinclair41872fa2016-10-04 11:29:35 -0700535 "core/fpdfapi/page/cpdf_generalstate.cpp",
536 "core/fpdfapi/page/cpdf_generalstate.h",
537 "core/fpdfapi/page/cpdf_graphicstates.cpp",
538 "core/fpdfapi/page/cpdf_graphicstates.h",
Dan Sinclair5acacd32017-05-25 14:04:59 -0400539 "core/fpdfapi/page/cpdf_iccprofile.cpp",
540 "core/fpdfapi/page/cpdf_iccprofile.h",
dsinclair41872fa2016-10-04 11:29:35 -0700541 "core/fpdfapi/page/cpdf_image.cpp",
542 "core/fpdfapi/page/cpdf_image.h",
543 "core/fpdfapi/page/cpdf_imageobject.cpp",
544 "core/fpdfapi/page/cpdf_imageobject.h",
545 "core/fpdfapi/page/cpdf_meshstream.cpp",
546 "core/fpdfapi/page/cpdf_meshstream.h",
547 "core/fpdfapi/page/cpdf_page.cpp",
548 "core/fpdfapi/page/cpdf_page.h",
549 "core/fpdfapi/page/cpdf_pagemodule.cpp",
550 "core/fpdfapi/page/cpdf_pagemodule.h",
551 "core/fpdfapi/page/cpdf_pageobject.cpp",
552 "core/fpdfapi/page/cpdf_pageobject.h",
553 "core/fpdfapi/page/cpdf_pageobjectholder.cpp",
554 "core/fpdfapi/page/cpdf_pageobjectholder.h",
555 "core/fpdfapi/page/cpdf_pageobjectlist.cpp",
556 "core/fpdfapi/page/cpdf_pageobjectlist.h",
557 "core/fpdfapi/page/cpdf_path.cpp",
558 "core/fpdfapi/page/cpdf_path.h",
559 "core/fpdfapi/page/cpdf_pathobject.cpp",
560 "core/fpdfapi/page/cpdf_pathobject.h",
561 "core/fpdfapi/page/cpdf_pattern.cpp",
562 "core/fpdfapi/page/cpdf_pattern.h",
Dan Sinclair5acacd32017-05-25 14:04:59 -0400563 "core/fpdfapi/page/cpdf_patterncs.cpp",
564 "core/fpdfapi/page/cpdf_patterncs.h",
565 "core/fpdfapi/page/cpdf_psengine.cpp",
566 "core/fpdfapi/page/cpdf_psengine.h",
567 "core/fpdfapi/page/cpdf_psfunc.cpp",
568 "core/fpdfapi/page/cpdf_psfunc.h",
569 "core/fpdfapi/page/cpdf_sampledfunc.cpp",
570 "core/fpdfapi/page/cpdf_sampledfunc.h",
dsinclair41872fa2016-10-04 11:29:35 -0700571 "core/fpdfapi/page/cpdf_shadingobject.cpp",
572 "core/fpdfapi/page/cpdf_shadingobject.h",
573 "core/fpdfapi/page/cpdf_shadingpattern.cpp",
574 "core/fpdfapi/page/cpdf_shadingpattern.h",
Dan Sinclair5acacd32017-05-25 14:04:59 -0400575 "core/fpdfapi/page/cpdf_stitchfunc.cpp",
576 "core/fpdfapi/page/cpdf_stitchfunc.h",
tsepez271d9c02016-10-13 11:29:04 -0700577 "core/fpdfapi/page/cpdf_streamcontentparser.cpp",
578 "core/fpdfapi/page/cpdf_streamcontentparser.h",
npm014b0122016-11-07 08:42:11 -0800579 "core/fpdfapi/page/cpdf_streamparser.cpp",
tsepez1aff2652016-11-22 10:45:59 -0800580 "core/fpdfapi/page/cpdf_streamparser.h",
dsinclair41872fa2016-10-04 11:29:35 -0700581 "core/fpdfapi/page/cpdf_textobject.cpp",
582 "core/fpdfapi/page/cpdf_textobject.h",
583 "core/fpdfapi/page/cpdf_textstate.cpp",
584 "core/fpdfapi/page/cpdf_textstate.h",
585 "core/fpdfapi/page/cpdf_tilingpattern.cpp",
586 "core/fpdfapi/page/cpdf_tilingpattern.h",
Tom Sepez101535f2018-06-12 13:36:05 +0000587 "core/fpdfapi/page/ipdf_page.h",
dsinclair488b7ad2016-10-04 11:55:50 -0700588 "core/fpdfapi/parser/cfdf_document.cpp",
589 "core/fpdfapi/parser/cfdf_document.h",
590 "core/fpdfapi/parser/cpdf_array.cpp",
591 "core/fpdfapi/parser/cpdf_array.h",
592 "core/fpdfapi/parser/cpdf_boolean.cpp",
593 "core/fpdfapi/parser/cpdf_boolean.h",
Artem Strygin626c2a52017-11-02 19:59:38 +0000594 "core/fpdfapi/parser/cpdf_cross_ref_avail.cpp",
595 "core/fpdfapi/parser/cpdf_cross_ref_avail.h",
Artem Strygin9e12f142018-06-27 17:52:40 +0000596 "core/fpdfapi/parser/cpdf_cross_ref_table.cpp",
597 "core/fpdfapi/parser/cpdf_cross_ref_table.h",
dsinclair488b7ad2016-10-04 11:55:50 -0700598 "core/fpdfapi/parser/cpdf_crypto_handler.cpp",
599 "core/fpdfapi/parser/cpdf_crypto_handler.h",
600 "core/fpdfapi/parser/cpdf_data_avail.cpp",
601 "core/fpdfapi/parser/cpdf_data_avail.h",
602 "core/fpdfapi/parser/cpdf_dictionary.cpp",
603 "core/fpdfapi/parser/cpdf_dictionary.h",
604 "core/fpdfapi/parser/cpdf_document.cpp",
605 "core/fpdfapi/parser/cpdf_document.h",
606 "core/fpdfapi/parser/cpdf_hint_tables.cpp",
607 "core/fpdfapi/parser/cpdf_hint_tables.h",
608 "core/fpdfapi/parser/cpdf_indirect_object_holder.cpp",
609 "core/fpdfapi/parser/cpdf_indirect_object_holder.h",
tsepezc09625c2016-11-07 11:46:09 -0800610 "core/fpdfapi/parser/cpdf_linearized_header.cpp",
611 "core/fpdfapi/parser/cpdf_linearized_header.h",
dsinclair488b7ad2016-10-04 11:55:50 -0700612 "core/fpdfapi/parser/cpdf_name.cpp",
613 "core/fpdfapi/parser/cpdf_name.h",
614 "core/fpdfapi/parser/cpdf_null.cpp",
615 "core/fpdfapi/parser/cpdf_null.h",
616 "core/fpdfapi/parser/cpdf_number.cpp",
617 "core/fpdfapi/parser/cpdf_number.h",
618 "core/fpdfapi/parser/cpdf_object.cpp",
619 "core/fpdfapi/parser/cpdf_object.h",
Artem Strygin304eefb2017-08-29 00:26:42 +0300620 "core/fpdfapi/parser/cpdf_object_avail.cpp",
621 "core/fpdfapi/parser/cpdf_object_avail.h",
Artem Strygine3d3ce02018-06-26 16:01:38 +0000622 "core/fpdfapi/parser/cpdf_object_stream.cpp",
623 "core/fpdfapi/parser/cpdf_object_stream.h",
Artem Stryginf57cad42017-08-14 23:35:52 +0300624 "core/fpdfapi/parser/cpdf_object_walker.cpp",
625 "core/fpdfapi/parser/cpdf_object_walker.h",
Artem Strygin304eefb2017-08-29 00:26:42 +0300626 "core/fpdfapi/parser/cpdf_page_object_avail.cpp",
627 "core/fpdfapi/parser/cpdf_page_object_avail.h",
dsinclair488b7ad2016-10-04 11:55:50 -0700628 "core/fpdfapi/parser/cpdf_parser.cpp",
629 "core/fpdfapi/parser/cpdf_parser.h",
Artem Strygin834ebec2017-07-27 14:01:32 +0300630 "core/fpdfapi/parser/cpdf_read_validator.cpp",
631 "core/fpdfapi/parser/cpdf_read_validator.h",
dsinclair488b7ad2016-10-04 11:55:50 -0700632 "core/fpdfapi/parser/cpdf_reference.cpp",
633 "core/fpdfapi/parser/cpdf_reference.h",
634 "core/fpdfapi/parser/cpdf_security_handler.cpp",
635 "core/fpdfapi/parser/cpdf_security_handler.h",
636 "core/fpdfapi/parser/cpdf_simple_parser.cpp",
637 "core/fpdfapi/parser/cpdf_simple_parser.h",
638 "core/fpdfapi/parser/cpdf_stream.cpp",
639 "core/fpdfapi/parser/cpdf_stream.h",
640 "core/fpdfapi/parser/cpdf_stream_acc.cpp",
641 "core/fpdfapi/parser/cpdf_stream_acc.h",
642 "core/fpdfapi/parser/cpdf_string.cpp",
643 "core/fpdfapi/parser/cpdf_string.h",
644 "core/fpdfapi/parser/cpdf_syntax_parser.cpp",
645 "core/fpdfapi/parser/cpdf_syntax_parser.h",
646 "core/fpdfapi/parser/fpdf_parser_decode.cpp",
647 "core/fpdfapi/parser/fpdf_parser_decode.h",
648 "core/fpdfapi/parser/fpdf_parser_utility.cpp",
649 "core/fpdfapi/parser/fpdf_parser_utility.h",
npm483f3c42016-11-17 13:50:44 -0800650 "core/fpdfapi/render/cpdf_charposlist.cpp",
651 "core/fpdfapi/render/cpdf_charposlist.h",
Nicolas Pena8a463c52016-11-30 14:56:27 -0500652 "core/fpdfapi/render/cpdf_devicebuffer.cpp",
653 "core/fpdfapi/render/cpdf_devicebuffer.h",
Tom Sepeze6ff2eb2018-08-24 21:55:46 +0000654 "core/fpdfapi/render/cpdf_dibbase.cpp",
655 "core/fpdfapi/render/cpdf_dibbase.h",
npm4bed2af2016-12-02 14:01:36 -0800656 "core/fpdfapi/render/cpdf_dibtransferfunc.cpp",
657 "core/fpdfapi/render/cpdf_dibtransferfunc.h",
npm935c6312016-11-17 10:47:43 -0800658 "core/fpdfapi/render/cpdf_docrenderdata.cpp",
659 "core/fpdfapi/render/cpdf_docrenderdata.h",
npmd7ecb5f2016-12-01 15:37:42 -0800660 "core/fpdfapi/render/cpdf_imagecacheentry.cpp",
661 "core/fpdfapi/render/cpdf_imagecacheentry.h",
npmca5300a2016-11-21 07:28:42 -0800662 "core/fpdfapi/render/cpdf_imageloader.cpp",
663 "core/fpdfapi/render/cpdf_imageloader.h",
npm43f382c2016-11-23 07:35:23 -0800664 "core/fpdfapi/render/cpdf_imagerenderer.cpp",
665 "core/fpdfapi/render/cpdf_imagerenderer.h",
npmd7ecb5f2016-12-01 15:37:42 -0800666 "core/fpdfapi/render/cpdf_pagerendercache.cpp",
dsinclair69d9c682016-10-04 12:18:35 -0700667 "core/fpdfapi/render/cpdf_pagerendercache.h",
Nicolas Pena8a463c52016-11-30 14:56:27 -0500668 "core/fpdfapi/render/cpdf_progressiverenderer.cpp",
dsinclair69d9c682016-10-04 12:18:35 -0700669 "core/fpdfapi/render/cpdf_progressiverenderer.h",
Nicolas Pena8a463c52016-11-30 14:56:27 -0500670 "core/fpdfapi/render/cpdf_rendercontext.cpp",
dsinclair69d9c682016-10-04 12:18:35 -0700671 "core/fpdfapi/render/cpdf_rendercontext.h",
Nicolas Pena8a463c52016-11-30 14:56:27 -0500672 "core/fpdfapi/render/cpdf_renderoptions.cpp",
dsinclair69d9c682016-10-04 12:18:35 -0700673 "core/fpdfapi/render/cpdf_renderoptions.h",
npm483f3c42016-11-17 13:50:44 -0800674 "core/fpdfapi/render/cpdf_renderstatus.cpp",
675 "core/fpdfapi/render/cpdf_renderstatus.h",
Nicolas Pena8a463c52016-11-30 14:56:27 -0500676 "core/fpdfapi/render/cpdf_scaledrenderbuffer.cpp",
677 "core/fpdfapi/render/cpdf_scaledrenderbuffer.h",
npm4bed2af2016-12-02 14:01:36 -0800678 "core/fpdfapi/render/cpdf_textrenderer.cpp",
dsinclair69d9c682016-10-04 12:18:35 -0700679 "core/fpdfapi/render/cpdf_textrenderer.h",
npmca5300a2016-11-21 07:28:42 -0800680 "core/fpdfapi/render/cpdf_transferfunc.cpp",
681 "core/fpdfapi/render/cpdf_transferfunc.h",
Lei Zhang3d1ab2d2018-05-10 18:07:35 +0000682 "core/fpdfapi/render/cpdf_transparency.cpp",
683 "core/fpdfapi/render/cpdf_transparency.h",
dsinclair69d9c682016-10-04 12:18:35 -0700684 "core/fpdfapi/render/cpdf_type3cache.cpp",
685 "core/fpdfapi/render/cpdf_type3cache.h",
686 "core/fpdfapi/render/cpdf_type3glyphs.cpp",
687 "core/fpdfapi/render/cpdf_type3glyphs.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700688 ]
weili0abe6522016-06-06 14:41:22 -0700689 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -0700690 deps = [
691 ":fxcrt",
Lei Zhang61f2f482017-09-19 15:03:15 -0700692 "third_party:lcms2",
thestig73c48562016-09-06 14:07:17 -0700693 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700694}
695
Lei Zhang1e5ebaa2018-10-11 16:59:02 +0000696jumbo_source_set("fpdftext") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700697 sources = [
npm2d396ac2016-08-26 10:00:25 -0700698 "core/fpdftext/cpdf_linkextract.cpp",
dsinclaire0307862016-09-29 13:25:38 -0700699 "core/fpdftext/cpdf_linkextract.h",
npm2d396ac2016-08-26 10:00:25 -0700700 "core/fpdftext/cpdf_textpage.cpp",
dsinclaire0307862016-09-29 13:25:38 -0700701 "core/fpdftext/cpdf_textpage.h",
npm2d396ac2016-08-26 10:00:25 -0700702 "core/fpdftext/cpdf_textpagefind.cpp",
dsinclaire0307862016-09-29 13:25:38 -0700703 "core/fpdftext/cpdf_textpagefind.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400704 "core/fpdftext/unicodenormalizationdata.cpp",
705 "core/fpdftext/unicodenormalizationdata.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700706 ]
weili0abe6522016-06-06 14:41:22 -0700707 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -0700708 deps = [
709 ":fxcrt",
710 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700711}
712
Lei Zhang1e5ebaa2018-10-11 16:59:02 +0000713jumbo_source_set("fxcodec") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700714 sources = [
dsinclair8a4e2862016-09-29 13:43:30 -0700715 "core/fxcodec/JBig2_DocumentContext.h",
dsinclaird55e11e2016-04-12 11:21:22 -0700716 "core/fxcodec/codec/ccodec_basicmodule.h",
Tom Sepez48cd65d2018-08-28 22:37:20 +0000717 "core/fxcodec/codec/ccodec_faxmodule.cpp",
dsinclaird55e11e2016-04-12 11:21:22 -0700718 "core/fxcodec/codec/ccodec_faxmodule.h",
Tom Sepez48cd65d2018-08-28 22:37:20 +0000719 "core/fxcodec/codec/ccodec_flatemodule.cpp",
dsinclaird55e11e2016-04-12 11:21:22 -0700720 "core/fxcodec/codec/ccodec_flatemodule.h",
Tom Sepez48cd65d2018-08-28 22:37:20 +0000721 "core/fxcodec/codec/ccodec_iccmodule.cpp",
dsinclaird55e11e2016-04-12 11:21:22 -0700722 "core/fxcodec/codec/ccodec_iccmodule.h",
Tom Sepez48cd65d2018-08-28 22:37:20 +0000723 "core/fxcodec/codec/ccodec_jbig2module.cpp",
dsinclaird55e11e2016-04-12 11:21:22 -0700724 "core/fxcodec/codec/ccodec_jbig2module.h",
Tom Sepez126927e2018-08-28 22:25:49 +0000725 "core/fxcodec/codec/ccodec_jpegmodule.cpp",
dsinclaird55e11e2016-04-12 11:21:22 -0700726 "core/fxcodec/codec/ccodec_jpegmodule.h",
Tom Sepez48cd65d2018-08-28 22:37:20 +0000727 "core/fxcodec/codec/ccodec_jpxmodule.cpp",
dsinclaird55e11e2016-04-12 11:21:22 -0700728 "core/fxcodec/codec/ccodec_jpxmodule.h",
Lei Zhang4b8d3632017-09-19 14:18:48 -0700729 "core/fxcodec/codec/ccodec_scanlinedecoder.cpp",
dsinclaird55e11e2016-04-12 11:21:22 -0700730 "core/fxcodec/codec/ccodec_scanlinedecoder.h",
Lei Zhang265886b2018-10-11 05:30:04 +0000731 "core/fxcodec/codec/cfx_codec_memory.cpp",
732 "core/fxcodec/codec/cfx_codec_memory.h",
Dan Sinclair0bb13332017-03-30 16:12:02 -0400733 "core/fxcodec/codec/cjpx_decoder.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400734 "core/fxcodec/codec/codec_int.h",
Tom Sepez958142e2018-09-25 20:06:50 +0000735 "core/fxcodec/codec/codec_module_iface.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400736 "core/fxcodec/codec/fx_codec.cpp",
dsinclair8a4e2862016-09-29 13:43:30 -0700737 "core/fxcodec/fx_codec.h",
738 "core/fxcodec/fx_codec_def.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400739 "core/fxcodec/jbig2/JBig2_ArithDecoder.cpp",
740 "core/fxcodec/jbig2/JBig2_ArithDecoder.h",
741 "core/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp",
742 "core/fxcodec/jbig2/JBig2_ArithIntDecoder.h",
743 "core/fxcodec/jbig2/JBig2_BitStream.cpp",
744 "core/fxcodec/jbig2/JBig2_BitStream.h",
745 "core/fxcodec/jbig2/JBig2_Context.cpp",
746 "core/fxcodec/jbig2/JBig2_Context.h",
747 "core/fxcodec/jbig2/JBig2_Define.h",
748 "core/fxcodec/jbig2/JBig2_GrdProc.cpp",
749 "core/fxcodec/jbig2/JBig2_GrdProc.h",
750 "core/fxcodec/jbig2/JBig2_GrrdProc.cpp",
751 "core/fxcodec/jbig2/JBig2_GrrdProc.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400752 "core/fxcodec/jbig2/JBig2_HtrdProc.cpp",
753 "core/fxcodec/jbig2/JBig2_HtrdProc.h",
754 "core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp",
755 "core/fxcodec/jbig2/JBig2_HuffmanDecoder.h",
756 "core/fxcodec/jbig2/JBig2_HuffmanTable.cpp",
757 "core/fxcodec/jbig2/JBig2_HuffmanTable.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400758 "core/fxcodec/jbig2/JBig2_Image.cpp",
759 "core/fxcodec/jbig2/JBig2_Image.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400760 "core/fxcodec/jbig2/JBig2_Page.h",
761 "core/fxcodec/jbig2/JBig2_PatternDict.cpp",
762 "core/fxcodec/jbig2/JBig2_PatternDict.h",
763 "core/fxcodec/jbig2/JBig2_PddProc.cpp",
764 "core/fxcodec/jbig2/JBig2_PddProc.h",
765 "core/fxcodec/jbig2/JBig2_SddProc.cpp",
766 "core/fxcodec/jbig2/JBig2_SddProc.h",
767 "core/fxcodec/jbig2/JBig2_Segment.cpp",
768 "core/fxcodec/jbig2/JBig2_Segment.h",
769 "core/fxcodec/jbig2/JBig2_SymbolDict.cpp",
770 "core/fxcodec/jbig2/JBig2_SymbolDict.h",
771 "core/fxcodec/jbig2/JBig2_TrdProc.cpp",
772 "core/fxcodec/jbig2/JBig2_TrdProc.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700773 ]
thestig73c48562016-09-06 14:07:17 -0700774 configs += [ ":pdfium_core_config" ]
Lei Zhang8241df72015-11-06 14:38:48 -0800775 include_dirs = []
thestig73c48562016-09-06 14:07:17 -0700776 deps = [
777 ":fxcrt",
thestig73c48562016-09-06 14:07:17 -0700778 "third_party:fx_libopenjpeg",
Miklos Vajna0fafb4f2017-05-24 08:40:49 +0200779 "third_party:lcms2",
Miklos Vajna2df760f2017-05-06 01:54:54 +0200780 "third_party:zlib",
thestig73c48562016-09-06 14:07:17 -0700781 "//third_party:jpeg",
782 ]
783
Tom Sepezd2e023b2015-12-08 14:36:16 -0800784 if (pdf_enable_xfa) {
785 sources += [
Tom Sepezf2615a32018-08-27 23:45:52 +0000786 "core/fxcodec/codec/ccodec_progressivedecoder.cpp",
dsinclair8a4e2862016-09-29 13:43:30 -0700787 "core/fxcodec/codec/ccodec_progressivedecoder.h",
Tom Sepezd2e023b2015-12-08 14:36:16 -0800788 ]
Ryan Harrison95061372018-05-10 16:38:15 +0000789 if (pdf_enable_xfa_bmp) {
790 sources += [
791 "core/fxcodec/bmp/cfx_bmpcontext.cpp",
792 "core/fxcodec/bmp/cfx_bmpcontext.h",
793 "core/fxcodec/bmp/cfx_bmpdecompressor.cpp",
794 "core/fxcodec/bmp/cfx_bmpdecompressor.h",
795 "core/fxcodec/bmp/fx_bmp.cpp",
796 "core/fxcodec/bmp/fx_bmp.h",
797 "core/fxcodec/codec/ccodec_bmpmodule.cpp",
798 "core/fxcodec/codec/ccodec_bmpmodule.h",
799 ]
800 }
Ryan Harrison607f3cd2018-05-09 21:06:22 +0000801 if (pdf_enable_xfa_gif) {
802 sources += [
803 "core/fxcodec/codec/ccodec_gifmodule.cpp",
804 "core/fxcodec/codec/ccodec_gifmodule.h",
805 "core/fxcodec/gif/cfx_gif.cpp",
806 "core/fxcodec/gif/cfx_gif.h",
807 "core/fxcodec/gif/cfx_gifcontext.cpp",
808 "core/fxcodec/gif/cfx_gifcontext.h",
809 "core/fxcodec/gif/cfx_lzwdecompressor.cpp",
810 "core/fxcodec/gif/cfx_lzwdecompressor.h",
811 ]
812 }
Ryan Harrisond5d48452018-05-09 20:31:12 +0000813 if (pdf_enable_xfa_png) {
814 sources += [
815 "core/fxcodec/codec/ccodec_pngmodule.cpp",
816 "core/fxcodec/codec/ccodec_pngmodule.h",
817 ]
818 deps += [ "third_party:png" ]
819 }
Ryan Harrison27924e62018-05-09 14:42:42 +0000820 if (pdf_enable_xfa_tiff) {
821 sources += [
822 "core/fxcodec/codec/ccodec_tiffmodule.cpp",
823 "core/fxcodec/codec/ccodec_tiffmodule.h",
824 ]
825 deps += [ "third_party:fx_tiff" ]
826 }
Tom Sepezd2e023b2015-12-08 14:36:16 -0800827 }
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400828}
829
830config("fxge_warnings") {
831 if (is_clang) {
832 cflags = [
833 # http://code.google.com/p/pdfium/issues/detail?id=188
834 "-Wno-switch",
835 ]
836 }
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700837}
838
Lei Zhang1e5ebaa2018-10-11 16:59:02 +0000839jumbo_source_set("fxcrt") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700840 sources = [
Dan Sinclairb8966992017-09-21 14:51:57 -0400841 "core/fxcrt/autorestorer.h",
Ryan Harrison275e2602017-09-18 14:23:18 -0400842 "core/fxcrt/bytestring.cpp",
843 "core/fxcrt/bytestring.h",
Dan Sinclaircd071232017-08-30 16:21:36 -0400844 "core/fxcrt/cfx_binarybuf.cpp",
845 "core/fxcrt/cfx_binarybuf.h",
Dan Sinclairccd5be02017-08-30 13:23:44 -0400846 "core/fxcrt/cfx_bitstream.cpp",
847 "core/fxcrt/cfx_bitstream.h",
Jane Liu54a42142017-07-24 16:40:54 -0400848 "core/fxcrt/cfx_datetime.cpp",
849 "core/fxcrt/cfx_datetime.h",
Dan Sinclair4793f342017-08-30 16:44:57 -0400850 "core/fxcrt/cfx_fixedbufgrow.h",
Dan Sinclair283a0432017-04-20 14:11:21 -0400851 "core/fxcrt/cfx_memorystream.cpp",
852 "core/fxcrt/cfx_memorystream.h",
Lei Zhangb850c982018-08-13 19:08:58 +0000853 "core/fxcrt/cfx_readonlymemorystream.cpp",
854 "core/fxcrt/cfx_readonlymemorystream.h",
Ryan Harrisonccf206a2017-11-14 16:05:53 +0000855 "core/fxcrt/cfx_seekablemultistream.cpp",
856 "core/fxcrt/cfx_seekablemultistream.h",
dan sinclair19ae9bf2018-04-16 16:54:27 +0000857 "core/fxcrt/cfx_seekablestreamproxy.cpp",
858 "core/fxcrt/cfx_seekablestreamproxy.h",
Dan Sinclair5624fe32017-08-30 16:13:01 -0400859 "core/fxcrt/cfx_utf8decoder.cpp",
860 "core/fxcrt/cfx_utf8decoder.h",
Tom Sepezfd7cede2018-08-09 21:32:47 +0000861 "core/fxcrt/cfx_utf8encoder.cpp",
862 "core/fxcrt/cfx_utf8encoder.h",
Dan Sinclaira94566f2017-08-30 16:36:53 -0400863 "core/fxcrt/cfx_widetextbuf.cpp",
864 "core/fxcrt/cfx_widetextbuf.h",
Dan Sinclaira32145f2018-03-06 18:53:05 +0000865 "core/fxcrt/fileaccess_iface.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400866 "core/fxcrt/fx_bidi.cpp",
Dan Sinclaira8a28e02016-03-23 15:41:39 -0400867 "core/fxcrt/fx_bidi.h",
Tom Sepezaff0dfd2018-05-07 21:32:10 +0000868 "core/fxcrt/fx_codepage.cpp",
Dan Sinclairf51a02a2017-04-19 12:46:53 -0400869 "core/fxcrt/fx_codepage.h",
Tom Sepez63022882017-04-25 10:29:58 -0700870 "core/fxcrt/fx_coordinates.cpp",
dsinclaira52ab742016-09-29 13:59:29 -0700871 "core/fxcrt/fx_coordinates.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400872 "core/fxcrt/fx_extension.cpp",
Dan Sinclaircfb19442017-04-20 13:13:04 -0400873 "core/fxcrt/fx_extension.h",
Tom Sepeza9deea92017-04-25 10:37:47 -0700874 "core/fxcrt/fx_memory.cpp",
dsinclaira52ab742016-09-29 13:59:29 -0700875 "core/fxcrt/fx_memory.h",
Tom Sepez61f1d622018-09-13 21:40:49 +0000876 "core/fxcrt/fx_number.cpp",
877 "core/fxcrt/fx_number.h",
Dan Sinclair6c902e62017-09-05 13:22:36 -0400878 "core/fxcrt/fx_random.cpp",
879 "core/fxcrt/fx_random.h",
dsinclaira52ab742016-09-29 13:59:29 -0700880 "core/fxcrt/fx_safe_types.h",
Dan Sinclaircfb19442017-04-20 13:13:04 -0400881 "core/fxcrt/fx_stream.cpp",
dsinclaira52ab742016-09-29 13:59:29 -0700882 "core/fxcrt/fx_stream.h",
Dan Sinclair0872b042017-08-31 15:50:25 -0400883 "core/fxcrt/fx_string.cpp",
dsinclaira52ab742016-09-29 13:59:29 -0700884 "core/fxcrt/fx_string.h",
Tom Sepez9ff306d2017-04-24 15:55:11 -0700885 "core/fxcrt/fx_system.cpp",
dsinclaira52ab742016-09-29 13:59:29 -0700886 "core/fxcrt/fx_system.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400887 "core/fxcrt/fx_ucddata.cpp",
Tom Sepez740bcd82017-09-01 12:40:05 -0700888 "core/fxcrt/fx_ucddata.h",
Dan Sinclair764ec512016-03-14 13:35:12 -0400889 "core/fxcrt/fx_unicode.cpp",
Tom Sepez740bcd82017-09-01 12:40:05 -0700890 "core/fxcrt/fx_unicode.h",
Dan Sinclairde44d152017-09-21 14:52:41 -0400891 "core/fxcrt/maybe_owned.h",
Dan Sinclair65ecca42017-09-21 15:25:32 -0400892 "core/fxcrt/observable.h",
Dan Sinclaira32145f2018-03-06 18:53:05 +0000893 "core/fxcrt/pauseindicator_iface.h",
Dan Sinclair0b950422017-09-21 15:49:49 -0400894 "core/fxcrt/retain_ptr.h",
Dan Sinclair9317f8f2017-09-21 16:19:19 -0400895 "core/fxcrt/shared_copy_on_write.h",
Dan Sinclair20a17552017-09-21 16:35:56 -0400896 "core/fxcrt/string_data_template.h",
Dan Sinclair8e9e3d82017-09-21 16:49:32 -0400897 "core/fxcrt/string_pool_template.h",
Ryan Harrison275e2602017-09-18 14:23:18 -0400898 "core/fxcrt/string_view_template.h",
Dan Sinclairaee0db02017-09-21 16:53:58 -0400899 "core/fxcrt/unowned_ptr.h",
Dan Sinclairb872a932017-09-21 17:05:15 -0400900 "core/fxcrt/weak_ptr.h",
Ryan Harrison275e2602017-09-18 14:23:18 -0400901 "core/fxcrt/widestring.cpp",
902 "core/fxcrt/widestring.h",
dan sinclair19ae9bf2018-04-16 16:54:27 +0000903 "core/fxcrt/xml/cfx_xmlchardata.cpp",
904 "core/fxcrt/xml/cfx_xmlchardata.h",
Dan Sinclair70180642018-05-02 16:02:03 +0000905 "core/fxcrt/xml/cfx_xmldocument.cpp",
906 "core/fxcrt/xml/cfx_xmldocument.h",
dan sinclair19ae9bf2018-04-16 16:54:27 +0000907 "core/fxcrt/xml/cfx_xmlelement.cpp",
908 "core/fxcrt/xml/cfx_xmlelement.h",
909 "core/fxcrt/xml/cfx_xmlinstruction.cpp",
910 "core/fxcrt/xml/cfx_xmlinstruction.h",
911 "core/fxcrt/xml/cfx_xmlnode.cpp",
912 "core/fxcrt/xml/cfx_xmlnode.h",
913 "core/fxcrt/xml/cfx_xmlparser.cpp",
914 "core/fxcrt/xml/cfx_xmlparser.h",
915 "core/fxcrt/xml/cfx_xmltext.cpp",
916 "core/fxcrt/xml/cfx_xmltext.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700917 ]
thestigc65e11e2016-08-30 21:56:33 -0700918 configs += [ ":pdfium_core_config" ]
Lei Zhangac0a1672018-10-12 17:37:06 +0000919 visibility += [
920 "fxbarcode:*",
Lei Zhanga7dec322018-10-12 18:36:51 +0000921 "fxjs:*",
Lei Zhangfaa51452018-10-12 18:33:51 +0000922 "xfa/*",
Lei Zhangac0a1672018-10-12 17:37:06 +0000923 "third_party:*",
924 ]
thestig73c48562016-09-06 14:07:17 -0700925 deps = [
926 "third_party:pdfium_base",
927 ]
928 public_deps = [
Dominik Röttsches4b0671a2017-03-30 11:07:43 +0300929 ":freetype_common",
thestig73c48562016-09-06 14:07:17 -0700930 "third_party:pdfium_base",
Ryan Harrison15c0fcc2018-03-12 15:20:04 +0000931 "//third_party/icu:icuuc",
thestig73c48562016-09-06 14:07:17 -0700932 ]
Tom Sepez55276822018-07-19 17:39:15 +0000933 if (is_posix || is_fuchsia) {
934 sources += [
935 "core/fxcrt/cfx_fileaccess_posix.cpp",
936 "core/fxcrt/cfx_fileaccess_posix.h",
937 ]
938 }
Lei Zhang8481c712018-07-25 17:35:19 +0000939 if (is_win) {
940 sources += [
941 "core/fxcrt/cfx_fileaccess_windows.cpp",
942 "core/fxcrt/cfx_fileaccess_windows.h",
943 ]
944 }
Tom Sepezd2e023b2015-12-08 14:36:16 -0800945 if (pdf_enable_xfa) {
946 sources += [
Dan Sinclair893822a2017-03-13 15:32:07 -0400947 "core/fxcrt/cfx_char.cpp",
948 "core/fxcrt/cfx_char.h",
Dan Sinclairb929ab02017-03-29 15:18:16 -0400949 "core/fxcrt/cfx_decimal.cpp",
950 "core/fxcrt/cfx_decimal.h",
Dan Sinclair9f0e85a2017-08-08 13:23:24 -0400951 "core/fxcrt/css/cfx_css.h",
952 "core/fxcrt/css/cfx_csscolorvalue.cpp",
953 "core/fxcrt/css/cfx_csscolorvalue.h",
954 "core/fxcrt/css/cfx_csscomputedstyle.cpp",
955 "core/fxcrt/css/cfx_csscomputedstyle.h",
956 "core/fxcrt/css/cfx_csscustomproperty.cpp",
957 "core/fxcrt/css/cfx_csscustomproperty.h",
Ryan Harrison55c62a42018-02-01 17:46:34 +0000958 "core/fxcrt/css/cfx_cssdata.cpp",
959 "core/fxcrt/css/cfx_cssdata.h",
Dan Sinclair9f0e85a2017-08-08 13:23:24 -0400960 "core/fxcrt/css/cfx_cssdeclaration.cpp",
961 "core/fxcrt/css/cfx_cssdeclaration.h",
962 "core/fxcrt/css/cfx_cssenumvalue.cpp",
963 "core/fxcrt/css/cfx_cssenumvalue.h",
964 "core/fxcrt/css/cfx_cssexttextbuf.cpp",
965 "core/fxcrt/css/cfx_cssexttextbuf.h",
966 "core/fxcrt/css/cfx_cssnumbervalue.cpp",
967 "core/fxcrt/css/cfx_cssnumbervalue.h",
968 "core/fxcrt/css/cfx_csspropertyholder.cpp",
969 "core/fxcrt/css/cfx_csspropertyholder.h",
970 "core/fxcrt/css/cfx_cssrulecollection.cpp",
971 "core/fxcrt/css/cfx_cssrulecollection.h",
972 "core/fxcrt/css/cfx_cssselector.cpp",
973 "core/fxcrt/css/cfx_cssselector.h",
974 "core/fxcrt/css/cfx_cssstringvalue.cpp",
975 "core/fxcrt/css/cfx_cssstringvalue.h",
976 "core/fxcrt/css/cfx_cssstylerule.cpp",
977 "core/fxcrt/css/cfx_cssstylerule.h",
978 "core/fxcrt/css/cfx_cssstyleselector.cpp",
979 "core/fxcrt/css/cfx_cssstyleselector.h",
980 "core/fxcrt/css/cfx_cssstylesheet.cpp",
981 "core/fxcrt/css/cfx_cssstylesheet.h",
982 "core/fxcrt/css/cfx_csssyntaxparser.cpp",
983 "core/fxcrt/css/cfx_csssyntaxparser.h",
984 "core/fxcrt/css/cfx_csstextbuf.cpp",
985 "core/fxcrt/css/cfx_csstextbuf.h",
986 "core/fxcrt/css/cfx_cssvalue.cpp",
987 "core/fxcrt/css/cfx_cssvalue.h",
988 "core/fxcrt/css/cfx_cssvaluelist.cpp",
989 "core/fxcrt/css/cfx_cssvaluelist.h",
990 "core/fxcrt/css/cfx_cssvaluelistparser.cpp",
991 "core/fxcrt/css/cfx_cssvaluelistparser.h",
pcce3bbfa22016-04-19 12:40:07 -0700992 "core/fxcrt/fx_arabic.cpp",
dsinclaira52ab742016-09-29 13:59:29 -0700993 "core/fxcrt/fx_arabic.h",
Dan Sinclaira32145f2018-03-06 18:53:05 +0000994 "core/fxcrt/locale_iface.h",
Tom Sepezd2e023b2015-12-08 14:36:16 -0800995 ]
996 }
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700997}
998
Lei Zhang1e5ebaa2018-10-11 16:59:02 +0000999jumbo_source_set("fxge") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001000 sources = [
npmcfcc11e2016-10-25 14:26:39 -07001001 "core/fxge/android/cfpf_skiadevicemodule.cpp",
1002 "core/fxge/android/cfpf_skiadevicemodule.h",
npmcfcc11e2016-10-25 14:26:39 -07001003 "core/fxge/android/cfpf_skiafont.cpp",
1004 "core/fxge/android/cfpf_skiafont.h",
npm83828032016-10-21 11:56:53 -07001005 "core/fxge/android/cfpf_skiafontmgr.cpp",
npmcfcc11e2016-10-25 14:26:39 -07001006 "core/fxge/android/cfpf_skiafontmgr.h",
Lei Zhang19319b72017-08-17 01:31:18 -07001007 "core/fxge/android/cfpf_skiapathfont.cpp",
npmcfcc11e2016-10-25 14:26:39 -07001008 "core/fxge/android/cfpf_skiapathfont.h",
1009 "core/fxge/android/cfx_androidfontinfo.cpp",
1010 "core/fxge/android/cfx_androidfontinfo.h",
Dan Sinclair764ec512016-03-14 13:35:12 -04001011 "core/fxge/android/fx_android_imp.cpp",
Dan Sinclair92e22762017-07-10 15:14:26 -04001012 "core/fxge/cfx_cliprgn.cpp",
1013 "core/fxge/cfx_cliprgn.h",
Dan Sinclair7f55a542017-07-13 14:17:10 -04001014 "core/fxge/cfx_color.cpp",
1015 "core/fxge/cfx_color.h",
Dan Sinclaira5085d42017-05-11 16:26:50 -04001016 "core/fxge/cfx_defaultrenderdevice.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001017 "core/fxge/cfx_facecache.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001018 "core/fxge/cfx_facecache.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001019 "core/fxge/cfx_folderfontinfo.cpp",
1020 "core/fxge/cfx_folderfontinfo.h",
1021 "core/fxge/cfx_font.cpp",
1022 "core/fxge/cfx_fontcache.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001023 "core/fxge/cfx_fontcache.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001024 "core/fxge/cfx_fontmapper.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001025 "core/fxge/cfx_fontmapper.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001026 "core/fxge/cfx_fontmgr.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001027 "core/fxge/cfx_fontmgr.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001028 "core/fxge/cfx_gemodule.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001029 "core/fxge/cfx_gemodule.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001030 "core/fxge/cfx_graphstate.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001031 "core/fxge/cfx_graphstate.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001032 "core/fxge/cfx_graphstatedata.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001033 "core/fxge/cfx_graphstatedata.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001034 "core/fxge/cfx_pathdata.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001035 "core/fxge/cfx_pathdata.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001036 "core/fxge/cfx_renderdevice.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001037 "core/fxge/cfx_renderdevice.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001038 "core/fxge/cfx_substfont.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001039 "core/fxge/cfx_substfont.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001040 "core/fxge/cfx_unicodeencoding.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001041 "core/fxge/cfx_unicodeencoding.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001042 "core/fxge/cttfontdesc.cpp",
1043 "core/fxge/cttfontdesc.h",
Nicolas Pena0c972eb2017-04-03 13:43:52 -04001044 "core/fxge/dib/cfx_bitmapcomposer.cpp",
1045 "core/fxge/dib/cfx_bitmapcomposer.h",
1046 "core/fxge/dib/cfx_bitmapstorer.cpp",
1047 "core/fxge/dib/cfx_bitmapstorer.h",
Tom Sepeze6ff2eb2018-08-24 21:55:46 +00001048 "core/fxge/dib/cfx_dibbase.cpp",
1049 "core/fxge/dib/cfx_dibbase.h",
Nicolas Pena192e4d92017-04-03 12:48:00 -04001050 "core/fxge/dib/cfx_dibextractor.cpp",
1051 "core/fxge/dib/cfx_dibextractor.h",
1052 "core/fxge/dib/cfx_dibitmap.cpp",
Nicolas Penafc715c32017-03-31 10:22:11 -04001053 "core/fxge/dib/cfx_dibitmap.h",
Nicolas Penaac66da22017-03-31 14:38:21 -04001054 "core/fxge/dib/cfx_filtereddib.cpp",
Nicolas Penafc715c32017-03-31 10:22:11 -04001055 "core/fxge/dib/cfx_filtereddib.h",
Nicolas Penabdbb0bd2017-03-31 15:39:44 -04001056 "core/fxge/dib/cfx_imagerenderer.cpp",
1057 "core/fxge/dib/cfx_imagerenderer.h",
Nicolas Pena0c972eb2017-04-03 13:43:52 -04001058 "core/fxge/dib/cfx_imagestretcher.cpp",
1059 "core/fxge/dib/cfx_imagestretcher.h",
Nicolas Penabdbb0bd2017-03-31 15:39:44 -04001060 "core/fxge/dib/cfx_imagetransformer.cpp",
1061 "core/fxge/dib/cfx_imagetransformer.h",
Nicolas Penaac66da22017-03-31 14:38:21 -04001062 "core/fxge/dib/cfx_scanlinecompositor.cpp",
1063 "core/fxge/dib/cfx_scanlinecompositor.h",
Nicolas Pena236ce3b2017-04-04 17:47:50 -04001064 "core/fxge/dib/cstretchengine.cpp",
1065 "core/fxge/dib/cstretchengine.h",
Dan Sinclair764ec512016-03-14 13:35:12 -04001066 "core/fxge/dib/fx_dib_main.cpp",
Dan Sinclairf8af5652018-03-06 18:56:33 +00001067 "core/fxge/dib/scanlinecomposer_iface.h",
Dan Sinclair764ec512016-03-14 13:35:12 -04001068 "core/fxge/fontdata/chromefontdata/FoxitDingbats.cpp",
1069 "core/fxge/fontdata/chromefontdata/FoxitFixed.cpp",
1070 "core/fxge/fontdata/chromefontdata/FoxitFixedBold.cpp",
1071 "core/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.cpp",
1072 "core/fxge/fontdata/chromefontdata/FoxitFixedItalic.cpp",
1073 "core/fxge/fontdata/chromefontdata/FoxitSans.cpp",
1074 "core/fxge/fontdata/chromefontdata/FoxitSansBold.cpp",
1075 "core/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.cpp",
1076 "core/fxge/fontdata/chromefontdata/FoxitSansItalic.cpp",
1077 "core/fxge/fontdata/chromefontdata/FoxitSansMM.cpp",
1078 "core/fxge/fontdata/chromefontdata/FoxitSerif.cpp",
1079 "core/fxge/fontdata/chromefontdata/FoxitSerifBold.cpp",
1080 "core/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.cpp",
1081 "core/fxge/fontdata/chromefontdata/FoxitSerifItalic.cpp",
1082 "core/fxge/fontdata/chromefontdata/FoxitSerifMM.cpp",
1083 "core/fxge/fontdata/chromefontdata/FoxitSymbol.cpp",
1084 "core/fxge/fontdata/chromefontdata/chromefontdata.h",
1085 "core/fxge/freetype/fx_freetype.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001086 "core/fxge/fx_dib.h",
1087 "core/fxge/fx_font.h",
1088 "core/fxge/fx_freetype.h",
Dan Sinclair92e22762017-07-10 15:14:26 -04001089 "core/fxge/fx_ge_fontmap.cpp",
1090 "core/fxge/fx_ge_linux.cpp",
1091 "core/fxge/fx_ge_text.cpp",
Dan Sinclairf8af5652018-03-06 18:56:33 +00001092 "core/fxge/renderdevicedriver_iface.cpp",
1093 "core/fxge/renderdevicedriver_iface.h",
1094 "core/fxge/systemfontinfo_iface.h",
npm74847622016-07-29 15:20:25 -07001095 "core/fxge/win32/cfx_windowsdib.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001096 ]
1097
Dan Sinclairbc6c6722015-10-22 14:58:54 -04001098 configs += [
Lei Zhang7b16ba52015-10-26 17:06:53 -07001099 ":fxge_warnings",
weili0abe6522016-06-06 14:41:22 -07001100 ":pdfium_core_config",
Dan Sinclairbc6c6722015-10-22 14:58:54 -04001101 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001102
thestig73c48562016-09-06 14:07:17 -07001103 deps = [
1104 ":fxcrt",
1105 ]
1106
Bruce Dawsonaeac9512017-08-12 21:45:12 -07001107 if (is_component_build || use_system_freetype) {
Bruce Dawsond27998f2017-08-10 16:07:07 -07001108 # ft_adobe_glyph_list is not exported from the Freetype shared library so we
Bruce Dawsonaeac9512017-08-12 21:45:12 -07001109 # need it defined in component builds and builds using system freetype.
Andrew Weintraub5a21af62018-01-24 23:54:02 +00001110 defines = [ "DEFINE_PS_TABLES_DATA" ]
Bruce Dawsond27998f2017-08-10 16:07:07 -07001111 }
Lei Zhang3de50052017-03-29 21:02:13 -07001112
npm1a8946b2016-08-18 10:55:29 -07001113 if (pdf_enable_xfa) {
1114 sources += [
Dan Sinclair92e22762017-07-10 15:14:26 -04001115 "core/fxge/cfx_unicodeencodingex.cpp",
dsinclair74a34fc2016-09-29 16:41:42 -07001116 "core/fxge/cfx_unicodeencodingex.h",
npm1a8946b2016-08-18 10:55:29 -07001117 ]
1118 }
1119
caryclarkaf177fe2016-11-16 10:10:03 -08001120 if (pdf_use_skia || pdf_use_skia_paths) {
Cary Clark59b3a482016-03-17 12:00:39 -04001121 sources += [ "core/fxge/skia/fx_skia_device.cpp" ]
thestig73c48562016-09-06 14:07:17 -07001122 deps += [ "//skia" ]
caryclark749c14c2016-05-19 07:01:03 -07001123 } else {
1124 sources += [
1125 "core/fxge/agg/fx_agg_driver.cpp",
1126 "core/fxge/agg/fx_agg_driver.h",
1127 ]
thestig73c48562016-09-06 14:07:17 -07001128 deps += [ "third_party:fx_agg" ]
Dan Sinclair72a39ce2017-03-21 16:44:03 -04001129 }
npma97fc7c2016-11-07 08:50:04 -08001130
Dan Sinclair72a39ce2017-03-21 16:44:03 -04001131 if (is_mac) {
1132 sources += [ "core/fxge/apple/fx_apple_platform.cpp" ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001133 }
1134
1135 if (is_win) {
1136 sources += [
Tom Sepez3ad49f62018-08-23 15:52:03 +00001137 "core/fxge/cfx_windowsrenderdevice.h",
rbpotter8d94b662017-01-06 08:10:18 -08001138 "core/fxge/win32/cfx_psrenderer.cpp",
1139 "core/fxge/win32/cfx_psrenderer.h",
1140 "core/fxge/win32/cpsoutput.cpp",
1141 "core/fxge/win32/cpsoutput.h",
Dan Sinclair764ec512016-03-14 13:35:12 -04001142 "core/fxge/win32/fx_win32_device.cpp",
1143 "core/fxge/win32/fx_win32_dib.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -04001144 "core/fxge/win32/fx_win32_gdipext.cpp",
1145 "core/fxge/win32/fx_win32_print.cpp",
1146 "core/fxge/win32/win32_int.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001147 ]
Tom Sepez465ed872015-12-09 14:55:41 -08001148 configs -= [ "//build/config/win:lean_and_mean" ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001149 }
npma97fc7c2016-11-07 08:50:04 -08001150
1151 if (is_mac) {
1152 sources += [
1153 "core/fxge/apple/apple_int.h",
1154 "core/fxge/apple/fx_mac_imp.cpp",
1155 "core/fxge/apple/fx_quartz_device.cpp",
1156 ]
1157 }
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001158}
1159
Lei Zhang1e5ebaa2018-10-11 16:59:02 +00001160jumbo_source_set("pwl") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001161 sources = [
Dan Sinclairc411eb92017-07-25 09:39:30 -04001162 "fpdfsdk/pwl/cpwl_appstream.cpp",
1163 "fpdfsdk/pwl/cpwl_appstream.h",
1164 "fpdfsdk/pwl/cpwl_button.cpp",
1165 "fpdfsdk/pwl/cpwl_button.h",
1166 "fpdfsdk/pwl/cpwl_caret.cpp",
1167 "fpdfsdk/pwl/cpwl_caret.h",
1168 "fpdfsdk/pwl/cpwl_combo_box.cpp",
1169 "fpdfsdk/pwl/cpwl_combo_box.h",
1170 "fpdfsdk/pwl/cpwl_edit.cpp",
1171 "fpdfsdk/pwl/cpwl_edit.h",
1172 "fpdfsdk/pwl/cpwl_edit_ctrl.cpp",
1173 "fpdfsdk/pwl/cpwl_edit_ctrl.h",
1174 "fpdfsdk/pwl/cpwl_edit_impl.cpp",
1175 "fpdfsdk/pwl/cpwl_edit_impl.h",
1176 "fpdfsdk/pwl/cpwl_font_map.cpp",
1177 "fpdfsdk/pwl/cpwl_font_map.h",
1178 "fpdfsdk/pwl/cpwl_icon.cpp",
1179 "fpdfsdk/pwl/cpwl_icon.h",
1180 "fpdfsdk/pwl/cpwl_list_box.cpp",
1181 "fpdfsdk/pwl/cpwl_list_box.h",
1182 "fpdfsdk/pwl/cpwl_list_impl.cpp",
1183 "fpdfsdk/pwl/cpwl_list_impl.h",
1184 "fpdfsdk/pwl/cpwl_scroll_bar.cpp",
1185 "fpdfsdk/pwl/cpwl_scroll_bar.h",
1186 "fpdfsdk/pwl/cpwl_special_button.cpp",
1187 "fpdfsdk/pwl/cpwl_special_button.h",
1188 "fpdfsdk/pwl/cpwl_timer.cpp",
1189 "fpdfsdk/pwl/cpwl_timer.h",
1190 "fpdfsdk/pwl/cpwl_timer_handler.cpp",
1191 "fpdfsdk/pwl/cpwl_timer_handler.h",
1192 "fpdfsdk/pwl/cpwl_wnd.cpp",
1193 "fpdfsdk/pwl/cpwl_wnd.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001194 ]
weili0abe6522016-06-06 14:41:22 -07001195 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -07001196 deps = [
1197 ":fxcrt",
1198 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001199}
1200
Lei Zhang1e5ebaa2018-10-11 16:59:02 +00001201jumbo_source_set("formfiller") {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001202 sources = [
Dan Sinclairedbb3192016-03-21 09:08:24 -04001203 "fpdfsdk/formfiller/cba_fontmap.cpp",
1204 "fpdfsdk/formfiller/cba_fontmap.h",
Dan Sinclairb9eed2f2017-07-10 11:35:18 -04001205 "fpdfsdk/formfiller/cffl_button.cpp",
1206 "fpdfsdk/formfiller/cffl_button.h",
Dan Sinclairedbb3192016-03-21 09:08:24 -04001207 "fpdfsdk/formfiller/cffl_checkbox.cpp",
1208 "fpdfsdk/formfiller/cffl_checkbox.h",
1209 "fpdfsdk/formfiller/cffl_combobox.cpp",
1210 "fpdfsdk/formfiller/cffl_combobox.h",
1211 "fpdfsdk/formfiller/cffl_formfiller.cpp",
1212 "fpdfsdk/formfiller/cffl_formfiller.h",
dsinclairb94d7c92016-09-21 12:07:00 -07001213 "fpdfsdk/formfiller/cffl_interactiveformfiller.cpp",
1214 "fpdfsdk/formfiller/cffl_interactiveformfiller.h",
Dan Sinclairedbb3192016-03-21 09:08:24 -04001215 "fpdfsdk/formfiller/cffl_listbox.cpp",
1216 "fpdfsdk/formfiller/cffl_listbox.h",
1217 "fpdfsdk/formfiller/cffl_pushbutton.cpp",
1218 "fpdfsdk/formfiller/cffl_pushbutton.h",
1219 "fpdfsdk/formfiller/cffl_radiobutton.cpp",
1220 "fpdfsdk/formfiller/cffl_radiobutton.h",
1221 "fpdfsdk/formfiller/cffl_textfield.cpp",
1222 "fpdfsdk/formfiller/cffl_textfield.h",
Lei Zhangb4fee4d2017-08-01 18:34:43 -07001223 "fpdfsdk/formfiller/cffl_textobject.cpp",
1224 "fpdfsdk/formfiller/cffl_textobject.h",
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001225 ]
weili0abe6522016-06-06 14:41:22 -07001226 configs += [ ":pdfium_core_config" ]
thestig73c48562016-09-06 14:07:17 -07001227 deps = [
1228 ":fxcrt",
1229 ]
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -07001230}
Tom Sepezc706fc02014-11-14 13:39:20 -08001231
dsinclairb3f24672016-07-12 10:42:14 -07001232if (pdf_enable_xfa) {
Lei Zhang1e5ebaa2018-10-11 16:59:02 +00001233 jumbo_source_set("fpdfxfa") {
Tom Sepezb36747d2015-12-08 15:49:25 -08001234 sources = [
dsinclair521b7502016-11-02 13:02:28 -07001235 "fpdfsdk/fpdfxfa/cpdfxfa_context.cpp",
1236 "fpdfsdk/fpdfxfa/cpdfxfa_context.h",
dsinclaira440bb32016-09-14 07:01:54 -07001237 "fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp",
dsinclairbec76922016-09-29 16:52:30 -07001238 "fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h",
dsinclair4d29e782016-10-04 14:02:47 -07001239 "fpdfsdk/fpdfxfa/cpdfxfa_page.cpp",
1240 "fpdfsdk/fpdfxfa/cpdfxfa_page.h",
1241 "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.cpp",
1242 "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h",
Tom Sepez452b4f32015-10-13 09:27:27 -07001243 ]
1244 deps = [
thestig73c48562016-09-06 14:07:17 -07001245 ":fxcrt",
Lei Zhanga7dec322018-10-12 18:36:51 +00001246 "fxjs",
Lei Zhangfaa51452018-10-12 18:33:51 +00001247 "xfa",
Tom Sepezb36747d2015-12-08 15:49:25 -08001248 ]
weili0abe6522016-06-06 14:41:22 -07001249 configs += [ ":pdfium_core_config" ]
Tom Sepezb36747d2015-12-08 15:49:25 -08001250 }
Tom Sepezc706fc02014-11-14 13:39:20 -08001251}
Tom Sepez04681f32015-01-09 13:59:19 -08001252
1253test("pdfium_unittests") {
Lei Zhangdbaf3b82018-10-11 17:02:43 +00001254 testonly = true
Tom Sepez04681f32015-01-09 13:59:19 -08001255 sources = [
tsepezf5cabbf2016-11-21 12:08:22 -08001256 "core/fdrm/crypto/fx_crypt_unittest.cpp",
Nicolas Pena4bd0d992017-02-02 14:32:21 -05001257 "core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp",
Nicolas Pena169b3012017-05-26 14:38:03 -04001258 "core/fpdfapi/font/cpdf_cmapparser_unittest.cpp",
1259 "core/fpdfapi/font/cpdf_tounicodemap_unittest.cpp",
Nicolas Pena67912952017-03-10 15:15:33 -05001260 "core/fpdfapi/page/cpdf_devicecs_unittest.cpp",
Tom Sepezed1c5802018-06-19 16:23:52 +00001261 "core/fpdfapi/page/cpdf_pageobjectholder_unittest.cpp",
Lei Zhang89869032017-11-06 20:01:13 +00001262 "core/fpdfapi/page/cpdf_psengine_unittest.cpp",
npm014b0122016-11-07 08:42:11 -08001263 "core/fpdfapi/page/cpdf_streamcontentparser_unittest.cpp",
1264 "core/fpdfapi/page/cpdf_streamparser_unittest.cpp",
dsinclair488b7ad2016-10-04 11:55:50 -07001265 "core/fpdfapi/parser/cpdf_array_unittest.cpp",
Artem Strygin626c2a52017-11-02 19:59:38 +00001266 "core/fpdfapi/parser/cpdf_cross_ref_avail_unittest.cpp",
npm3cad5962016-10-21 16:02:15 -07001267 "core/fpdfapi/parser/cpdf_document_unittest.cpp",
Artem Strygin71702262017-10-30 10:44:01 +00001268 "core/fpdfapi/parser/cpdf_hint_tables_unittest.cpp",
Artem Strygin16b77c72017-09-01 16:03:58 +03001269 "core/fpdfapi/parser/cpdf_indirect_object_holder_unittest.cpp",
Artem Strygin304eefb2017-08-29 00:26:42 +03001270 "core/fpdfapi/parser/cpdf_object_avail_unittest.cpp",
dsinclair488b7ad2016-10-04 11:55:50 -07001271 "core/fpdfapi/parser/cpdf_object_unittest.cpp",
Artem Stryginf57cad42017-08-14 23:35:52 +03001272 "core/fpdfapi/parser/cpdf_object_walker_unittest.cpp",
Artem Strygin304eefb2017-08-29 00:26:42 +03001273 "core/fpdfapi/parser/cpdf_page_object_avail_unittest.cpp",
dsinclair488b7ad2016-10-04 11:55:50 -07001274 "core/fpdfapi/parser/cpdf_parser_unittest.cpp",
Artem Strygin834ebec2017-07-27 14:01:32 +03001275 "core/fpdfapi/parser/cpdf_read_validator_unittest.cpp",
dsinclair488b7ad2016-10-04 11:55:50 -07001276 "core/fpdfapi/parser/cpdf_simple_parser_unittest.cpp",
Artem Strygin7c694a42018-07-11 16:25:14 +00001277 "core/fpdfapi/parser/cpdf_stream_acc_unittest.cpp",
dsinclair488b7ad2016-10-04 11:55:50 -07001278 "core/fpdfapi/parser/cpdf_syntax_parser_unittest.cpp",
1279 "core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp",
Tom Sepeza7b15592018-04-16 19:22:57 +00001280 "core/fpdfapi/parser/fpdf_parser_utility_unittest.cpp",
Dan Sinclair53a80932018-03-28 20:00:35 +00001281 "core/fpdfdoc/cpdf_defaultappearance_unittest.cpp",
dsinclairc59fa882016-11-08 06:55:40 -08001282 "core/fpdfdoc/cpdf_dest_unittest.cpp",
dsinclair448c4332016-08-02 12:07:35 -07001283 "core/fpdfdoc/cpdf_filespec_unittest.cpp",
thestig695aac52016-08-25 09:13:52 -07001284 "core/fpdfdoc/cpdf_formfield_unittest.cpp",
dan sinclair00e72c12018-04-13 18:04:56 +00001285 "core/fpdfdoc/cpdf_metadata_unittest.cpp",
Jane Liu67ccef72017-07-19 13:10:50 -04001286 "core/fpdfdoc/cpdf_nametree_unittest.cpp",
Dan Sinclair3a4c4082017-05-25 14:21:20 -04001287 "core/fpdftext/cpdf_linkextract_unittest.cpp",
rbpotterdb764702017-01-12 10:31:43 -08001288 "core/fxcodec/codec/fx_codec_a85_unittest.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -04001289 "core/fxcodec/codec/fx_codec_jpx_unittest.cpp",
rbpotterdb764702017-01-12 10:31:43 -08001290 "core/fxcodec/codec/fx_codec_rle_unittest.cpp",
Dan Sinclair0eb74762017-03-28 10:19:22 -04001291 "core/fxcodec/jbig2/JBig2_BitStream_unittest.cpp",
tsepeze21501d2016-08-02 13:36:16 -07001292 "core/fxcodec/jbig2/JBig2_Image_unittest.cpp",
Tom Sepeza2c2a9d2018-06-27 21:14:22 +00001293 "core/fxcrt/autorestorer_unittest.cpp",
Ryan Harrison275e2602017-09-18 14:23:18 -04001294 "core/fxcrt/bytestring_unittest.cpp",
Lei Zhang94250062018-05-23 23:12:10 +00001295 "core/fxcrt/cfx_bitstream_unittest.cpp",
Ryan Harrisonccf206a2017-11-14 16:05:53 +00001296 "core/fxcrt/cfx_seekablemultistream_unittest.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -04001297 "core/fxcrt/fx_bidi_unittest.cpp",
Dan Sinclair233360e2017-04-25 15:08:04 -04001298 "core/fxcrt/fx_coordinates_unittest.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -04001299 "core/fxcrt/fx_extension_unittest.cpp",
Tom Sepeza9deea92017-04-25 10:37:47 -07001300 "core/fxcrt/fx_memory_unittest.cpp",
Tom Sepez61f1d622018-09-13 21:40:49 +00001301 "core/fxcrt/fx_number_unittest.cpp",
Tom Sepeze8b3e0c2017-09-08 10:18:37 -07001302 "core/fxcrt/fx_random_unittest.cpp",
Dan Sinclair2a1c8ac2017-08-31 16:03:17 -04001303 "core/fxcrt/fx_string_unittest.cpp",
Dan Sinclair764ec512016-03-14 13:35:12 -04001304 "core/fxcrt/fx_system_unittest.cpp",
Dan Sinclairde44d152017-09-21 14:52:41 -04001305 "core/fxcrt/maybe_owned_unittest.cpp",
Dan Sinclair65ecca42017-09-21 15:25:32 -04001306 "core/fxcrt/observable_unittest.cpp",
Tom Sepezc7639702018-04-11 21:18:38 +00001307 "core/fxcrt/pdfium_span_unittest.cpp",
Dan Sinclair0b950422017-09-21 15:49:49 -04001308 "core/fxcrt/retain_ptr_unittest.cpp",
Dan Sinclair9317f8f2017-09-21 16:19:19 -04001309 "core/fxcrt/shared_copy_on_write_unittest.cpp",
Dan Sinclair8e9e3d82017-09-21 16:49:32 -04001310 "core/fxcrt/string_pool_template_unittest.cpp",
Dan Sinclairaee0db02017-09-21 16:53:58 -04001311 "core/fxcrt/unowned_ptr_unittest.cpp",
Dan Sinclairb872a932017-09-21 17:05:15 -04001312 "core/fxcrt/weak_ptr_unittest.cpp",
Ryan Harrison275e2602017-09-18 14:23:18 -04001313 "core/fxcrt/widestring_unittest.cpp",
Dan Sinclair048afc62018-05-01 17:01:54 +00001314 "core/fxcrt/xml/cfx_xmlchardata_unittest.cpp",
Dan Sinclair70180642018-05-02 16:02:03 +00001315 "core/fxcrt/xml/cfx_xmldocument_unittest.cpp",
Dan Sinclair048afc62018-05-01 17:01:54 +00001316 "core/fxcrt/xml/cfx_xmlelement_unittest.cpp",
1317 "core/fxcrt/xml/cfx_xmlinstruction_unittest.cpp",
1318 "core/fxcrt/xml/cfx_xmlnode_unittest.cpp",
dan sinclair19ae9bf2018-04-16 16:54:27 +00001319 "core/fxcrt/xml/cfx_xmlparser_unittest.cpp",
Dan Sinclair048afc62018-05-01 17:01:54 +00001320 "core/fxcrt/xml/cfx_xmltext_unittest.cpp",
Henrique Nakashima83a01492018-03-12 17:18:14 +00001321 "core/fxge/dib/cfx_dibitmap_unittest.cpp",
Nicolas Pena236ce3b2017-04-04 17:47:50 -04001322 "core/fxge/dib/cstretchengine_unittest.cpp",
Dan Sinclair971a6742018-03-28 19:23:25 +00001323 "fpdfsdk/fpdf_catalog_unittest.cpp",
1324 "fpdfsdk/fpdf_doc_unittest.cpp",
1325 "fpdfsdk/fpdf_editimg_unittest.cpp",
Lei Zhangdbaf3b82018-10-11 17:02:43 +00001326 "testing/pseudo_retainable.h",
Tom Sepez64ee2c32017-04-24 15:04:25 -07001327 "testing/unit_test_main.cpp",
Tom Sepez04681f32015-01-09 13:59:19 -08001328 ]
1329 deps = [
Tom Sepezd831dc72015-10-19 16:04:22 -07001330 ":pdfium",
1331 ":test_support",
Tom Sepez16b9d772017-04-17 09:07:48 -07001332 "//testing/gmock",
Dan Sinclairfffc9632016-03-08 08:57:05 -05001333 "//testing/gtest",
Tom Sepez04681f32015-01-09 13:59:19 -08001334 ]
Dan Sinclair30410ce2016-03-16 10:20:24 -04001335 include_dirs = []
Tom Sepezd2e023b2015-12-08 14:36:16 -08001336 if (pdf_enable_xfa) {
1337 sources += [
Dan Sinclair9f0e85a2017-08-08 13:23:24 -04001338 "core/fxcrt/css/cfx_cssdeclaration_unittest.cpp",
1339 "core/fxcrt/css/cfx_cssstylesheet_unittest.cpp",
1340 "core/fxcrt/css/cfx_cssvaluelistparser_unittest.cpp",
Henrique Nakashimaa1e87072017-09-05 17:34:19 -04001341 "fxbarcode/oned/BC_OnedCodaBarWriter_unittest.cpp",
Lei Zhang3684a152017-04-24 16:22:54 -07001342 "fxbarcode/oned/BC_OnedCode128Writer_unittest.cpp",
Henrique Nakashima067b7852017-09-05 15:42:06 -04001343 "fxbarcode/oned/BC_OnedCode39Writer_unittest.cpp",
Henrique Nakashimaab3c1112017-09-01 16:01:44 -04001344 "fxbarcode/oned/BC_OnedEAN13Writer_unittest.cpp",
Henrique Nakashima3c5944c2017-09-01 16:40:48 -04001345 "fxbarcode/oned/BC_OnedEAN8Writer_unittest.cpp",
Henrique Nakashima74655222017-09-06 11:11:49 -04001346 "fxbarcode/oned/BC_OnedUPCAWriter_unittest.cpp",
Dan Sinclaire7786682017-03-29 15:18:41 -04001347 "fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp",
Dan Sinclair68eefa62017-08-30 12:16:16 -04001348 "xfa/fde/cfde_texteditengine_unittest.cpp",
Dan Sinclair6c5ea102017-06-05 09:53:06 -04001349 "xfa/fgas/crt/cfgas_formatstring_unittest.cpp",
Dan Sinclair994acdc2017-04-18 13:56:39 -04001350 "xfa/fgas/layout/cfx_rtfbreak_unittest.cpp",
Dan Sinclair5e0b2712018-05-10 21:21:05 +00001351 "xfa/fgas/layout/cfx_txtbreak_unittest.cpp",
Tom Sepez5628fd72017-04-27 14:58:53 -07001352 "xfa/fwl/cfx_barcode_unittest.cpp",
Dan Sinclair24ef6332017-07-24 10:52:57 -04001353 "xfa/fxfa/cxfa_ffbarcode_unittest.cpp",
1354 "xfa/fxfa/cxfa_textparser_unittest.cpp",
Dan Sinclair5caa34c2018-06-06 18:00:14 +00001355 "xfa/fxfa/fm2js/cxfa_fmexpression_unittest.cpp",
Dan Sinclair2e9d47a2017-05-16 15:14:02 -04001356 "xfa/fxfa/fm2js/cxfa_fmlexer_unittest.cpp",
Ryan Harrisondb1e8a52017-07-27 14:53:20 -04001357 "xfa/fxfa/fm2js/cxfa_fmparser_unittest.cpp",
Dan Sinclair2e9d47a2017-05-16 15:14:02 -04001358 "xfa/fxfa/fm2js/cxfa_fmsimpleexpression_unittest.cpp",
Dan Sinclairba367062018-05-01 17:02:54 +00001359 "xfa/fxfa/parser/cxfa_document_parser_unittest.cpp",
Tom Sepez8b4a3c72018-04-17 17:59:58 +00001360 "xfa/fxfa/parser/cxfa_localevalue_unittest.cpp",
Dan Sinclairf351ba02017-11-27 18:28:06 +00001361 "xfa/fxfa/parser/cxfa_node_unittest.cpp",
Dan Sinclair40116772017-11-14 21:29:35 +00001362 "xfa/fxfa/parser/cxfa_nodeiteratortemplate_unittest.cpp",
dan sinclaircce4d312018-04-16 17:50:07 +00001363 "xfa/fxfa/parser/cxfa_xmllocale_unittest.cpp",
dsinclair39fdfc32016-07-21 12:09:45 -07001364 "xfa/fxfa/parser/xfa_utils_unittest.cpp",
Tom Sepezd2e023b2015-12-08 14:36:16 -08001365 ]
Ryan Harrison607f3cd2018-05-09 21:06:22 +00001366 if (pdf_enable_xfa_gif) {
1367 sources += [
1368 "core/fxcodec/gif/cfx_gifcontext_unittest.cpp",
1369 "core/fxcodec/gif/cfx_lzwdecompressor_unittest.cpp",
1370 ]
1371 }
Tom Sepezd2e023b2015-12-08 14:36:16 -08001372 }
caryclarkaf177fe2016-11-16 10:10:03 -08001373 if (pdf_use_skia || pdf_use_skia_paths) {
caryclarke89391e2016-06-29 07:10:49 -07001374 sources += [ "core/fxge/skia/fx_skia_device_unittest.cpp" ]
1375 deps += [ "//skia" ]
1376 }
Wei Li614d20a2016-03-15 13:55:12 -07001377 if (pdf_enable_v8) {
Henrique Nakashima3a4ebcc2017-07-14 14:24:42 -04001378 sources += [
Tom Sepez3f8ee5e2018-02-09 18:26:09 +00001379 "fxjs/cfx_v8_unittest.cpp",
Tom Sepez3e5fac82018-02-12 21:49:04 +00001380 "fxjs/cfx_v8_unittest.h",
1381 "fxjs/cfxjs_engine_unittest.cpp",
Dan Sinclaire0345a42017-10-30 20:20:42 +00001382 "fxjs/cjs_publicmethods_unittest.cpp",
1383 "fxjs/cjs_util_unittest.cpp",
Henrique Nakashima3a4ebcc2017-07-14 14:24:42 -04001384 ]
Lei Zhanga7dec322018-10-12 18:36:51 +00001385 deps += [ "fxjs" ]
Tom Sepez3f8ee5e2018-02-09 18:26:09 +00001386 configs += [ "//v8:external_startup_data" ]
Wei Li614d20a2016-03-15 13:55:12 -07001387 }
weili0abe6522016-06-06 14:41:22 -07001388 configs += [ ":pdfium_core_config" ]
jbudorick7f3a15f2016-06-10 06:28:40 -07001389 if (is_android) {
jbudorick7f3a15f2016-06-10 06:28:40 -07001390 use_raw_android_executable = true
1391 }
Tom Anderson16ccc8b2018-05-30 01:53:00 +00001392 if (is_clang) {
1393 # Suppress no override warning for overridden functions.
1394 cflags = [ "-Wno-inconsistent-missing-override" ]
1395 }
Tom Sepez04681f32015-01-09 13:59:19 -08001396}
Tom Sepez1b1bb492015-01-22 17:36:32 -08001397
1398test("pdfium_embeddertests") {
Lei Zhangdbaf3b82018-10-11 17:02:43 +00001399 testonly = true
Tom Sepez1b1bb492015-01-22 17:36:32 -08001400 sources = [
Artem Strygind24b97e2017-08-09 18:50:59 +03001401 "core/fpdfapi/edit/cpdf_creator_embeddertest.cpp",
Henrique Nakashimab92ec182018-04-11 21:55:49 +00001402 "core/fpdfapi/page/cpdf_docpagedata_embeddertest.cpp",
Henrique Nakashima97b47dc2018-04-13 20:04:27 +00001403 "core/fpdfapi/page/cpdf_function_embeddertest.cpp",
Dan Sinclair5acacd32017-05-25 14:04:59 -04001404 "core/fpdfapi/page/cpdf_stitchfunc_embeddertest.cpp",
dsinclair488b7ad2016-10-04 11:55:50 -07001405 "core/fpdfapi/parser/cpdf_parser_embeddertest.cpp",
1406 "core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp",
1407 "core/fpdfapi/parser/fpdf_parser_decode_embeddertest.cpp",
dsinclair69d9c682016-10-04 12:18:35 -07001408 "core/fpdfapi/render/fpdf_render_loadimage_embeddertest.cpp",
1409 "core/fpdfapi/render/fpdf_render_pattern_embeddertest.cpp",
weili6faf9f92016-08-02 11:34:08 -07001410 "core/fxcodec/codec/fx_codec_embeddertest.cpp",
Dan Sinclair92e22762017-07-10 15:14:26 -04001411 "core/fxge/fx_ge_text_embeddertest.cpp",
Dan Sinclaircbf76e62018-03-28 21:00:35 +00001412 "fpdfsdk/cpdfsdk_annotiterator_embeddertest.cpp",
Dan Sinclair971a6742018-03-28 19:23:25 +00001413 "fpdfsdk/fpdf_annot_embeddertest.cpp",
1414 "fpdfsdk/fpdf_attachment_embeddertest.cpp",
Dan Sinclairf766ad22016-03-14 13:51:24 -04001415 "fpdfsdk/fpdf_dataavail_embeddertest.cpp",
Dan Sinclair971a6742018-03-28 19:23:25 +00001416 "fpdfsdk/fpdf_doc_embeddertest.cpp",
1417 "fpdfsdk/fpdf_edit_embeddertest.cpp",
1418 "fpdfsdk/fpdf_editpath_embeddertest.cpp",
1419 "fpdfsdk/fpdf_ext_embeddertest.cpp",
tsepezd0ecd892016-11-08 17:30:04 -08001420 "fpdfsdk/fpdf_flatten_embeddertest.cpp",
Dan Sinclair971a6742018-03-28 19:23:25 +00001421 "fpdfsdk/fpdf_formfill_embeddertest.cpp",
1422 "fpdfsdk/fpdf_ppo_embeddertest.cpp",
1423 "fpdfsdk/fpdf_save_embeddertest.cpp",
thestig9067fd62016-11-23 14:10:06 -08001424 "fpdfsdk/fpdf_structtree_embeddertest.cpp",
Dan Sinclair971a6742018-03-28 19:23:25 +00001425 "fpdfsdk/fpdf_text_embeddertest.cpp",
Lei Zhangd8a8f272018-06-08 18:03:38 +00001426 "fpdfsdk/fpdf_transformpage_embeddertest.cpp",
Dan Sinclair971a6742018-03-28 19:23:25 +00001427 "fpdfsdk/fpdf_view_c_api_test.c",
1428 "fpdfsdk/fpdf_view_c_api_test.h",
1429 "fpdfsdk/fpdf_view_embeddertest.cpp",
Dan Sinclairc411eb92017-07-25 09:39:30 -04001430 "fpdfsdk/pwl/cpwl_combo_box_embeddertest.cpp",
1431 "fpdfsdk/pwl/cpwl_edit_embeddertest.cpp",
Tom Sepez1b1bb492015-01-22 17:36:32 -08001432 "testing/embedder_test.cpp",
1433 "testing/embedder_test.h",
Dan Sinclair5553d8b2018-01-03 09:44:28 -05001434 "testing/embedder_test_main.cpp",
Tom Sepeza310e002015-02-27 13:03:07 -08001435 "testing/embedder_test_mock_delegate.h",
Tom Sepez6efc0ad2015-06-02 17:11:18 -07001436 "testing/embedder_test_timer_handling_delegate.h",
Artem Strygin0e60b9e2017-09-28 18:46:03 +03001437 "testing/fake_file_access.cpp",
1438 "testing/fake_file_access.h",
1439 "testing/range_set.cpp",
1440 "testing/range_set.h",
Tom Sepez1b1bb492015-01-22 17:36:32 -08001441 ]
1442 deps = [
Henrique Nakashimadb269572018-01-16 19:02:15 +00001443 ":image_diff",
Tom Sepez452b4f32015-10-13 09:27:27 -07001444 ":pdfium",
Tom Sepezd831dc72015-10-19 16:04:22 -07001445 ":test_support",
Dan Sinclairfffc9632016-03-08 08:57:05 -05001446 "//testing/gmock",
1447 "//testing/gtest",
Tom Sepez1b1bb492015-01-22 17:36:32 -08001448 ]
dsinclair685bb882016-04-20 07:32:39 -07001449 include_dirs = [ "testing/gmock/include" ]
thestigc65e11e2016-08-30 21:56:33 -07001450 configs += [ ":pdfium_core_config" ]
1451
Tom Sepez452b4f32015-10-13 09:27:27 -07001452 if (pdf_enable_v8) {
Lei Zhang1ac47eb2015-12-21 11:04:44 -08001453 sources += [
Tom Sepezb7c7df62018-02-09 19:08:59 +00001454 "fxjs/cfxjs_engine_embeddertest.cpp",
Dan Sinclaire0345a42017-10-30 20:20:42 +00001455 "fxjs/cjs_publicmethods_embeddertest.cpp",
Lei Zhang1ac47eb2015-12-21 11:04:44 -08001456 "testing/js_embedder_test.cpp",
1457 "testing/js_embedder_test.h",
1458 ]
Lei Zhanga7dec322018-10-12 18:36:51 +00001459 deps += [ "fxjs" ]
Jochen Eisinger7ed503d2015-12-10 14:38:06 +01001460 configs += [ "//v8:external_startup_data" ]
Tom Sepez452b4f32015-10-13 09:27:27 -07001461 }
Dan Sinclair14aacd52017-05-18 14:11:29 -04001462 if (pdf_enable_xfa) {
1463 sources += [
Dan Sinclair3fff90a2017-11-01 13:12:39 +00001464 "fxjs/cfxjse_formcalc_context_embeddertest.cpp",
Dan Sinclair14aacd52017-05-18 14:11:29 -04001465 "testing/xfa_js_embedder_test.cpp",
1466 "testing/xfa_js_embedder_test.h",
Dan Sinclairb8777a22017-09-20 16:21:31 -04001467 "xfa/fwl/cfwl_edit_embeddertest.cpp",
Dan Sinclair876efaa2018-04-12 13:39:28 +00001468 "xfa/fxfa/parser/cxfa_document_parser_embeddertest.cpp",
Dan Sinclair14aacd52017-05-18 14:11:29 -04001469 ]
1470 }
jbudorick7f3a15f2016-06-10 06:28:40 -07001471 if (is_android) {
1472 ignore_all_data_deps = true
1473 use_raw_android_executable = true
1474 }
Tom Sepez1b1bb492015-01-22 17:36:32 -08001475}
dsinclair685bb882016-04-20 07:32:39 -07001476
1477if (pdf_is_standalone) {
Lei Zhang0a624272018-10-11 16:58:32 +00001478 jumbo_source_set("samples") {
dsinclair685bb882016-04-20 07:32:39 -07001479 testonly = true
1480 deps = [
1481 "//samples",
1482 ]
1483 }
Lei Zhang143959d2017-06-22 12:20:58 -07001484
1485 executable("pdfium_diff") {
1486 testonly = true
1487 sources = [
1488 "testing/image_diff/image_diff.cpp",
1489 ]
1490 deps = [
1491 ":image_diff",
1492 ":pdfium",
Lei Zhang143959d2017-06-22 12:20:58 -07001493 "//build/win:default_exe_manifest",
1494 ]
1495 configs -= [ "//build/config/compiler:chromium_code" ]
1496 configs += [ "//build/config/compiler:no_chromium_code" ]
Ryan Harrison7b8f88a2017-07-13 16:05:31 -04001497 configs += [ ":pdfium_core_config" ]
Lei Zhang143959d2017-06-22 12:20:58 -07001498 }
1499
thestig62114cf2016-11-08 12:59:30 -08001500 group("fuzzers") {
1501 testonly = true
1502 deps = [
Lei Zhangfa4d93a2018-05-25 21:47:19 +00001503 "//testing/fuzzers",
thestig62114cf2016-11-08 12:59:30 -08001504 ]
1505 }
dsinclair685bb882016-04-20 07:32:39 -07001506}
Lei Zhangf02c8bf2017-04-01 01:35:01 -07001507
1508group("pdfium_all") {
1509 testonly = true
1510 deps = [
1511 ":pdfium_embeddertests",
1512 ":pdfium_unittests",
1513 ]
1514 if (pdf_is_standalone) {
1515 deps += [
1516 ":fuzzers",
Lei Zhang143959d2017-06-22 12:20:58 -07001517 ":pdfium_diff",
Lei Zhangf02c8bf2017-04-01 01:35:01 -07001518 ":samples",
1519 ]
1520 }
1521}