blob: fa0ab01cd64c48f7d59b573019682472b9ef9b1e [file] [log] [blame]
Lei Zhang8241df72015-11-06 14:38:48 -08001# Copyright 2015 PDFium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
John Abd-El-Malek5110c472014-05-17 22:33:34 -07005{
6 'variables': {
weili5f3b41b2016-05-16 17:52:17 -07007 'chromium_code': 1,
Dan Sinclair09ca1622016-03-07 14:52:12 -05008
9 'variables': {
10 'clang_use_pdfium_plugins%': 0,
11 },
12 'clang_use_pdfium_plugins%': '<(clang_use_pdfium_plugins)',
13
John Abd-El-Malek5110c472014-05-17 22:33:34 -070014 'pdf_use_skia%': 0,
Tom Sepez452b4f32015-10-13 09:27:27 -070015 'pdf_enable_v8%': 1,
Tom Sepezd2e023b2015-12-08 14:36:16 -080016 'pdf_enable_xfa%': 0, # Set to 1 by standalone.gypi in a standalone build.
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080017 'conditions': [
18 ['OS=="linux"', {
19 'bundle_freetype%': 0,
20 }, { # On Android there's no system FreeType. On Windows and Mac, only a
21 # few methods are used from it.
22 'bundle_freetype%': 1,
Tom Sepezd8bc3d52015-02-24 15:07:41 -080023 }],
Dan Sinclair09ca1622016-03-07 14:52:12 -050024 ['clang_use_pdfium_plugins==1', {
25 'variables': {
26 'conditions': [
27 ['OS!="win"', {
28 'variables': {
29 'conditions': [
30 ['OS=="mac" or OS=="ios"', {
31 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib',
32 }, { # OS != "mac" or OS != "ios"
33 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so',
34 }],
35 ],
36 },
37 'clang_dynlib_flags%': '-Xclang -load -Xclang <(clang_lib_path) ',
38 }, { # OS == "win"
39 # On Windows, the plugin is built directly into clang, so there's
40 # no need to load it dynamically.
41 'clang_dynlib_flags%': '',
42 }],
43 ],
44 'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xclang check-templates '
45 '-Xclang -plugin-arg-find-bad-constructs -Xclang follow-macro-expansion ',
46 },
47 'clang_pdfium_plugins_flags%':
48 '<(clang_dynlib_flags)'
49 '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args)',
50 }],
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080051 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070052 },
53 'target_defaults': {
54 'defines' : [
Bo Xu043f07f2014-10-03 11:06:35 -070055 'OPJ_STATIC',
John Abd-El-Malek385729b2015-02-06 15:51:11 -080056 'PNG_PREFIX',
John Abd-El-Malek385729b2015-02-06 15:51:11 -080057 'PNG_USE_READ_MACROS',
Tom Sepez6fd997b2015-06-18 17:51:37 -070058 'V8_DEPRECATION_WARNINGS',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070059 ],
Bo Xu4c764f32014-12-19 14:29:17 -080060 'include_dirs': [
Lei Zhang8241df72015-11-06 14:38:48 -080061 # This is implicit in GN.
62 '<(DEPTH)',
63 '.',
Bo Xu4c764f32014-12-19 14:29:17 -080064 'third_party/freetype/include',
Oliver Changcec3f682015-11-05 16:00:40 -080065 'third_party/freetype/include/freetype',
Bo Xu4c764f32014-12-19 14:29:17 -080066 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070067 'conditions': [
68 ['pdf_use_skia==1', {
69 'defines': ['_SKIA_SUPPORT_'],
70 }],
Tom Sepez452b4f32015-10-13 09:27:27 -070071 ['pdf_enable_v8==1', {
72 'defines': ['PDF_ENABLE_V8'],
73 }],
Tom Sepeza8a39e22015-10-12 15:47:07 -070074 ['pdf_enable_xfa==1', {
75 'defines': ['PDF_ENABLE_XFA'],
76 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070077 ['OS=="linux"', {
John Abd-El-Malek5110c472014-05-17 22:33:34 -070078 'conditions': [
79 ['target_arch=="x64"', {
Nico Weberb72977f2014-07-18 15:50:30 -070080 'defines' : [ '_FX_CPU_=_FX_X64_', ],
81 'cflags': [ '-fPIC', ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070082 }],
83 ['target_arch=="ia32"', {
Nico Weberb72977f2014-07-18 15:50:30 -070084 'defines' : [ '_FX_CPU_=_FX_X86_', ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070085 }],
86 ],
87 }],
Dan Sinclair09ca1622016-03-07 14:52:12 -050088 ['clang==1 and clang_use_pdfium_plugins==1', {
89 'cflags': [
90 '<@(clang_pdfium_plugins_flags)',
91 ],
92 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070093 ],
94 'msvs_disabled_warnings': [
weili47ca6922016-03-31 15:08:27 -070095 4267,
John Abd-El-Malek5110c472014-05-17 22:33:34 -070096 ],
97 },
98 'targets': [
99 {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700100 'target_name': 'pdfium',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700101 'type': 'static_library',
102 'dependencies': [
Bo Xu4c764f32014-12-19 14:29:17 -0800103 'third_party/third_party.gyp:bigint',
Tom Sepez35425892015-02-05 10:03:18 -0800104 'third_party/third_party.gyp:pdfium_base',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700105 'fdrm',
106 'fpdfdoc',
107 'fpdfapi',
108 'fpdftext',
109 'formfiller',
110 'fxcodec',
111 'fxcrt',
112 'fxedit',
113 'fxge',
114 'javascript',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700115 'pdfwindow',
116 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700117 'sources': [
dsinclairb9590102016-04-27 06:38:59 -0700118 'fpdfsdk/cfx_systemhandler.cpp',
119 'fpdfsdk/cfx_systemhandler.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700120 'fpdfsdk/include/fsdk_actionhandler.h',
121 'fpdfsdk/include/fsdk_annothandler.h',
122 'fpdfsdk/include/fsdk_baseannot.h',
123 'fpdfsdk/include/fsdk_baseform.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400124 'fpdfsdk/fpdfdoc.cpp',
125 'fpdfsdk/fpdfeditimg.cpp',
126 'fpdfsdk/fpdfeditpage.cpp',
127 'fpdfsdk/fpdfformfill.cpp',
128 'fpdfsdk/fpdfppo.cpp',
129 'fpdfsdk/fpdfsave.cpp',
130 'fpdfsdk/fpdftext.cpp',
131 'fpdfsdk/fpdfview.cpp',
132 'fpdfsdk/fpdf_dataavail.cpp',
133 'fpdfsdk/fpdf_ext.cpp',
134 'fpdfsdk/fpdf_flatten.cpp',
135 'fpdfsdk/fpdf_progressive.cpp',
136 'fpdfsdk/fpdf_searchex.cpp',
137 'fpdfsdk/fpdf_sysfontinfo.cpp',
138 'fpdfsdk/fpdf_transformpage.cpp',
139 'fpdfsdk/fsdk_actionhandler.cpp',
140 'fpdfsdk/fsdk_annothandler.cpp',
141 'fpdfsdk/fsdk_baseannot.cpp',
142 'fpdfsdk/fsdk_baseform.cpp',
143 'fpdfsdk/fsdk_mgr.cpp',
144 'fpdfsdk/fsdk_rendercontext.cpp',
Tom Sepez1ed8a212015-05-11 15:25:39 -0700145 'public/fpdf_dataavail.h',
146 'public/fpdf_doc.h',
147 'public/fpdf_edit.h',
148 'public/fpdf_ext.h',
149 'public/fpdf_flatten.h',
150 'public/fpdf_formfill.h',
151 'public/fpdf_fwlevent.h',
152 'public/fpdf_ppo.h',
153 'public/fpdf_progressive.h',
154 'public/fpdf_save.h',
155 'public/fpdf_searchex.h',
156 'public/fpdf_sysfontinfo.h',
157 'public/fpdf_text.h',
158 'public/fpdf_transformpage.h',
159 'public/fpdfview.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700160 ],
161 'conditions': [
Tom Sepezc46d0002015-11-30 15:46:36 -0800162 ['pdf_enable_xfa==1', {
163 'dependencies': [
164 'fpdfxfa',
165 ],
166 }],
John Abd-El-Malekef4dce42015-02-02 16:52:07 -0800167 ['bundle_freetype==1', {
168 'dependencies': [
Lei Zhang41aa8412015-11-06 10:42:38 -0800169 'third_party/third_party.gyp:fx_freetype',
John Abd-El-Malekef4dce42015-02-02 16:52:07 -0800170 ],
171 }, {
172 'link_settings': {
173 'libraries': [
174 '-lfreetype',
175 ],
176 },
177 }],
John Abd-El-Malek26119322014-05-26 18:27:11 -0700178 ],
179 'all_dependent_settings': {
180 'msvs_settings': {
181 'VCLinkerTool': {
182 'AdditionalDependencies': [
183 'advapi32.lib',
184 'gdi32.lib',
185 'user32.lib',
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700186 ],
187 },
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700188 },
John Abd-El-Malek26119322014-05-26 18:27:11 -0700189 'conditions': [
190 ['OS=="mac"', {
191 'link_settings': {
192 'libraries': [
193 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
194 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
195 ],
196 },
197 }],
198 ],
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700199 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700200 },
201 {
202 'target_name': 'fdrm',
203 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700204 'sources': [
Dan Sinclair13ee55a2016-03-14 15:56:00 -0400205 'core/fdrm/crypto/include/fx_crypt.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400206 'core/fdrm/crypto/fx_crypt.cpp',
207 'core/fdrm/crypto/fx_crypt_aes.cpp',
208 'core/fdrm/crypto/fx_crypt_sha.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700209 ],
210 },
211 {
212 'target_name': 'fpdfdoc',
213 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700214 'sources': [
dsinclaire530fb72016-04-06 12:09:37 -0700215 'core/fpdfdoc/include/fpdf_doc.h',
216 'core/fpdfdoc/include/fpdf_tagged.h',
dsinclairc7a73492016-04-05 12:01:42 -0700217 'core/fpdfdoc/cpdf_variabletext.cpp',
dsinclair777b3332016-03-31 20:03:08 -0700218 'core/fpdfdoc/cpvt_color.cpp',
219 'core/fpdfdoc/cpvt_color.h',
220 'core/fpdfdoc/cpvt_dash.h',
dsinclairc7a73492016-04-05 12:01:42 -0700221 'core/fpdfdoc/cpvt_floatrect.h',
dsinclair777b3332016-03-31 20:03:08 -0700222 'core/fpdfdoc/cpvt_fontmap.cpp',
223 'core/fpdfdoc/cpvt_fontmap.h',
224 'core/fpdfdoc/cpvt_generateap.cpp',
225 'core/fpdfdoc/cpvt_generateap.h',
dsinclairc7a73492016-04-05 12:01:42 -0700226 'core/fpdfdoc/cpvt_lineinfo.h',
227 'core/fpdfdoc/cpvt_sectioninfo.h',
228 'core/fpdfdoc/cpvt_wordinfo.h',
thestig9c845c32016-05-13 11:08:41 -0700229 'core/fpdfdoc/csection.cpp',
dsinclairc7a73492016-04-05 12:01:42 -0700230 'core/fpdfdoc/csection.h',
thestig9c845c32016-05-13 11:08:41 -0700231 'core/fpdfdoc/ctypeset.cpp',
dsinclairc7a73492016-04-05 12:01:42 -0700232 'core/fpdfdoc/ctypeset.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400233 'core/fpdfdoc/doc_action.cpp',
234 'core/fpdfdoc/doc_annot.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400235 'core/fpdfdoc/doc_basic.cpp',
236 'core/fpdfdoc/doc_bookmark.cpp',
237 'core/fpdfdoc/doc_form.cpp',
238 'core/fpdfdoc/doc_formcontrol.cpp',
239 'core/fpdfdoc/doc_formfield.cpp',
240 'core/fpdfdoc/doc_link.cpp',
241 'core/fpdfdoc/doc_metadata.cpp',
242 'core/fpdfdoc/doc_ocg.cpp',
243 'core/fpdfdoc/doc_tagged.cpp',
244 'core/fpdfdoc/doc_utils.cpp',
245 'core/fpdfdoc/doc_utils.h',
246 'core/fpdfdoc/doc_viewerPreferences.cpp',
247 'core/fpdfdoc/doc_vt.cpp',
dsinclairc7a73492016-04-05 12:01:42 -0700248 'core/fpdfdoc/include/cpdf_variabletext.h',
249 'core/fpdfdoc/include/cpvt_line.h',
250 'core/fpdfdoc/include/cpvt_secprops.h',
251 'core/fpdfdoc/include/cpvt_section.h',
252 'core/fpdfdoc/include/cpvt_word.h',
253 'core/fpdfdoc/include/cpvt_wordplace.h',
254 'core/fpdfdoc/include/cpvt_wordprops.h',
255 'core/fpdfdoc/include/cpvt_wordrange.h',
caryclarkf9924422016-04-12 05:08:17 -0700256 'core/fpdfdoc/include/ipvt_fontmap.h',
dsinclair696fc8b2016-05-04 07:52:55 -0700257 'core/fpdfdoc/pdf_vt.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400258 'core/fpdfdoc/tagged_int.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700259 ],
260 },
261 {
262 'target_name': 'fpdfapi',
263 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700264 'sources': [
Dan Sinclair764ec512016-03-14 13:35:12 -0400265 'core/fpdfapi/fpdf_basic_module.cpp',
266 'core/fpdfapi/fpdf_cmaps/cmap_int.h',
267 'core/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp',
268 'core/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp',
269 'core/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp',
270 'core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.cpp',
271 'core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp',
272 'core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp',
273 'core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp',
274 'core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp',
275 'core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp',
276 'core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp',
277 'core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp',
278 'core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp',
279 'core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp',
280 'core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp',
281 'core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp',
282 'core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp',
283 'core/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp',
284 'core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.cpp',
285 'core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp',
286 'core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp',
287 'core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp',
288 'core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp',
289 'core/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp',
290 'core/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp',
291 'core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp',
292 'core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp',
293 'core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp',
294 'core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp',
295 'core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp',
296 'core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp',
297 'core/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp',
298 'core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp',
299 'core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp',
300 'core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp',
301 'core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp',
302 'core/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp',
303 'core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp',
304 'core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp',
305 'core/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp',
306 'core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.cpp',
307 'core/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp',
308 'core/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp',
309 'core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp',
310 'core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp',
311 'core/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp',
312 'core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp',
313 'core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp',
314 'core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp',
315 'core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp',
316 'core/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp',
317 'core/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp',
318 'core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp',
319 'core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp',
320 'core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp',
321 'core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp',
322 'core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp',
323 'core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp',
324 'core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp',
325 'core/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp',
326 'core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp',
327 'core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp',
328 'core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp',
329 'core/fpdfapi/fpdf_edit/editint.h',
Dan Sinclair455a4192016-03-16 09:48:56 -0400330 'core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400331 'core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp',
Dan Sinclairaa403d32016-03-15 14:57:22 -0400332 'core/fpdfapi/fpdf_edit/include/cpdf_creator.h',
Dan Sinclair455a4192016-03-16 09:48:56 -0400333 'core/fpdfapi/fpdf_edit/include/cpdf_pagecontentgenerator.h',
dan sinclair61b2fc72016-03-23 19:21:44 -0400334 'core/fpdfapi/fpdf_font/cpdf_cidfont.cpp',
335 'core/fpdfapi/fpdf_font/cpdf_cidfont.h',
336 'core/fpdfapi/fpdf_font/cpdf_font.cpp',
337 'core/fpdfapi/fpdf_font/cpdf_fontencoding.cpp',
338 'core/fpdfapi/fpdf_font/cpdf_simplefont.cpp',
339 'core/fpdfapi/fpdf_font/cpdf_simplefont.h',
340 'core/fpdfapi/fpdf_font/cpdf_truetypefont.cpp',
341 'core/fpdfapi/fpdf_font/cpdf_truetypefont.h',
342 'core/fpdfapi/fpdf_font/cpdf_type1font.cpp',
343 'core/fpdfapi/fpdf_font/cpdf_type1font.h',
344 'core/fpdfapi/fpdf_font/cpdf_type3char.cpp',
345 'core/fpdfapi/fpdf_font/cpdf_type3char.h',
346 'core/fpdfapi/fpdf_font/cpdf_type3font.cpp',
347 'core/fpdfapi/fpdf_font/cpdf_type3font.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400348 'core/fpdfapi/fpdf_font/font_int.h',
349 'core/fpdfapi/fpdf_font/fpdf_font.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400350 'core/fpdfapi/fpdf_font/fpdf_font_cid.cpp',
dan sinclair61b2fc72016-03-23 19:21:44 -0400351 'core/fpdfapi/fpdf_font/include/cpdf_font.h',
352 'core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400353 'core/fpdfapi/fpdf_font/ttgsubtable.cpp',
354 'core/fpdfapi/fpdf_font/ttgsubtable.h',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400355 'core/fpdfapi/fpdf_page/cpdf_allstates.cpp',
356 'core/fpdfapi/fpdf_page/cpdf_allstates.h',
357 'core/fpdfapi/fpdf_page/cpdf_clippath.cpp',
358 'core/fpdfapi/fpdf_page/cpdf_clippathdata.cpp',
359 'core/fpdfapi/fpdf_page/cpdf_clippathdata.h',
dan sinclair61b2fc72016-03-23 19:21:44 -0400360 'core/fpdfapi/fpdf_page/cpdf_color.cpp',
361 'core/fpdfapi/fpdf_page/cpdf_colorspace.cpp',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400362 'core/fpdfapi/fpdf_page/cpdf_colorstate.cpp',
363 'core/fpdfapi/fpdf_page/cpdf_colorstate.h',
364 'core/fpdfapi/fpdf_page/cpdf_colorstatedata.cpp',
dan sinclair2e8798f2016-03-24 12:56:07 -0400365 'core/fpdfapi/fpdf_page/cpdf_colorstatedata.h',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400366 'core/fpdfapi/fpdf_page/cpdf_contentmark.cpp',
367 'core/fpdfapi/fpdf_page/cpdf_contentmark.h',
368 'core/fpdfapi/fpdf_page/cpdf_contentmarkdata.cpp',
369 'core/fpdfapi/fpdf_page/cpdf_contentmarkdata.h',
370 'core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp',
371 'core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h',
dan sinclair61b2fc72016-03-23 19:21:44 -0400372 'core/fpdfapi/fpdf_page/cpdf_countedobject.h',
Dan Sinclair455a4192016-03-16 09:48:56 -0400373 'core/fpdfapi/fpdf_page/cpdf_form.cpp',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400374 'core/fpdfapi/fpdf_page/cpdf_formobject.cpp',
375 'core/fpdfapi/fpdf_page/cpdf_generalstate.cpp',
376 'core/fpdfapi/fpdf_page/cpdf_generalstatedata.cpp',
377 'core/fpdfapi/fpdf_page/cpdf_graphicstates.cpp',
378 'core/fpdfapi/fpdf_page/cpdf_graphicstates.h',
379 'core/fpdfapi/fpdf_page/cpdf_graphstate.h',
dan sinclair61b2fc72016-03-23 19:21:44 -0400380 'core/fpdfapi/fpdf_page/cpdf_image.cpp',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400381 'core/fpdfapi/fpdf_page/cpdf_imageobject.cpp',
dan sinclair61b2fc72016-03-23 19:21:44 -0400382 'core/fpdfapi/fpdf_page/cpdf_meshstream.cpp',
383 'core/fpdfapi/fpdf_page/cpdf_meshstream.h',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400384 'core/fpdfapi/fpdf_page/cpdf_page.cpp',
dsinclaird647a6b2016-04-26 13:13:20 -0700385 "core/fpdfapi/fpdf_page/cpdf_pagemodule.cpp",
386 "core/fpdfapi/fpdf_page/cpdf_pagemodule.h",
Dan Sinclair584b1e62016-03-21 09:15:45 -0400387 'core/fpdfapi/fpdf_page/cpdf_pageobject.cpp',
388 'core/fpdfapi/fpdf_page/cpdf_pageobjectholder.cpp',
Dan Sinclair455a4192016-03-16 09:48:56 -0400389 'core/fpdfapi/fpdf_page/cpdf_pageobjectlist.cpp',
390 'core/fpdfapi/fpdf_page/cpdf_pageobjectlist.h',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400391 'core/fpdfapi/fpdf_page/cpdf_pathobject.cpp',
dan sinclair61b2fc72016-03-23 19:21:44 -0400392 'core/fpdfapi/fpdf_page/cpdf_pattern.cpp',
393 'core/fpdfapi/fpdf_page/cpdf_pattern.h',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400394 'core/fpdfapi/fpdf_page/cpdf_shadingobject.cpp',
dan sinclair61b2fc72016-03-23 19:21:44 -0400395 'core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp',
396 'core/fpdfapi/fpdf_page/cpdf_shadingpattern.h',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400397 'core/fpdfapi/fpdf_page/cpdf_textobject.cpp',
398 'core/fpdfapi/fpdf_page/cpdf_textstate.cpp',
399 'core/fpdfapi/fpdf_page/cpdf_textstate.h',
400 'core/fpdfapi/fpdf_page/cpdf_textstatedata.cpp',
dan sinclair61b2fc72016-03-23 19:21:44 -0400401 'core/fpdfapi/fpdf_page/cpdf_tilingpattern.cpp',
dan sinclair2e8798f2016-03-24 12:56:07 -0400402 'core/fpdfapi/fpdf_page/cpdf_tilingpattern.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400403 'core/fpdfapi/fpdf_page/fpdf_page_colors.cpp',
404 'core/fpdfapi/fpdf_page/fpdf_page_doc.cpp',
405 'core/fpdfapi/fpdf_page/fpdf_page_func.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400406 'core/fpdfapi/fpdf_page/fpdf_page_parser.cpp',
407 'core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400408 'core/fpdfapi/fpdf_page/include/cpdf_clippath.h',
dan sinclair61b2fc72016-03-23 19:21:44 -0400409 'core/fpdfapi/fpdf_page/include/cpdf_color.h',
410 'core/fpdfapi/fpdf_page/include/cpdf_colorspace.h',
Dan Sinclair455a4192016-03-16 09:48:56 -0400411 'core/fpdfapi/fpdf_page/include/cpdf_form.h',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400412 'core/fpdfapi/fpdf_page/include/cpdf_formobject.h',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400413 'core/fpdfapi/fpdf_page/include/cpdf_generalstatedata.h',
dan sinclair61b2fc72016-03-23 19:21:44 -0400414 'core/fpdfapi/fpdf_page/include/cpdf_image.h',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400415 'core/fpdfapi/fpdf_page/include/cpdf_imageobject.h',
Dan Sinclair455a4192016-03-16 09:48:56 -0400416 'core/fpdfapi/fpdf_page/include/cpdf_page.h',
Dan Sinclair584b1e62016-03-21 09:15:45 -0400417 'core/fpdfapi/fpdf_page/include/cpdf_pageobject.h',
418 'core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h',
419 'core/fpdfapi/fpdf_page/include/cpdf_path.h',
420 'core/fpdfapi/fpdf_page/include/cpdf_pathobject.h',
421 'core/fpdfapi/fpdf_page/include/cpdf_shadingobject.h',
422 'core/fpdfapi/fpdf_page/include/cpdf_textobject.h',
423 'core/fpdfapi/fpdf_page/include/cpdf_textstatedata.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400424 'core/fpdfapi/fpdf_page/pageint.h',
425 'core/fpdfapi/fpdf_parser/cfdf_document.cpp',
426 'core/fpdfapi/fpdf_parser/cpdf_array.cpp',
427 'core/fpdfapi/fpdf_parser/cpdf_boolean.cpp',
Dan Sinclairaa403d32016-03-15 14:57:22 -0400428 'core/fpdfapi/fpdf_parser/cpdf_boolean.h',
dsinclair2fa0e132016-04-19 10:32:45 -0700429 'core/fpdfapi/fpdf_parser/cpdf_crypto_handler.cpp',
430 'core/fpdfapi/fpdf_parser/cpdf_crypto_handler.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400431 'core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp',
432 'core/fpdfapi/fpdf_parser/cpdf_data_avail.h',
433 'core/fpdfapi/fpdf_parser/cpdf_dictionary.cpp',
434 'core/fpdfapi/fpdf_parser/cpdf_document.cpp',
435 'core/fpdfapi/fpdf_parser/cpdf_hint_tables.cpp',
436 'core/fpdfapi/fpdf_parser/cpdf_hint_tables.h',
437 'core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp',
438 'core/fpdfapi/fpdf_parser/cpdf_name.cpp',
439 'core/fpdfapi/fpdf_parser/cpdf_null.cpp',
Dan Sinclairaa403d32016-03-15 14:57:22 -0400440 'core/fpdfapi/fpdf_parser/cpdf_null.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400441 'core/fpdfapi/fpdf_parser/cpdf_number.cpp',
442 'core/fpdfapi/fpdf_parser/cpdf_object.cpp',
443 'core/fpdfapi/fpdf_parser/cpdf_parser.cpp',
444 'core/fpdfapi/fpdf_parser/cpdf_reference.cpp',
dsinclair2fa0e132016-04-19 10:32:45 -0700445 'core/fpdfapi/fpdf_parser/cpdf_security_handler.cpp',
446 'core/fpdfapi/fpdf_parser/cpdf_security_handler.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400447 'core/fpdfapi/fpdf_parser/cpdf_simple_parser.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400448 'core/fpdfapi/fpdf_parser/cpdf_stream.cpp',
Tom Sepez92bbb6f2016-03-15 09:33:58 -0700449 'core/fpdfapi/fpdf_parser/cpdf_stream_acc.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400450 'core/fpdfapi/fpdf_parser/cpdf_string.cpp',
451 'core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp',
452 'core/fpdfapi/fpdf_parser/cpdf_syntax_parser.h',
453 'core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp',
454 'core/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp',
455 'core/fpdfapi/fpdf_parser/fpdf_parser_utility.h',
Dan Sinclairaa403d32016-03-15 14:57:22 -0400456 'core/fpdfapi/fpdf_parser/include/cfdf_document.h',
457 'core/fpdfapi/fpdf_parser/include/cpdf_array.h',
458 'core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h',
459 'core/fpdfapi/fpdf_parser/include/cpdf_document.h',
460 'core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h',
461 'core/fpdfapi/fpdf_parser/include/cpdf_name.h',
462 'core/fpdfapi/fpdf_parser/include/cpdf_number.h',
463 'core/fpdfapi/fpdf_parser/include/cpdf_object.h',
464 'core/fpdfapi/fpdf_parser/include/cpdf_parser.h',
465 'core/fpdfapi/fpdf_parser/include/cpdf_reference.h',
466 'core/fpdfapi/fpdf_parser/include/cpdf_simple_parser.h',
467 'core/fpdfapi/fpdf_parser/include/cpdf_stream.h',
468 'core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h',
469 'core/fpdfapi/fpdf_parser/include/cpdf_string.h',
470 'core/fpdfapi/fpdf_parser/include/fpdf_parser_decode.h',
471 'core/fpdfapi/fpdf_parser/include/ipdf_data_avail.h',
Dan Sinclairaa403d32016-03-15 14:57:22 -0400472 'core/fpdfapi/fpdf_render/cpdf_pagerendercache.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400473 'core/fpdfapi/fpdf_render/fpdf_render.cpp',
474 'core/fpdfapi/fpdf_render/fpdf_render_cache.cpp',
475 'core/fpdfapi/fpdf_render/fpdf_render_image.cpp',
476 'core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp',
477 'core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp',
478 'core/fpdfapi/fpdf_render/fpdf_render_text.cpp',
Dan Sinclairaa403d32016-03-15 14:57:22 -0400479 'core/fpdfapi/fpdf_render/include/cpdf_renderoptions.h',
480 'core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h',
481 'core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h',
482 'core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400483 'core/fpdfapi/fpdf_render/render_int.h',
Dan Sinclairaa403d32016-03-15 14:57:22 -0400484 'core/fpdfapi/include/cpdf_modulemgr.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700485 ],
486 },
487 {
488 'target_name': 'fpdftext',
489 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700490 'sources': [
dsinclaira28ae382016-04-19 10:39:24 -0700491 'core/fpdftext/include/cpdf_linkextract.h',
492 'core/fpdftext/include/cpdf_textpage.h',
493 'core/fpdftext/include/cpdf_textpagefind.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400494 'core/fpdftext/fpdf_text_int.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400495 'core/fpdftext/unicodenormalizationdata.cpp',
496 'core/fpdftext/unicodenormalizationdata.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700497 ],
498 },
499 {
500 'target_name': 'fxcodec',
501 'type': 'static_library',
Tom Sepez8be55752015-06-17 11:05:02 -0700502 'dependencies': [
Lei Zhang8241df72015-11-06 14:38:48 -0800503 '<(libjpeg_gyp_path):libjpeg',
Tom Sepez8be55752015-06-17 11:05:02 -0700504 'third_party/third_party.gyp:fx_lcms2',
Tom Sepez6fd997b2015-06-18 17:51:37 -0700505 'third_party/third_party.gyp:fx_libopenjpeg',
Tom Sepez6f93de52015-06-19 12:57:10 -0700506 'third_party/third_party.gyp:fx_zlib',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700507 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700508 'sources': [
dsinclair86e54742016-04-06 12:30:31 -0700509 'core/fxcodec/include/fx_codec.h',
510 'core/fxcodec/include/fx_codec_def.h',
511 'core/fxcodec/include/fx_codec_flate.h',
dsinclaird55e11e2016-04-12 11:21:22 -0700512 'core/fxcodec/codec/ccodec_basicmodule.h',
513 'core/fxcodec/codec/ccodec_faxmodule.h',
514 'core/fxcodec/codec/ccodec_flatemodule.h',
515 'core/fxcodec/codec/ccodec_iccmodule.h',
516 'core/fxcodec/codec/ccodec_jbig2module.h',
517 'core/fxcodec/codec/ccodec_jpegmodule.h',
518 'core/fxcodec/codec/ccodec_jpxmodule.h',
519 'core/fxcodec/codec/ccodec_scanlinedecoder.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400520 'core/fxcodec/codec/codec_int.h',
521 'core/fxcodec/codec/fx_codec.cpp',
522 'core/fxcodec/codec/fx_codec_fax.cpp',
523 'core/fxcodec/codec/fx_codec_flate.cpp',
524 'core/fxcodec/codec/fx_codec_icc.cpp',
525 'core/fxcodec/codec/fx_codec_jbig.cpp',
526 'core/fxcodec/codec/fx_codec_jpeg.cpp',
527 'core/fxcodec/codec/fx_codec_jpx_opj.cpp',
528 'core/fxcodec/jbig2/JBig2_ArithDecoder.cpp',
529 'core/fxcodec/jbig2/JBig2_ArithDecoder.h',
530 'core/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp',
531 'core/fxcodec/jbig2/JBig2_ArithIntDecoder.h',
532 'core/fxcodec/jbig2/JBig2_BitStream.cpp',
533 'core/fxcodec/jbig2/JBig2_BitStream.h',
534 'core/fxcodec/jbig2/JBig2_Context.cpp',
535 'core/fxcodec/jbig2/JBig2_Context.h',
536 'core/fxcodec/jbig2/JBig2_Define.h',
537 'core/fxcodec/jbig2/JBig2_GrdProc.cpp',
538 'core/fxcodec/jbig2/JBig2_GrdProc.h',
539 'core/fxcodec/jbig2/JBig2_GrrdProc.cpp',
540 'core/fxcodec/jbig2/JBig2_GrrdProc.h',
541 'core/fxcodec/jbig2/JBig2_GsidProc.cpp',
542 'core/fxcodec/jbig2/JBig2_GsidProc.h',
543 'core/fxcodec/jbig2/JBig2_HtrdProc.cpp',
544 'core/fxcodec/jbig2/JBig2_HtrdProc.h',
545 'core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp',
546 'core/fxcodec/jbig2/JBig2_HuffmanDecoder.h',
547 'core/fxcodec/jbig2/JBig2_HuffmanTable.cpp',
548 'core/fxcodec/jbig2/JBig2_HuffmanTable.h',
Tom Sepez4161c5c2016-03-21 12:26:54 -0700549 'core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400550 'core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h',
551 'core/fxcodec/jbig2/JBig2_Image.cpp',
552 'core/fxcodec/jbig2/JBig2_Image.h',
553 'core/fxcodec/jbig2/JBig2_List.h',
554 'core/fxcodec/jbig2/JBig2_Page.h',
555 'core/fxcodec/jbig2/JBig2_PatternDict.cpp',
556 'core/fxcodec/jbig2/JBig2_PatternDict.h',
557 'core/fxcodec/jbig2/JBig2_PddProc.cpp',
558 'core/fxcodec/jbig2/JBig2_PddProc.h',
559 'core/fxcodec/jbig2/JBig2_SddProc.cpp',
560 'core/fxcodec/jbig2/JBig2_SddProc.h',
561 'core/fxcodec/jbig2/JBig2_Segment.cpp',
562 'core/fxcodec/jbig2/JBig2_Segment.h',
563 'core/fxcodec/jbig2/JBig2_SymbolDict.cpp',
564 'core/fxcodec/jbig2/JBig2_SymbolDict.h',
565 'core/fxcodec/jbig2/JBig2_TrdProc.cpp',
566 'core/fxcodec/jbig2/JBig2_TrdProc.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700567 ],
Tom Sepez8be55752015-06-17 11:05:02 -0700568 'msvs_settings': {
569 'VCCLCompilerTool': {
570 # Unresolved warnings in fx_codec_jpx_opj.cpp
571 # https://code.google.com/p/pdfium/issues/detail?id=100
572 'WarnAsError': 'false',
573 },
574 },
John Abd-El-Malekdef5c7d2014-06-09 16:07:18 -0700575 'conditions': [
Tom Sepezc46d0002015-11-30 15:46:36 -0800576 ['pdf_enable_xfa==1', {
577 'dependencies': [
578 'third_party/third_party.gyp:fx_lpng',
579 'third_party/third_party.gyp:fx_tiff',
580 ],
581 'sources': [
dsinclaird55e11e2016-04-12 11:21:22 -0700582 'core/fxcodec/codec/ccodec_bmpmodule.h',
583 'core/fxcodec/codec/ccodec_gifmodule.h',
584 'core/fxcodec/codec/ccodec_pngmodule.h',
585 'core/fxcodec/codec/ccodec_tiffmodule.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400586 'core/fxcodec/codec/fx_codec_bmp.cpp',
587 'core/fxcodec/codec/fx_codec_gif.cpp',
588 'core/fxcodec/codec/fx_codec_png.cpp',
589 'core/fxcodec/codec/fx_codec_progress.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400590 'core/fxcodec/codec/fx_codec_tiff.cpp',
dsinclaird55e11e2016-04-12 11:21:22 -0700591 'core/fxcodec/codec/include/ccodec_progressivedecoder.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400592 'core/fxcodec/lbmp/fx_bmp.cpp',
593 'core/fxcodec/lbmp/fx_bmp.h',
594 'core/fxcodec/lgif/fx_gif.cpp',
595 'core/fxcodec/lgif/fx_gif.h',
Tom Sepezc46d0002015-11-30 15:46:36 -0800596 ],
597 }],
John Abd-El-Malekdef5c7d2014-06-09 16:07:18 -0700598 ['os_posix==1', {
Dan Sinclair764ec512016-03-14 13:35:12 -0400599 # core/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
John Abd-El-Malekdef5c7d2014-06-09 16:07:18 -0700600 # conversion to check that an address is 16-bit aligned (benign).
601 'cflags_c': [ '-Wno-pointer-to-int-cast' ],
602 }],
603 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700604 },
605 {
606 'target_name': 'fxcrt',
607 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700608 'sources': [
tsepezf7036ba2016-05-13 15:02:43 -0700609 'core/fxcrt/cfx_string_c_template.h',
tsepez6fb598b2016-04-05 12:40:47 -0700610 'core/fxcrt/cfx_string_data_template.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400611 'core/fxcrt/extension.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400612 'core/fxcrt/fx_basic_array.cpp',
613 'core/fxcrt/fx_basic_bstring.cpp',
614 'core/fxcrt/fx_basic_buffer.cpp',
615 'core/fxcrt/fx_basic_coords.cpp',
616 'core/fxcrt/fx_basic_gcc.cpp',
617 'core/fxcrt/fx_basic_list.cpp',
618 'core/fxcrt/fx_basic_memmgr.cpp',
619 'core/fxcrt/fx_basic_plex.cpp',
620 'core/fxcrt/fx_basic_utf.cpp',
621 'core/fxcrt/fx_basic_util.cpp',
622 'core/fxcrt/fx_basic_wstring.cpp',
623 'core/fxcrt/fx_bidi.cpp',
Dan Sinclaira8a28e02016-03-23 15:41:39 -0400624 'core/fxcrt/fx_bidi.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400625 'core/fxcrt/fx_extension.cpp',
626 'core/fxcrt/fx_ucddata.cpp',
627 'core/fxcrt/fx_unicode.cpp',
628 'core/fxcrt/fx_xml_composer.cpp',
629 'core/fxcrt/fx_xml_parser.cpp',
tsepez602aebc2016-03-29 15:04:21 -0700630 'core/fxcrt/fxcrt_platforms.cpp',
631 'core/fxcrt/fxcrt_platforms.h',
632 'core/fxcrt/fxcrt_posix.cpp',
633 'core/fxcrt/fxcrt_posix.h',
634 'core/fxcrt/fxcrt_stream.cpp',
635 'core/fxcrt/fxcrt_windows.cpp',
636 'core/fxcrt/fxcrt_windows.h',
637 'core/fxcrt/include/cfx_retain_ptr.h',
caryclark5838dbd2016-04-04 10:00:54 -0700638 'core/fxcrt/include/fx_basic.h',
639 'core/fxcrt/include/fx_coordinates.h',
640 'core/fxcrt/include/fx_ext.h',
641 'core/fxcrt/include/fx_memory.h',
642 'core/fxcrt/include/fx_safe_types.h',
643 'core/fxcrt/include/fx_stream.h',
644 'core/fxcrt/include/fx_string.h',
645 'core/fxcrt/include/fx_system.h',
646 'core/fxcrt/include/fx_ucd.h',
647 'core/fxcrt/include/fx_xml.h',
Dan Sinclair764ec512016-03-14 13:35:12 -0400648 'core/fxcrt/plex.h',
649 'core/fxcrt/xml_int.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700650 ],
Tom Sepezc46d0002015-11-30 15:46:36 -0800651 'conditions': [
652 ['pdf_enable_xfa==1', {
653 'sources': [
Dan Sinclair764ec512016-03-14 13:35:12 -0400654 'core/fxcrt/fx_arabic.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400655 'core/fxcrt/fx_basic_maps.cpp',
dsinclair17f382a2016-04-12 16:55:56 -0700656 'core/fxcrt/include/fx_arabic.h',
657 'core/fxcrt/include/fx_arb.h',
Tom Sepezc46d0002015-11-30 15:46:36 -0800658 ],
659 }],
660 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700661 },
662 {
663 'target_name': 'fxge',
664 'type': 'static_library',
Tom Sepezb7d358b2015-06-17 10:01:00 -0700665 'dependencies': [
666 'third_party/third_party.gyp:fx_agg',
667 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700668 'sources': [
Dan Sinclair764ec512016-03-14 13:35:12 -0400669 'core/fxge/agg/fx_agg_driver.h',
670 'core/fxge/agg/fx_agg_driver.cpp',
671 'core/fxge/android/fpf_skiafont.cpp',
672 'core/fxge/android/fpf_skiafont.h',
673 'core/fxge/android/fpf_skiafontmgr.cpp',
674 'core/fxge/android/fpf_skiafontmgr.h',
675 'core/fxge/android/fpf_skiamodule.cpp',
676 'core/fxge/android/fpf_skiamodule.h',
677 'core/fxge/android/fx_android_font.cpp',
678 'core/fxge/android/fx_android_font.h',
679 'core/fxge/android/fx_android_imp.cpp',
680 'core/fxge/apple/apple_int.h',
681 'core/fxge/apple/fx_apple_platform.cpp',
682 'core/fxge/apple/fx_mac_imp.cpp',
683 'core/fxge/apple/fx_quartz_device.cpp',
684 'core/fxge/dib/dib_int.h',
685 'core/fxge/dib/fx_dib_composite.cpp',
686 'core/fxge/dib/fx_dib_convert.cpp',
687 'core/fxge/dib/fx_dib_engine.cpp',
688 'core/fxge/dib/fx_dib_main.cpp',
689 'core/fxge/dib/fx_dib_transform.cpp',
690 'core/fxge/fontdata/chromefontdata/chromefontdata.h',
691 'core/fxge/fontdata/chromefontdata/FoxitDingbats.cpp',
692 'core/fxge/fontdata/chromefontdata/FoxitFixed.cpp',
693 'core/fxge/fontdata/chromefontdata/FoxitFixedBold.cpp',
694 'core/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.cpp',
695 'core/fxge/fontdata/chromefontdata/FoxitFixedItalic.cpp',
696 'core/fxge/fontdata/chromefontdata/FoxitSans.cpp',
697 'core/fxge/fontdata/chromefontdata/FoxitSansBold.cpp',
698 'core/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.cpp',
699 'core/fxge/fontdata/chromefontdata/FoxitSansItalic.cpp',
700 'core/fxge/fontdata/chromefontdata/FoxitSansMM.cpp',
701 'core/fxge/fontdata/chromefontdata/FoxitSerif.cpp',
702 'core/fxge/fontdata/chromefontdata/FoxitSerifBold.cpp',
703 'core/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.cpp',
704 'core/fxge/fontdata/chromefontdata/FoxitSerifItalic.cpp',
705 'core/fxge/fontdata/chromefontdata/FoxitSerifMM.cpp',
706 'core/fxge/fontdata/chromefontdata/FoxitSymbol.cpp',
707 'core/fxge/freetype/fx_freetype.cpp',
708 'core/fxge/ge/fx_ge.cpp',
709 'core/fxge/ge/fx_ge_device.cpp',
710 'core/fxge/ge/fx_ge_font.cpp',
711 'core/fxge/ge/fx_ge_fontmap.cpp',
712 'core/fxge/ge/fx_ge_linux.cpp',
713 'core/fxge/ge/fx_ge_path.cpp',
714 'core/fxge/ge/fx_ge_ps.cpp',
715 'core/fxge/ge/fx_ge_text.cpp',
716 'core/fxge/ge/fx_text_int.h',
dsinclair48baa5f2016-04-06 10:00:40 -0700717 'core/fxge/include/fx_dib.h',
718 'core/fxge/include/fx_font.h',
719 'core/fxge/include/fx_freetype.h',
720 'core/fxge/include/fx_ge.h',
721 'core/fxge/include/fx_ge_apple.h',
722 'core/fxge/include/fx_ge_win32.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700723 ],
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400724 'variables': {
725 'clang_warning_flags': [
726 # http://code.google.com/p/pdfium/issues/detail?id=188
727 '-Wno-switch',
728 ],
729 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700730 'conditions': [
731 ['pdf_use_skia==1', {
732 'sources': [
Dan Sinclair764ec512016-03-14 13:35:12 -0400733 'core/fxge/skia/fx_skia_device.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700734 ],
caryclark749c14c2016-05-19 07:01:03 -0700735 'sources!': [
736 'core/fxge/agg/fx_agg_driver.h',
737 'core/fxge/agg/fx_agg_driver.cpp',
738 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700739 'dependencies': [
740 '<(DEPTH)/skia/skia.gyp:skia',
741 ],
caryclark749c14c2016-05-19 07:01:03 -0700742 'dependencies!': [
743 'third_party/third_party.gyp:fx_agg',
744 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700745 }],
746 ['OS=="win"', {
747 'defines!': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700748 'WIN32_LEAN_AND_MEAN'
749 ],
750 'sources': [
Dan Sinclair764ec512016-03-14 13:35:12 -0400751 'core/fxge/win32/dwrite_int.h',
752 'core/fxge/win32/fx_win32_device.cpp',
753 'core/fxge/win32/fx_win32_dib.cpp',
754 'core/fxge/win32/fx_win32_dwrite.cpp',
755 'core/fxge/win32/fx_win32_gdipext.cpp',
756 'core/fxge/win32/fx_win32_print.cpp',
757 'core/fxge/win32/win32_int.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700758 ],
759 }],
760 ],
761 },
762 {
763 'target_name': 'fxedit',
764 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700765 'sources': [
dsinclair89bdd082016-04-06 10:47:54 -0700766 'fpdfsdk/fxedit/include/fx_edit.h',
767 'fpdfsdk/fxedit/include/fxet_edit.h',
768 'fpdfsdk/fxedit/include/fxet_list.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400769 'fpdfsdk/fxedit/fxet_ap.cpp',
770 'fpdfsdk/fxedit/fxet_edit.cpp',
771 'fpdfsdk/fxedit/fxet_list.cpp',
772 'fpdfsdk/fxedit/fxet_module.cpp',
773 'fpdfsdk/fxedit/fxet_pageobjs.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700774 ],
775 },
776 {
777 'target_name': 'pdfwindow',
778 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700779 'sources': [
Dan Sinclairf766ad22016-03-14 13:51:24 -0400780 'fpdfsdk/pdfwindow/PWL_Button.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400781 'fpdfsdk/pdfwindow/PWL_Button.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400782 'fpdfsdk/pdfwindow/PWL_Caret.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400783 'fpdfsdk/pdfwindow/PWL_Caret.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400784 'fpdfsdk/pdfwindow/PWL_ComboBox.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400785 'fpdfsdk/pdfwindow/PWL_ComboBox.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400786 'fpdfsdk/pdfwindow/PWL_Edit.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400787 'fpdfsdk/pdfwindow/PWL_Edit.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400788 'fpdfsdk/pdfwindow/PWL_EditCtrl.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400789 'fpdfsdk/pdfwindow/PWL_EditCtrl.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400790 'fpdfsdk/pdfwindow/PWL_FontMap.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400791 'fpdfsdk/pdfwindow/PWL_FontMap.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400792 'fpdfsdk/pdfwindow/PWL_Icon.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400793 'fpdfsdk/pdfwindow/PWL_Icon.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400794 'fpdfsdk/pdfwindow/PWL_IconList.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400795 'fpdfsdk/pdfwindow/PWL_IconList.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400796 'fpdfsdk/pdfwindow/PWL_Label.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400797 'fpdfsdk/pdfwindow/PWL_Label.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400798 'fpdfsdk/pdfwindow/PWL_ListBox.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400799 'fpdfsdk/pdfwindow/PWL_ListBox.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400800 'fpdfsdk/pdfwindow/PWL_ListCtrl.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400801 'fpdfsdk/pdfwindow/PWL_ListCtrl.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400802 'fpdfsdk/pdfwindow/PWL_ScrollBar.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400803 'fpdfsdk/pdfwindow/PWL_ScrollBar.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400804 'fpdfsdk/pdfwindow/PWL_Signature.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400805 'fpdfsdk/pdfwindow/PWL_Signature.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400806 'fpdfsdk/pdfwindow/PWL_SpecialButton.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400807 'fpdfsdk/pdfwindow/PWL_SpecialButton.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400808 'fpdfsdk/pdfwindow/PWL_Utils.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400809 'fpdfsdk/pdfwindow/PWL_Utils.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400810 'fpdfsdk/pdfwindow/PWL_Wnd.cpp',
dan sinclair89e904b2016-03-23 19:29:15 -0400811 'fpdfsdk/pdfwindow/PWL_Wnd.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700812 ],
813 },
814 {
815 'target_name': 'javascript',
816 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700817 'sources': [
dsinclair64376be2016-03-31 20:03:24 -0700818 'fpdfsdk/javascript/ijs_context.h',
819 'fpdfsdk/javascript/ijs_runtime.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400820 'fpdfsdk/javascript/JS_Runtime_Stub.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700821 ],
Tom Sepez452b4f32015-10-13 09:27:27 -0700822 'conditions': [
823 ['pdf_enable_v8==1', {
824 'include_dirs': [
825 '<(DEPTH)/v8',
826 '<(DEPTH)/v8/include',
827 ],
828 'dependencies': [
machenbach3081cc02016-04-26 03:12:36 -0700829 '<(DEPTH)/v8/src/v8.gyp:v8',
Tom Sepez452b4f32015-10-13 09:27:27 -0700830 ],
831 'export_dependent_settings': [
machenbach3081cc02016-04-26 03:12:36 -0700832 '<(DEPTH)/v8/src/v8.gyp:v8',
Tom Sepez452b4f32015-10-13 09:27:27 -0700833 ],
834 'sources!': [
Dan Sinclairf766ad22016-03-14 13:51:24 -0400835 'fpdfsdk/javascript/JS_Runtime_Stub.cpp',
Tom Sepez452b4f32015-10-13 09:27:27 -0700836 ],
837 'sources': [
Dan Sinclairf766ad22016-03-14 13:51:24 -0400838 'fpdfsdk/javascript/Consts.cpp',
839 'fpdfsdk/javascript/Consts.h',
840 'fpdfsdk/javascript/Document.cpp',
841 'fpdfsdk/javascript/Document.h',
842 'fpdfsdk/javascript/Field.cpp',
843 'fpdfsdk/javascript/Field.h',
844 'fpdfsdk/javascript/Icon.cpp',
845 'fpdfsdk/javascript/Icon.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400846 'fpdfsdk/javascript/JS_Define.h',
847 'fpdfsdk/javascript/JS_EventHandler.cpp',
848 'fpdfsdk/javascript/JS_EventHandler.h',
849 'fpdfsdk/javascript/JS_GlobalData.cpp',
850 'fpdfsdk/javascript/JS_GlobalData.h',
851 'fpdfsdk/javascript/JS_Object.cpp',
852 'fpdfsdk/javascript/JS_Object.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400853 'fpdfsdk/javascript/JS_Value.cpp',
854 'fpdfsdk/javascript/JS_Value.h',
855 'fpdfsdk/javascript/PublicMethods.cpp',
856 'fpdfsdk/javascript/PublicMethods.h',
857 'fpdfsdk/javascript/app.cpp',
858 'fpdfsdk/javascript/app.cpp',
859 'fpdfsdk/javascript/app.h',
860 'fpdfsdk/javascript/color.cpp',
861 'fpdfsdk/javascript/color.cpp',
862 'fpdfsdk/javascript/color.h',
863 'fpdfsdk/javascript/console.cpp',
864 'fpdfsdk/javascript/console.cpp',
865 'fpdfsdk/javascript/console.h',
dsinclair64376be2016-03-31 20:03:24 -0700866 'fpdfsdk/javascript/cjs_context.cpp',
867 'fpdfsdk/javascript/cjs_context.h',
868 'fpdfsdk/javascript/cjs_runtime.cpp',
869 'fpdfsdk/javascript/cjs_runtime.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400870 'fpdfsdk/javascript/event.cpp',
871 'fpdfsdk/javascript/event.h',
872 'fpdfsdk/javascript/global.cpp',
873 'fpdfsdk/javascript/global.h',
874 'fpdfsdk/javascript/report.cpp',
875 'fpdfsdk/javascript/report.h',
876 'fpdfsdk/javascript/resource.cpp',
877 'fpdfsdk/javascript/resource.h',
878 'fpdfsdk/javascript/util.cpp',
879 'fpdfsdk/javascript/util.h',
dsinclair89bdd082016-04-06 10:47:54 -0700880 'fpdfsdk/jsapi/include/fxjs_v8.h',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400881 'fpdfsdk/jsapi/fxjs_v8.cpp',
Tom Sepez452b4f32015-10-13 09:27:27 -0700882 ],
883 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700884 ],
885 },
886 {
887 'target_name': 'formfiller',
888 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700889 'sources': [
Dan Sinclairedbb3192016-03-21 09:08:24 -0400890 'fpdfsdk/formfiller/cba_fontmap.cpp',
891 'fpdfsdk/formfiller/cba_fontmap.h',
892 'fpdfsdk/formfiller/cffl_checkbox.cpp',
893 'fpdfsdk/formfiller/cffl_checkbox.h',
894 'fpdfsdk/formfiller/cffl_combobox.cpp',
895 'fpdfsdk/formfiller/cffl_combobox.h',
896 'fpdfsdk/formfiller/cffl_formfiller.cpp',
897 'fpdfsdk/formfiller/cffl_formfiller.h',
898 'fpdfsdk/formfiller/cffl_iformfiller.cpp',
899 'fpdfsdk/formfiller/cffl_iformfiller.h',
900 'fpdfsdk/formfiller/cffl_listbox.cpp',
901 'fpdfsdk/formfiller/cffl_listbox.h',
902 'fpdfsdk/formfiller/cffl_pushbutton.cpp',
903 'fpdfsdk/formfiller/cffl_pushbutton.h',
904 'fpdfsdk/formfiller/cffl_radiobutton.cpp',
905 'fpdfsdk/formfiller/cffl_radiobutton.h',
906 'fpdfsdk/formfiller/cffl_textfield.cpp',
907 'fpdfsdk/formfiller/cffl_textfield.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700908 ],
909 },
Tom Sepez22ee2482015-01-07 10:04:16 -0800910 {
911 'target_name': 'pdfium_unittests',
912 'type': 'executable',
913 'dependencies': [
914 '<(DEPTH)/testing/gtest.gyp:gtest_main',
915 '<(DEPTH)/testing/gtest.gyp:gtest',
916 'pdfium',
Tom Sepezd831dc72015-10-19 16:04:22 -0700917 'test_support',
Tom Sepez22ee2482015-01-07 10:04:16 -0800918 ],
Tom Sepez22ee2482015-01-07 10:04:16 -0800919 'sources': [
tsepez602aebc2016-03-29 15:04:21 -0700920 'core/fxcrt/cfx_retain_ptr_unittest.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400921 'core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp',
922 'core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp',
dsinclaird80e0a72016-04-04 09:38:55 -0700923 'core/fpdfapi/fpdf_page/fpdf_page_parser_unittest.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400924 'core/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp',
weilicdce7572016-04-13 14:40:10 -0700925 'core/fpdfapi/fpdf_parser/cpdf_array_unittest.cpp',
Dan Sinclair764ec512016-03-14 13:35:12 -0400926 'core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp',
927 'core/fpdfapi/fpdf_parser/cpdf_parser_unittest.cpp',
928 'core/fpdfapi/fpdf_parser/cpdf_simple_parser_unittest.cpp',
929 'core/fpdfapi/fpdf_parser/cpdf_syntax_parser_unittest.cpp',
930 'core/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp',
931 'core/fpdfdoc/doc_basic_unittest.cpp',
932 'core/fpdftext/fpdf_text_int_unittest.cpp',
933 'core/fxcodec/codec/fx_codec_jpx_unittest.cpp',
934 'core/fxcrt/fx_basic_bstring_unittest.cpp',
935 'core/fxcrt/fx_basic_gcc_unittest.cpp',
936 'core/fxcrt/fx_basic_memmgr_unittest.cpp',
937 'core/fxcrt/fx_basic_wstring_unittest.cpp',
938 'core/fxcrt/fx_bidi_unittest.cpp',
939 'core/fxcrt/fx_extension_unittest.cpp',
940 'core/fxcrt/fx_system_unittest.cpp',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400941 'fpdfsdk/fpdfdoc_unittest.cpp',
Tom Sepez24e733e2015-10-16 14:18:50 -0700942 'testing/fx_string_testhelpers.h',
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400943 'testing/fx_string_testhelpers.cpp',
Tom Sepeza8a39e22015-10-12 15:47:07 -0700944 ],
945 'conditions': [
946 ['pdf_enable_xfa==1', {
947 'sources': [
dsinclair11ac93c2016-03-31 09:45:20 -0700948 'xfa/fde/xml/fde_xml_imp_unittest.cpp',
Dan Sinclair1770c022016-03-14 14:14:16 -0400949 'xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp',
dsinclairc7600f92016-05-19 14:12:30 -0700950 'xfa/fxfa/app/xfa_textlayout_unittest.cpp',
Dan Sinclair1770c022016-03-14 14:14:16 -0400951 'xfa/fxfa/parser/xfa_utils_imp_unittest.cpp',
Tom Sepeza8a39e22015-10-12 15:47:07 -0700952 ],
953 }],
Wei Li614d20a2016-03-15 13:55:12 -0700954 ['pdf_enable_v8==1', {
955 'include_dirs': [
956 '<(DEPTH)/v8',
957 '<(DEPTH)/v8/include',
958 ],
959 'sources': [
960 'fpdfsdk/javascript/public_methods_unittest.cpp',
961 ],
962 }],
caryclarkf9924422016-04-12 05:08:17 -0700963 ['pdf_use_skia==1', {
964 'defines': ['PDF_ENABLE_SKIA'],
965 'dependencies': [
966 '<(DEPTH)/skia/skia.gyp:skia',
967 ],
968 'sources': [
969 'core/fxge/skia/fx_skia_device_unittest.cpp',
970 ],
971 }],
Tom Sepez22ee2482015-01-07 10:04:16 -0800972 ],
973 },
Tom Sepez96d13342015-01-16 14:59:26 -0800974 {
975 'target_name': 'pdfium_embeddertests',
976 'type': 'executable',
977 'dependencies': [
Tom Sepeza310e002015-02-27 13:03:07 -0800978 '<(DEPTH)/testing/gmock.gyp:gmock',
Tom Sepez96d13342015-01-16 14:59:26 -0800979 '<(DEPTH)/testing/gtest.gyp:gtest',
980 'pdfium',
Tom Sepezd831dc72015-10-19 16:04:22 -0700981 'test_support',
Tom Sepez96d13342015-01-16 14:59:26 -0800982 ],
Tom Sepez96d13342015-01-16 14:59:26 -0800983 'sources': [
Dan Sinclair764ec512016-03-14 13:35:12 -0400984 'core/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp',
985 'core/fpdfapi/fpdf_parser/cpdf_parser_embeddertest.cpp',
986 'core/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp',
987 'core/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp',
988 'core/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp',
ochangb8627c92016-04-11 13:47:41 -0700989 'core/fxge/ge/fx_ge_text_embeddertest.cpp',
Dan Sinclairf766ad22016-03-14 13:51:24 -0400990 'fpdfsdk/fpdf_dataavail_embeddertest.cpp',
991 'fpdfsdk/fpdfdoc_embeddertest.cpp',
992 'fpdfsdk/fpdfedit_embeddertest.cpp',
993 'fpdfsdk/fpdfext_embeddertest.cpp',
994 'fpdfsdk/fpdfformfill_embeddertest.cpp',
995 'fpdfsdk/fpdfsave_embeddertest.cpp',
996 'fpdfsdk/fpdftext_embeddertest.cpp',
997 'fpdfsdk/fpdfview_c_api_test.c',
998 'fpdfsdk/fpdfview_c_api_test.h',
999 'fpdfsdk/fpdfview_embeddertest.cpp',
1000 'fpdfsdk/fsdk_baseform_embeddertest.cpp',
Tom Sepez96d13342015-01-16 14:59:26 -08001001 'testing/embedder_test.cpp',
1002 'testing/embedder_test.h',
Tom Sepeza310e002015-02-27 13:03:07 -08001003 'testing/embedder_test_mock_delegate.h',
Tom Sepez6efc0ad2015-06-02 17:11:18 -07001004 'testing/embedder_test_timer_handling_delegate.h',
Tom Sepez96d13342015-01-16 14:59:26 -08001005 ],
Tom Sepez452b4f32015-10-13 09:27:27 -07001006 'conditions': [
Tom Sepezc46d0002015-11-30 15:46:36 -08001007 ['pdf_enable_xfa==1', {
1008 'sources': [
Dan Sinclair1770c022016-03-14 14:14:16 -04001009 'xfa/fxfa/parser/xfa_parser_imp_embeddertest.cpp',
Tom Sepezc46d0002015-11-30 15:46:36 -08001010 ],
1011 }],
Tom Sepez452b4f32015-10-13 09:27:27 -07001012 ['pdf_enable_v8==1', {
1013 'include_dirs': [
1014 '<(DEPTH)/v8',
1015 '<(DEPTH)/v8/include',
1016 ],
1017 'dependencies': [
machenbach3081cc02016-04-26 03:12:36 -07001018 '<(DEPTH)/v8/src/v8.gyp:v8',
1019 '<(DEPTH)/v8/src/v8.gyp:v8_libplatform',
Tom Sepez452b4f32015-10-13 09:27:27 -07001020 ],
1021 'sources': [
Dan Sinclairf766ad22016-03-14 13:51:24 -04001022 'fpdfsdk/javascript/public_methods_embeddertest.cpp',
1023 'fpdfsdk/jsapi/fxjs_v8_embeddertest.cpp',
Lei Zhang1ac47eb2015-12-21 11:04:44 -08001024 'testing/js_embedder_test.cpp',
1025 'testing/js_embedder_test.h',
Tom Sepez452b4f32015-10-13 09:27:27 -07001026 ],
1027 }],
1028 ],
Tom Sepez96d13342015-01-16 14:59:26 -08001029 },
Tom Sepezd831dc72015-10-19 16:04:22 -07001030 {
1031 'target_name': 'test_support',
1032 'type': 'static_library',
1033 'dependencies': [
1034 '<(DEPTH)/testing/gmock.gyp:gmock',
1035 '<(DEPTH)/testing/gtest.gyp:gtest',
1036 ],
Tom Sepezd831dc72015-10-19 16:04:22 -07001037 'sources': [
1038 'testing/fx_string_testhelpers.cpp',
1039 'testing/fx_string_testhelpers.h',
1040 'testing/test_support.cpp',
1041 'testing/test_support.h',
Wei Li091f7a02015-11-09 12:09:55 -08001042 'testing/utils/path_service.cpp',
Tom Sepezd831dc72015-10-19 16:04:22 -07001043 ],
1044 'conditions': [
1045 ['pdf_enable_v8==1', {
1046 'include_dirs': [
1047 '<(DEPTH)/v8',
1048 '<(DEPTH)/v8/include',
1049 ],
1050 'dependencies': [
machenbach3081cc02016-04-26 03:12:36 -07001051 '<(DEPTH)/v8/src/v8.gyp:v8',
1052 '<(DEPTH)/v8/src/v8.gyp:v8_libplatform',
Tom Sepezd831dc72015-10-19 16:04:22 -07001053 ],
1054 }],
1055 ],
1056 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -07001057 ],
Tom Sepez0f05b1c2015-12-08 16:19:37 -08001058 'conditions': [
1059 ['pdf_enable_xfa==1', {
1060 'targets': [
1061 {
1062 'target_name': 'fpdfxfa',
1063 'type': 'static_library',
1064 'dependencies': [
1065 'javascript',
1066 'xfa.gyp:xfa',
1067 ],
1068 'sources': [
Dan Sinclairf766ad22016-03-14 13:51:24 -04001069 'fpdfsdk/fpdfxfa/fpdfxfa_app.cpp',
1070 'fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp',
1071 'fpdfsdk/fpdfxfa/fpdfxfa_page.cpp',
1072 'fpdfsdk/fpdfxfa/fpdfxfa_util.cpp',
dsinclair89bdd082016-04-06 10:47:54 -07001073 'fpdfsdk/fpdfxfa/include/fpdfxfa_app.h',
1074 'fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h',
1075 'fpdfsdk/fpdfxfa/include/fpdfxfa_page.h',
1076 'fpdfsdk/fpdfxfa/include/fpdfxfa_util.h',
Tom Sepez0f05b1c2015-12-08 16:19:37 -08001077 ],
1078 },
1079 ]
1080 }],
1081 ]
John Abd-El-Malek5110c472014-05-17 22:33:34 -07001082}