blob: c1e05412eb2c59aa1127bbaf25d95af10232ceb2 [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': {
Lei Zhang476ac132015-11-05 20:07:27 -08007 # TODO(thakis): Enable this, pdfium:29
8 #'chromium_code': 1,
Dan Sinclair09ca1622016-03-07 14:52:12 -05009
10 'variables': {
11 'clang_use_pdfium_plugins%': 0,
12 },
13 'clang_use_pdfium_plugins%': '<(clang_use_pdfium_plugins)',
14
John Abd-El-Malek5110c472014-05-17 22:33:34 -070015 'pdf_use_skia%': 0,
Tom Sepez452b4f32015-10-13 09:27:27 -070016 'pdf_enable_v8%': 1,
Tom Sepezd2e023b2015-12-08 14:36:16 -080017 'pdf_enable_xfa%': 0, # Set to 1 by standalone.gypi in a standalone build.
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080018 'conditions': [
19 ['OS=="linux"', {
20 'bundle_freetype%': 0,
21 }, { # On Android there's no system FreeType. On Windows and Mac, only a
22 # few methods are used from it.
23 'bundle_freetype%': 1,
Tom Sepezd8bc3d52015-02-24 15:07:41 -080024 }],
Dan Sinclair09ca1622016-03-07 14:52:12 -050025 ['clang_use_pdfium_plugins==1', {
26 'variables': {
27 'conditions': [
28 ['OS!="win"', {
29 'variables': {
30 'conditions': [
31 ['OS=="mac" or OS=="ios"', {
32 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib',
33 }, { # OS != "mac" or OS != "ios"
34 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so',
35 }],
36 ],
37 },
38 'clang_dynlib_flags%': '-Xclang -load -Xclang <(clang_lib_path) ',
39 }, { # OS == "win"
40 # On Windows, the plugin is built directly into clang, so there's
41 # no need to load it dynamically.
42 'clang_dynlib_flags%': '',
43 }],
44 ],
45 'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xclang check-templates '
46 '-Xclang -plugin-arg-find-bad-constructs -Xclang follow-macro-expansion ',
47 },
48 'clang_pdfium_plugins_flags%':
49 '<(clang_dynlib_flags)'
50 '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args)',
51 }],
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080052 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070053 },
54 'target_defaults': {
55 'defines' : [
Bo Xu043f07f2014-10-03 11:06:35 -070056 'OPJ_STATIC',
John Abd-El-Malek385729b2015-02-06 15:51:11 -080057 'PNG_PREFIX',
John Abd-El-Malek385729b2015-02-06 15:51:11 -080058 'PNG_USE_READ_MACROS',
Tom Sepez6fd997b2015-06-18 17:51:37 -070059 'V8_DEPRECATION_WARNINGS',
60 '_CRT_SECURE_NO_WARNINGS',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070061 ],
Bo Xu4c764f32014-12-19 14:29:17 -080062 'include_dirs': [
Lei Zhang8241df72015-11-06 14:38:48 -080063 # This is implicit in GN.
64 '<(DEPTH)',
65 '.',
Bo Xu4c764f32014-12-19 14:29:17 -080066 'third_party/freetype/include',
Oliver Changcec3f682015-11-05 16:00:40 -080067 'third_party/freetype/include/freetype',
Bo Xu4c764f32014-12-19 14:29:17 -080068 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070069 'conditions': [
70 ['pdf_use_skia==1', {
71 'defines': ['_SKIA_SUPPORT_'],
72 }],
Tom Sepez452b4f32015-10-13 09:27:27 -070073 ['pdf_enable_v8==1', {
74 'defines': ['PDF_ENABLE_V8'],
75 }],
Tom Sepeza8a39e22015-10-12 15:47:07 -070076 ['pdf_enable_xfa==1', {
77 'defines': ['PDF_ENABLE_XFA'],
78 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070079 ['OS=="linux"', {
John Abd-El-Malek5110c472014-05-17 22:33:34 -070080 'conditions': [
81 ['target_arch=="x64"', {
Nico Weberb72977f2014-07-18 15:50:30 -070082 'defines' : [ '_FX_CPU_=_FX_X64_', ],
83 'cflags': [ '-fPIC', ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070084 }],
85 ['target_arch=="ia32"', {
Nico Weberb72977f2014-07-18 15:50:30 -070086 'defines' : [ '_FX_CPU_=_FX_X86_', ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070087 }],
88 ],
89 }],
Dan Sinclair09ca1622016-03-07 14:52:12 -050090 ['clang==1 and clang_use_pdfium_plugins==1', {
91 'cflags': [
92 '<@(clang_pdfium_plugins_flags)',
93 ],
94 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070095 ],
96 'msvs_disabled_warnings': [
Lei Zhang476ac132015-11-05 20:07:27 -080097 4005, 4018, 4146, 4333, 4345, 4267,
98 # TODO(thestig): Fix all instances, remove this, pdfium:29
99 4245, 4310, 4389, 4701, 4702, 4706, 4800,
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700100 ],
Lei Zhang476ac132015-11-05 20:07:27 -0800101 'variables': {
102 'clang_warning_flags': [
103 # TODO(thestig): Fix all instances, remove this, pdfium:29
104 '-Wno-sign-compare',
105 ],
106 # Make sure Chromium's build/common.gypi doesn't re-add the flag on linux.
107 'cflags_cc!': [ '-Wsign-compare' ],
108 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700109 },
110 'targets': [
111 {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -0700112 'target_name': 'pdfium',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700113 'type': 'static_library',
114 'dependencies': [
Bo Xu4c764f32014-12-19 14:29:17 -0800115 'third_party/third_party.gyp:bigint',
Tom Sepez35425892015-02-05 10:03:18 -0800116 'third_party/third_party.gyp:pdfium_base',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700117 'fdrm',
118 'fpdfdoc',
119 'fpdfapi',
120 'fpdftext',
121 'formfiller',
122 'fxcodec',
123 'fxcrt',
124 'fxedit',
125 'fxge',
126 'javascript',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700127 'pdfwindow',
128 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700129 'sources': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700130 'fpdfsdk/include/fsdk_actionhandler.h',
131 'fpdfsdk/include/fsdk_annothandler.h',
132 'fpdfsdk/include/fsdk_baseannot.h',
133 'fpdfsdk/include/fsdk_baseform.h',
134 'fpdfsdk/src/fpdfdoc.cpp',
135 'fpdfsdk/src/fpdfeditimg.cpp',
136 'fpdfsdk/src/fpdfeditpage.cpp',
137 'fpdfsdk/src/fpdfformfill.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700138 'fpdfsdk/src/fpdfppo.cpp',
139 'fpdfsdk/src/fpdfsave.cpp',
140 'fpdfsdk/src/fpdftext.cpp',
141 'fpdfsdk/src/fpdfview.cpp',
142 'fpdfsdk/src/fpdf_dataavail.cpp',
143 'fpdfsdk/src/fpdf_ext.cpp',
144 'fpdfsdk/src/fpdf_flatten.cpp',
145 'fpdfsdk/src/fpdf_progressive.cpp',
146 'fpdfsdk/src/fpdf_searchex.cpp',
147 'fpdfsdk/src/fpdf_sysfontinfo.cpp',
Tom Sepez1ed8a212015-05-11 15:25:39 -0700148 'fpdfsdk/src/fpdf_transformpage.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700149 'fpdfsdk/src/fsdk_actionhandler.cpp',
150 'fpdfsdk/src/fsdk_annothandler.cpp',
151 'fpdfsdk/src/fsdk_baseannot.cpp',
152 'fpdfsdk/src/fsdk_baseform.cpp',
153 'fpdfsdk/src/fsdk_mgr.cpp',
154 'fpdfsdk/src/fsdk_rendercontext.cpp',
Tom Sepez1ed8a212015-05-11 15:25:39 -0700155 'public/fpdf_dataavail.h',
156 'public/fpdf_doc.h',
157 'public/fpdf_edit.h',
158 'public/fpdf_ext.h',
159 'public/fpdf_flatten.h',
160 'public/fpdf_formfill.h',
161 'public/fpdf_fwlevent.h',
162 'public/fpdf_ppo.h',
163 'public/fpdf_progressive.h',
164 'public/fpdf_save.h',
165 'public/fpdf_searchex.h',
166 'public/fpdf_sysfontinfo.h',
167 'public/fpdf_text.h',
168 'public/fpdf_transformpage.h',
169 'public/fpdfview.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700170 ],
171 'conditions': [
Tom Sepezc46d0002015-11-30 15:46:36 -0800172 ['pdf_enable_xfa==1', {
173 'dependencies': [
174 'fpdfxfa',
175 ],
176 }],
John Abd-El-Malekef4dce42015-02-02 16:52:07 -0800177 ['bundle_freetype==1', {
178 'dependencies': [
Lei Zhang41aa8412015-11-06 10:42:38 -0800179 'third_party/third_party.gyp:fx_freetype',
John Abd-El-Malekef4dce42015-02-02 16:52:07 -0800180 ],
181 }, {
182 'link_settings': {
183 'libraries': [
184 '-lfreetype',
185 ],
186 },
187 }],
John Abd-El-Malek26119322014-05-26 18:27:11 -0700188 ],
189 'all_dependent_settings': {
190 'msvs_settings': {
191 'VCLinkerTool': {
192 'AdditionalDependencies': [
193 'advapi32.lib',
194 'gdi32.lib',
195 'user32.lib',
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700196 ],
197 },
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700198 },
John Abd-El-Malek26119322014-05-26 18:27:11 -0700199 'conditions': [
200 ['OS=="mac"', {
201 'link_settings': {
202 'libraries': [
203 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
204 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
205 ],
206 },
207 }],
208 ],
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700209 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700210 },
211 {
212 'target_name': 'fdrm',
213 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700214 'sources': [
215 'core/include/fdrm/fx_crypt.h',
216 'core/src/fdrm/crypto/fx_crypt.cpp',
217 'core/src/fdrm/crypto/fx_crypt_aes.cpp',
218 'core/src/fdrm/crypto/fx_crypt_sha.cpp',
219 ],
220 },
221 {
222 'target_name': 'fpdfdoc',
223 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700224 'sources': [
225 'core/include/fpdfdoc/fpdf_ap.h',
226 'core/include/fpdfdoc/fpdf_doc.h',
227 'core/include/fpdfdoc/fpdf_tagged.h',
228 'core/include/fpdfdoc/fpdf_vt.h',
229 'core/src/fpdfdoc/doc_action.cpp',
230 'core/src/fpdfdoc/doc_annot.cpp',
231 'core/src/fpdfdoc/doc_ap.cpp',
232 'core/src/fpdfdoc/doc_basic.cpp',
233 'core/src/fpdfdoc/doc_bookmark.cpp',
234 'core/src/fpdfdoc/doc_form.cpp',
235 'core/src/fpdfdoc/doc_formcontrol.cpp',
236 'core/src/fpdfdoc/doc_formfield.cpp',
237 'core/src/fpdfdoc/doc_link.cpp',
238 'core/src/fpdfdoc/doc_metadata.cpp',
239 'core/src/fpdfdoc/doc_ocg.cpp',
240 'core/src/fpdfdoc/doc_tagged.cpp',
241 'core/src/fpdfdoc/doc_utils.cpp',
Tom Sepezeff208f2015-05-08 13:45:01 -0700242 'core/src/fpdfdoc/doc_utils.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700243 'core/src/fpdfdoc/doc_viewerPreferences.cpp',
244 'core/src/fpdfdoc/doc_vt.cpp',
245 'core/src/fpdfdoc/doc_vtmodule.cpp',
246 'core/src/fpdfdoc/pdf_vt.h',
247 'core/src/fpdfdoc/tagged_int.h',
248 ],
249 },
250 {
251 'target_name': 'fpdfapi',
252 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700253 'sources': [
Tom Sepez310438f2016-03-08 13:10:55 -0800254 'core/include/fpdfapi/cpdf_document.h',
Tom Sepez83880372016-03-09 10:47:45 -0800255 'core/include/fpdfapi/cpdf_parser.h',
256 'core/include/fpdfapi/cpdf_simple_parser.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700257 'core/include/fpdfapi/fpdf_module.h',
258 'core/include/fpdfapi/fpdf_objects.h',
259 'core/include/fpdfapi/fpdf_page.h',
260 'core/include/fpdfapi/fpdf_pageobj.h',
261 'core/include/fpdfapi/fpdf_parser.h',
262 'core/include/fpdfapi/fpdf_render.h',
263 'core/include/fpdfapi/fpdf_resource.h',
264 'core/include/fpdfapi/fpdf_serial.h',
265 'core/src/fpdfapi/fpdf_basic_module.cpp',
266 'core/src/fpdfapi/fpdf_cmaps/cmap_int.h',
267 'core/src/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp',
268 'core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp',
269 'core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp',
270 'core/src/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.cpp',
271 'core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp',
272 'core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp',
273 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp',
274 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp',
275 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp',
276 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp',
277 'core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp',
278 'core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp',
279 'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp',
280 'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp',
281 'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp',
282 'core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp',
283 'core/src/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp',
284 'core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.cpp',
285 'core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp',
286 'core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp',
287 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp',
288 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp',
289 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp',
290 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp',
291 'core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp',
292 'core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp',
293 'core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp',
294 'core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp',
295 'core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp',
296 'core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp',
297 'core/src/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp',
298 'core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp',
299 'core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp',
300 'core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp',
301 'core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp',
302 'core/src/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp',
303 'core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp',
304 'core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp',
305 'core/src/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp',
306 'core/src/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.cpp',
307 'core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp',
308 'core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp',
309 'core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp',
310 'core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp',
311 'core/src/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp',
312 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp',
313 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp',
314 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp',
315 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700316 'core/src/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp',
317 'core/src/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp',
318 'core/src/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp',
319 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp',
320 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp',
321 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp',
322 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp',
323 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp',
324 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp',
325 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp',
326 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp',
327 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp',
328 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp',
329 'core/src/fpdfapi/fpdf_edit/editint.h',
330 'core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp',
331 'core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp',
332 'core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp',
333 'core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700334 'core/src/fpdfapi/fpdf_font/font_int.h',
335 'core/src/fpdfapi/fpdf_font/fpdf_font.cpp',
336 'core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp',
337 'core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700338 'core/src/fpdfapi/fpdf_font/ttgsubtable.cpp',
339 'core/src/fpdfapi/fpdf_font/ttgsubtable.h',
340 'core/src/fpdfapi/fpdf_page/fpdf_page.cpp',
341 'core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp',
342 'core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp',
343 'core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp',
344 'core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp',
345 'core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp',
346 'core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700347 'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp',
348 'core/src/fpdfapi/fpdf_page/fpdf_page_path.cpp',
349 'core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp',
350 'core/src/fpdfapi/fpdf_page/pageint.h',
Tom Sepez310438f2016-03-08 13:10:55 -0800351 'core/src/fpdfapi/fpdf_parser/cpdf_document.cpp',
Tom Sepez83880372016-03-09 10:47:45 -0800352 'core/src/fpdfapi/fpdf_parser/cpdf_parser.cpp',
353 'core/src/fpdfapi/fpdf_parser/cpdf_simple_parser.cpp',
Tom Sepezb70f5a42016-03-08 12:42:40 -0800354 'core/src/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp',
355 'core/src/fpdfapi/fpdf_parser/cpdf_syntax_parser.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700356 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700357 'core/src/fpdfapi/fpdf_parser/fpdf_parser_encrypt.cpp',
358 'core/src/fpdfapi/fpdf_parser/fpdf_parser_fdf.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700359 'core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp',
360 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp',
361 'core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp',
Tom Sepez83880372016-03-09 10:47:45 -0800362 'core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.h',
Jun Fangdf7f3662015-11-10 18:29:18 +0800363 'core/src/fpdfapi/fpdf_parser/parser_int.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700364 'core/src/fpdfapi/fpdf_render/fpdf_render.cpp',
365 'core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp',
366 'core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp',
367 'core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp',
368 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp',
369 'core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp',
370 'core/src/fpdfapi/fpdf_render/render_int.h',
371 ],
372 },
373 {
374 'target_name': 'fpdftext',
375 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700376 'sources': [
377 'core/include/fpdftext/fpdf_text.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700378 'core/src/fpdftext/fpdf_text_int.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700379 'core/src/fpdftext/text_int.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700380 'core/src/fpdftext/unicodenormalization.cpp',
381 'core/src/fpdftext/unicodenormalizationdata.cpp',
Tom Sepez7da98032015-08-19 10:42:45 -0700382 'core/src/fpdftext/unicodenormalizationdata.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700383 ],
384 },
385 {
386 'target_name': 'fxcodec',
387 'type': 'static_library',
Tom Sepez8be55752015-06-17 11:05:02 -0700388 'dependencies': [
Lei Zhang8241df72015-11-06 14:38:48 -0800389 '<(libjpeg_gyp_path):libjpeg',
Tom Sepez8be55752015-06-17 11:05:02 -0700390 'third_party/third_party.gyp:fx_lcms2',
Tom Sepez6fd997b2015-06-18 17:51:37 -0700391 'third_party/third_party.gyp:fx_libopenjpeg',
Tom Sepez6f93de52015-06-19 12:57:10 -0700392 'third_party/third_party.gyp:fx_zlib',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700393 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700394 'sources': [
395 'core/include/fxcodec/fx_codec.h',
396 'core/include/fxcodec/fx_codec_def.h',
Tom Sepezb2552022015-07-14 16:43:54 -0700397 'core/include/fxcodec/fx_codec_flate.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700398 'core/src/fxcodec/codec/codec_int.h',
399 'core/src/fxcodec/codec/fx_codec.cpp',
400 'core/src/fxcodec/codec/fx_codec_fax.cpp',
401 'core/src/fxcodec/codec/fx_codec_flate.cpp',
402 'core/src/fxcodec/codec/fx_codec_icc.cpp',
403 'core/src/fxcodec/codec/fx_codec_jbig.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700404 'core/src/fxcodec/codec/fx_codec_jpeg.cpp',
405 'core/src/fxcodec/codec/fx_codec_jpx_opj.cpp',
Lei Zhangb060a552015-09-24 01:13:26 -0700406 'core/src/fxcodec/jbig2/JBig2_ArithDecoder.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700407 'core/src/fxcodec/jbig2/JBig2_ArithDecoder.h',
408 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp',
409 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h',
Lei Zhang4e568672015-10-07 21:33:55 -0700410 'core/src/fxcodec/jbig2/JBig2_BitStream.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700411 'core/src/fxcodec/jbig2/JBig2_BitStream.h',
412 'core/src/fxcodec/jbig2/JBig2_Context.cpp',
413 'core/src/fxcodec/jbig2/JBig2_Context.h',
414 'core/src/fxcodec/jbig2/JBig2_Define.h',
Lei Zhangb060a552015-09-24 01:13:26 -0700415 'core/src/fxcodec/jbig2/JBig2_GrdProc.cpp',
416 'core/src/fxcodec/jbig2/JBig2_GrdProc.h',
417 'core/src/fxcodec/jbig2/JBig2_GrrdProc.cpp',
418 'core/src/fxcodec/jbig2/JBig2_GrrdProc.h',
419 'core/src/fxcodec/jbig2/JBig2_GsidProc.cpp',
420 'core/src/fxcodec/jbig2/JBig2_GsidProc.h',
421 'core/src/fxcodec/jbig2/JBig2_HtrdProc.cpp',
422 'core/src/fxcodec/jbig2/JBig2_HtrdProc.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700423 'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp',
424 'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.h',
425 'core/src/fxcodec/jbig2/JBig2_HuffmanTable.cpp',
426 'core/src/fxcodec/jbig2/JBig2_HuffmanTable.h',
427 'core/src/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h',
428 'core/src/fxcodec/jbig2/JBig2_Image.cpp',
429 'core/src/fxcodec/jbig2/JBig2_Image.h',
430 'core/src/fxcodec/jbig2/JBig2_List.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700431 'core/src/fxcodec/jbig2/JBig2_Page.h',
432 'core/src/fxcodec/jbig2/JBig2_PatternDict.cpp',
433 'core/src/fxcodec/jbig2/JBig2_PatternDict.h',
Lei Zhangb060a552015-09-24 01:13:26 -0700434 'core/src/fxcodec/jbig2/JBig2_PddProc.cpp',
435 'core/src/fxcodec/jbig2/JBig2_PddProc.h',
436 'core/src/fxcodec/jbig2/JBig2_SddProc.cpp',
437 'core/src/fxcodec/jbig2/JBig2_SddProc.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700438 'core/src/fxcodec/jbig2/JBig2_Segment.cpp',
439 'core/src/fxcodec/jbig2/JBig2_Segment.h',
440 'core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp',
441 'core/src/fxcodec/jbig2/JBig2_SymbolDict.h',
Lei Zhangb060a552015-09-24 01:13:26 -0700442 'core/src/fxcodec/jbig2/JBig2_TrdProc.cpp',
443 'core/src/fxcodec/jbig2/JBig2_TrdProc.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700444 ],
Tom Sepez8be55752015-06-17 11:05:02 -0700445 'msvs_settings': {
446 'VCCLCompilerTool': {
447 # Unresolved warnings in fx_codec_jpx_opj.cpp
448 # https://code.google.com/p/pdfium/issues/detail?id=100
449 'WarnAsError': 'false',
450 },
451 },
John Abd-El-Malekdef5c7d2014-06-09 16:07:18 -0700452 'conditions': [
Tom Sepezc46d0002015-11-30 15:46:36 -0800453 ['pdf_enable_xfa==1', {
454 'dependencies': [
455 'third_party/third_party.gyp:fx_lpng',
456 'third_party/third_party.gyp:fx_tiff',
457 ],
458 'sources': [
459 'core/src/fxcodec/codec/fx_codec_bmp.cpp',
460 'core/src/fxcodec/codec/fx_codec_gif.cpp',
461 'core/src/fxcodec/codec/fx_codec_png.cpp',
462 'core/src/fxcodec/codec/fx_codec_progress.cpp',
463 'core/src/fxcodec/codec/fx_codec_progress.h',
464 'core/src/fxcodec/codec/fx_codec_tiff.cpp',
465 'core/src/fxcodec/lbmp/fx_bmp.cpp',
466 'core/src/fxcodec/lbmp/fx_bmp.h',
467 'core/src/fxcodec/lgif/fx_gif.cpp',
468 'core/src/fxcodec/lgif/fx_gif.h',
469 ],
470 }],
John Abd-El-Malekdef5c7d2014-06-09 16:07:18 -0700471 ['os_posix==1', {
472 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
473 # conversion to check that an address is 16-bit aligned (benign).
474 'cflags_c': [ '-Wno-pointer-to-int-cast' ],
475 }],
476 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700477 },
478 {
479 'target_name': 'fxcrt',
480 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700481 'sources': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700482 'core/include/fxcrt/fx_basic.h',
Lei Zhangee02ea32015-10-29 15:01:55 -0700483 'core/include/fxcrt/fx_bidi.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700484 'core/include/fxcrt/fx_coordinates.h',
485 'core/include/fxcrt/fx_ext.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700486 'core/include/fxcrt/fx_memory.h',
Tom Sepez6675a802015-06-04 19:05:21 -0700487 'core/include/fxcrt/fx_safe_types.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700488 'core/include/fxcrt/fx_stream.h',
489 'core/include/fxcrt/fx_string.h',
490 'core/include/fxcrt/fx_system.h',
491 'core/include/fxcrt/fx_ucd.h',
492 'core/include/fxcrt/fx_xml.h',
493 'core/src/fxcrt/extension.h',
494 'core/src/fxcrt/fxcrt_platforms.cpp',
495 'core/src/fxcrt/fxcrt_platforms.h',
496 'core/src/fxcrt/fxcrt_posix.cpp',
497 'core/src/fxcrt/fxcrt_posix.h',
Dan Sinclair68b4a4a2016-03-08 15:06:12 -0500498 'core/src/fxcrt/fxcrt_stream.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700499 'core/src/fxcrt/fxcrt_windows.cpp',
500 'core/src/fxcrt/fxcrt_windows.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700501 'core/src/fxcrt/fx_basic_array.cpp',
502 'core/src/fxcrt/fx_basic_bstring.cpp',
503 'core/src/fxcrt/fx_basic_buffer.cpp',
504 'core/src/fxcrt/fx_basic_coords.cpp',
505 'core/src/fxcrt/fx_basic_gcc.cpp',
506 'core/src/fxcrt/fx_basic_list.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700507 'core/src/fxcrt/fx_basic_memmgr.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700508 'core/src/fxcrt/fx_basic_plex.cpp',
509 'core/src/fxcrt/fx_basic_utf.cpp',
510 'core/src/fxcrt/fx_basic_util.cpp',
511 'core/src/fxcrt/fx_basic_wstring.cpp',
Lei Zhangee02ea32015-10-29 15:01:55 -0700512 'core/src/fxcrt/fx_bidi.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700513 'core/src/fxcrt/fx_extension.cpp',
514 'core/src/fxcrt/fx_ucddata.cpp',
515 'core/src/fxcrt/fx_unicode.cpp',
516 'core/src/fxcrt/fx_xml_composer.cpp',
517 'core/src/fxcrt/fx_xml_parser.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700518 'core/src/fxcrt/plex.h',
519 'core/src/fxcrt/xml_int.h',
520 ],
Tom Sepezc46d0002015-11-30 15:46:36 -0800521 'conditions': [
522 ['pdf_enable_xfa==1', {
523 'sources': [
524 'core/include/fxcrt/fx_arb.h',
525 'core/src/fxcrt/fx_arabic.cpp',
526 'core/src/fxcrt/fx_arabic.h',
Tom Sepezfcb63982016-01-20 14:33:49 -0800527 'core/src/fxcrt/fx_basic_maps.cpp',
Tom Sepezc46d0002015-11-30 15:46:36 -0800528 ],
529 }],
530 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700531 },
532 {
533 'target_name': 'fxge',
534 'type': 'static_library',
Tom Sepezb7d358b2015-06-17 10:01:00 -0700535 'dependencies': [
536 'third_party/third_party.gyp:fx_agg',
537 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700538 'sources': [
539 'core/include/fxge/fpf.h',
540 'core/include/fxge/fx_dib.h',
541 'core/include/fxge/fx_font.h',
542 'core/include/fxge/fx_freetype.h',
543 'core/include/fxge/fx_ge.h',
544 'core/include/fxge/fx_ge_apple.h',
545 'core/include/fxge/fx_ge_win32.h',
Dan Sinclairfffc9632016-03-08 08:57:05 -0500546 'core/src/fxge/agg/fx_agg_driver.h',
547 'core/src/fxge/agg/fx_agg_driver.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700548 'core/src/fxge/android/fpf_skiafont.cpp',
549 'core/src/fxge/android/fpf_skiafont.h',
550 'core/src/fxge/android/fpf_skiafontmgr.cpp',
551 'core/src/fxge/android/fpf_skiafontmgr.h',
552 'core/src/fxge/android/fpf_skiamodule.cpp',
553 'core/src/fxge/android/fpf_skiamodule.h',
554 'core/src/fxge/android/fx_android_font.cpp',
555 'core/src/fxge/android/fx_android_font.h',
556 'core/src/fxge/android/fx_android_imp.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700557 'core/src/fxge/apple/apple_int.h',
558 'core/src/fxge/apple/fx_apple_platform.cpp',
559 'core/src/fxge/apple/fx_mac_imp.cpp',
560 'core/src/fxge/apple/fx_quartz_device.cpp',
561 'core/src/fxge/dib/dib_int.h',
562 'core/src/fxge/dib/fx_dib_composite.cpp',
563 'core/src/fxge/dib/fx_dib_convert.cpp',
564 'core/src/fxge/dib/fx_dib_engine.cpp',
565 'core/src/fxge/dib/fx_dib_main.cpp',
566 'core/src/fxge/dib/fx_dib_transform.cpp',
Tom Sepez7da98032015-08-19 10:42:45 -0700567 'core/src/fxge/fontdata/chromefontdata/chromefontdata.h',
Dan Sinclaird8260672016-02-24 13:20:42 -0500568 'core/src/fxge/fontdata/chromefontdata/FoxitDingbats.cpp',
569 'core/src/fxge/fontdata/chromefontdata/FoxitFixed.cpp',
570 'core/src/fxge/fontdata/chromefontdata/FoxitFixedBold.cpp',
571 'core/src/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.cpp',
572 'core/src/fxge/fontdata/chromefontdata/FoxitFixedItalic.cpp',
573 'core/src/fxge/fontdata/chromefontdata/FoxitSans.cpp',
574 'core/src/fxge/fontdata/chromefontdata/FoxitSansBold.cpp',
575 'core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.cpp',
576 'core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.cpp',
577 'core/src/fxge/fontdata/chromefontdata/FoxitSansMM.cpp',
578 'core/src/fxge/fontdata/chromefontdata/FoxitSerif.cpp',
579 'core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.cpp',
580 'core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.cpp',
581 'core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.cpp',
582 'core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.cpp',
583 'core/src/fxge/fontdata/chromefontdata/FoxitSymbol.cpp',
584 'core/src/fxge/freetype/fx_freetype.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700585 'core/src/fxge/ge/fx_ge.cpp',
586 'core/src/fxge/ge/fx_ge_device.cpp',
587 'core/src/fxge/ge/fx_ge_font.cpp',
588 'core/src/fxge/ge/fx_ge_fontmap.cpp',
589 'core/src/fxge/ge/fx_ge_linux.cpp',
590 'core/src/fxge/ge/fx_ge_path.cpp',
591 'core/src/fxge/ge/fx_ge_ps.cpp',
592 'core/src/fxge/ge/fx_ge_text.cpp',
Tom Sepez1d95d652016-02-08 12:46:54 -0800593 'core/src/fxge/ge/fx_text_int.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700594 ],
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400595 'variables': {
596 'clang_warning_flags': [
597 # http://code.google.com/p/pdfium/issues/detail?id=188
598 '-Wno-switch',
599 ],
600 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700601 'conditions': [
602 ['pdf_use_skia==1', {
603 'sources': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700604 'core/src/fxge/skia/fx_skia_device.cpp',
605 ],
606 'dependencies': [
607 '<(DEPTH)/skia/skia.gyp:skia',
608 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700609 }],
610 ['OS=="win"', {
611 'defines!': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700612 'WIN32_LEAN_AND_MEAN'
613 ],
614 'sources': [
615 'core/src/fxge/win32/dwrite_int.h',
616 'core/src/fxge/win32/fx_win32_device.cpp',
617 'core/src/fxge/win32/fx_win32_dib.cpp',
618 'core/src/fxge/win32/fx_win32_dwrite.cpp',
619 'core/src/fxge/win32/fx_win32_gdipext.cpp',
620 'core/src/fxge/win32/fx_win32_print.cpp',
621 'core/src/fxge/win32/win32_int.h',
622 ],
623 }],
624 ],
625 },
626 {
627 'target_name': 'fxedit',
628 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700629 'sources': [
630 'fpdfsdk/include/fxedit/fx_edit.h',
631 'fpdfsdk/include/fxedit/fxet_edit.h',
632 'fpdfsdk/include/fxedit/fxet_list.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700633 'fpdfsdk/src/fxedit/fxet_ap.cpp',
634 'fpdfsdk/src/fxedit/fxet_edit.cpp',
635 'fpdfsdk/src/fxedit/fxet_list.cpp',
636 'fpdfsdk/src/fxedit/fxet_module.cpp',
637 'fpdfsdk/src/fxedit/fxet_pageobjs.cpp',
638 ],
639 },
640 {
641 'target_name': 'pdfwindow',
642 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700643 'sources': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700644 'fpdfsdk/include/pdfwindow/PWL_Button.h',
645 'fpdfsdk/include/pdfwindow/PWL_Caret.h',
646 'fpdfsdk/include/pdfwindow/PWL_ComboBox.h',
647 'fpdfsdk/include/pdfwindow/PWL_Edit.h',
648 'fpdfsdk/include/pdfwindow/PWL_EditCtrl.h',
649 'fpdfsdk/include/pdfwindow/PWL_FontMap.h',
650 'fpdfsdk/include/pdfwindow/PWL_Icon.h',
651 'fpdfsdk/include/pdfwindow/PWL_IconList.h',
652 'fpdfsdk/include/pdfwindow/PWL_Label.h',
653 'fpdfsdk/include/pdfwindow/PWL_ListBox.h',
654 'fpdfsdk/include/pdfwindow/PWL_ListCtrl.h',
655 'fpdfsdk/include/pdfwindow/PWL_Note.h',
656 'fpdfsdk/include/pdfwindow/PWL_ScrollBar.h',
657 'fpdfsdk/include/pdfwindow/PWL_Signature.h',
658 'fpdfsdk/include/pdfwindow/PWL_SpecialButton.h',
659 'fpdfsdk/include/pdfwindow/PWL_Utils.h',
660 'fpdfsdk/include/pdfwindow/PWL_Wnd.h',
661 'fpdfsdk/src/pdfwindow/PWL_Button.cpp',
662 'fpdfsdk/src/pdfwindow/PWL_Caret.cpp',
663 'fpdfsdk/src/pdfwindow/PWL_ComboBox.cpp',
664 'fpdfsdk/src/pdfwindow/PWL_Edit.cpp',
665 'fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp',
666 'fpdfsdk/src/pdfwindow/PWL_FontMap.cpp',
667 'fpdfsdk/src/pdfwindow/PWL_Icon.cpp',
668 'fpdfsdk/src/pdfwindow/PWL_IconList.cpp',
669 'fpdfsdk/src/pdfwindow/PWL_Label.cpp',
670 'fpdfsdk/src/pdfwindow/PWL_ListBox.cpp',
671 'fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp',
672 'fpdfsdk/src/pdfwindow/PWL_Note.cpp',
673 'fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp',
674 'fpdfsdk/src/pdfwindow/PWL_Signature.cpp',
675 'fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp',
676 'fpdfsdk/src/pdfwindow/PWL_Utils.cpp',
677 'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp',
678 ],
679 },
680 {
681 'target_name': 'javascript',
682 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700683 'sources': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700684 'fpdfsdk/include/javascript/IJavaScript.h',
Tom Sepez452b4f32015-10-13 09:27:27 -0700685 'fpdfsdk/src/javascript/JS_Runtime_Stub.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700686 ],
Tom Sepez452b4f32015-10-13 09:27:27 -0700687 'conditions': [
688 ['pdf_enable_v8==1', {
689 'include_dirs': [
690 '<(DEPTH)/v8',
691 '<(DEPTH)/v8/include',
692 ],
693 'dependencies': [
694 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
695 ],
696 'export_dependent_settings': [
697 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
698 ],
699 'sources!': [
700 'fpdfsdk/src/javascript/JS_Runtime_Stub.cpp',
701 ],
702 'sources': [
703 'fpdfsdk/src/javascript/Consts.cpp',
704 'fpdfsdk/src/javascript/Consts.h',
705 'fpdfsdk/src/javascript/Document.cpp',
706 'fpdfsdk/src/javascript/Document.h',
707 'fpdfsdk/src/javascript/Field.cpp',
708 'fpdfsdk/src/javascript/Field.h',
709 'fpdfsdk/src/javascript/Icon.cpp',
710 'fpdfsdk/src/javascript/Icon.h',
711 'fpdfsdk/src/javascript/JS_Context.cpp',
712 'fpdfsdk/src/javascript/JS_Context.h',
713 'fpdfsdk/src/javascript/JS_Define.h',
714 'fpdfsdk/src/javascript/JS_EventHandler.cpp',
715 'fpdfsdk/src/javascript/JS_EventHandler.h',
716 'fpdfsdk/src/javascript/JS_GlobalData.cpp',
717 'fpdfsdk/src/javascript/JS_GlobalData.h',
718 'fpdfsdk/src/javascript/JS_Object.cpp',
719 'fpdfsdk/src/javascript/JS_Object.h',
720 'fpdfsdk/src/javascript/JS_Runtime.cpp',
721 'fpdfsdk/src/javascript/JS_Runtime.h',
722 'fpdfsdk/src/javascript/JS_Value.cpp',
723 'fpdfsdk/src/javascript/JS_Value.h',
724 'fpdfsdk/src/javascript/PublicMethods.cpp',
725 'fpdfsdk/src/javascript/PublicMethods.h',
726 'fpdfsdk/src/javascript/app.cpp',
727 'fpdfsdk/src/javascript/app.cpp',
728 'fpdfsdk/src/javascript/app.h',
729 'fpdfsdk/src/javascript/color.cpp',
730 'fpdfsdk/src/javascript/color.cpp',
731 'fpdfsdk/src/javascript/color.h',
732 'fpdfsdk/src/javascript/console.cpp',
733 'fpdfsdk/src/javascript/console.cpp',
734 'fpdfsdk/src/javascript/console.h',
735 'fpdfsdk/src/javascript/event.cpp',
736 'fpdfsdk/src/javascript/event.h',
737 'fpdfsdk/src/javascript/global.cpp',
738 'fpdfsdk/src/javascript/global.h',
739 'fpdfsdk/src/javascript/report.cpp',
740 'fpdfsdk/src/javascript/report.h',
741 'fpdfsdk/src/javascript/resource.cpp',
742 'fpdfsdk/src/javascript/resource.h',
743 'fpdfsdk/src/javascript/util.cpp',
744 'fpdfsdk/src/javascript/util.h',
745 'fpdfsdk/include/jsapi/fxjs_v8.h',
746 'fpdfsdk/src/jsapi/fxjs_v8.cpp',
747 ],
748 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700749 ],
750 },
751 {
752 'target_name': 'formfiller',
753 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700754 'sources': [
755 'fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h',
756 'fpdfsdk/include/formfiller/FFL_CheckBox.h',
757 'fpdfsdk/include/formfiller/FFL_ComboBox.h',
758 'fpdfsdk/include/formfiller/FFL_FormFiller.h',
759 'fpdfsdk/include/formfiller/FFL_IFormFiller.h',
760 'fpdfsdk/include/formfiller/FFL_ListBox.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700761 'fpdfsdk/include/formfiller/FFL_PushButton.h',
762 'fpdfsdk/include/formfiller/FFL_RadioButton.h',
763 'fpdfsdk/include/formfiller/FFL_TextField.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700764 'fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp',
765 'fpdfsdk/src/formfiller/FFL_CheckBox.cpp',
766 'fpdfsdk/src/formfiller/FFL_ComboBox.cpp',
767 'fpdfsdk/src/formfiller/FFL_FormFiller.cpp',
768 'fpdfsdk/src/formfiller/FFL_IFormFiller.cpp',
769 'fpdfsdk/src/formfiller/FFL_ListBox.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700770 'fpdfsdk/src/formfiller/FFL_PushButton.cpp',
771 'fpdfsdk/src/formfiller/FFL_RadioButton.cpp',
772 'fpdfsdk/src/formfiller/FFL_TextField.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700773 ],
774 },
Tom Sepez22ee2482015-01-07 10:04:16 -0800775 {
776 'target_name': 'pdfium_unittests',
777 'type': 'executable',
778 'dependencies': [
779 '<(DEPTH)/testing/gtest.gyp:gtest_main',
780 '<(DEPTH)/testing/gtest.gyp:gtest',
781 'pdfium',
Tom Sepezd831dc72015-10-19 16:04:22 -0700782 'test_support',
Tom Sepez22ee2482015-01-07 10:04:16 -0800783 ],
Tom Sepez22ee2482015-01-07 10:04:16 -0800784 'sources': [
Dan Sinclairbd552392015-11-02 16:26:55 -0500785 'core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp',
Dan Sinclair15a05702015-11-02 13:34:21 -0500786 'core/src/fpdfapi/fpdf_font/fpdf_font_unittest.cpp',
Dan Sinclairb4518212015-11-02 16:44:09 -0500787 'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp',
Tom Sepez83880372016-03-09 10:47:45 -0800788 'core/src/fpdfapi/fpdf_parser/cpdf_simple_parser_unittest.cpp',
Dan Sinclair4d6f03a2015-11-02 16:12:41 -0500789 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp',
Wei Li33ea6302016-01-22 18:45:53 -0800790 'core/src/fpdfapi/fpdf_parser/fpdf_parser_objects_unittest.cpp',
Dan Sinclaireed2ee92015-11-03 14:32:34 -0500791 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp',
Wei Li65b36552016-02-18 14:04:57 -0800792 'core/src/fpdfdoc/doc_basic_unittest.cpp',
Wei Li60eac0f2015-12-17 18:16:23 -0800793 'core/src/fpdftext/fpdf_text_int_unittest.cpp',
Tom Sepezdb205822015-03-19 13:02:23 -0700794 'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp',
Tom Sepez22ee2482015-01-07 10:04:16 -0800795 'core/src/fxcrt/fx_basic_bstring_unittest.cpp',
Dan Sinclair42fb3012016-03-03 08:59:22 -0500796 'core/src/fxcrt/fx_basic_gcc_unittest.cpp',
Tom Sepezed099be2015-05-15 16:30:52 -0700797 'core/src/fxcrt/fx_basic_memmgr_unittest.cpp',
Bo Xua6f95eb2015-01-21 12:17:23 -0800798 'core/src/fxcrt/fx_basic_wstring_unittest.cpp',
Lei Zhangee02ea32015-10-29 15:01:55 -0700799 'core/src/fxcrt/fx_bidi_unittest.cpp',
Dan Sinclair10cfea12015-11-16 13:09:00 -0500800 'core/src/fxcrt/fx_extension_unittest.cpp',
Tom Sepez24e733e2015-10-16 14:18:50 -0700801 'core/src/fxcrt/fx_system_unittest.cpp',
Wei Li5227e572016-03-04 15:49:17 -0800802 'fpdfsdk/src/fpdfdoc_unittest.cpp',
Tom Sepez24e733e2015-10-16 14:18:50 -0700803 'testing/fx_string_testhelpers.h',
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400804 'testing/fx_string_testhelpers.cpp',
Tom Sepeza8a39e22015-10-12 15:47:07 -0700805 ],
806 'conditions': [
807 ['pdf_enable_xfa==1', {
808 'sources': [
809 'xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp',
Dan Sinclair6cdf0842016-03-08 13:49:22 -0500810 'xfa/src/fxfa/parser/xfa_utils_imp_unittest.cpp',
Tom Sepeza8a39e22015-10-12 15:47:07 -0700811 ],
812 }],
Tom Sepez22ee2482015-01-07 10:04:16 -0800813 ],
814 },
Tom Sepez96d13342015-01-16 14:59:26 -0800815 {
816 'target_name': 'pdfium_embeddertests',
817 'type': 'executable',
818 'dependencies': [
Tom Sepeza310e002015-02-27 13:03:07 -0800819 '<(DEPTH)/testing/gmock.gyp:gmock',
Tom Sepez96d13342015-01-16 14:59:26 -0800820 '<(DEPTH)/testing/gtest.gyp:gtest',
821 'pdfium',
Tom Sepezd831dc72015-10-19 16:04:22 -0700822 'test_support',
Tom Sepez96d13342015-01-16 14:59:26 -0800823 ],
Tom Sepez96d13342015-01-16 14:59:26 -0800824 'sources': [
Oliver Chang67169d32015-11-04 14:33:56 -0800825 'core/src/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp',
Tom Sepez441932f2015-04-10 10:40:55 -0700826 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp',
JUN FANGfbc74492015-04-03 11:35:50 -0700827 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp',
Oliver Chang46bed622015-11-11 16:41:26 -0800828 'core/src/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp',
Dan Sinclair431ba182015-10-27 12:19:11 -0400829 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp',
Tom Sepez2255a1b2015-01-23 15:33:44 -0800830 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp',
Tom Sepezc8f6ab62015-01-22 11:20:06 -0800831 'fpdfsdk/src/fpdfdoc_embeddertest.cpp',
Tom Sepezd483eb42016-01-06 10:03:59 -0800832 'fpdfsdk/src/fpdfedit_embeddertest.cpp',
Tom Sepezfad30ca2016-01-04 15:09:33 -0800833 'fpdfsdk/src/fpdfext_embeddertest.cpp',
Tom Sepeza310e002015-02-27 13:03:07 -0800834 'fpdfsdk/src/fpdfformfill_embeddertest.cpp',
Tom Sepez9eb811f2016-01-05 14:48:31 -0800835 'fpdfsdk/src/fpdfsave_embeddertest.cpp',
Tom Sepez26b8a5b2015-01-27 12:42:36 -0800836 'fpdfsdk/src/fpdftext_embeddertest.cpp',
Tom Sepezcf22eb82015-05-12 17:28:08 -0700837 'fpdfsdk/src/fpdfview_c_api_test.c',
838 'fpdfsdk/src/fpdfview_c_api_test.h',
Tom Sepez96d13342015-01-16 14:59:26 -0800839 'fpdfsdk/src/fpdfview_embeddertest.cpp',
Tom Sepezfe351db2016-01-29 16:26:27 -0800840 'fpdfsdk/src/fsdk_baseform_embeddertest.cpp',
Tom Sepez96d13342015-01-16 14:59:26 -0800841 'testing/embedder_test.cpp',
842 'testing/embedder_test.h',
Tom Sepeza310e002015-02-27 13:03:07 -0800843 'testing/embedder_test_mock_delegate.h',
Tom Sepez6efc0ad2015-06-02 17:11:18 -0700844 'testing/embedder_test_timer_handling_delegate.h',
Tom Sepez96d13342015-01-16 14:59:26 -0800845 ],
Tom Sepez452b4f32015-10-13 09:27:27 -0700846 'conditions': [
Tom Sepezc46d0002015-11-30 15:46:36 -0800847 ['pdf_enable_xfa==1', {
848 'sources': [
Dan Sinclair6cdf0842016-03-08 13:49:22 -0500849 'xfa/src/fxfa/parser/xfa_parser_imp_embeddertest.cpp',
Tom Sepezc46d0002015-11-30 15:46:36 -0800850 ],
851 }],
Tom Sepez452b4f32015-10-13 09:27:27 -0700852 ['pdf_enable_v8==1', {
853 'include_dirs': [
854 '<(DEPTH)/v8',
855 '<(DEPTH)/v8/include',
856 ],
857 'dependencies': [
858 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
859 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
860 ],
861 'sources': [
Lei Zhang1ac47eb2015-12-21 11:04:44 -0800862 'fpdfsdk/src/javascript/public_methods_embeddertest.cpp',
Tom Sepez452b4f32015-10-13 09:27:27 -0700863 'fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp',
Lei Zhang1ac47eb2015-12-21 11:04:44 -0800864 'testing/js_embedder_test.cpp',
865 'testing/js_embedder_test.h',
Tom Sepez452b4f32015-10-13 09:27:27 -0700866 ],
867 }],
868 ],
Tom Sepez96d13342015-01-16 14:59:26 -0800869 },
Tom Sepezd831dc72015-10-19 16:04:22 -0700870 {
871 'target_name': 'test_support',
872 'type': 'static_library',
873 'dependencies': [
874 '<(DEPTH)/testing/gmock.gyp:gmock',
875 '<(DEPTH)/testing/gtest.gyp:gtest',
876 ],
Tom Sepezd831dc72015-10-19 16:04:22 -0700877 'sources': [
878 'testing/fx_string_testhelpers.cpp',
879 'testing/fx_string_testhelpers.h',
880 'testing/test_support.cpp',
881 'testing/test_support.h',
Wei Li091f7a02015-11-09 12:09:55 -0800882 'testing/utils/path_service.cpp',
Tom Sepezd831dc72015-10-19 16:04:22 -0700883 ],
884 'conditions': [
885 ['pdf_enable_v8==1', {
886 'include_dirs': [
887 '<(DEPTH)/v8',
888 '<(DEPTH)/v8/include',
889 ],
890 'dependencies': [
891 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
892 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
893 ],
894 }],
895 ],
896 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700897 ],
Tom Sepez0f05b1c2015-12-08 16:19:37 -0800898 'conditions': [
899 ['pdf_enable_xfa==1', {
900 'targets': [
901 {
902 'target_name': 'fpdfxfa',
903 'type': 'static_library',
904 'dependencies': [
905 'javascript',
906 'xfa.gyp:xfa',
907 ],
908 'sources': [
909 'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp',
910 'fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp',
911 'fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp',
912 'fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp',
913 'fpdfsdk/include/fpdfxfa/fpdfxfa_app.h',
914 'fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h',
915 'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h',
916 'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h',
917 ],
918 },
919 ]
920 }],
921 ]
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700922}