blob: bf1248fb8b4dc42351b0668f12e75c6db8c49187 [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,
John Abd-El-Malekef4dce42015-02-02 16:52:07 -08004 'conditions': [
5 ['OS=="linux"', {
6 'bundle_freetype%': 0,
7 }, { # On Android there's no system FreeType. On Windows and Mac, only a
8 # few methods are used from it.
9 'bundle_freetype%': 1,
Tom Sepezd8bc3d52015-02-24 15:07:41 -080010 }],
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080011 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070012 },
13 'target_defaults': {
14 'defines' : [
Bo Xu043f07f2014-10-03 11:06:35 -070015 'OPJ_STATIC',
John Abd-El-Malek385729b2015-02-06 15:51:11 -080016 'PNG_PREFIX',
17 'PNGPREFIX_H',
18 'PNG_USE_READ_MACROS',
Tom Sepez6fd997b2015-06-18 17:51:37 -070019 'V8_DEPRECATION_WARNINGS',
20 '_CRT_SECURE_NO_WARNINGS',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070021 ],
Bo Xu4c764f32014-12-19 14:29:17 -080022 'include_dirs': [
23 'third_party/freetype/include',
24 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070025 'conditions': [
26 ['pdf_use_skia==1', {
27 'defines': ['_SKIA_SUPPORT_'],
28 }],
29 ['OS=="linux"', {
John Abd-El-Malek5110c472014-05-17 22:33:34 -070030 'conditions': [
31 ['target_arch=="x64"', {
Nico Weberb72977f2014-07-18 15:50:30 -070032 'defines' : [ '_FX_CPU_=_FX_X64_', ],
33 'cflags': [ '-fPIC', ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070034 }],
35 ['target_arch=="ia32"', {
Nico Weberb72977f2014-07-18 15:50:30 -070036 'defines' : [ '_FX_CPU_=_FX_X86_', ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070037 }],
38 ],
39 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070040 ],
41 'msvs_disabled_warnings': [
Nico Weber8f75c672014-07-16 17:31:56 -070042 4005, 4018, 4146, 4333, 4345, 4267
John Abd-El-Malek5110c472014-05-17 22:33:34 -070043 ],
44 },
45 'targets': [
46 {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070047 'target_name': 'pdfium',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070048 'type': 'static_library',
49 'dependencies': [
Bo Xu4c764f32014-12-19 14:29:17 -080050 'third_party/third_party.gyp:bigint',
Tom Sepez35425892015-02-05 10:03:18 -080051 'third_party/third_party.gyp:pdfium_base',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070052 'fdrm',
53 'fpdfdoc',
54 'fpdfapi',
55 'fpdftext',
56 'formfiller',
57 'fxcodec',
58 'fxcrt',
59 'fxedit',
60 'fxge',
61 'javascript',
62 'jsapi',
63 'pdfwindow',
Bo Xufdc00a72014-10-28 23:03:33 -070064 'fpdfxfa',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070065 ],
66 'ldflags': [ '-L<(PRODUCT_DIR)',],
67 'sources': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -070068 'fpdfsdk/include/fsdk_actionhandler.h',
69 'fpdfsdk/include/fsdk_annothandler.h',
70 'fpdfsdk/include/fsdk_baseannot.h',
71 'fpdfsdk/include/fsdk_baseform.h',
72 'fpdfsdk/src/fpdfdoc.cpp',
73 'fpdfsdk/src/fpdfeditimg.cpp',
74 'fpdfsdk/src/fpdfeditpage.cpp',
75 'fpdfsdk/src/fpdfformfill.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070076 'fpdfsdk/src/fpdfppo.cpp',
77 'fpdfsdk/src/fpdfsave.cpp',
78 'fpdfsdk/src/fpdftext.cpp',
79 'fpdfsdk/src/fpdfview.cpp',
80 'fpdfsdk/src/fpdf_dataavail.cpp',
81 'fpdfsdk/src/fpdf_ext.cpp',
82 'fpdfsdk/src/fpdf_flatten.cpp',
83 'fpdfsdk/src/fpdf_progressive.cpp',
84 'fpdfsdk/src/fpdf_searchex.cpp',
85 'fpdfsdk/src/fpdf_sysfontinfo.cpp',
Tom Sepez1ed8a212015-05-11 15:25:39 -070086 'fpdfsdk/src/fpdf_transformpage.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070087 'fpdfsdk/src/fsdk_actionhandler.cpp',
88 'fpdfsdk/src/fsdk_annothandler.cpp',
89 'fpdfsdk/src/fsdk_baseannot.cpp',
90 'fpdfsdk/src/fsdk_baseform.cpp',
91 'fpdfsdk/src/fsdk_mgr.cpp',
92 'fpdfsdk/src/fsdk_rendercontext.cpp',
93 'fpdfsdk/src/fpdfsdkdll.rc',
94 'fpdfsdk/src/resource.h',
Tom Sepez1ed8a212015-05-11 15:25:39 -070095 'public/fpdf_dataavail.h',
96 'public/fpdf_doc.h',
97 'public/fpdf_edit.h',
98 'public/fpdf_ext.h',
99 'public/fpdf_flatten.h',
100 'public/fpdf_formfill.h',
101 'public/fpdf_fwlevent.h',
102 'public/fpdf_ppo.h',
103 'public/fpdf_progressive.h',
104 'public/fpdf_save.h',
105 'public/fpdf_searchex.h',
106 'public/fpdf_sysfontinfo.h',
107 'public/fpdf_text.h',
108 'public/fpdf_transformpage.h',
109 'public/fpdfview.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700110 ],
111 'conditions': [
112 ['OS!="win"', {
113 'sources!': [
114 'fpdfsdk/src/fpdfsdkdll.rc',
115 ],
116 }],
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',
293 'core/src/fpdfapi/fpdf_parser/filters_int.h',
294 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp',
295 'core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp',
296 'core/src/fpdfapi/fpdf_parser/fpdf_parser_encrypt.cpp',
297 'core/src/fpdfapi/fpdf_parser/fpdf_parser_fdf.cpp',
298 'core/src/fpdfapi/fpdf_parser/fpdf_parser_filters.cpp',
299 'core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp',
300 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp',
301 'core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp',
302 'core/src/fpdfapi/fpdf_render/fpdf_render.cpp',
303 'core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp',
304 'core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp',
305 'core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp',
306 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp',
307 'core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp',
308 'core/src/fpdfapi/fpdf_render/render_int.h',
309 ],
310 },
311 {
312 'target_name': 'fpdftext',
313 'type': 'static_library',
314 'ldflags': [ '-L<(PRODUCT_DIR)',],
315 'sources': [
316 'core/include/fpdftext/fpdf_text.h',
317 'core/src/fpdftext/fpdf_text.cpp',
318 'core/src/fpdftext/fpdf_text_int.cpp',
319 'core/src/fpdftext/fpdf_text_search.cpp',
320 'core/src/fpdftext/text_int.h',
321 'core/src/fpdftext/txtproc.h',
322 'core/src/fpdftext/unicodenormalization.cpp',
323 'core/src/fpdftext/unicodenormalizationdata.cpp',
Tom Sepez7da98032015-08-19 10:42:45 -0700324 'core/src/fpdftext/unicodenormalizationdata.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700325 ],
326 },
327 {
328 'target_name': 'fxcodec',
329 'type': 'static_library',
Tom Sepez8be55752015-06-17 11:05:02 -0700330 'dependencies': [
331 'third_party/third_party.gyp:fx_lcms2',
Tom Sepez0a119752015-06-17 15:46:03 -0700332 'third_party/third_party.gyp:fx_libjpeg',
Tom Sepez6fd997b2015-06-18 17:51:37 -0700333 'third_party/third_party.gyp:fx_libopenjpeg',
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',
Bo Xufdc00a72014-10-28 23:03:33 -0700357 'core/src/fxcodec/fx_lpng/include/fx_png.h',
358 'core/src/fxcodec/fx_lpng/src/fx_png.c',
359 'core/src/fxcodec/fx_lpng/src/fx_pngerror.c',
360 'core/src/fxcodec/fx_lpng/src/fx_pngget.c',
361 'core/src/fxcodec/fx_lpng/src/fx_pngmem.c',
362 'core/src/fxcodec/fx_lpng/src/fx_pngpread.c',
363 'core/src/fxcodec/fx_lpng/src/fx_pngread.c',
364 'core/src/fxcodec/fx_lpng/src/fx_pngrio.c',
365 'core/src/fxcodec/fx_lpng/src/fx_pngrtran.c',
366 'core/src/fxcodec/fx_lpng/src/fx_pngrutil.c',
367 'core/src/fxcodec/fx_lpng/src/fx_pngset.c',
368 'core/src/fxcodec/fx_lpng/src/fx_pngtrans.c',
369 'core/src/fxcodec/fx_lpng/src/fx_pngwio.c',
370 'core/src/fxcodec/fx_lpng/src/fx_pngwrite.c',
371 'core/src/fxcodec/fx_lpng/src/fx_pngwtran.c',
372 'core/src/fxcodec/fx_lpng/src/fx_pngwutil.c',
373 'core/src/fxcodec/fx_tiff/include/fx_tiffiop.h',
374 'core/src/fxcodec/fx_tiff/src/fx_tif_aux.c',
375 'core/src/fxcodec/fx_tiff/src/fx_tif_close.c',
376 'core/src/fxcodec/fx_tiff/src/fx_tif_codec.c',
377 'core/src/fxcodec/fx_tiff/src/fx_tif_color.c',
378 'core/src/fxcodec/fx_tiff/src/fx_tif_compress.c',
379 'core/src/fxcodec/fx_tiff/src/fx_tif_dir.c',
380 'core/src/fxcodec/fx_tiff/src/fx_tif_dirinfo.c',
381 'core/src/fxcodec/fx_tiff/src/fx_tif_dirread.c',
382 'core/src/fxcodec/fx_tiff/src/fx_tif_dirwrite.c',
383 'core/src/fxcodec/fx_tiff/src/fx_tif_dumpmode.c',
384 'core/src/fxcodec/fx_tiff/src/fx_tif_error.c',
385 'core/src/fxcodec/fx_tiff/src/fx_tif_extension.c',
386 'core/src/fxcodec/fx_tiff/src/fx_tif_fax3.c',
387 'core/src/fxcodec/fx_tiff/src/fx_tif_fax3sm.c',
388 'core/src/fxcodec/fx_tiff/src/fx_tif_flush.c',
389 'core/src/fxcodec/fx_tiff/src/fx_tif_getimage.c',
390 'core/src/fxcodec/fx_tiff/src/fx_tif_jpeg.c',
391 'core/src/fxcodec/fx_tiff/src/fx_tif_luv.c',
392 'core/src/fxcodec/fx_tiff/src/fx_tif_lzw.c',
393 'core/src/fxcodec/fx_tiff/src/fx_tif_next.c',
394 'core/src/fxcodec/fx_tiff/src/fx_tif_ojpeg.c',
395 'core/src/fxcodec/fx_tiff/src/fx_tif_open.c',
396 'core/src/fxcodec/fx_tiff/src/fx_tif_packbits.c',
397 'core/src/fxcodec/fx_tiff/src/fx_tif_pixarlog.c',
398 'core/src/fxcodec/fx_tiff/src/fx_tif_predict.c',
399 'core/src/fxcodec/fx_tiff/src/fx_tif_print.c',
400 'core/src/fxcodec/fx_tiff/src/fx_tif_read.c',
401 'core/src/fxcodec/fx_tiff/src/fx_tif_strip.c',
402 'core/src/fxcodec/fx_tiff/src/fx_tif_swab.c',
403 'core/src/fxcodec/fx_tiff/src/fx_tif_thunder.c',
404 'core/src/fxcodec/fx_tiff/src/fx_tif_tile.c',
405 'core/src/fxcodec/fx_tiff/src/fx_tif_version.c',
406 'core/src/fxcodec/fx_tiff/src/fx_tif_warning.c',
407 'core/src/fxcodec/fx_tiff/src/fx_tif_write.c',
408 'core/src/fxcodec/fx_tiff/src/fx_tif_zip.c',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700409 'core/src/fxcodec/jbig2/JBig2_ArithDecoder.h',
410 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp',
411 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h',
412 'core/src/fxcodec/jbig2/JBig2_ArithQe.h',
413 'core/src/fxcodec/jbig2/JBig2_BitStream.h',
414 'core/src/fxcodec/jbig2/JBig2_Context.cpp',
415 'core/src/fxcodec/jbig2/JBig2_Context.h',
416 'core/src/fxcodec/jbig2/JBig2_Define.h',
417 'core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp',
418 'core/src/fxcodec/jbig2/JBig2_GeneralDecoder.h',
419 'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp',
420 'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.h',
421 'core/src/fxcodec/jbig2/JBig2_HuffmanTable.cpp',
422 'core/src/fxcodec/jbig2/JBig2_HuffmanTable.h',
423 'core/src/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h',
424 'core/src/fxcodec/jbig2/JBig2_Image.cpp',
425 'core/src/fxcodec/jbig2/JBig2_Image.h',
426 'core/src/fxcodec/jbig2/JBig2_List.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700427 'core/src/fxcodec/jbig2/JBig2_Page.h',
428 'core/src/fxcodec/jbig2/JBig2_PatternDict.cpp',
429 'core/src/fxcodec/jbig2/JBig2_PatternDict.h',
430 'core/src/fxcodec/jbig2/JBig2_Segment.cpp',
431 'core/src/fxcodec/jbig2/JBig2_Segment.h',
432 'core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp',
433 'core/src/fxcodec/jbig2/JBig2_SymbolDict.h',
Bo Xufdc00a72014-10-28 23:03:33 -0700434 'core/src/fxcodec/lbmp/fx_bmp.cpp',
435 'core/src/fxcodec/lbmp/fx_bmp.h',
Bo Xufdc00a72014-10-28 23:03:33 -0700436 'core/src/fxcodec/lgif/fx_gif.cpp',
437 'core/src/fxcodec/lgif/fx_gif.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700438 ],
Tom Sepez8be55752015-06-17 11:05:02 -0700439 'msvs_settings': {
440 'VCCLCompilerTool': {
441 # Unresolved warnings in fx_codec_jpx_opj.cpp
442 # https://code.google.com/p/pdfium/issues/detail?id=100
443 'WarnAsError': 'false',
444 },
445 },
John Abd-El-Malekdef5c7d2014-06-09 16:07:18 -0700446 'conditions': [
447 ['os_posix==1', {
448 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
449 # conversion to check that an address is 16-bit aligned (benign).
450 'cflags_c': [ '-Wno-pointer-to-int-cast' ],
451 }],
452 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700453 },
454 {
455 'target_name': 'fxcrt',
456 'type': 'static_library',
457 'ldflags': [ '-L<(PRODUCT_DIR)',],
458 'sources': [
459 'core/include/fxcrt/fx_arb.h',
460 'core/include/fxcrt/fx_basic.h',
461 'core/include/fxcrt/fx_coordinates.h',
462 'core/include/fxcrt/fx_ext.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700463 'core/include/fxcrt/fx_memory.h',
Tom Sepez6675a802015-06-04 19:05:21 -0700464 'core/include/fxcrt/fx_safe_types.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700465 'core/include/fxcrt/fx_stream.h',
466 'core/include/fxcrt/fx_string.h',
467 'core/include/fxcrt/fx_system.h',
468 'core/include/fxcrt/fx_ucd.h',
469 'core/include/fxcrt/fx_xml.h',
470 'core/src/fxcrt/extension.h',
471 'core/src/fxcrt/fxcrt_platforms.cpp',
472 'core/src/fxcrt/fxcrt_platforms.h',
473 'core/src/fxcrt/fxcrt_posix.cpp',
474 'core/src/fxcrt/fxcrt_posix.h',
475 'core/src/fxcrt/fxcrt_windows.cpp',
476 'core/src/fxcrt/fxcrt_windows.h',
477 'core/src/fxcrt/fx_arabic.cpp',
478 'core/src/fxcrt/fx_arabic.h',
479 'core/src/fxcrt/fx_basic_array.cpp',
480 'core/src/fxcrt/fx_basic_bstring.cpp',
481 'core/src/fxcrt/fx_basic_buffer.cpp',
482 'core/src/fxcrt/fx_basic_coords.cpp',
483 'core/src/fxcrt/fx_basic_gcc.cpp',
484 'core/src/fxcrt/fx_basic_list.cpp',
485 'core/src/fxcrt/fx_basic_maps.cpp',
486 'core/src/fxcrt/fx_basic_memmgr.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700487 'core/src/fxcrt/fx_basic_plex.cpp',
488 'core/src/fxcrt/fx_basic_utf.cpp',
489 'core/src/fxcrt/fx_basic_util.cpp',
490 'core/src/fxcrt/fx_basic_wstring.cpp',
491 'core/src/fxcrt/fx_extension.cpp',
492 'core/src/fxcrt/fx_ucddata.cpp',
493 'core/src/fxcrt/fx_unicode.cpp',
494 'core/src/fxcrt/fx_xml_composer.cpp',
495 'core/src/fxcrt/fx_xml_parser.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700496 'core/src/fxcrt/plex.h',
497 'core/src/fxcrt/xml_int.h',
498 ],
499 },
500 {
501 'target_name': 'fxge',
502 'type': 'static_library',
Tom Sepezb7d358b2015-06-17 10:01:00 -0700503 'ldflags': [
504 '-L<(PRODUCT_DIR)',
505 ],
506 'dependencies': [
507 'third_party/third_party.gyp:fx_agg',
508 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700509 'sources': [
510 'core/include/fxge/fpf.h',
511 'core/include/fxge/fx_dib.h',
512 'core/include/fxge/fx_font.h',
513 'core/include/fxge/fx_freetype.h',
514 'core/include/fxge/fx_ge.h',
515 'core/include/fxge/fx_ge_apple.h',
516 'core/include/fxge/fx_ge_win32.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700517 'core/src/fxge/agg/include/fx_agg_driver.h',
Tom Sepezb7d358b2015-06-17 10:01:00 -0700518 'core/src/fxge/agg/src/fx_agg_driver.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700519 'core/src/fxge/android/fpf_skiafont.cpp',
520 'core/src/fxge/android/fpf_skiafont.h',
521 'core/src/fxge/android/fpf_skiafontmgr.cpp',
522 'core/src/fxge/android/fpf_skiafontmgr.h',
523 'core/src/fxge/android/fpf_skiamodule.cpp',
524 'core/src/fxge/android/fpf_skiamodule.h',
525 'core/src/fxge/android/fx_android_font.cpp',
526 'core/src/fxge/android/fx_android_font.h',
527 'core/src/fxge/android/fx_android_imp.cpp',
528 'core/src/fxge/android/fx_fpf.h',
529 'core/src/fxge/apple/apple_int.h',
530 'core/src/fxge/apple/fx_apple_platform.cpp',
531 'core/src/fxge/apple/fx_mac_imp.cpp',
532 'core/src/fxge/apple/fx_quartz_device.cpp',
533 'core/src/fxge/dib/dib_int.h',
534 'core/src/fxge/dib/fx_dib_composite.cpp',
535 'core/src/fxge/dib/fx_dib_convert.cpp',
536 'core/src/fxge/dib/fx_dib_engine.cpp',
537 'core/src/fxge/dib/fx_dib_main.cpp',
538 'core/src/fxge/dib/fx_dib_transform.cpp',
Tom Sepez7da98032015-08-19 10:42:45 -0700539 'core/src/fxge/fontdata/chromefontdata/chromefontdata.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700540 'core/src/fxge/fontdata/chromefontdata/FoxitDingbats.c',
541 'core/src/fxge/fontdata/chromefontdata/FoxitFixed.c',
542 'core/src/fxge/fontdata/chromefontdata/FoxitFixedBold.c',
543 'core/src/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.c',
544 'core/src/fxge/fontdata/chromefontdata/FoxitFixedItalic.c',
545 'core/src/fxge/fontdata/chromefontdata/FoxitSans.c',
546 'core/src/fxge/fontdata/chromefontdata/FoxitSansBold.c',
547 'core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.c',
548 'core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.c',
549 'core/src/fxge/fontdata/chromefontdata/FoxitSansMM.c',
550 'core/src/fxge/fontdata/chromefontdata/FoxitSerif.c',
551 'core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.c',
552 'core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.c',
553 'core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.c',
554 'core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.c',
555 'core/src/fxge/fontdata/chromefontdata/FoxitSymbol.c',
Bo Xu4c764f32014-12-19 14:29:17 -0800556 'core/src/fxge/freetype/fx_freetype.c',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700557 'core/src/fxge/ge/fx_ge.cpp',
558 'core/src/fxge/ge/fx_ge_device.cpp',
559 'core/src/fxge/ge/fx_ge_font.cpp',
560 'core/src/fxge/ge/fx_ge_fontmap.cpp',
561 'core/src/fxge/ge/fx_ge_linux.cpp',
562 'core/src/fxge/ge/fx_ge_path.cpp',
563 'core/src/fxge/ge/fx_ge_ps.cpp',
564 'core/src/fxge/ge/fx_ge_text.cpp',
565 'core/src/fxge/ge/text_int.h',
566 ],
567 'conditions': [
568 ['pdf_use_skia==1', {
569 'sources': [
570 'core/src/fxge/skia/fx_skia_blitter_new.cpp',
571 'core/src/fxge/skia/fx_skia_device.cpp',
572 ],
573 'dependencies': [
574 '<(DEPTH)/skia/skia.gyp:skia',
575 ],
576 'include_dirs': [
577 '<(DEPTH)/third_party/skia/include/config',
578 '<(DEPTH)/third_party/skia/include/core',
579 '<(DEPTH)/third_party/skia/include/effects',
580 '<(DEPTH)/third_party/skia/include/images',
581 '<(DEPTH)/third_party/skia/include/lazy',
582 '<(DEPTH)/third_party/skia/include/pathops',
583 '<(DEPTH)/third_party/skia/include/utils',
584 '<(DEPTH)/third_party/skia/src/core',
585 ],
586 }],
587 ['OS=="win"', {
588 'defines!': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700589 'WIN32_LEAN_AND_MEAN'
590 ],
591 'sources': [
592 'core/src/fxge/win32/dwrite_int.h',
593 'core/src/fxge/win32/fx_win32_device.cpp',
594 'core/src/fxge/win32/fx_win32_dib.cpp',
595 'core/src/fxge/win32/fx_win32_dwrite.cpp',
596 'core/src/fxge/win32/fx_win32_gdipext.cpp',
597 'core/src/fxge/win32/fx_win32_print.cpp',
598 'core/src/fxge/win32/win32_int.h',
599 ],
600 }],
601 ],
602 },
603 {
604 'target_name': 'fxedit',
605 'type': 'static_library',
606 'ldflags': [ '-L<(PRODUCT_DIR)',],
607 'sources': [
608 'fpdfsdk/include/fxedit/fx_edit.h',
609 'fpdfsdk/include/fxedit/fxet_edit.h',
610 'fpdfsdk/include/fxedit/fxet_list.h',
611 'fpdfsdk/include/fxedit/fxet_stub.h',
612 'fpdfsdk/src/fxedit/fxet_ap.cpp',
613 'fpdfsdk/src/fxedit/fxet_edit.cpp',
614 'fpdfsdk/src/fxedit/fxet_list.cpp',
615 'fpdfsdk/src/fxedit/fxet_module.cpp',
616 'fpdfsdk/src/fxedit/fxet_pageobjs.cpp',
617 ],
618 },
619 {
620 'target_name': 'pdfwindow',
621 'type': 'static_library',
622 'ldflags': [ '-L<(PRODUCT_DIR)',],
623 'sources': [
624 'fpdfsdk/include/pdfwindow/IPDFWindow.h',
625 'fpdfsdk/include/pdfwindow/PDFWindow.h',
626 'fpdfsdk/include/pdfwindow/PWL_Button.h',
627 'fpdfsdk/include/pdfwindow/PWL_Caret.h',
628 'fpdfsdk/include/pdfwindow/PWL_ComboBox.h',
629 'fpdfsdk/include/pdfwindow/PWL_Edit.h',
630 'fpdfsdk/include/pdfwindow/PWL_EditCtrl.h',
631 'fpdfsdk/include/pdfwindow/PWL_FontMap.h',
632 'fpdfsdk/include/pdfwindow/PWL_Icon.h',
633 'fpdfsdk/include/pdfwindow/PWL_IconList.h',
634 'fpdfsdk/include/pdfwindow/PWL_Label.h',
635 'fpdfsdk/include/pdfwindow/PWL_ListBox.h',
636 'fpdfsdk/include/pdfwindow/PWL_ListCtrl.h',
637 'fpdfsdk/include/pdfwindow/PWL_Note.h',
638 'fpdfsdk/include/pdfwindow/PWL_ScrollBar.h',
639 'fpdfsdk/include/pdfwindow/PWL_Signature.h',
640 'fpdfsdk/include/pdfwindow/PWL_SpecialButton.h',
641 'fpdfsdk/include/pdfwindow/PWL_Utils.h',
642 'fpdfsdk/include/pdfwindow/PWL_Wnd.h',
643 'fpdfsdk/src/pdfwindow/PWL_Button.cpp',
644 'fpdfsdk/src/pdfwindow/PWL_Caret.cpp',
645 'fpdfsdk/src/pdfwindow/PWL_ComboBox.cpp',
646 'fpdfsdk/src/pdfwindow/PWL_Edit.cpp',
647 'fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp',
648 'fpdfsdk/src/pdfwindow/PWL_FontMap.cpp',
649 'fpdfsdk/src/pdfwindow/PWL_Icon.cpp',
650 'fpdfsdk/src/pdfwindow/PWL_IconList.cpp',
651 'fpdfsdk/src/pdfwindow/PWL_Label.cpp',
652 'fpdfsdk/src/pdfwindow/PWL_ListBox.cpp',
653 'fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp',
654 'fpdfsdk/src/pdfwindow/PWL_Note.cpp',
655 'fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp',
656 'fpdfsdk/src/pdfwindow/PWL_Signature.cpp',
657 'fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp',
658 'fpdfsdk/src/pdfwindow/PWL_Utils.cpp',
659 'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp',
660 ],
661 },
662 {
Bo Xufdc00a72014-10-28 23:03:33 -0700663 'target_name': 'fpdfxfa',
664 'type': 'static_library',
665 'ldflags': [ '-L<(PRODUCT_DIR)',],
666 'dependencies': [
667 'xfa.gyp:xfa',
668 ],
669 'sources': [
670 'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp',
671 'fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp',
672 'fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp',
673 'fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp',
674 'fpdfsdk/include/fpdfxfa/fpdfxfa_app.h',
675 'fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h',
676 'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h',
677 'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h',
678 ],
679 },
680 {
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700681 'target_name': 'javascript',
682 'type': 'static_library',
John Abd-El-Malekb045ed22015-02-10 09:15:12 -0800683 'include_dirs': [
684 '<(DEPTH)/v8',
685 '<(DEPTH)/v8/include',
686 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700687 'dependencies': [
688 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
689 ],
690 'export_dependent_settings': [
691 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
692 ],
693 'ldflags': [ '-L<(PRODUCT_DIR)',],
694 'sources': [
695 'fpdfsdk/include/javascript/app.h',
696 'fpdfsdk/include/javascript/color.h',
697 'fpdfsdk/include/javascript/console.h',
698 'fpdfsdk/include/javascript/Consts.h',
699 'fpdfsdk/include/javascript/Document.h',
700 'fpdfsdk/include/javascript/event.h',
701 'fpdfsdk/include/javascript/Field.h',
702 'fpdfsdk/include/javascript/global.h',
703 'fpdfsdk/include/javascript/Icon.h',
704 'fpdfsdk/include/javascript/IJavaScript.h',
705 'fpdfsdk/include/javascript/JavaScript.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700706 'fpdfsdk/include/javascript/JS_Context.h',
707 'fpdfsdk/include/javascript/JS_Define.h',
708 'fpdfsdk/include/javascript/JS_EventHandler.h',
709 'fpdfsdk/include/javascript/JS_GlobalData.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700710 'fpdfsdk/include/javascript/JS_Object.h',
711 'fpdfsdk/include/javascript/JS_Runtime.h',
712 'fpdfsdk/include/javascript/JS_Value.h',
713 'fpdfsdk/include/javascript/PublicMethods.h',
714 'fpdfsdk/include/javascript/report.h',
715 'fpdfsdk/include/javascript/resource.h',
716 'fpdfsdk/include/javascript/util.h',
717 'fpdfsdk/src/javascript/app.cpp',
718 'fpdfsdk/src/javascript/color.cpp',
719 'fpdfsdk/src/javascript/console.cpp',
720 'fpdfsdk/src/javascript/Consts.cpp',
721 'fpdfsdk/src/javascript/Document.cpp',
722 'fpdfsdk/src/javascript/event.cpp',
723 'fpdfsdk/src/javascript/Field.cpp',
724 'fpdfsdk/src/javascript/global.cpp',
725 'fpdfsdk/src/javascript/Icon.cpp',
726 'fpdfsdk/src/javascript/JS_Context.cpp',
727 'fpdfsdk/src/javascript/JS_EventHandler.cpp',
728 'fpdfsdk/src/javascript/JS_GlobalData.cpp',
729 'fpdfsdk/src/javascript/JS_Object.cpp',
730 'fpdfsdk/src/javascript/JS_Runtime.cpp',
731 'fpdfsdk/src/javascript/JS_Value.cpp',
732 'fpdfsdk/src/javascript/PublicMethods.cpp',
733 'fpdfsdk/src/javascript/report.cpp',
Tom Sepez2b0ed942015-02-27 13:58:29 -0800734 'fpdfsdk/src/javascript/resource.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700735 'fpdfsdk/src/javascript/util.cpp',
736 ],
737 },
738 {
739 'target_name': 'jsapi',
740 'type': 'static_library',
741 'dependencies': [
742 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
743 ],
744 'export_dependent_settings': [
745 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
746 ],
747 'include_dirs': [
Jochen Eisinger3fb18f42014-07-17 08:46:45 +0200748 '<(DEPTH)/v8',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700749 '<(DEPTH)/v8/include',
750 ],
751 'ldflags': [ '-L<(PRODUCT_DIR)',],
752 'sources': [
753 'fpdfsdk/include/jsapi/fxjs_v8.h',
754 'fpdfsdk/src/jsapi/fxjs_v8.cpp',
755 ],
756 },
757 {
758 'target_name': 'formfiller',
759 'type': 'static_library',
760 'ldflags': [ '-L<(PRODUCT_DIR)',],
761 'sources': [
762 'fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h',
763 'fpdfsdk/include/formfiller/FFL_CheckBox.h',
764 'fpdfsdk/include/formfiller/FFL_ComboBox.h',
765 'fpdfsdk/include/formfiller/FFL_FormFiller.h',
766 'fpdfsdk/include/formfiller/FFL_IFormFiller.h',
767 'fpdfsdk/include/formfiller/FFL_ListBox.h',
768 'fpdfsdk/include/formfiller/FFL_Notify.h',
769 'fpdfsdk/include/formfiller/FFL_PushButton.h',
770 'fpdfsdk/include/formfiller/FFL_RadioButton.h',
771 'fpdfsdk/include/formfiller/FFL_TextField.h',
772 'fpdfsdk/include/formfiller/FFL_Utils.h',
773 'fpdfsdk/include/formfiller/FormFiller.h',
774 'fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp',
775 'fpdfsdk/src/formfiller/FFL_CheckBox.cpp',
776 'fpdfsdk/src/formfiller/FFL_ComboBox.cpp',
777 'fpdfsdk/src/formfiller/FFL_FormFiller.cpp',
778 'fpdfsdk/src/formfiller/FFL_IFormFiller.cpp',
779 'fpdfsdk/src/formfiller/FFL_ListBox.cpp',
780 'fpdfsdk/src/formfiller/FFL_Notify.cpp',
781 'fpdfsdk/src/formfiller/FFL_PushButton.cpp',
782 'fpdfsdk/src/formfiller/FFL_RadioButton.cpp',
783 'fpdfsdk/src/formfiller/FFL_TextField.cpp',
784 'fpdfsdk/src/formfiller/FFL_Utils.cpp',
785 ],
786 },
Tom Sepez22ee2482015-01-07 10:04:16 -0800787 {
788 'target_name': 'pdfium_unittests',
789 'type': 'executable',
790 'dependencies': [
791 '<(DEPTH)/testing/gtest.gyp:gtest_main',
792 '<(DEPTH)/testing/gtest.gyp:gtest',
793 'pdfium',
794 ],
795 'include_dirs': [
796 '<(DEPTH)'
797 ],
798 'sources': [
Tom Sepezdb205822015-03-19 13:02:23 -0700799 'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp',
Tom Sepez22ee2482015-01-07 10:04:16 -0800800 'core/src/fxcrt/fx_basic_bstring_unittest.cpp',
Tom Sepezed099be2015-05-15 16:30:52 -0700801 'core/src/fxcrt/fx_basic_memmgr_unittest.cpp',
Bo Xua6f95eb2015-01-21 12:17:23 -0800802 'core/src/fxcrt/fx_basic_wstring_unittest.cpp',
Tom Sepezd8bc3d52015-02-24 15:07:41 -0800803 'testing/fx_string_testhelpers.h',
804 'testing/fx_string_testhelpers.cpp',
Bo Xua9029792015-01-09 17:27:21 -0800805 'xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp',
JUN FANG130c7d12015-05-13 14:34:28 -0700806 'xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp',
Tom Sepez22ee2482015-01-07 10:04:16 -0800807 ],
808 },
Tom Sepez96d13342015-01-16 14:59:26 -0800809 {
810 'target_name': 'pdfium_embeddertests',
811 'type': 'executable',
812 'dependencies': [
Tom Sepeza310e002015-02-27 13:03:07 -0800813 '<(DEPTH)/testing/gmock.gyp:gmock',
Tom Sepez96d13342015-01-16 14:59:26 -0800814 '<(DEPTH)/testing/gtest.gyp:gtest',
Tom Sepez2785fb42015-03-03 09:49:29 -0800815 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
Tom Sepez96d13342015-01-16 14:59:26 -0800816 'pdfium',
817 ],
818 'include_dirs': [
Tom Sepez2785fb42015-03-03 09:49:29 -0800819 '<(DEPTH)',
820 '<(DEPTH)/v8',
821 '<(DEPTH)/v8/include',
Tom Sepez96d13342015-01-16 14:59:26 -0800822 ],
823 'sources': [
Tom Sepez441932f2015-04-10 10:40:55 -0700824 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp',
JUN FANGfbc74492015-04-03 11:35:50 -0700825 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp',
Tom Sepez2255a1b2015-01-23 15:33:44 -0800826 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp',
Tom Sepezc8f6ab62015-01-22 11:20:06 -0800827 'fpdfsdk/src/fpdfdoc_embeddertest.cpp',
Tom Sepeza310e002015-02-27 13:03:07 -0800828 'fpdfsdk/src/fpdfformfill_embeddertest.cpp',
Tom Sepez26b8a5b2015-01-27 12:42:36 -0800829 'fpdfsdk/src/fpdftext_embeddertest.cpp',
Tom Sepezcf22eb82015-05-12 17:28:08 -0700830 'fpdfsdk/src/fpdfview_c_api_test.c',
831 'fpdfsdk/src/fpdfview_c_api_test.h',
Tom Sepez96d13342015-01-16 14:59:26 -0800832 'fpdfsdk/src/fpdfview_embeddertest.cpp',
Tom Sepez7d0fcbf2015-09-15 15:30:34 -0700833 'fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp',
Tom Sepez96d13342015-01-16 14:59:26 -0800834 'testing/embedder_test.cpp',
835 'testing/embedder_test.h',
Tom Sepeza310e002015-02-27 13:03:07 -0800836 'testing/embedder_test_mock_delegate.h',
Tom Sepez6efc0ad2015-06-02 17:11:18 -0700837 'testing/embedder_test_timer_handling_delegate.h',
Tom Sepez96d13342015-01-16 14:59:26 -0800838 'testing/fx_string_testhelpers.cpp',
839 'testing/fx_string_testhelpers.h',
840 ],
841 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700842 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700843}