blob: 8a1890948d59a4271ce60288754a95ab77ffb5b2 [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' : [
John Abd-El-Malek5110c472014-05-17 22:33:34 -070015 '_FPDFSDK_LIB',
16 '_NO_GDIPLUS_', # workaround text rendering issues on Windows
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',
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',
257 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UTF16-H_5.cpp',
258 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UTF16-V_5.cpp',
259 'core/src/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp',
260 'core/src/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp',
261 'core/src/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp',
262 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp',
263 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp',
264 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp',
265 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp',
266 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp',
267 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp',
268 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp',
269 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp',
270 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp',
271 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp',
272 'core/src/fpdfapi/fpdf_edit/editint.h',
273 'core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp',
274 'core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp',
275 'core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp',
276 'core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp',
277 'core/src/fpdfapi/fpdf_font/common.h',
278 'core/src/fpdfapi/fpdf_font/font_int.h',
279 'core/src/fpdfapi/fpdf_font/fpdf_font.cpp',
280 'core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp',
281 'core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700282 'core/src/fpdfapi/fpdf_font/ttgsubtable.cpp',
283 'core/src/fpdfapi/fpdf_font/ttgsubtable.h',
284 'core/src/fpdfapi/fpdf_page/fpdf_page.cpp',
285 'core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp',
286 'core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp',
287 'core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp',
288 'core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp',
289 'core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp',
290 'core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700291 'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp',
292 'core/src/fpdfapi/fpdf_page/fpdf_page_path.cpp',
293 'core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp',
294 'core/src/fpdfapi/fpdf_page/pageint.h',
295 'core/src/fpdfapi/fpdf_parser/filters_int.h',
296 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp',
297 'core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp',
298 'core/src/fpdfapi/fpdf_parser/fpdf_parser_encrypt.cpp',
299 'core/src/fpdfapi/fpdf_parser/fpdf_parser_fdf.cpp',
300 'core/src/fpdfapi/fpdf_parser/fpdf_parser_filters.cpp',
301 'core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp',
302 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp',
303 'core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp',
304 'core/src/fpdfapi/fpdf_render/fpdf_render.cpp',
305 'core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp',
306 'core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp',
307 'core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp',
308 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp',
309 'core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp',
310 'core/src/fpdfapi/fpdf_render/render_int.h',
311 ],
312 },
313 {
314 'target_name': 'fpdftext',
315 'type': 'static_library',
316 'ldflags': [ '-L<(PRODUCT_DIR)',],
317 'sources': [
318 'core/include/fpdftext/fpdf_text.h',
319 'core/src/fpdftext/fpdf_text.cpp',
320 'core/src/fpdftext/fpdf_text_int.cpp',
321 'core/src/fpdftext/fpdf_text_search.cpp',
322 'core/src/fpdftext/text_int.h',
323 'core/src/fpdftext/txtproc.h',
324 'core/src/fpdftext/unicodenormalization.cpp',
325 'core/src/fpdftext/unicodenormalizationdata.cpp',
326 ],
327 },
328 {
329 'target_name': 'fxcodec',
330 'type': 'static_library',
331 'include_dirs': [
332 ],
333 'ldflags': [ '-L<(PRODUCT_DIR)',],
Bruce Dawson3f49aa32015-01-08 11:47:49 -0800334 'msvs_settings': {
335 'VCCLCompilerTool': {
336 # Unresolved warnings in fx_codec_jpx_opj.cpp
337 # https://code.google.com/p/pdfium/issues/detail?id=100
338 'WarnAsError': 'false',
339 },
340 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700341 'sources': [
342 'core/include/fxcodec/fx_codec.h',
343 'core/include/fxcodec/fx_codec_def.h',
344 'core/include/fxcodec/fx_codec_provider.h',
345 'core/src/fxcodec/codec/codec_int.h',
346 'core/src/fxcodec/codec/fx_codec.cpp',
Bo Xufdc00a72014-10-28 23:03:33 -0700347 'core/src/fxcodec/codec/fx_codec_bmp.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700348 'core/src/fxcodec/codec/fx_codec_fax.cpp',
349 'core/src/fxcodec/codec/fx_codec_flate.cpp',
Bo Xufdc00a72014-10-28 23:03:33 -0700350 'core/src/fxcodec/codec/fx_codec_gif.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700351 'core/src/fxcodec/codec/fx_codec_icc.cpp',
352 'core/src/fxcodec/codec/fx_codec_jbig.cpp',
353 'core/src/fxcodec/codec/fx_codec_jbig_enc.cpp',
354 'core/src/fxcodec/codec/fx_codec_jpeg.cpp',
355 'core/src/fxcodec/codec/fx_codec_jpx_opj.cpp',
Bo Xufdc00a72014-10-28 23:03:33 -0700356 'core/src/fxcodec/codec/fx_codec_png.cpp',
357 'core/src/fxcodec/codec/fx_codec_progress.cpp',
358 'core/src/fxcodec/codec/fx_codec_progress.h',
359 'core/src/fxcodec/codec/fx_codec_tiff.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700360 'core/src/fxcodec/fx_libopenjpeg/include/fx_openjpeg.h',
361 'core/src/fxcodec/fx_libopenjpeg/src/fx_bio.c',
362 'core/src/fxcodec/fx_libopenjpeg/src/fx_cio.c',
363 'core/src/fxcodec/fx_libopenjpeg/src/fx_dwt.c',
364 'core/src/fxcodec/fx_libopenjpeg/src/fx_event.c',
365 'core/src/fxcodec/fx_libopenjpeg/src/fx_function_list.c',
366 'core/src/fxcodec/fx_libopenjpeg/src/fx_image.c',
367 'core/src/fxcodec/fx_libopenjpeg/src/fx_invert.c',
368 'core/src/fxcodec/fx_libopenjpeg/src/fx_j2k.c',
369 'core/src/fxcodec/fx_libopenjpeg/src/fx_j2k_lib.c',
370 'core/src/fxcodec/fx_libopenjpeg/src/fx_jpt.c',
371 'core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c',
372 'core/src/fxcodec/fx_libopenjpeg/src/fx_mqc.c',
373 'core/src/fxcodec/fx_libopenjpeg/src/fx_openjpeg.c',
374 'core/src/fxcodec/fx_libopenjpeg/src/fx_openjpeg_jp2.c',
375 'core/src/fxcodec/fx_libopenjpeg/src/fx_opj_clock.c',
376 'core/src/fxcodec/fx_libopenjpeg/src/fx_pi.c',
377 'core/src/fxcodec/fx_libopenjpeg/src/fx_raw.c',
378 'core/src/fxcodec/fx_libopenjpeg/src/fx_t1.c',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700379 'core/src/fxcodec/fx_libopenjpeg/src/fx_t2.c',
380 'core/src/fxcodec/fx_libopenjpeg/src/fx_tcd.c',
381 'core/src/fxcodec/fx_libopenjpeg/src/fx_tgt.c',
Bo Xufdc00a72014-10-28 23:03:33 -0700382 'core/src/fxcodec/fx_lpng/include/fx_png.h',
383 'core/src/fxcodec/fx_lpng/src/fx_png.c',
384 'core/src/fxcodec/fx_lpng/src/fx_pngerror.c',
385 'core/src/fxcodec/fx_lpng/src/fx_pngget.c',
386 'core/src/fxcodec/fx_lpng/src/fx_pngmem.c',
387 'core/src/fxcodec/fx_lpng/src/fx_pngpread.c',
388 'core/src/fxcodec/fx_lpng/src/fx_pngread.c',
389 'core/src/fxcodec/fx_lpng/src/fx_pngrio.c',
390 'core/src/fxcodec/fx_lpng/src/fx_pngrtran.c',
391 'core/src/fxcodec/fx_lpng/src/fx_pngrutil.c',
392 'core/src/fxcodec/fx_lpng/src/fx_pngset.c',
393 'core/src/fxcodec/fx_lpng/src/fx_pngtrans.c',
394 'core/src/fxcodec/fx_lpng/src/fx_pngwio.c',
395 'core/src/fxcodec/fx_lpng/src/fx_pngwrite.c',
396 'core/src/fxcodec/fx_lpng/src/fx_pngwtran.c',
397 'core/src/fxcodec/fx_lpng/src/fx_pngwutil.c',
398 'core/src/fxcodec/fx_tiff/include/fx_tiffiop.h',
399 'core/src/fxcodec/fx_tiff/src/fx_tif_aux.c',
400 'core/src/fxcodec/fx_tiff/src/fx_tif_close.c',
401 'core/src/fxcodec/fx_tiff/src/fx_tif_codec.c',
402 'core/src/fxcodec/fx_tiff/src/fx_tif_color.c',
403 'core/src/fxcodec/fx_tiff/src/fx_tif_compress.c',
404 'core/src/fxcodec/fx_tiff/src/fx_tif_dir.c',
405 'core/src/fxcodec/fx_tiff/src/fx_tif_dirinfo.c',
406 'core/src/fxcodec/fx_tiff/src/fx_tif_dirread.c',
407 'core/src/fxcodec/fx_tiff/src/fx_tif_dirwrite.c',
408 'core/src/fxcodec/fx_tiff/src/fx_tif_dumpmode.c',
409 'core/src/fxcodec/fx_tiff/src/fx_tif_error.c',
410 'core/src/fxcodec/fx_tiff/src/fx_tif_extension.c',
411 'core/src/fxcodec/fx_tiff/src/fx_tif_fax3.c',
412 'core/src/fxcodec/fx_tiff/src/fx_tif_fax3sm.c',
413 'core/src/fxcodec/fx_tiff/src/fx_tif_flush.c',
414 'core/src/fxcodec/fx_tiff/src/fx_tif_getimage.c',
415 'core/src/fxcodec/fx_tiff/src/fx_tif_jpeg.c',
416 'core/src/fxcodec/fx_tiff/src/fx_tif_luv.c',
417 'core/src/fxcodec/fx_tiff/src/fx_tif_lzw.c',
418 'core/src/fxcodec/fx_tiff/src/fx_tif_next.c',
419 'core/src/fxcodec/fx_tiff/src/fx_tif_ojpeg.c',
420 'core/src/fxcodec/fx_tiff/src/fx_tif_open.c',
421 'core/src/fxcodec/fx_tiff/src/fx_tif_packbits.c',
422 'core/src/fxcodec/fx_tiff/src/fx_tif_pixarlog.c',
423 'core/src/fxcodec/fx_tiff/src/fx_tif_predict.c',
424 'core/src/fxcodec/fx_tiff/src/fx_tif_print.c',
425 'core/src/fxcodec/fx_tiff/src/fx_tif_read.c',
426 'core/src/fxcodec/fx_tiff/src/fx_tif_strip.c',
427 'core/src/fxcodec/fx_tiff/src/fx_tif_swab.c',
428 'core/src/fxcodec/fx_tiff/src/fx_tif_thunder.c',
429 'core/src/fxcodec/fx_tiff/src/fx_tif_tile.c',
430 'core/src/fxcodec/fx_tiff/src/fx_tif_version.c',
431 'core/src/fxcodec/fx_tiff/src/fx_tif_warning.c',
432 'core/src/fxcodec/fx_tiff/src/fx_tif_write.c',
433 'core/src/fxcodec/fx_tiff/src/fx_tif_zip.c',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700434 'core/src/fxcodec/fx_zlib/include/fx_zlib.h',
435 'core/src/fxcodec/fx_zlib/src/fx_zlib_adler32.c',
436 'core/src/fxcodec/fx_zlib/src/fx_zlib_compress.c',
437 'core/src/fxcodec/fx_zlib/src/fx_zlib_crc32.c',
438 'core/src/fxcodec/fx_zlib/src/fx_zlib_deflate.c',
439 'core/src/fxcodec/fx_zlib/src/fx_zlib_gzclose.c',
440 'core/src/fxcodec/fx_zlib/src/fx_zlib_gzlib.c',
441 'core/src/fxcodec/fx_zlib/src/fx_zlib_gzread.c',
442 'core/src/fxcodec/fx_zlib/src/fx_zlib_gzwrite.c',
443 'core/src/fxcodec/fx_zlib/src/fx_zlib_infback.c',
444 'core/src/fxcodec/fx_zlib/src/fx_zlib_inffast.c',
445 'core/src/fxcodec/fx_zlib/src/fx_zlib_inflate.c',
446 'core/src/fxcodec/fx_zlib/src/fx_zlib_inftrees.c',
447 'core/src/fxcodec/fx_zlib/src/fx_zlib_trees.c',
448 'core/src/fxcodec/fx_zlib/src/fx_zlib_uncompr.c',
449 'core/src/fxcodec/fx_zlib/src/fx_zlib_zutil.c',
450 'core/src/fxcodec/jbig2/JBig2_ArithDecoder.h',
451 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp',
452 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h',
453 'core/src/fxcodec/jbig2/JBig2_ArithQe.h',
454 'core/src/fxcodec/jbig2/JBig2_BitStream.h',
455 'core/src/fxcodec/jbig2/JBig2_Context.cpp',
456 'core/src/fxcodec/jbig2/JBig2_Context.h',
457 'core/src/fxcodec/jbig2/JBig2_Define.h',
458 'core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp',
459 'core/src/fxcodec/jbig2/JBig2_GeneralDecoder.h',
460 'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp',
461 'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.h',
462 'core/src/fxcodec/jbig2/JBig2_HuffmanTable.cpp',
463 'core/src/fxcodec/jbig2/JBig2_HuffmanTable.h',
464 'core/src/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h',
465 'core/src/fxcodec/jbig2/JBig2_Image.cpp',
466 'core/src/fxcodec/jbig2/JBig2_Image.h',
467 'core/src/fxcodec/jbig2/JBig2_List.h',
468 'core/src/fxcodec/jbig2/JBig2_Module.h',
469 'core/src/fxcodec/jbig2/JBig2_Object.cpp',
470 'core/src/fxcodec/jbig2/JBig2_Object.h',
471 'core/src/fxcodec/jbig2/JBig2_Page.h',
472 'core/src/fxcodec/jbig2/JBig2_PatternDict.cpp',
473 'core/src/fxcodec/jbig2/JBig2_PatternDict.h',
474 'core/src/fxcodec/jbig2/JBig2_Segment.cpp',
475 'core/src/fxcodec/jbig2/JBig2_Segment.h',
476 'core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp',
477 'core/src/fxcodec/jbig2/JBig2_SymbolDict.h',
Bo Xufdc00a72014-10-28 23:03:33 -0700478 'core/src/fxcodec/lbmp/fx_bmp.cpp',
479 'core/src/fxcodec/lbmp/fx_bmp.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700480 'core/src/fxcodec/lcms2/src/fx_cmscam02.c',
481 'core/src/fxcodec/lcms2/src/fx_cmscgats.c',
482 'core/src/fxcodec/lcms2/src/fx_cmscnvrt.c',
483 'core/src/fxcodec/lcms2/src/fx_cmserr.c',
484 'core/src/fxcodec/lcms2/src/fx_cmsgamma.c',
485 'core/src/fxcodec/lcms2/src/fx_cmsgmt.c',
486 'core/src/fxcodec/lcms2/src/fx_cmshalf.c',
487 'core/src/fxcodec/lcms2/src/fx_cmsintrp.c',
488 'core/src/fxcodec/lcms2/src/fx_cmsio0.c',
489 'core/src/fxcodec/lcms2/src/fx_cmsio1.c',
490 'core/src/fxcodec/lcms2/src/fx_cmslut.c',
491 'core/src/fxcodec/lcms2/src/fx_cmsmd5.c',
492 'core/src/fxcodec/lcms2/src/fx_cmsmtrx.c',
493 'core/src/fxcodec/lcms2/src/fx_cmsnamed.c',
494 'core/src/fxcodec/lcms2/src/fx_cmsopt.c',
495 'core/src/fxcodec/lcms2/src/fx_cmspack.c',
496 'core/src/fxcodec/lcms2/src/fx_cmspcs.c',
497 'core/src/fxcodec/lcms2/src/fx_cmsplugin.c',
498 'core/src/fxcodec/lcms2/src/fx_cmsps2.c',
499 'core/src/fxcodec/lcms2/src/fx_cmssamp.c',
500 'core/src/fxcodec/lcms2/src/fx_cmssm.c',
501 'core/src/fxcodec/lcms2/src/fx_cmstypes.c',
502 'core/src/fxcodec/lcms2/src/fx_cmsvirt.c',
503 'core/src/fxcodec/lcms2/src/fx_cmswtpnt.c',
504 'core/src/fxcodec/lcms2/src/fx_cmsxform.c',
Bo Xufdc00a72014-10-28 23:03:33 -0700505 'core/src/fxcodec/lgif/fx_gif.cpp',
506 'core/src/fxcodec/lgif/fx_gif.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700507 'core/src/fxcodec/libjpeg/cderror.h',
508 'core/src/fxcodec/libjpeg/cdjpeg.h',
509 'core/src/fxcodec/libjpeg/fpdfapi_jcapimin.c',
510 'core/src/fxcodec/libjpeg/fpdfapi_jcapistd.c',
511 'core/src/fxcodec/libjpeg/fpdfapi_jccoefct.c',
512 'core/src/fxcodec/libjpeg/fpdfapi_jccolor.c',
513 'core/src/fxcodec/libjpeg/fpdfapi_jcdctmgr.c',
514 'core/src/fxcodec/libjpeg/fpdfapi_jchuff.c',
515 'core/src/fxcodec/libjpeg/fpdfapi_jcinit.c',
516 'core/src/fxcodec/libjpeg/fpdfapi_jcmainct.c',
517 'core/src/fxcodec/libjpeg/fpdfapi_jcmarker.c',
518 'core/src/fxcodec/libjpeg/fpdfapi_jcmaster.c',
519 'core/src/fxcodec/libjpeg/fpdfapi_jcomapi.c',
520 'core/src/fxcodec/libjpeg/fpdfapi_jcparam.c',
521 'core/src/fxcodec/libjpeg/fpdfapi_jcphuff.c',
522 'core/src/fxcodec/libjpeg/fpdfapi_jcprepct.c',
523 'core/src/fxcodec/libjpeg/fpdfapi_jcsample.c',
524 'core/src/fxcodec/libjpeg/fpdfapi_jctrans.c',
525 'core/src/fxcodec/libjpeg/fpdfapi_jdapimin.c',
526 'core/src/fxcodec/libjpeg/fpdfapi_jdapistd.c',
527 'core/src/fxcodec/libjpeg/fpdfapi_jdcoefct.c',
528 'core/src/fxcodec/libjpeg/fpdfapi_jdcolor.c',
529 'core/src/fxcodec/libjpeg/fpdfapi_jddctmgr.c',
530 'core/src/fxcodec/libjpeg/fpdfapi_jdhuff.c',
531 'core/src/fxcodec/libjpeg/fpdfapi_jdinput.c',
532 'core/src/fxcodec/libjpeg/fpdfapi_jdmainct.c',
533 'core/src/fxcodec/libjpeg/fpdfapi_jdmarker.c',
534 'core/src/fxcodec/libjpeg/fpdfapi_jdmaster.c',
535 'core/src/fxcodec/libjpeg/fpdfapi_jdmerge.c',
536 'core/src/fxcodec/libjpeg/fpdfapi_jdphuff.c',
537 'core/src/fxcodec/libjpeg/fpdfapi_jdpostct.c',
538 'core/src/fxcodec/libjpeg/fpdfapi_jdsample.c',
539 'core/src/fxcodec/libjpeg/fpdfapi_jdtrans.c',
540 'core/src/fxcodec/libjpeg/fpdfapi_jerror.c',
541 'core/src/fxcodec/libjpeg/fpdfapi_jfdctfst.c',
542 'core/src/fxcodec/libjpeg/fpdfapi_jfdctint.c',
543 'core/src/fxcodec/libjpeg/fpdfapi_jidctfst.c',
544 'core/src/fxcodec/libjpeg/fpdfapi_jidctint.c',
545 'core/src/fxcodec/libjpeg/fpdfapi_jidctred.c',
546 'core/src/fxcodec/libjpeg/fpdfapi_jmemmgr.c',
547 'core/src/fxcodec/libjpeg/fpdfapi_jmemnobs.c',
548 'core/src/fxcodec/libjpeg/fpdfapi_jutils.c',
549 'core/src/fxcodec/libjpeg/jchuff.h',
550 'core/src/fxcodec/libjpeg/jconfig.h',
551 'core/src/fxcodec/libjpeg/jdct.h',
552 'core/src/fxcodec/libjpeg/jdhuff.h',
553 'core/src/fxcodec/libjpeg/jerror.h',
554 'core/src/fxcodec/libjpeg/jinclude.h',
555 'core/src/fxcodec/libjpeg/jmemsys.h',
556 'core/src/fxcodec/libjpeg/jmorecfg.h',
557 'core/src/fxcodec/libjpeg/jpegint.h',
558 'core/src/fxcodec/libjpeg/jpeglib.h',
559 'core/src/fxcodec/libjpeg/jversion.h',
560 'core/src/fxcodec/libjpeg/makefile',
561 'core/src/fxcodec/libjpeg/transupp.h',
562 ],
John Abd-El-Malekdef5c7d2014-06-09 16:07:18 -0700563 'conditions': [
564 ['os_posix==1', {
565 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
566 # conversion to check that an address is 16-bit aligned (benign).
567 'cflags_c': [ '-Wno-pointer-to-int-cast' ],
568 }],
569 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700570 },
571 {
572 'target_name': 'fxcrt',
573 'type': 'static_library',
574 'ldflags': [ '-L<(PRODUCT_DIR)',],
575 'sources': [
576 'core/include/fxcrt/fx_arb.h',
577 'core/include/fxcrt/fx_basic.h',
578 'core/include/fxcrt/fx_coordinates.h',
579 'core/include/fxcrt/fx_ext.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700580 'core/include/fxcrt/fx_memory.h',
581 'core/include/fxcrt/fx_stream.h',
582 'core/include/fxcrt/fx_string.h',
583 'core/include/fxcrt/fx_system.h',
584 'core/include/fxcrt/fx_ucd.h',
585 'core/include/fxcrt/fx_xml.h',
586 'core/src/fxcrt/extension.h',
Tom Sepez53476d62015-02-04 10:48:28 -0800587 'core/src/fxcrt/fx_safe_types.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700588 'core/src/fxcrt/fxcrt_platforms.cpp',
589 'core/src/fxcrt/fxcrt_platforms.h',
590 'core/src/fxcrt/fxcrt_posix.cpp',
591 'core/src/fxcrt/fxcrt_posix.h',
592 'core/src/fxcrt/fxcrt_windows.cpp',
593 'core/src/fxcrt/fxcrt_windows.h',
594 'core/src/fxcrt/fx_arabic.cpp',
595 'core/src/fxcrt/fx_arabic.h',
596 'core/src/fxcrt/fx_basic_array.cpp',
597 'core/src/fxcrt/fx_basic_bstring.cpp',
598 'core/src/fxcrt/fx_basic_buffer.cpp',
599 'core/src/fxcrt/fx_basic_coords.cpp',
600 'core/src/fxcrt/fx_basic_gcc.cpp',
601 'core/src/fxcrt/fx_basic_list.cpp',
602 'core/src/fxcrt/fx_basic_maps.cpp',
603 'core/src/fxcrt/fx_basic_memmgr.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700604 'core/src/fxcrt/fx_basic_plex.cpp',
605 'core/src/fxcrt/fx_basic_utf.cpp',
606 'core/src/fxcrt/fx_basic_util.cpp',
607 'core/src/fxcrt/fx_basic_wstring.cpp',
608 'core/src/fxcrt/fx_extension.cpp',
609 'core/src/fxcrt/fx_ucddata.cpp',
610 'core/src/fxcrt/fx_unicode.cpp',
611 'core/src/fxcrt/fx_xml_composer.cpp',
612 'core/src/fxcrt/fx_xml_parser.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700613 'core/src/fxcrt/plex.h',
614 'core/src/fxcrt/xml_int.h',
615 ],
616 },
617 {
618 'target_name': 'fxge',
619 'type': 'static_library',
620 'ldflags': [ '-L<(PRODUCT_DIR)',],
621 'sources': [
622 'core/include/fxge/fpf.h',
623 'core/include/fxge/fx_dib.h',
624 'core/include/fxge/fx_font.h',
625 'core/include/fxge/fx_freetype.h',
626 'core/include/fxge/fx_ge.h',
627 'core/include/fxge/fx_ge_apple.h',
628 'core/include/fxge/fx_ge_win32.h',
629 'core/src/fxge/agg/include/fxfx_agg_basics.h',
630 'core/src/fxge/agg/include/fxfx_agg_clip_liang_barsky.h',
631 'core/src/fxge/agg/include/fxfx_agg_conv_dash.h',
632 'core/src/fxge/agg/include/fxfx_agg_conv_stroke.h',
633 'core/src/fxge/agg/include/fxfx_agg_curves.h',
634 'core/src/fxge/agg/include/fxfx_agg_path_storage.h',
635 'core/src/fxge/agg/include/fxfx_agg_rasterizer_scanline_aa.h',
636 'core/src/fxge/agg/include/fxfx_agg_renderer_scanline.h',
637 'core/src/fxge/agg/include/fxfx_agg_rendering_buffer.h',
638 'core/src/fxge/agg/include/fxfx_agg_scanline_u.h',
639 'core/src/fxge/agg/include/fx_agg_driver.h',
640 'core/src/fxge/agg/src/fxfx_agg_curves.cpp',
641 'core/src/fxge/agg/src/fxfx_agg_driver.cpp',
642 'core/src/fxge/agg/src/fxfx_agg_path_storage.cpp',
643 'core/src/fxge/agg/src/fxfx_agg_rasterizer_scanline_aa.cpp',
644 'core/src/fxge/agg/src/fxfx_agg_vcgen_dash.cpp',
645 'core/src/fxge/agg/src/fxfx_agg_vcgen_stroke.cpp',
646 'core/src/fxge/android/fpf_skiafont.cpp',
647 'core/src/fxge/android/fpf_skiafont.h',
648 'core/src/fxge/android/fpf_skiafontmgr.cpp',
649 'core/src/fxge/android/fpf_skiafontmgr.h',
650 'core/src/fxge/android/fpf_skiamodule.cpp',
651 'core/src/fxge/android/fpf_skiamodule.h',
652 'core/src/fxge/android/fx_android_font.cpp',
653 'core/src/fxge/android/fx_android_font.h',
654 'core/src/fxge/android/fx_android_imp.cpp',
655 'core/src/fxge/android/fx_fpf.h',
656 'core/src/fxge/apple/apple_int.h',
657 'core/src/fxge/apple/fx_apple_platform.cpp',
658 'core/src/fxge/apple/fx_mac_imp.cpp',
659 'core/src/fxge/apple/fx_quartz_device.cpp',
660 'core/src/fxge/dib/dib_int.h',
661 'core/src/fxge/dib/fx_dib_composite.cpp',
662 'core/src/fxge/dib/fx_dib_convert.cpp',
663 'core/src/fxge/dib/fx_dib_engine.cpp',
664 'core/src/fxge/dib/fx_dib_main.cpp',
665 'core/src/fxge/dib/fx_dib_transform.cpp',
666 'core/src/fxge/fontdata/chromefontdata/FoxitDingbats.c',
667 'core/src/fxge/fontdata/chromefontdata/FoxitFixed.c',
668 'core/src/fxge/fontdata/chromefontdata/FoxitFixedBold.c',
669 'core/src/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.c',
670 'core/src/fxge/fontdata/chromefontdata/FoxitFixedItalic.c',
671 'core/src/fxge/fontdata/chromefontdata/FoxitSans.c',
672 'core/src/fxge/fontdata/chromefontdata/FoxitSansBold.c',
673 'core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.c',
674 'core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.c',
675 'core/src/fxge/fontdata/chromefontdata/FoxitSansMM.c',
676 'core/src/fxge/fontdata/chromefontdata/FoxitSerif.c',
677 'core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.c',
678 'core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.c',
679 'core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.c',
680 'core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.c',
681 'core/src/fxge/fontdata/chromefontdata/FoxitSymbol.c',
Bo Xu4c764f32014-12-19 14:29:17 -0800682 'core/src/fxge/freetype/fx_freetype.c',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700683 'core/src/fxge/ge/fx_ge.cpp',
684 'core/src/fxge/ge/fx_ge_device.cpp',
685 'core/src/fxge/ge/fx_ge_font.cpp',
686 'core/src/fxge/ge/fx_ge_fontmap.cpp',
687 'core/src/fxge/ge/fx_ge_linux.cpp',
688 'core/src/fxge/ge/fx_ge_path.cpp',
689 'core/src/fxge/ge/fx_ge_ps.cpp',
690 'core/src/fxge/ge/fx_ge_text.cpp',
691 'core/src/fxge/ge/text_int.h',
692 ],
693 'conditions': [
694 ['pdf_use_skia==1', {
695 'sources': [
696 'core/src/fxge/skia/fx_skia_blitter_new.cpp',
697 'core/src/fxge/skia/fx_skia_device.cpp',
698 ],
699 'dependencies': [
700 '<(DEPTH)/skia/skia.gyp:skia',
701 ],
702 'include_dirs': [
703 '<(DEPTH)/third_party/skia/include/config',
704 '<(DEPTH)/third_party/skia/include/core',
705 '<(DEPTH)/third_party/skia/include/effects',
706 '<(DEPTH)/third_party/skia/include/images',
707 '<(DEPTH)/third_party/skia/include/lazy',
708 '<(DEPTH)/third_party/skia/include/pathops',
709 '<(DEPTH)/third_party/skia/include/utils',
710 '<(DEPTH)/third_party/skia/src/core',
711 ],
712 }],
713 ['OS=="win"', {
714 'defines!': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700715 'WIN32_LEAN_AND_MEAN'
716 ],
717 'sources': [
718 'core/src/fxge/win32/dwrite_int.h',
719 'core/src/fxge/win32/fx_win32_device.cpp',
720 'core/src/fxge/win32/fx_win32_dib.cpp',
721 'core/src/fxge/win32/fx_win32_dwrite.cpp',
722 'core/src/fxge/win32/fx_win32_gdipext.cpp',
723 'core/src/fxge/win32/fx_win32_print.cpp',
724 'core/src/fxge/win32/win32_int.h',
725 ],
726 }],
727 ],
728 },
729 {
730 'target_name': 'fxedit',
731 'type': 'static_library',
732 'ldflags': [ '-L<(PRODUCT_DIR)',],
733 'sources': [
734 'fpdfsdk/include/fxedit/fx_edit.h',
735 'fpdfsdk/include/fxedit/fxet_edit.h',
736 'fpdfsdk/include/fxedit/fxet_list.h',
737 'fpdfsdk/include/fxedit/fxet_stub.h',
738 'fpdfsdk/src/fxedit/fxet_ap.cpp',
739 'fpdfsdk/src/fxedit/fxet_edit.cpp',
740 'fpdfsdk/src/fxedit/fxet_list.cpp',
741 'fpdfsdk/src/fxedit/fxet_module.cpp',
742 'fpdfsdk/src/fxedit/fxet_pageobjs.cpp',
743 ],
744 },
745 {
746 'target_name': 'pdfwindow',
747 'type': 'static_library',
748 'ldflags': [ '-L<(PRODUCT_DIR)',],
749 'sources': [
750 'fpdfsdk/include/pdfwindow/IPDFWindow.h',
751 'fpdfsdk/include/pdfwindow/PDFWindow.h',
752 'fpdfsdk/include/pdfwindow/PWL_Button.h',
753 'fpdfsdk/include/pdfwindow/PWL_Caret.h',
754 'fpdfsdk/include/pdfwindow/PWL_ComboBox.h',
755 'fpdfsdk/include/pdfwindow/PWL_Edit.h',
756 'fpdfsdk/include/pdfwindow/PWL_EditCtrl.h',
757 'fpdfsdk/include/pdfwindow/PWL_FontMap.h',
758 'fpdfsdk/include/pdfwindow/PWL_Icon.h',
759 'fpdfsdk/include/pdfwindow/PWL_IconList.h',
760 'fpdfsdk/include/pdfwindow/PWL_Label.h',
761 'fpdfsdk/include/pdfwindow/PWL_ListBox.h',
762 'fpdfsdk/include/pdfwindow/PWL_ListCtrl.h',
763 'fpdfsdk/include/pdfwindow/PWL_Note.h',
764 'fpdfsdk/include/pdfwindow/PWL_ScrollBar.h',
765 'fpdfsdk/include/pdfwindow/PWL_Signature.h',
766 'fpdfsdk/include/pdfwindow/PWL_SpecialButton.h',
767 'fpdfsdk/include/pdfwindow/PWL_Utils.h',
768 'fpdfsdk/include/pdfwindow/PWL_Wnd.h',
769 'fpdfsdk/src/pdfwindow/PWL_Button.cpp',
770 'fpdfsdk/src/pdfwindow/PWL_Caret.cpp',
771 'fpdfsdk/src/pdfwindow/PWL_ComboBox.cpp',
772 'fpdfsdk/src/pdfwindow/PWL_Edit.cpp',
773 'fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp',
774 'fpdfsdk/src/pdfwindow/PWL_FontMap.cpp',
775 'fpdfsdk/src/pdfwindow/PWL_Icon.cpp',
776 'fpdfsdk/src/pdfwindow/PWL_IconList.cpp',
777 'fpdfsdk/src/pdfwindow/PWL_Label.cpp',
778 'fpdfsdk/src/pdfwindow/PWL_ListBox.cpp',
779 'fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp',
780 'fpdfsdk/src/pdfwindow/PWL_Note.cpp',
781 'fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp',
782 'fpdfsdk/src/pdfwindow/PWL_Signature.cpp',
783 'fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp',
784 'fpdfsdk/src/pdfwindow/PWL_Utils.cpp',
785 'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp',
786 ],
787 },
788 {
Bo Xufdc00a72014-10-28 23:03:33 -0700789 'target_name': 'fpdfxfa',
790 'type': 'static_library',
791 'ldflags': [ '-L<(PRODUCT_DIR)',],
792 'dependencies': [
793 'xfa.gyp:xfa',
794 ],
795 'sources': [
796 'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp',
797 'fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp',
798 'fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp',
799 'fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp',
800 'fpdfsdk/include/fpdfxfa/fpdfxfa_app.h',
801 'fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h',
802 'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h',
803 'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h',
804 ],
805 },
806 {
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700807 'target_name': 'javascript',
808 'type': 'static_library',
John Abd-El-Malekb045ed22015-02-10 09:15:12 -0800809 'include_dirs': [
810 '<(DEPTH)/v8',
811 '<(DEPTH)/v8/include',
812 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700813 'dependencies': [
814 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
815 ],
816 'export_dependent_settings': [
817 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
818 ],
819 'ldflags': [ '-L<(PRODUCT_DIR)',],
820 'sources': [
821 'fpdfsdk/include/javascript/app.h',
822 'fpdfsdk/include/javascript/color.h',
823 'fpdfsdk/include/javascript/console.h',
824 'fpdfsdk/include/javascript/Consts.h',
825 'fpdfsdk/include/javascript/Document.h',
826 'fpdfsdk/include/javascript/event.h',
827 'fpdfsdk/include/javascript/Field.h',
828 'fpdfsdk/include/javascript/global.h',
829 'fpdfsdk/include/javascript/Icon.h',
830 'fpdfsdk/include/javascript/IJavaScript.h',
831 'fpdfsdk/include/javascript/JavaScript.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700832 'fpdfsdk/include/javascript/JS_Context.h',
833 'fpdfsdk/include/javascript/JS_Define.h',
834 'fpdfsdk/include/javascript/JS_EventHandler.h',
835 'fpdfsdk/include/javascript/JS_GlobalData.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700836 'fpdfsdk/include/javascript/JS_Object.h',
837 'fpdfsdk/include/javascript/JS_Runtime.h',
838 'fpdfsdk/include/javascript/JS_Value.h',
839 'fpdfsdk/include/javascript/PublicMethods.h',
840 'fpdfsdk/include/javascript/report.h',
841 'fpdfsdk/include/javascript/resource.h',
842 'fpdfsdk/include/javascript/util.h',
843 'fpdfsdk/src/javascript/app.cpp',
844 'fpdfsdk/src/javascript/color.cpp',
845 'fpdfsdk/src/javascript/console.cpp',
846 'fpdfsdk/src/javascript/Consts.cpp',
847 'fpdfsdk/src/javascript/Document.cpp',
848 'fpdfsdk/src/javascript/event.cpp',
849 'fpdfsdk/src/javascript/Field.cpp',
850 'fpdfsdk/src/javascript/global.cpp',
851 'fpdfsdk/src/javascript/Icon.cpp',
852 'fpdfsdk/src/javascript/JS_Context.cpp',
853 'fpdfsdk/src/javascript/JS_EventHandler.cpp',
854 'fpdfsdk/src/javascript/JS_GlobalData.cpp',
855 'fpdfsdk/src/javascript/JS_Object.cpp',
856 'fpdfsdk/src/javascript/JS_Runtime.cpp',
857 'fpdfsdk/src/javascript/JS_Value.cpp',
858 'fpdfsdk/src/javascript/PublicMethods.cpp',
859 'fpdfsdk/src/javascript/report.cpp',
Tom Sepez2b0ed942015-02-27 13:58:29 -0800860 'fpdfsdk/src/javascript/resource.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700861 'fpdfsdk/src/javascript/util.cpp',
862 ],
863 },
864 {
865 'target_name': 'jsapi',
866 'type': 'static_library',
867 'dependencies': [
868 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
869 ],
870 'export_dependent_settings': [
871 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
872 ],
873 'include_dirs': [
Jochen Eisinger3fb18f42014-07-17 08:46:45 +0200874 '<(DEPTH)/v8',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700875 '<(DEPTH)/v8/include',
876 ],
877 'ldflags': [ '-L<(PRODUCT_DIR)',],
878 'sources': [
879 'fpdfsdk/include/jsapi/fxjs_v8.h',
880 'fpdfsdk/src/jsapi/fxjs_v8.cpp',
881 ],
882 },
883 {
884 'target_name': 'formfiller',
885 'type': 'static_library',
886 'ldflags': [ '-L<(PRODUCT_DIR)',],
887 'sources': [
888 'fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h',
889 'fpdfsdk/include/formfiller/FFL_CheckBox.h',
890 'fpdfsdk/include/formfiller/FFL_ComboBox.h',
891 'fpdfsdk/include/formfiller/FFL_FormFiller.h',
892 'fpdfsdk/include/formfiller/FFL_IFormFiller.h',
893 'fpdfsdk/include/formfiller/FFL_ListBox.h',
894 'fpdfsdk/include/formfiller/FFL_Notify.h',
895 'fpdfsdk/include/formfiller/FFL_PushButton.h',
896 'fpdfsdk/include/formfiller/FFL_RadioButton.h',
897 'fpdfsdk/include/formfiller/FFL_TextField.h',
898 'fpdfsdk/include/formfiller/FFL_Utils.h',
899 'fpdfsdk/include/formfiller/FormFiller.h',
900 'fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp',
901 'fpdfsdk/src/formfiller/FFL_CheckBox.cpp',
902 'fpdfsdk/src/formfiller/FFL_ComboBox.cpp',
903 'fpdfsdk/src/formfiller/FFL_FormFiller.cpp',
904 'fpdfsdk/src/formfiller/FFL_IFormFiller.cpp',
905 'fpdfsdk/src/formfiller/FFL_ListBox.cpp',
906 'fpdfsdk/src/formfiller/FFL_Notify.cpp',
907 'fpdfsdk/src/formfiller/FFL_PushButton.cpp',
908 'fpdfsdk/src/formfiller/FFL_RadioButton.cpp',
909 'fpdfsdk/src/formfiller/FFL_TextField.cpp',
910 'fpdfsdk/src/formfiller/FFL_Utils.cpp',
911 ],
912 },
Tom Sepez22ee2482015-01-07 10:04:16 -0800913 {
914 'target_name': 'pdfium_unittests',
915 'type': 'executable',
916 'dependencies': [
917 '<(DEPTH)/testing/gtest.gyp:gtest_main',
918 '<(DEPTH)/testing/gtest.gyp:gtest',
919 'pdfium',
920 ],
921 'include_dirs': [
922 '<(DEPTH)'
923 ],
924 'sources': [
Tom Sepezdb205822015-03-19 13:02:23 -0700925 'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp',
Tom Sepez22ee2482015-01-07 10:04:16 -0800926 'core/src/fxcrt/fx_basic_bstring_unittest.cpp',
Bo Xua6f95eb2015-01-21 12:17:23 -0800927 'core/src/fxcrt/fx_basic_wstring_unittest.cpp',
Tom Sepezd8bc3d52015-02-24 15:07:41 -0800928 'testing/fx_string_testhelpers.h',
929 'testing/fx_string_testhelpers.cpp',
Bo Xua9029792015-01-09 17:27:21 -0800930 'xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp',
Tom Sepez22ee2482015-01-07 10:04:16 -0800931 ],
932 },
Tom Sepez96d13342015-01-16 14:59:26 -0800933 {
934 'target_name': 'pdfium_embeddertests',
935 'type': 'executable',
936 'dependencies': [
Tom Sepeza310e002015-02-27 13:03:07 -0800937 '<(DEPTH)/testing/gmock.gyp:gmock',
Tom Sepez96d13342015-01-16 14:59:26 -0800938 '<(DEPTH)/testing/gtest.gyp:gtest',
Tom Sepez2785fb42015-03-03 09:49:29 -0800939 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
Tom Sepez96d13342015-01-16 14:59:26 -0800940 'pdfium',
941 ],
942 'include_dirs': [
Tom Sepez2785fb42015-03-03 09:49:29 -0800943 '<(DEPTH)',
944 '<(DEPTH)/v8',
945 '<(DEPTH)/v8/include',
Tom Sepez96d13342015-01-16 14:59:26 -0800946 ],
947 'sources': [
Tom Sepez441932f2015-04-10 10:40:55 -0700948 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp',
JUN FANGfbc74492015-04-03 11:35:50 -0700949 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp',
Tom Sepez2255a1b2015-01-23 15:33:44 -0800950 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp',
Tom Sepezc8f6ab62015-01-22 11:20:06 -0800951 'fpdfsdk/src/fpdfdoc_embeddertest.cpp',
Tom Sepeza310e002015-02-27 13:03:07 -0800952 'fpdfsdk/src/fpdfformfill_embeddertest.cpp',
Tom Sepez26b8a5b2015-01-27 12:42:36 -0800953 'fpdfsdk/src/fpdftext_embeddertest.cpp',
Tom Sepezcf22eb82015-05-12 17:28:08 -0700954 'fpdfsdk/src/fpdfview_c_api_test.c',
955 'fpdfsdk/src/fpdfview_c_api_test.h',
Tom Sepez96d13342015-01-16 14:59:26 -0800956 'fpdfsdk/src/fpdfview_embeddertest.cpp',
957 'testing/embedder_test.cpp',
958 'testing/embedder_test.h',
Tom Sepeza310e002015-02-27 13:03:07 -0800959 'testing/embedder_test_mock_delegate.h',
Tom Sepez96d13342015-01-16 14:59:26 -0800960 'testing/fx_string_testhelpers.cpp',
961 'testing/fx_string_testhelpers.h',
962 ],
963 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700964 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700965}