blob: d369c30308ac3c6bd40caab655cbc9905f075020 [file] [log] [blame]
John Abd-El-Malek5110c472014-05-17 22:33:34 -07001{
2 'variables': {
John Abd-El-Malek5110c472014-05-17 22:33:34 -07003 'pdf_use_skia%': 0,
Tom Sepez452b4f32015-10-13 09:27:27 -07004 'pdf_enable_v8%': 1,
Tom Sepeza8a39e22015-10-12 15:47:07 -07005 'pdf_enable_xfa%': 1,
John Abd-El-Malekef4dce42015-02-02 16:52:07 -08006 'conditions': [
7 ['OS=="linux"', {
8 'bundle_freetype%': 0,
9 }, { # On Android there's no system FreeType. On Windows and Mac, only a
10 # few methods are used from it.
11 'bundle_freetype%': 1,
Tom Sepezd8bc3d52015-02-24 15:07:41 -080012 }],
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080013 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070014 },
15 'target_defaults': {
16 'defines' : [
Bo Xu043f07f2014-10-03 11:06:35 -070017 'OPJ_STATIC',
John Abd-El-Malek385729b2015-02-06 15:51:11 -080018 'PNG_PREFIX',
19 'PNGPREFIX_H',
20 'PNG_USE_READ_MACROS',
Tom Sepez6fd997b2015-06-18 17:51:37 -070021 'V8_DEPRECATION_WARNINGS',
22 '_CRT_SECURE_NO_WARNINGS',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070023 ],
Bo Xu4c764f32014-12-19 14:29:17 -080024 'include_dirs': [
25 'third_party/freetype/include',
26 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070027 'conditions': [
28 ['pdf_use_skia==1', {
29 'defines': ['_SKIA_SUPPORT_'],
30 }],
Tom Sepez452b4f32015-10-13 09:27:27 -070031 ['pdf_enable_v8==1', {
32 'defines': ['PDF_ENABLE_V8'],
33 }],
Tom Sepeza8a39e22015-10-12 15:47:07 -070034 ['pdf_enable_xfa==1', {
35 'defines': ['PDF_ENABLE_XFA'],
36 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070037 ['OS=="linux"', {
John Abd-El-Malek5110c472014-05-17 22:33:34 -070038 'conditions': [
39 ['target_arch=="x64"', {
Nico Weberb72977f2014-07-18 15:50:30 -070040 'defines' : [ '_FX_CPU_=_FX_X64_', ],
41 'cflags': [ '-fPIC', ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070042 }],
43 ['target_arch=="ia32"', {
Nico Weberb72977f2014-07-18 15:50:30 -070044 'defines' : [ '_FX_CPU_=_FX_X86_', ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070045 }],
46 ],
47 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070048 ],
49 'msvs_disabled_warnings': [
Nico Weber8f75c672014-07-16 17:31:56 -070050 4005, 4018, 4146, 4333, 4345, 4267
John Abd-El-Malek5110c472014-05-17 22:33:34 -070051 ],
52 },
53 'targets': [
54 {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070055 'target_name': 'pdfium',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070056 'type': 'static_library',
57 'dependencies': [
Bo Xu4c764f32014-12-19 14:29:17 -080058 'third_party/third_party.gyp:bigint',
Tom Sepez35425892015-02-05 10:03:18 -080059 'third_party/third_party.gyp:pdfium_base',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070060 'fdrm',
61 'fpdfdoc',
62 'fpdfapi',
63 'fpdftext',
64 'formfiller',
65 'fxcodec',
66 'fxcrt',
67 'fxedit',
68 'fxge',
69 'javascript',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070070 'pdfwindow',
Bo Xufdc00a72014-10-28 23:03:33 -070071 'fpdfxfa',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070072 ],
73 'ldflags': [ '-L<(PRODUCT_DIR)',],
74 'sources': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -070075 'fpdfsdk/include/fsdk_actionhandler.h',
76 'fpdfsdk/include/fsdk_annothandler.h',
77 'fpdfsdk/include/fsdk_baseannot.h',
78 'fpdfsdk/include/fsdk_baseform.h',
79 'fpdfsdk/src/fpdfdoc.cpp',
80 'fpdfsdk/src/fpdfeditimg.cpp',
81 'fpdfsdk/src/fpdfeditpage.cpp',
82 'fpdfsdk/src/fpdfformfill.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070083 'fpdfsdk/src/fpdfppo.cpp',
84 'fpdfsdk/src/fpdfsave.cpp',
85 'fpdfsdk/src/fpdftext.cpp',
86 'fpdfsdk/src/fpdfview.cpp',
87 'fpdfsdk/src/fpdf_dataavail.cpp',
88 'fpdfsdk/src/fpdf_ext.cpp',
89 'fpdfsdk/src/fpdf_flatten.cpp',
90 'fpdfsdk/src/fpdf_progressive.cpp',
91 'fpdfsdk/src/fpdf_searchex.cpp',
92 'fpdfsdk/src/fpdf_sysfontinfo.cpp',
Tom Sepez1ed8a212015-05-11 15:25:39 -070093 'fpdfsdk/src/fpdf_transformpage.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070094 'fpdfsdk/src/fsdk_actionhandler.cpp',
95 'fpdfsdk/src/fsdk_annothandler.cpp',
96 'fpdfsdk/src/fsdk_baseannot.cpp',
97 'fpdfsdk/src/fsdk_baseform.cpp',
98 'fpdfsdk/src/fsdk_mgr.cpp',
99 'fpdfsdk/src/fsdk_rendercontext.cpp',
Tom Sepez1ed8a212015-05-11 15:25:39 -0700100 'public/fpdf_dataavail.h',
101 'public/fpdf_doc.h',
102 'public/fpdf_edit.h',
103 'public/fpdf_ext.h',
104 'public/fpdf_flatten.h',
105 'public/fpdf_formfill.h',
106 'public/fpdf_fwlevent.h',
107 'public/fpdf_ppo.h',
108 'public/fpdf_progressive.h',
109 'public/fpdf_save.h',
110 'public/fpdf_searchex.h',
111 'public/fpdf_sysfontinfo.h',
112 'public/fpdf_text.h',
113 'public/fpdf_transformpage.h',
114 'public/fpdfview.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700115 ],
116 'conditions': [
John Abd-El-Malekef4dce42015-02-02 16:52:07 -0800117 ['bundle_freetype==1', {
118 'dependencies': [
119 'third_party/third_party.gyp:freetype',
120 ],
121 }, {
122 'link_settings': {
123 'libraries': [
124 '-lfreetype',
125 ],
126 },
127 }],
John Abd-El-Malek26119322014-05-26 18:27:11 -0700128 ],
129 'all_dependent_settings': {
130 'msvs_settings': {
131 'VCLinkerTool': {
132 'AdditionalDependencies': [
133 'advapi32.lib',
134 'gdi32.lib',
135 'user32.lib',
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700136 ],
137 },
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700138 },
John Abd-El-Malek26119322014-05-26 18:27:11 -0700139 'conditions': [
140 ['OS=="mac"', {
141 'link_settings': {
142 'libraries': [
143 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
144 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
145 ],
146 },
147 }],
148 ],
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700149 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700150 },
151 {
152 'target_name': 'fdrm',
153 'type': 'static_library',
154 'ldflags': [ '-L<(PRODUCT_DIR)',],
155 'sources': [
156 'core/include/fdrm/fx_crypt.h',
157 'core/src/fdrm/crypto/fx_crypt.cpp',
158 'core/src/fdrm/crypto/fx_crypt_aes.cpp',
159 'core/src/fdrm/crypto/fx_crypt_sha.cpp',
160 ],
161 },
162 {
163 'target_name': 'fpdfdoc',
164 'type': 'static_library',
165 'ldflags': [ '-L<(PRODUCT_DIR)',],
166 'sources': [
167 'core/include/fpdfdoc/fpdf_ap.h',
168 'core/include/fpdfdoc/fpdf_doc.h',
169 'core/include/fpdfdoc/fpdf_tagged.h',
170 'core/include/fpdfdoc/fpdf_vt.h',
171 'core/src/fpdfdoc/doc_action.cpp',
172 'core/src/fpdfdoc/doc_annot.cpp',
173 'core/src/fpdfdoc/doc_ap.cpp',
174 'core/src/fpdfdoc/doc_basic.cpp',
175 'core/src/fpdfdoc/doc_bookmark.cpp',
176 'core/src/fpdfdoc/doc_form.cpp',
177 'core/src/fpdfdoc/doc_formcontrol.cpp',
178 'core/src/fpdfdoc/doc_formfield.cpp',
179 'core/src/fpdfdoc/doc_link.cpp',
180 'core/src/fpdfdoc/doc_metadata.cpp',
181 'core/src/fpdfdoc/doc_ocg.cpp',
182 'core/src/fpdfdoc/doc_tagged.cpp',
183 'core/src/fpdfdoc/doc_utils.cpp',
Tom Sepezeff208f2015-05-08 13:45:01 -0700184 'core/src/fpdfdoc/doc_utils.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700185 'core/src/fpdfdoc/doc_viewerPreferences.cpp',
186 'core/src/fpdfdoc/doc_vt.cpp',
187 'core/src/fpdfdoc/doc_vtmodule.cpp',
188 'core/src/fpdfdoc/pdf_vt.h',
189 'core/src/fpdfdoc/tagged_int.h',
190 ],
191 },
192 {
193 'target_name': 'fpdfapi',
194 'type': 'static_library',
195 'ldflags': [ '-L<(PRODUCT_DIR)',],
196 'sources': [
197 'core/include/fpdfapi/fpdfapi.h',
198 'core/include/fpdfapi/fpdf_module.h',
199 'core/include/fpdfapi/fpdf_objects.h',
200 'core/include/fpdfapi/fpdf_page.h',
201 'core/include/fpdfapi/fpdf_pageobj.h',
202 'core/include/fpdfapi/fpdf_parser.h',
203 'core/include/fpdfapi/fpdf_render.h',
204 'core/include/fpdfapi/fpdf_resource.h',
205 'core/include/fpdfapi/fpdf_serial.h',
206 'core/src/fpdfapi/fpdf_basic_module.cpp',
207 'core/src/fpdfapi/fpdf_cmaps/cmap_int.h',
208 'core/src/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp',
209 'core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp',
210 'core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp',
211 'core/src/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.cpp',
212 'core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp',
213 'core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp',
214 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp',
215 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp',
216 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp',
217 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp',
218 'core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp',
219 'core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp',
220 'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp',
221 'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp',
222 'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp',
223 'core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp',
224 'core/src/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp',
225 'core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.cpp',
226 'core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp',
227 'core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp',
228 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp',
229 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp',
230 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp',
231 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp',
232 'core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp',
233 'core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp',
234 'core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp',
235 'core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp',
236 'core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp',
237 'core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp',
238 'core/src/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp',
239 'core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp',
240 'core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp',
241 'core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp',
242 'core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp',
243 'core/src/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp',
244 'core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp',
245 'core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp',
246 'core/src/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp',
247 'core/src/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.cpp',
248 'core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp',
249 'core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp',
250 'core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp',
251 'core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp',
252 'core/src/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp',
253 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp',
254 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp',
255 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp',
256 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700257 'core/src/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp',
258 'core/src/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp',
259 'core/src/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp',
260 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp',
261 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp',
262 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp',
263 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp',
264 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp',
265 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp',
266 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp',
267 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp',
268 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp',
269 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp',
270 'core/src/fpdfapi/fpdf_edit/editint.h',
271 'core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp',
272 'core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp',
273 'core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp',
274 'core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp',
275 'core/src/fpdfapi/fpdf_font/common.h',
276 'core/src/fpdfapi/fpdf_font/font_int.h',
277 'core/src/fpdfapi/fpdf_font/fpdf_font.cpp',
278 'core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp',
279 'core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700280 'core/src/fpdfapi/fpdf_font/ttgsubtable.cpp',
281 'core/src/fpdfapi/fpdf_font/ttgsubtable.h',
282 'core/src/fpdfapi/fpdf_page/fpdf_page.cpp',
283 'core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp',
284 'core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp',
285 'core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp',
286 'core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp',
287 'core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp',
288 'core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700289 'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp',
290 'core/src/fpdfapi/fpdf_page/fpdf_page_path.cpp',
291 'core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp',
292 'core/src/fpdfapi/fpdf_page/pageint.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700293 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp',
294 'core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp',
295 'core/src/fpdfapi/fpdf_parser/fpdf_parser_encrypt.cpp',
296 'core/src/fpdfapi/fpdf_parser/fpdf_parser_fdf.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700297 'core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp',
298 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp',
299 'core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp',
300 'core/src/fpdfapi/fpdf_render/fpdf_render.cpp',
301 'core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp',
302 'core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp',
303 'core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp',
304 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp',
305 'core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp',
306 'core/src/fpdfapi/fpdf_render/render_int.h',
307 ],
308 },
309 {
310 'target_name': 'fpdftext',
311 'type': 'static_library',
312 'ldflags': [ '-L<(PRODUCT_DIR)',],
313 'sources': [
314 'core/include/fpdftext/fpdf_text.h',
315 'core/src/fpdftext/fpdf_text.cpp',
316 'core/src/fpdftext/fpdf_text_int.cpp',
317 'core/src/fpdftext/fpdf_text_search.cpp',
318 'core/src/fpdftext/text_int.h',
319 'core/src/fpdftext/txtproc.h',
320 'core/src/fpdftext/unicodenormalization.cpp',
321 'core/src/fpdftext/unicodenormalizationdata.cpp',
Tom Sepez7da98032015-08-19 10:42:45 -0700322 'core/src/fpdftext/unicodenormalizationdata.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700323 ],
324 },
325 {
326 'target_name': 'fxcodec',
327 'type': 'static_library',
Tom Sepez8be55752015-06-17 11:05:02 -0700328 'dependencies': [
329 'third_party/third_party.gyp:fx_lcms2',
Tom Sepez0a119752015-06-17 15:46:03 -0700330 'third_party/third_party.gyp:fx_libjpeg',
Tom Sepez6fd997b2015-06-18 17:51:37 -0700331 'third_party/third_party.gyp:fx_libopenjpeg',
Tom Sepez5ef9faa2015-10-12 15:43:01 -0700332 'third_party/third_party.gyp:fx_lpng',
333 'third_party/third_party.gyp:fx_tiff',
Tom Sepez6f93de52015-06-19 12:57:10 -0700334 'third_party/third_party.gyp:fx_zlib',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700335 ],
336 'ldflags': [ '-L<(PRODUCT_DIR)',],
337 'sources': [
338 'core/include/fxcodec/fx_codec.h',
339 'core/include/fxcodec/fx_codec_def.h',
Tom Sepezb2552022015-07-14 16:43:54 -0700340 'core/include/fxcodec/fx_codec_flate.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700341 'core/include/fxcodec/fx_codec_provider.h',
342 'core/src/fxcodec/codec/codec_int.h',
343 'core/src/fxcodec/codec/fx_codec.cpp',
Bo Xufdc00a72014-10-28 23:03:33 -0700344 'core/src/fxcodec/codec/fx_codec_bmp.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700345 'core/src/fxcodec/codec/fx_codec_fax.cpp',
346 'core/src/fxcodec/codec/fx_codec_flate.cpp',
Bo Xufdc00a72014-10-28 23:03:33 -0700347 'core/src/fxcodec/codec/fx_codec_gif.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700348 'core/src/fxcodec/codec/fx_codec_icc.cpp',
349 'core/src/fxcodec/codec/fx_codec_jbig.cpp',
350 'core/src/fxcodec/codec/fx_codec_jbig_enc.cpp',
351 'core/src/fxcodec/codec/fx_codec_jpeg.cpp',
352 'core/src/fxcodec/codec/fx_codec_jpx_opj.cpp',
Bo Xufdc00a72014-10-28 23:03:33 -0700353 'core/src/fxcodec/codec/fx_codec_png.cpp',
354 'core/src/fxcodec/codec/fx_codec_progress.cpp',
355 'core/src/fxcodec/codec/fx_codec_progress.h',
356 'core/src/fxcodec/codec/fx_codec_tiff.cpp',
Lei Zhangb060a552015-09-24 01:13:26 -0700357 'core/src/fxcodec/jbig2/JBig2_ArithDecoder.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700358 'core/src/fxcodec/jbig2/JBig2_ArithDecoder.h',
359 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp',
360 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h',
Lei Zhang4e568672015-10-07 21:33:55 -0700361 'core/src/fxcodec/jbig2/JBig2_BitStream.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700362 'core/src/fxcodec/jbig2/JBig2_BitStream.h',
363 'core/src/fxcodec/jbig2/JBig2_Context.cpp',
364 'core/src/fxcodec/jbig2/JBig2_Context.h',
365 'core/src/fxcodec/jbig2/JBig2_Define.h',
Lei Zhangb060a552015-09-24 01:13:26 -0700366 'core/src/fxcodec/jbig2/JBig2_GrdProc.cpp',
367 'core/src/fxcodec/jbig2/JBig2_GrdProc.h',
368 'core/src/fxcodec/jbig2/JBig2_GrrdProc.cpp',
369 'core/src/fxcodec/jbig2/JBig2_GrrdProc.h',
370 'core/src/fxcodec/jbig2/JBig2_GsidProc.cpp',
371 'core/src/fxcodec/jbig2/JBig2_GsidProc.h',
372 'core/src/fxcodec/jbig2/JBig2_HtrdProc.cpp',
373 'core/src/fxcodec/jbig2/JBig2_HtrdProc.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700374 'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp',
375 'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.h',
376 'core/src/fxcodec/jbig2/JBig2_HuffmanTable.cpp',
377 'core/src/fxcodec/jbig2/JBig2_HuffmanTable.h',
378 'core/src/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h',
379 'core/src/fxcodec/jbig2/JBig2_Image.cpp',
380 'core/src/fxcodec/jbig2/JBig2_Image.h',
381 'core/src/fxcodec/jbig2/JBig2_List.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700382 'core/src/fxcodec/jbig2/JBig2_Page.h',
383 'core/src/fxcodec/jbig2/JBig2_PatternDict.cpp',
384 'core/src/fxcodec/jbig2/JBig2_PatternDict.h',
Lei Zhangb060a552015-09-24 01:13:26 -0700385 'core/src/fxcodec/jbig2/JBig2_PddProc.cpp',
386 'core/src/fxcodec/jbig2/JBig2_PddProc.h',
387 'core/src/fxcodec/jbig2/JBig2_SddProc.cpp',
388 'core/src/fxcodec/jbig2/JBig2_SddProc.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700389 'core/src/fxcodec/jbig2/JBig2_Segment.cpp',
390 'core/src/fxcodec/jbig2/JBig2_Segment.h',
391 'core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp',
392 'core/src/fxcodec/jbig2/JBig2_SymbolDict.h',
Lei Zhangb060a552015-09-24 01:13:26 -0700393 'core/src/fxcodec/jbig2/JBig2_TrdProc.cpp',
394 'core/src/fxcodec/jbig2/JBig2_TrdProc.h',
Bo Xufdc00a72014-10-28 23:03:33 -0700395 'core/src/fxcodec/lbmp/fx_bmp.cpp',
396 'core/src/fxcodec/lbmp/fx_bmp.h',
Bo Xufdc00a72014-10-28 23:03:33 -0700397 'core/src/fxcodec/lgif/fx_gif.cpp',
398 'core/src/fxcodec/lgif/fx_gif.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700399 ],
Tom Sepez8be55752015-06-17 11:05:02 -0700400 'msvs_settings': {
401 'VCCLCompilerTool': {
402 # Unresolved warnings in fx_codec_jpx_opj.cpp
403 # https://code.google.com/p/pdfium/issues/detail?id=100
404 'WarnAsError': 'false',
405 },
406 },
John Abd-El-Malekdef5c7d2014-06-09 16:07:18 -0700407 'conditions': [
408 ['os_posix==1', {
409 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
410 # conversion to check that an address is 16-bit aligned (benign).
411 'cflags_c': [ '-Wno-pointer-to-int-cast' ],
412 }],
413 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700414 },
415 {
416 'target_name': 'fxcrt',
417 'type': 'static_library',
418 'ldflags': [ '-L<(PRODUCT_DIR)',],
419 'sources': [
420 'core/include/fxcrt/fx_arb.h',
421 'core/include/fxcrt/fx_basic.h',
Lei Zhangee02ea32015-10-29 15:01:55 -0700422 'core/include/fxcrt/fx_bidi.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700423 'core/include/fxcrt/fx_coordinates.h',
424 'core/include/fxcrt/fx_ext.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700425 'core/include/fxcrt/fx_memory.h',
Tom Sepez6675a802015-06-04 19:05:21 -0700426 'core/include/fxcrt/fx_safe_types.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700427 'core/include/fxcrt/fx_stream.h',
428 'core/include/fxcrt/fx_string.h',
429 'core/include/fxcrt/fx_system.h',
430 'core/include/fxcrt/fx_ucd.h',
431 'core/include/fxcrt/fx_xml.h',
432 'core/src/fxcrt/extension.h',
433 'core/src/fxcrt/fxcrt_platforms.cpp',
434 'core/src/fxcrt/fxcrt_platforms.h',
435 'core/src/fxcrt/fxcrt_posix.cpp',
436 'core/src/fxcrt/fxcrt_posix.h',
437 'core/src/fxcrt/fxcrt_windows.cpp',
438 'core/src/fxcrt/fxcrt_windows.h',
439 'core/src/fxcrt/fx_arabic.cpp',
440 'core/src/fxcrt/fx_arabic.h',
441 'core/src/fxcrt/fx_basic_array.cpp',
442 'core/src/fxcrt/fx_basic_bstring.cpp',
443 'core/src/fxcrt/fx_basic_buffer.cpp',
444 'core/src/fxcrt/fx_basic_coords.cpp',
445 'core/src/fxcrt/fx_basic_gcc.cpp',
446 'core/src/fxcrt/fx_basic_list.cpp',
447 'core/src/fxcrt/fx_basic_maps.cpp',
448 'core/src/fxcrt/fx_basic_memmgr.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700449 'core/src/fxcrt/fx_basic_plex.cpp',
450 'core/src/fxcrt/fx_basic_utf.cpp',
451 'core/src/fxcrt/fx_basic_util.cpp',
452 'core/src/fxcrt/fx_basic_wstring.cpp',
Lei Zhangee02ea32015-10-29 15:01:55 -0700453 'core/src/fxcrt/fx_bidi.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700454 'core/src/fxcrt/fx_extension.cpp',
455 'core/src/fxcrt/fx_ucddata.cpp',
456 'core/src/fxcrt/fx_unicode.cpp',
457 'core/src/fxcrt/fx_xml_composer.cpp',
458 'core/src/fxcrt/fx_xml_parser.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700459 'core/src/fxcrt/plex.h',
460 'core/src/fxcrt/xml_int.h',
461 ],
462 },
463 {
464 'target_name': 'fxge',
465 'type': 'static_library',
Tom Sepezb7d358b2015-06-17 10:01:00 -0700466 'ldflags': [
467 '-L<(PRODUCT_DIR)',
468 ],
469 'dependencies': [
470 'third_party/third_party.gyp:fx_agg',
471 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700472 'sources': [
473 'core/include/fxge/fpf.h',
474 'core/include/fxge/fx_dib.h',
475 'core/include/fxge/fx_font.h',
476 'core/include/fxge/fx_freetype.h',
477 'core/include/fxge/fx_ge.h',
478 'core/include/fxge/fx_ge_apple.h',
479 'core/include/fxge/fx_ge_win32.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700480 'core/src/fxge/agg/include/fx_agg_driver.h',
Tom Sepezb7d358b2015-06-17 10:01:00 -0700481 'core/src/fxge/agg/src/fx_agg_driver.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700482 'core/src/fxge/android/fpf_skiafont.cpp',
483 'core/src/fxge/android/fpf_skiafont.h',
484 'core/src/fxge/android/fpf_skiafontmgr.cpp',
485 'core/src/fxge/android/fpf_skiafontmgr.h',
486 'core/src/fxge/android/fpf_skiamodule.cpp',
487 'core/src/fxge/android/fpf_skiamodule.h',
488 'core/src/fxge/android/fx_android_font.cpp',
489 'core/src/fxge/android/fx_android_font.h',
490 'core/src/fxge/android/fx_android_imp.cpp',
491 'core/src/fxge/android/fx_fpf.h',
492 'core/src/fxge/apple/apple_int.h',
493 'core/src/fxge/apple/fx_apple_platform.cpp',
494 'core/src/fxge/apple/fx_mac_imp.cpp',
495 'core/src/fxge/apple/fx_quartz_device.cpp',
496 'core/src/fxge/dib/dib_int.h',
497 'core/src/fxge/dib/fx_dib_composite.cpp',
498 'core/src/fxge/dib/fx_dib_convert.cpp',
499 'core/src/fxge/dib/fx_dib_engine.cpp',
500 'core/src/fxge/dib/fx_dib_main.cpp',
501 'core/src/fxge/dib/fx_dib_transform.cpp',
Tom Sepez7da98032015-08-19 10:42:45 -0700502 'core/src/fxge/fontdata/chromefontdata/chromefontdata.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700503 'core/src/fxge/fontdata/chromefontdata/FoxitDingbats.c',
504 'core/src/fxge/fontdata/chromefontdata/FoxitFixed.c',
505 'core/src/fxge/fontdata/chromefontdata/FoxitFixedBold.c',
506 'core/src/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.c',
507 'core/src/fxge/fontdata/chromefontdata/FoxitFixedItalic.c',
508 'core/src/fxge/fontdata/chromefontdata/FoxitSans.c',
509 'core/src/fxge/fontdata/chromefontdata/FoxitSansBold.c',
510 'core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.c',
511 'core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.c',
512 'core/src/fxge/fontdata/chromefontdata/FoxitSansMM.c',
513 'core/src/fxge/fontdata/chromefontdata/FoxitSerif.c',
514 'core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.c',
515 'core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.c',
516 'core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.c',
517 'core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.c',
518 'core/src/fxge/fontdata/chromefontdata/FoxitSymbol.c',
Bo Xu4c764f32014-12-19 14:29:17 -0800519 'core/src/fxge/freetype/fx_freetype.c',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700520 'core/src/fxge/ge/fx_ge.cpp',
521 'core/src/fxge/ge/fx_ge_device.cpp',
522 'core/src/fxge/ge/fx_ge_font.cpp',
523 'core/src/fxge/ge/fx_ge_fontmap.cpp',
524 'core/src/fxge/ge/fx_ge_linux.cpp',
525 'core/src/fxge/ge/fx_ge_path.cpp',
526 'core/src/fxge/ge/fx_ge_ps.cpp',
527 'core/src/fxge/ge/fx_ge_text.cpp',
528 'core/src/fxge/ge/text_int.h',
529 ],
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400530 'variables': {
531 'clang_warning_flags': [
532 # http://code.google.com/p/pdfium/issues/detail?id=188
533 '-Wno-switch',
534 ],
535 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700536 'conditions': [
537 ['pdf_use_skia==1', {
538 'sources': [
539 'core/src/fxge/skia/fx_skia_blitter_new.cpp',
540 'core/src/fxge/skia/fx_skia_device.cpp',
541 ],
542 'dependencies': [
543 '<(DEPTH)/skia/skia.gyp:skia',
544 ],
545 'include_dirs': [
546 '<(DEPTH)/third_party/skia/include/config',
547 '<(DEPTH)/third_party/skia/include/core',
548 '<(DEPTH)/third_party/skia/include/effects',
549 '<(DEPTH)/third_party/skia/include/images',
550 '<(DEPTH)/third_party/skia/include/lazy',
551 '<(DEPTH)/third_party/skia/include/pathops',
552 '<(DEPTH)/third_party/skia/include/utils',
553 '<(DEPTH)/third_party/skia/src/core',
554 ],
555 }],
556 ['OS=="win"', {
557 'defines!': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700558 'WIN32_LEAN_AND_MEAN'
559 ],
560 'sources': [
561 'core/src/fxge/win32/dwrite_int.h',
562 'core/src/fxge/win32/fx_win32_device.cpp',
563 'core/src/fxge/win32/fx_win32_dib.cpp',
564 'core/src/fxge/win32/fx_win32_dwrite.cpp',
565 'core/src/fxge/win32/fx_win32_gdipext.cpp',
566 'core/src/fxge/win32/fx_win32_print.cpp',
567 'core/src/fxge/win32/win32_int.h',
568 ],
569 }],
570 ],
571 },
572 {
573 'target_name': 'fxedit',
574 'type': 'static_library',
575 'ldflags': [ '-L<(PRODUCT_DIR)',],
576 'sources': [
577 'fpdfsdk/include/fxedit/fx_edit.h',
578 'fpdfsdk/include/fxedit/fxet_edit.h',
579 'fpdfsdk/include/fxedit/fxet_list.h',
580 'fpdfsdk/include/fxedit/fxet_stub.h',
581 'fpdfsdk/src/fxedit/fxet_ap.cpp',
582 'fpdfsdk/src/fxedit/fxet_edit.cpp',
583 'fpdfsdk/src/fxedit/fxet_list.cpp',
584 'fpdfsdk/src/fxedit/fxet_module.cpp',
585 'fpdfsdk/src/fxedit/fxet_pageobjs.cpp',
586 ],
587 },
588 {
589 'target_name': 'pdfwindow',
590 'type': 'static_library',
591 'ldflags': [ '-L<(PRODUCT_DIR)',],
592 'sources': [
593 'fpdfsdk/include/pdfwindow/IPDFWindow.h',
594 'fpdfsdk/include/pdfwindow/PDFWindow.h',
595 'fpdfsdk/include/pdfwindow/PWL_Button.h',
596 'fpdfsdk/include/pdfwindow/PWL_Caret.h',
597 'fpdfsdk/include/pdfwindow/PWL_ComboBox.h',
598 'fpdfsdk/include/pdfwindow/PWL_Edit.h',
599 'fpdfsdk/include/pdfwindow/PWL_EditCtrl.h',
600 'fpdfsdk/include/pdfwindow/PWL_FontMap.h',
601 'fpdfsdk/include/pdfwindow/PWL_Icon.h',
602 'fpdfsdk/include/pdfwindow/PWL_IconList.h',
603 'fpdfsdk/include/pdfwindow/PWL_Label.h',
604 'fpdfsdk/include/pdfwindow/PWL_ListBox.h',
605 'fpdfsdk/include/pdfwindow/PWL_ListCtrl.h',
606 'fpdfsdk/include/pdfwindow/PWL_Note.h',
607 'fpdfsdk/include/pdfwindow/PWL_ScrollBar.h',
608 'fpdfsdk/include/pdfwindow/PWL_Signature.h',
609 'fpdfsdk/include/pdfwindow/PWL_SpecialButton.h',
610 'fpdfsdk/include/pdfwindow/PWL_Utils.h',
611 'fpdfsdk/include/pdfwindow/PWL_Wnd.h',
612 'fpdfsdk/src/pdfwindow/PWL_Button.cpp',
613 'fpdfsdk/src/pdfwindow/PWL_Caret.cpp',
614 'fpdfsdk/src/pdfwindow/PWL_ComboBox.cpp',
615 'fpdfsdk/src/pdfwindow/PWL_Edit.cpp',
616 'fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp',
617 'fpdfsdk/src/pdfwindow/PWL_FontMap.cpp',
618 'fpdfsdk/src/pdfwindow/PWL_Icon.cpp',
619 'fpdfsdk/src/pdfwindow/PWL_IconList.cpp',
620 'fpdfsdk/src/pdfwindow/PWL_Label.cpp',
621 'fpdfsdk/src/pdfwindow/PWL_ListBox.cpp',
622 'fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp',
623 'fpdfsdk/src/pdfwindow/PWL_Note.cpp',
624 'fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp',
625 'fpdfsdk/src/pdfwindow/PWL_Signature.cpp',
626 'fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp',
627 'fpdfsdk/src/pdfwindow/PWL_Utils.cpp',
628 'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp',
629 ],
630 },
631 {
Bo Xufdc00a72014-10-28 23:03:33 -0700632 'target_name': 'fpdfxfa',
633 'type': 'static_library',
Bo Xufdc00a72014-10-28 23:03:33 -0700634 'dependencies': [
Tom Sepeza8a39e22015-10-12 15:47:07 -0700635 'javascript'
Bo Xufdc00a72014-10-28 23:03:33 -0700636 ],
637 'sources': [
638 'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp',
639 'fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp',
640 'fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp',
641 'fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp',
642 'fpdfsdk/include/fpdfxfa/fpdfxfa_app.h',
643 'fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h',
644 'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h',
645 'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h',
646 ],
Tom Sepeza8a39e22015-10-12 15:47:07 -0700647 'ldflags': [ '-L<(PRODUCT_DIR)',],
648 'conditions': [
649 [ "pdf_enable_xfa==1", {
650 'dependencies': [
651 'xfa.gyp:xfa',
652 ],
653 }],
654 ],
Bo Xufdc00a72014-10-28 23:03:33 -0700655 },
656 {
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700657 'target_name': 'javascript',
658 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700659 'ldflags': [ '-L<(PRODUCT_DIR)',],
660 'sources': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700661 'fpdfsdk/include/javascript/IJavaScript.h',
Tom Sepez452b4f32015-10-13 09:27:27 -0700662 'fpdfsdk/src/javascript/JS_Runtime_Stub.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700663 ],
Tom Sepez452b4f32015-10-13 09:27:27 -0700664 'conditions': [
665 ['pdf_enable_v8==1', {
666 'include_dirs': [
667 '<(DEPTH)/v8',
668 '<(DEPTH)/v8/include',
669 ],
670 'dependencies': [
671 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
672 ],
673 'export_dependent_settings': [
674 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
675 ],
676 'sources!': [
677 'fpdfsdk/src/javascript/JS_Runtime_Stub.cpp',
678 ],
679 'sources': [
680 'fpdfsdk/src/javascript/Consts.cpp',
681 'fpdfsdk/src/javascript/Consts.h',
682 'fpdfsdk/src/javascript/Document.cpp',
683 'fpdfsdk/src/javascript/Document.h',
684 'fpdfsdk/src/javascript/Field.cpp',
685 'fpdfsdk/src/javascript/Field.h',
686 'fpdfsdk/src/javascript/Icon.cpp',
687 'fpdfsdk/src/javascript/Icon.h',
688 'fpdfsdk/src/javascript/JS_Context.cpp',
689 'fpdfsdk/src/javascript/JS_Context.h',
690 'fpdfsdk/src/javascript/JS_Define.h',
691 'fpdfsdk/src/javascript/JS_EventHandler.cpp',
692 'fpdfsdk/src/javascript/JS_EventHandler.h',
693 'fpdfsdk/src/javascript/JS_GlobalData.cpp',
694 'fpdfsdk/src/javascript/JS_GlobalData.h',
695 'fpdfsdk/src/javascript/JS_Object.cpp',
696 'fpdfsdk/src/javascript/JS_Object.h',
697 'fpdfsdk/src/javascript/JS_Runtime.cpp',
698 'fpdfsdk/src/javascript/JS_Runtime.h',
699 'fpdfsdk/src/javascript/JS_Value.cpp',
700 'fpdfsdk/src/javascript/JS_Value.h',
701 'fpdfsdk/src/javascript/PublicMethods.cpp',
702 'fpdfsdk/src/javascript/PublicMethods.h',
703 'fpdfsdk/src/javascript/app.cpp',
704 'fpdfsdk/src/javascript/app.cpp',
705 'fpdfsdk/src/javascript/app.h',
706 'fpdfsdk/src/javascript/color.cpp',
707 'fpdfsdk/src/javascript/color.cpp',
708 'fpdfsdk/src/javascript/color.h',
709 'fpdfsdk/src/javascript/console.cpp',
710 'fpdfsdk/src/javascript/console.cpp',
711 'fpdfsdk/src/javascript/console.h',
712 'fpdfsdk/src/javascript/event.cpp',
713 'fpdfsdk/src/javascript/event.h',
714 'fpdfsdk/src/javascript/global.cpp',
715 'fpdfsdk/src/javascript/global.h',
716 'fpdfsdk/src/javascript/report.cpp',
717 'fpdfsdk/src/javascript/report.h',
718 'fpdfsdk/src/javascript/resource.cpp',
719 'fpdfsdk/src/javascript/resource.h',
720 'fpdfsdk/src/javascript/util.cpp',
721 'fpdfsdk/src/javascript/util.h',
722 'fpdfsdk/include/jsapi/fxjs_v8.h',
723 'fpdfsdk/src/jsapi/fxjs_v8.cpp',
724 ],
725 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700726 ],
727 },
728 {
729 'target_name': 'formfiller',
730 'type': 'static_library',
731 'ldflags': [ '-L<(PRODUCT_DIR)',],
732 'sources': [
733 'fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h',
734 'fpdfsdk/include/formfiller/FFL_CheckBox.h',
735 'fpdfsdk/include/formfiller/FFL_ComboBox.h',
736 'fpdfsdk/include/formfiller/FFL_FormFiller.h',
737 'fpdfsdk/include/formfiller/FFL_IFormFiller.h',
738 'fpdfsdk/include/formfiller/FFL_ListBox.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700739 'fpdfsdk/include/formfiller/FFL_PushButton.h',
740 'fpdfsdk/include/formfiller/FFL_RadioButton.h',
741 'fpdfsdk/include/formfiller/FFL_TextField.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700742 'fpdfsdk/include/formfiller/FormFiller.h',
743 'fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp',
744 'fpdfsdk/src/formfiller/FFL_CheckBox.cpp',
745 'fpdfsdk/src/formfiller/FFL_ComboBox.cpp',
746 'fpdfsdk/src/formfiller/FFL_FormFiller.cpp',
747 'fpdfsdk/src/formfiller/FFL_IFormFiller.cpp',
748 'fpdfsdk/src/formfiller/FFL_ListBox.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700749 'fpdfsdk/src/formfiller/FFL_PushButton.cpp',
750 'fpdfsdk/src/formfiller/FFL_RadioButton.cpp',
751 'fpdfsdk/src/formfiller/FFL_TextField.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700752 ],
753 },
Tom Sepez22ee2482015-01-07 10:04:16 -0800754 {
755 'target_name': 'pdfium_unittests',
756 'type': 'executable',
757 'dependencies': [
758 '<(DEPTH)/testing/gtest.gyp:gtest_main',
759 '<(DEPTH)/testing/gtest.gyp:gtest',
760 'pdfium',
Tom Sepezd831dc72015-10-19 16:04:22 -0700761 'test_support',
Tom Sepez22ee2482015-01-07 10:04:16 -0800762 ],
763 'include_dirs': [
764 '<(DEPTH)'
765 ],
766 'sources': [
Tom Sepezdb205822015-03-19 13:02:23 -0700767 'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp',
Tom Sepez22ee2482015-01-07 10:04:16 -0800768 'core/src/fxcrt/fx_basic_bstring_unittest.cpp',
Tom Sepezed099be2015-05-15 16:30:52 -0700769 'core/src/fxcrt/fx_basic_memmgr_unittest.cpp',
Bo Xua6f95eb2015-01-21 12:17:23 -0800770 'core/src/fxcrt/fx_basic_wstring_unittest.cpp',
Lei Zhangee02ea32015-10-29 15:01:55 -0700771 'core/src/fxcrt/fx_bidi_unittest.cpp',
Tom Sepez24e733e2015-10-16 14:18:50 -0700772 'core/src/fxcrt/fx_system_unittest.cpp',
Tom Sepez24e733e2015-10-16 14:18:50 -0700773 'testing/fx_string_testhelpers.h',
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400774 'testing/fx_string_testhelpers.cpp',
Tom Sepez7cfadd92015-09-22 15:22:48 -0700775 'third_party/base/nonstd_unique_ptr_unittest.cpp',
Tom Sepeza8a39e22015-10-12 15:47:07 -0700776 ],
777 'conditions': [
778 ['pdf_enable_xfa==1', {
779 'sources': [
780 'xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp',
781 'xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp',
782 ],
783 }],
Tom Sepez22ee2482015-01-07 10:04:16 -0800784 ],
785 },
Tom Sepez96d13342015-01-16 14:59:26 -0800786 {
787 'target_name': 'pdfium_embeddertests',
788 'type': 'executable',
789 'dependencies': [
Tom Sepeza310e002015-02-27 13:03:07 -0800790 '<(DEPTH)/testing/gmock.gyp:gmock',
Tom Sepez96d13342015-01-16 14:59:26 -0800791 '<(DEPTH)/testing/gtest.gyp:gtest',
792 'pdfium',
Tom Sepezd831dc72015-10-19 16:04:22 -0700793 'test_support',
Tom Sepez96d13342015-01-16 14:59:26 -0800794 ],
795 'include_dirs': [
Tom Sepez2785fb42015-03-03 09:49:29 -0800796 '<(DEPTH)',
Tom Sepez96d13342015-01-16 14:59:26 -0800797 ],
798 'sources': [
Tom Sepez441932f2015-04-10 10:40:55 -0700799 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp',
JUN FANGfbc74492015-04-03 11:35:50 -0700800 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp',
Dan Sinclair431ba182015-10-27 12:19:11 -0400801 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp',
Tom Sepez2255a1b2015-01-23 15:33:44 -0800802 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp',
Tom Sepezc8f6ab62015-01-22 11:20:06 -0800803 'fpdfsdk/src/fpdfdoc_embeddertest.cpp',
Tom Sepeza310e002015-02-27 13:03:07 -0800804 'fpdfsdk/src/fpdfformfill_embeddertest.cpp',
Tom Sepez26b8a5b2015-01-27 12:42:36 -0800805 'fpdfsdk/src/fpdftext_embeddertest.cpp',
Tom Sepezcf22eb82015-05-12 17:28:08 -0700806 'fpdfsdk/src/fpdfview_c_api_test.c',
807 'fpdfsdk/src/fpdfview_c_api_test.h',
Tom Sepez96d13342015-01-16 14:59:26 -0800808 'fpdfsdk/src/fpdfview_embeddertest.cpp',
809 'testing/embedder_test.cpp',
810 'testing/embedder_test.h',
Tom Sepeza310e002015-02-27 13:03:07 -0800811 'testing/embedder_test_mock_delegate.h',
Tom Sepez6efc0ad2015-06-02 17:11:18 -0700812 'testing/embedder_test_timer_handling_delegate.h',
Jun Fangbf18cb62015-10-28 18:36:28 +0800813 'xfa/src/fxfa/src/parser/xfa_parser_imp_embeddertest.cpp',
Tom Sepez96d13342015-01-16 14:59:26 -0800814 ],
Tom Sepez452b4f32015-10-13 09:27:27 -0700815 'conditions': [
816 ['pdf_enable_v8==1', {
817 'include_dirs': [
818 '<(DEPTH)/v8',
819 '<(DEPTH)/v8/include',
820 ],
821 'dependencies': [
822 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
823 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
824 ],
825 'sources': [
826 'fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp',
827 ],
828 }],
829 ],
Tom Sepez96d13342015-01-16 14:59:26 -0800830 },
Tom Sepezd831dc72015-10-19 16:04:22 -0700831 {
832 'target_name': 'test_support',
833 'type': 'static_library',
834 'dependencies': [
835 '<(DEPTH)/testing/gmock.gyp:gmock',
836 '<(DEPTH)/testing/gtest.gyp:gtest',
837 ],
838 'include_dirs': [
839 '<(DEPTH)',
840 ],
841 'sources': [
842 'testing/fx_string_testhelpers.cpp',
843 'testing/fx_string_testhelpers.h',
844 'testing/test_support.cpp',
845 'testing/test_support.h',
846 ],
847 'conditions': [
848 ['pdf_enable_v8==1', {
849 'include_dirs': [
850 '<(DEPTH)/v8',
851 '<(DEPTH)/v8/include',
852 ],
853 'dependencies': [
854 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
855 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
856 ],
857 }],
858 ],
859 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700860 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700861}