Roll DEPS for v8 to d7f813b.
[pdfium.git] / pdfium.gyp
1 {
2   'variables': {
3     'pdf_use_skia%': 0,
4     '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,
10       }],
11     ],
12   },
13   'target_defaults': {
14     'defines' : [
15       'OPJ_STATIC',
16       'V8_DEPRECATION_WARNINGS',
17       '_CRT_SECURE_NO_WARNINGS',
18     ],
19     'include_dirs': [
20       'third_party/freetype/include',
21     ],
22     'conditions': [
23       ['pdf_use_skia==1', {
24         'defines': ['_SKIA_SUPPORT_'],
25       }],
26       ['OS=="linux"', {
27         'conditions': [
28           ['target_arch=="x64"', {
29             'defines' : [ '_FX_CPU_=_FX_X64_', ],
30             'cflags': [ '-fPIC', ],
31           }],
32           ['target_arch=="ia32"', {
33             'defines' : [ '_FX_CPU_=_FX_X86_', ],
34           }],
35         ],
36       }],
37     ],
38     'msvs_disabled_warnings': [
39       4005, 4018, 4146, 4333, 4345, 4267
40     ],
41   },
42   'targets': [
43     {
44       'target_name': 'pdfium',
45       'type': 'static_library',
46       'dependencies': [
47         'third_party/third_party.gyp:bigint',
48         'third_party/third_party.gyp:pdfium_base',
49         'fdrm',
50         'fpdfdoc',
51         'fpdfapi',
52         'fpdftext',
53         'formfiller',
54         'fxcodec',
55         'fxcrt',
56         'fxedit',
57         'fxge',
58         'javascript',
59         'jsapi',
60         'pdfwindow',
61       ],
62       'ldflags': [ '-L<(PRODUCT_DIR)',],
63       'sources': [
64         'fpdfsdk/include/fsdk_actionhandler.h',
65         'fpdfsdk/include/fsdk_annothandler.h',
66         'fpdfsdk/include/fsdk_baseannot.h',
67         'fpdfsdk/include/fsdk_baseform.h',
68         'fpdfsdk/src/fpdfdoc.cpp',
69         'fpdfsdk/src/fpdfeditimg.cpp',
70         'fpdfsdk/src/fpdfeditpage.cpp',
71         'fpdfsdk/src/fpdfformfill.cpp',
72         'fpdfsdk/src/fpdfppo.cpp',
73         'fpdfsdk/src/fpdfsave.cpp',
74         'fpdfsdk/src/fpdftext.cpp',
75         'fpdfsdk/src/fpdfview.cpp',
76         'fpdfsdk/src/fpdf_dataavail.cpp',
77         'fpdfsdk/src/fpdf_ext.cpp',
78         'fpdfsdk/src/fpdf_flatten.cpp',
79         'fpdfsdk/src/fpdf_progressive.cpp',
80         'fpdfsdk/src/fpdf_searchex.cpp',
81         'fpdfsdk/src/fpdf_sysfontinfo.cpp',
82         'fpdfsdk/src/fpdf_transformpage.cpp',
83         'fpdfsdk/src/fsdk_actionhandler.cpp',
84         'fpdfsdk/src/fsdk_annothandler.cpp',
85         'fpdfsdk/src/fsdk_baseannot.cpp',
86         'fpdfsdk/src/fsdk_baseform.cpp',
87         'fpdfsdk/src/fsdk_mgr.cpp',
88         'fpdfsdk/src/fsdk_rendercontext.cpp',
89         'fpdfsdk/src/fpdfsdkdll.rc',
90         'fpdfsdk/src/resource.h',
91         'public/fpdf_dataavail.h',
92         'public/fpdf_doc.h',
93         'public/fpdf_edit.h',
94         'public/fpdf_ext.h',
95         'public/fpdf_flatten.h',
96         'public/fpdf_formfill.h',
97         'public/fpdf_fwlevent.h',
98         'public/fpdf_ppo.h',
99         'public/fpdf_progressive.h',
100         'public/fpdf_save.h',
101         'public/fpdf_searchex.h',
102         'public/fpdf_sysfontinfo.h',
103         'public/fpdf_text.h',
104         'public/fpdf_transformpage.h',
105         'public/fpdfview.h',
106       ],
107       'conditions': [
108         ['OS!="win"', {
109           'sources!': [
110             'fpdfsdk/src/fpdfsdkdll.rc',
111           ],
112         }],
113         ['bundle_freetype==1', {
114           'dependencies': [
115             'third_party/third_party.gyp:fx_freetype',
116           ],
117         }, {
118           'link_settings': {
119             'libraries': [
120               '-lfreetype',
121             ],
122           },
123         }],
124       ],
125       'all_dependent_settings': {
126         'msvs_settings': {
127           'VCLinkerTool': {
128             'AdditionalDependencies': [
129               'advapi32.lib',
130               'gdi32.lib',
131               'user32.lib',
132             ],
133           },
134         },
135         'conditions': [
136           ['OS=="mac"', {
137             'link_settings': {
138               'libraries': [
139                 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
140                 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
141               ],
142             },
143           }],
144         ],
145       },
146     },
147     {
148       'target_name': 'fdrm',
149       'type': 'static_library',
150       'ldflags': [ '-L<(PRODUCT_DIR)',],
151       'sources': [
152         'core/include/fdrm/fx_crypt.h',
153         'core/src/fdrm/crypto/fx_crypt.cpp',
154         'core/src/fdrm/crypto/fx_crypt_aes.cpp',
155         'core/src/fdrm/crypto/fx_crypt_sha.cpp',
156       ],
157     },
158     {
159       'target_name': 'fpdfdoc',
160       'type': 'static_library',
161       'ldflags': [ '-L<(PRODUCT_DIR)',],
162       'sources': [
163         'core/include/fpdfdoc/fpdf_ap.h',
164         'core/include/fpdfdoc/fpdf_doc.h',
165         'core/include/fpdfdoc/fpdf_tagged.h',
166         'core/include/fpdfdoc/fpdf_vt.h',
167         'core/src/fpdfdoc/doc_action.cpp',
168         'core/src/fpdfdoc/doc_annot.cpp',
169         'core/src/fpdfdoc/doc_ap.cpp',
170         'core/src/fpdfdoc/doc_basic.cpp',
171         'core/src/fpdfdoc/doc_bookmark.cpp',
172         'core/src/fpdfdoc/doc_form.cpp',
173         'core/src/fpdfdoc/doc_formcontrol.cpp',
174         'core/src/fpdfdoc/doc_formfield.cpp',
175         'core/src/fpdfdoc/doc_link.cpp',
176         'core/src/fpdfdoc/doc_metadata.cpp',
177         'core/src/fpdfdoc/doc_ocg.cpp',
178         'core/src/fpdfdoc/doc_tagged.cpp',
179         'core/src/fpdfdoc/doc_utils.cpp',
180         'core/src/fpdfdoc/doc_utils.h',
181         'core/src/fpdfdoc/doc_viewerPreferences.cpp',
182         'core/src/fpdfdoc/doc_vt.cpp',
183         'core/src/fpdfdoc/doc_vtmodule.cpp',
184         'core/src/fpdfdoc/pdf_vt.h',
185         'core/src/fpdfdoc/tagged_int.h',
186       ],
187     },
188     {
189       'target_name': 'fpdfapi',
190       'type': 'static_library',
191       'ldflags': [ '-L<(PRODUCT_DIR)',],
192       'sources': [
193         'core/include/fpdfapi/fpdfapi.h',
194         'core/include/fpdfapi/fpdf_module.h',
195         'core/include/fpdfapi/fpdf_objects.h',
196         'core/include/fpdfapi/fpdf_page.h',
197         'core/include/fpdfapi/fpdf_pageobj.h',
198         'core/include/fpdfapi/fpdf_parser.h',
199         'core/include/fpdfapi/fpdf_render.h',
200         'core/include/fpdfapi/fpdf_resource.h',
201         'core/include/fpdfapi/fpdf_serial.h',
202         'core/src/fpdfapi/fpdf_basic_module.cpp',
203         'core/src/fpdfapi/fpdf_cmaps/cmap_int.h',
204         'core/src/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp',
205         'core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp',
206         'core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp',
207         'core/src/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.cpp',
208         'core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp',
209         'core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp',
210         'core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp',
211         'core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp',
212         'core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp',
213         'core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp',
214         'core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp',
215         'core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp',
216         'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp',
217         'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp',
218         'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp',
219         'core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp',
220         'core/src/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp',
221         'core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.cpp',
222         'core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp',
223         'core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp',
224         'core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp',
225         'core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp',
226         'core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp',
227         'core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp',
228         'core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp',
229         'core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp',
230         'core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp',
231         'core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp',
232         'core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp',
233         'core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp',
234         'core/src/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp',
235         'core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp',
236         'core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp',
237         'core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp',
238         'core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp',
239         'core/src/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp',
240         'core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp',
241         'core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp',
242         'core/src/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp',
243         'core/src/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.cpp',
244         'core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp',
245         'core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp',
246         'core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp',
247         'core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp',
248         'core/src/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp',
249         'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp',
250         'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp',
251         'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp',
252         'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp',
253         'core/src/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp',
254         'core/src/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp',
255         'core/src/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp',
256         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp',
257         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp',
258         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp',
259         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp',
260         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp',
261         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp',
262         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp',
263         'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp',
264         'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp',
265         'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp',
266         'core/src/fpdfapi/fpdf_edit/editint.h',
267         'core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp',
268         'core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp',
269         'core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp',
270         'core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp',
271         'core/src/fpdfapi/fpdf_font/common.h',
272         'core/src/fpdfapi/fpdf_font/font_int.h',
273         'core/src/fpdfapi/fpdf_font/fpdf_font.cpp',
274         'core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp',
275         'core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp',
276         'core/src/fpdfapi/fpdf_font/ttgsubtable.cpp',
277         'core/src/fpdfapi/fpdf_font/ttgsubtable.h',
278         'core/src/fpdfapi/fpdf_page/fpdf_page.cpp',
279         'core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp',
280         'core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp',
281         'core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp',
282         'core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp',
283         'core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp',
284         'core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp',
285         'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp',
286         'core/src/fpdfapi/fpdf_page/fpdf_page_path.cpp',
287         'core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp',
288         'core/src/fpdfapi/fpdf_page/pageint.h',
289         'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp',
290         'core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp',
291         'core/src/fpdfapi/fpdf_parser/fpdf_parser_encrypt.cpp',
292         'core/src/fpdfapi/fpdf_parser/fpdf_parser_fdf.cpp',
293         'core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp',
294         'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp',
295         'core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp',
296         'core/src/fpdfapi/fpdf_render/fpdf_render.cpp',
297         'core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp',
298         'core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp',
299         'core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp',
300         'core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp',
301         'core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp',
302         'core/src/fpdfapi/fpdf_render/render_int.h',
303       ],
304     },
305     {
306       'target_name': 'fpdftext',
307       'type': 'static_library',
308       'ldflags': [ '-L<(PRODUCT_DIR)',],
309       'sources': [
310         'core/include/fpdftext/fpdf_text.h',
311         'core/src/fpdftext/fpdf_text.cpp',
312         'core/src/fpdftext/fpdf_text_int.cpp',
313         'core/src/fpdftext/fpdf_text_search.cpp',
314         'core/src/fpdftext/text_int.h',
315         'core/src/fpdftext/txtproc.h',
316         'core/src/fpdftext/unicodenormalization.cpp',
317         'core/src/fpdftext/unicodenormalizationdata.cpp',
318         'core/src/fpdftext/unicodenormalizationdata.h',
319       ],
320     },
321     {
322       'target_name': 'fxcodec',
323       'type': 'static_library',
324       'dependencies': [
325         'third_party/third_party.gyp:fx_lcms2',
326         'third_party/third_party.gyp:fx_libjpeg',
327         'third_party/third_party.gyp:fx_libopenjpeg',
328         'third_party/third_party.gyp:fx_zlib',
329       ],
330       'ldflags': [ '-L<(PRODUCT_DIR)',],
331       'sources': [
332         'core/include/fxcodec/fx_codec.h',
333         'core/include/fxcodec/fx_codec_def.h',
334         'core/include/fxcodec/fx_codec_flate.h',
335         'core/include/fxcodec/fx_codec_provider.h',
336         'core/src/fxcodec/codec/codec_int.h',
337         'core/src/fxcodec/codec/fx_codec.cpp',
338         'core/src/fxcodec/codec/fx_codec_fax.cpp',
339         'core/src/fxcodec/codec/fx_codec_flate.cpp',
340         'core/src/fxcodec/codec/fx_codec_icc.cpp',
341         'core/src/fxcodec/codec/fx_codec_jbig.cpp',
342         'core/src/fxcodec/codec/fx_codec_jbig_enc.cpp',
343         'core/src/fxcodec/codec/fx_codec_jpeg.cpp',
344         'core/src/fxcodec/codec/fx_codec_jpx_opj.cpp',
345         'core/src/fxcodec/jbig2/JBig2_ArithDecoder.cpp',
346         'core/src/fxcodec/jbig2/JBig2_ArithDecoder.h',
347         'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp',
348         'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h',
349         'core/src/fxcodec/jbig2/JBig2_BitStream.h',
350         'core/src/fxcodec/jbig2/JBig2_Context.cpp',
351         'core/src/fxcodec/jbig2/JBig2_Context.h',
352         'core/src/fxcodec/jbig2/JBig2_Define.h',
353         'core/src/fxcodec/jbig2/JBig2_GrdProc.cpp',
354         'core/src/fxcodec/jbig2/JBig2_GrdProc.h',
355         'core/src/fxcodec/jbig2/JBig2_GrrdProc.cpp',
356         'core/src/fxcodec/jbig2/JBig2_GrrdProc.h',
357         'core/src/fxcodec/jbig2/JBig2_GsidProc.cpp',
358         'core/src/fxcodec/jbig2/JBig2_GsidProc.h',
359         'core/src/fxcodec/jbig2/JBig2_HtrdProc.cpp',
360         'core/src/fxcodec/jbig2/JBig2_HtrdProc.h',
361         'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp',
362         'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.h',
363         'core/src/fxcodec/jbig2/JBig2_HuffmanTable.cpp',
364         'core/src/fxcodec/jbig2/JBig2_HuffmanTable.h',
365         'core/src/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h',
366         'core/src/fxcodec/jbig2/JBig2_Image.cpp',
367         'core/src/fxcodec/jbig2/JBig2_Image.h',
368         'core/src/fxcodec/jbig2/JBig2_List.h',
369         'core/src/fxcodec/jbig2/JBig2_Page.h',
370         'core/src/fxcodec/jbig2/JBig2_PatternDict.cpp',
371         'core/src/fxcodec/jbig2/JBig2_PatternDict.h',
372         'core/src/fxcodec/jbig2/JBig2_PddProc.cpp',
373         'core/src/fxcodec/jbig2/JBig2_PddProc.h',
374         'core/src/fxcodec/jbig2/JBig2_SddProc.cpp',
375         'core/src/fxcodec/jbig2/JBig2_SddProc.h',
376         'core/src/fxcodec/jbig2/JBig2_Segment.cpp',
377         'core/src/fxcodec/jbig2/JBig2_Segment.h',
378         'core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp',
379         'core/src/fxcodec/jbig2/JBig2_SymbolDict.h',
380         'core/src/fxcodec/jbig2/JBig2_TrdProc.cpp',
381         'core/src/fxcodec/jbig2/JBig2_TrdProc.h',
382       ],
383       'msvs_settings': {
384         'VCCLCompilerTool': {
385           # Unresolved warnings in fx_codec_jpx_opj.cpp
386           # https://code.google.com/p/pdfium/issues/detail?id=100
387           'WarnAsError': 'false',
388         },
389       },
390       'conditions': [
391         ['os_posix==1', {
392           # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
393           # conversion to check that an address is 16-bit aligned (benign).
394           'cflags_c': [ '-Wno-pointer-to-int-cast' ],
395         }],
396       ],
397     },
398     {
399       'target_name': 'fxcrt',
400       'type': 'static_library',
401       'ldflags': [ '-L<(PRODUCT_DIR)',],
402       'sources': [
403         'core/include/fxcrt/fx_basic.h',
404         'core/include/fxcrt/fx_bidi.h',
405         'core/include/fxcrt/fx_coordinates.h',
406         'core/include/fxcrt/fx_ext.h',
407         'core/include/fxcrt/fx_memory.h',
408         'core/include/fxcrt/fx_safe_types.h',
409         'core/include/fxcrt/fx_stream.h',
410         'core/include/fxcrt/fx_string.h',
411         'core/include/fxcrt/fx_system.h',
412         'core/include/fxcrt/fx_ucd.h',
413         'core/include/fxcrt/fx_xml.h',
414         'core/src/fxcrt/extension.h',
415         'core/src/fxcrt/fxcrt_platforms.cpp',
416         'core/src/fxcrt/fxcrt_platforms.h',
417         'core/src/fxcrt/fxcrt_posix.cpp',
418         'core/src/fxcrt/fxcrt_posix.h',
419         'core/src/fxcrt/fxcrt_windows.cpp',
420         'core/src/fxcrt/fxcrt_windows.h',
421         'core/src/fxcrt/fx_basic_array.cpp',
422         'core/src/fxcrt/fx_basic_bstring.cpp',
423         'core/src/fxcrt/fx_basic_buffer.cpp',
424         'core/src/fxcrt/fx_basic_coords.cpp',
425         'core/src/fxcrt/fx_basic_gcc.cpp',
426         'core/src/fxcrt/fx_basic_list.cpp',
427         'core/src/fxcrt/fx_basic_maps.cpp',
428         'core/src/fxcrt/fx_basic_memmgr.cpp',
429         'core/src/fxcrt/fx_basic_plex.cpp',
430         'core/src/fxcrt/fx_basic_utf.cpp',
431         'core/src/fxcrt/fx_basic_util.cpp',
432         'core/src/fxcrt/fx_basic_wstring.cpp',
433         'core/src/fxcrt/fx_bidi.cpp',
434         'core/src/fxcrt/fx_extension.cpp',
435         'core/src/fxcrt/fx_ucddata.cpp',
436         'core/src/fxcrt/fx_unicode.cpp',
437         'core/src/fxcrt/fx_xml_composer.cpp',
438         'core/src/fxcrt/fx_xml_parser.cpp',
439         'core/src/fxcrt/plex.h',
440         'core/src/fxcrt/xml_int.h',
441       ],
442     },
443     {
444       'target_name': 'fxge',
445       'type': 'static_library',
446       'ldflags': [
447         '-L<(PRODUCT_DIR)',
448       ],
449       'dependencies': [
450         'third_party/third_party.gyp:fx_agg',
451       ],
452       'sources': [
453         'core/include/fxge/fpf.h',
454         'core/include/fxge/fx_dib.h',
455         'core/include/fxge/fx_font.h',
456         'core/include/fxge/fx_freetype.h',
457         'core/include/fxge/fx_ge.h',
458         'core/include/fxge/fx_ge_apple.h',
459         'core/include/fxge/fx_ge_win32.h',
460         'core/src/fxge/agg/include/fx_agg_driver.h',
461         'core/src/fxge/agg/src/fx_agg_driver.cpp',
462         'core/src/fxge/android/fpf_skiafont.cpp',
463         'core/src/fxge/android/fpf_skiafont.h',
464         'core/src/fxge/android/fpf_skiafontmgr.cpp',
465         'core/src/fxge/android/fpf_skiafontmgr.h',
466         'core/src/fxge/android/fpf_skiamodule.cpp',
467         'core/src/fxge/android/fpf_skiamodule.h',
468         'core/src/fxge/android/fx_android_font.cpp',
469         'core/src/fxge/android/fx_android_font.h',
470         'core/src/fxge/android/fx_android_imp.cpp',
471         'core/src/fxge/android/fx_fpf.h',
472         'core/src/fxge/apple/apple_int.h',
473         'core/src/fxge/apple/fx_apple_platform.cpp',
474         'core/src/fxge/apple/fx_mac_imp.cpp',
475         'core/src/fxge/apple/fx_quartz_device.cpp',
476         'core/src/fxge/dib/dib_int.h',
477         'core/src/fxge/dib/fx_dib_composite.cpp',
478         'core/src/fxge/dib/fx_dib_convert.cpp',
479         'core/src/fxge/dib/fx_dib_engine.cpp',
480         'core/src/fxge/dib/fx_dib_main.cpp',
481         'core/src/fxge/dib/fx_dib_transform.cpp',
482         'core/src/fxge/fontdata/chromefontdata/chromefontdata.h',
483         'core/src/fxge/fontdata/chromefontdata/FoxitDingbats.c',
484         'core/src/fxge/fontdata/chromefontdata/FoxitFixed.c',
485         'core/src/fxge/fontdata/chromefontdata/FoxitFixedBold.c',
486         'core/src/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.c',
487         'core/src/fxge/fontdata/chromefontdata/FoxitFixedItalic.c',
488         'core/src/fxge/fontdata/chromefontdata/FoxitSans.c',
489         'core/src/fxge/fontdata/chromefontdata/FoxitSansBold.c',
490         'core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.c',
491         'core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.c',
492         'core/src/fxge/fontdata/chromefontdata/FoxitSansMM.c',
493         'core/src/fxge/fontdata/chromefontdata/FoxitSerif.c',
494         'core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.c',
495         'core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.c',
496         'core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.c',
497         'core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.c',
498         'core/src/fxge/fontdata/chromefontdata/FoxitSymbol.c',
499         'core/src/fxge/freetype/fx_freetype.c',
500         'core/src/fxge/ge/fx_ge.cpp',
501         'core/src/fxge/ge/fx_ge_device.cpp',
502         'core/src/fxge/ge/fx_ge_font.cpp',
503         'core/src/fxge/ge/fx_ge_fontmap.cpp',
504         'core/src/fxge/ge/fx_ge_linux.cpp',
505         'core/src/fxge/ge/fx_ge_path.cpp',
506         'core/src/fxge/ge/fx_ge_ps.cpp',
507         'core/src/fxge/ge/fx_ge_text.cpp',
508         'core/src/fxge/ge/text_int.h',
509       ],
510       'variables': {
511         'clang_warning_flags': [
512           # http://code.google.com/p/pdfium/issues/detail?id=188
513           '-Wno-switch',
514         ],
515       },
516       'conditions': [
517         ['pdf_use_skia==1', {
518           'sources': [
519             'core/src/fxge/skia/fx_skia_blitter_new.cpp',
520             'core/src/fxge/skia/fx_skia_device.cpp',
521           ],
522           'dependencies': [
523             '<(DEPTH)/skia/skia.gyp:skia',
524           ],
525           'include_dirs': [
526             '<(DEPTH)/third_party/skia/include/config',
527             '<(DEPTH)/third_party/skia/include/core',
528             '<(DEPTH)/third_party/skia/include/effects',
529             '<(DEPTH)/third_party/skia/include/images',
530             '<(DEPTH)/third_party/skia/include/lazy',
531             '<(DEPTH)/third_party/skia/include/pathops',
532             '<(DEPTH)/third_party/skia/include/utils',
533             '<(DEPTH)/third_party/skia/src/core',
534           ],
535         }],
536         ['OS=="win"', {
537           'defines!': [
538             'WIN32_LEAN_AND_MEAN'
539           ],
540           'sources': [
541             'core/src/fxge/win32/dwrite_int.h',
542             'core/src/fxge/win32/fx_win32_device.cpp',
543             'core/src/fxge/win32/fx_win32_dib.cpp',
544             'core/src/fxge/win32/fx_win32_dwrite.cpp',
545             'core/src/fxge/win32/fx_win32_gdipext.cpp',
546             'core/src/fxge/win32/fx_win32_print.cpp',
547             'core/src/fxge/win32/win32_int.h',
548           ],
549         }],
550       ],
551     },
552     {
553       'target_name': 'fxedit',
554       'type': 'static_library',
555       'ldflags': [ '-L<(PRODUCT_DIR)',],
556       'sources': [
557         'fpdfsdk/include/fxedit/fx_edit.h',
558         'fpdfsdk/include/fxedit/fxet_edit.h',
559         'fpdfsdk/include/fxedit/fxet_list.h',
560         'fpdfsdk/include/fxedit/fxet_stub.h',
561         'fpdfsdk/src/fxedit/fxet_ap.cpp',
562         'fpdfsdk/src/fxedit/fxet_edit.cpp',
563         'fpdfsdk/src/fxedit/fxet_list.cpp',
564         'fpdfsdk/src/fxedit/fxet_module.cpp',
565         'fpdfsdk/src/fxedit/fxet_pageobjs.cpp',
566       ],
567     },
568     {
569       'target_name': 'pdfwindow',
570       'type': 'static_library',
571       'ldflags': [ '-L<(PRODUCT_DIR)',],
572       'sources': [
573         'fpdfsdk/include/pdfwindow/IPDFWindow.h',
574         'fpdfsdk/include/pdfwindow/PDFWindow.h',
575         'fpdfsdk/include/pdfwindow/PWL_Button.h',
576         'fpdfsdk/include/pdfwindow/PWL_Caret.h',
577         'fpdfsdk/include/pdfwindow/PWL_ComboBox.h',
578         'fpdfsdk/include/pdfwindow/PWL_Edit.h',
579         'fpdfsdk/include/pdfwindow/PWL_EditCtrl.h',
580         'fpdfsdk/include/pdfwindow/PWL_FontMap.h',
581         'fpdfsdk/include/pdfwindow/PWL_Icon.h',
582         'fpdfsdk/include/pdfwindow/PWL_IconList.h',
583         'fpdfsdk/include/pdfwindow/PWL_Label.h',
584         'fpdfsdk/include/pdfwindow/PWL_ListBox.h',
585         'fpdfsdk/include/pdfwindow/PWL_ListCtrl.h',
586         'fpdfsdk/include/pdfwindow/PWL_Note.h',
587         'fpdfsdk/include/pdfwindow/PWL_ScrollBar.h',
588         'fpdfsdk/include/pdfwindow/PWL_Signature.h',
589         'fpdfsdk/include/pdfwindow/PWL_SpecialButton.h',
590         'fpdfsdk/include/pdfwindow/PWL_Utils.h',
591         'fpdfsdk/include/pdfwindow/PWL_Wnd.h',
592         'fpdfsdk/src/pdfwindow/PWL_Button.cpp',
593         'fpdfsdk/src/pdfwindow/PWL_Caret.cpp',
594         'fpdfsdk/src/pdfwindow/PWL_ComboBox.cpp',
595         'fpdfsdk/src/pdfwindow/PWL_Edit.cpp',
596         'fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp',
597         'fpdfsdk/src/pdfwindow/PWL_FontMap.cpp',
598         'fpdfsdk/src/pdfwindow/PWL_Icon.cpp',
599         'fpdfsdk/src/pdfwindow/PWL_IconList.cpp',
600         'fpdfsdk/src/pdfwindow/PWL_Label.cpp',
601         'fpdfsdk/src/pdfwindow/PWL_ListBox.cpp',
602         'fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp',
603         'fpdfsdk/src/pdfwindow/PWL_Note.cpp',
604         'fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp',
605         'fpdfsdk/src/pdfwindow/PWL_Signature.cpp',
606         'fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp',
607         'fpdfsdk/src/pdfwindow/PWL_Utils.cpp',
608         'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp',
609       ],
610     },
611     {
612       'target_name': 'javascript',
613       'type': 'static_library',
614       'include_dirs': [
615         '<(DEPTH)/v8',
616         '<(DEPTH)/v8/include',
617       ],
618       'dependencies': [
619         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
620       ],
621       'export_dependent_settings': [
622         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
623       ],
624       'ldflags': [ '-L<(PRODUCT_DIR)',],
625       'sources': [
626         'fpdfsdk/include/javascript/app.h',
627         'fpdfsdk/include/javascript/color.h',
628         'fpdfsdk/include/javascript/console.h',
629         'fpdfsdk/include/javascript/Consts.h',
630         'fpdfsdk/include/javascript/Document.h',
631         'fpdfsdk/include/javascript/event.h',
632         'fpdfsdk/include/javascript/Field.h',
633         'fpdfsdk/include/javascript/global.h',
634         'fpdfsdk/include/javascript/Icon.h',
635         'fpdfsdk/include/javascript/IJavaScript.h',
636         'fpdfsdk/include/javascript/JavaScript.h',
637         'fpdfsdk/include/javascript/JS_Context.h',
638         'fpdfsdk/include/javascript/JS_Define.h',
639         'fpdfsdk/include/javascript/JS_EventHandler.h',
640         'fpdfsdk/include/javascript/JS_GlobalData.h',
641         'fpdfsdk/include/javascript/JS_Object.h',
642         'fpdfsdk/include/javascript/JS_Runtime.h',
643         'fpdfsdk/include/javascript/JS_Value.h',
644         'fpdfsdk/include/javascript/PublicMethods.h',
645         'fpdfsdk/include/javascript/report.h',
646         'fpdfsdk/include/javascript/resource.h',
647         'fpdfsdk/include/javascript/util.h',
648         'fpdfsdk/src/javascript/app.cpp',
649         'fpdfsdk/src/javascript/color.cpp',
650         'fpdfsdk/src/javascript/console.cpp',
651         'fpdfsdk/src/javascript/Consts.cpp',
652         'fpdfsdk/src/javascript/Document.cpp',
653         'fpdfsdk/src/javascript/event.cpp',
654         'fpdfsdk/src/javascript/Field.cpp',
655         'fpdfsdk/src/javascript/global.cpp',
656         'fpdfsdk/src/javascript/Icon.cpp',
657         'fpdfsdk/src/javascript/JS_Context.cpp',
658         'fpdfsdk/src/javascript/JS_EventHandler.cpp',
659         'fpdfsdk/src/javascript/JS_GlobalData.cpp',
660         'fpdfsdk/src/javascript/JS_Object.cpp',
661         'fpdfsdk/src/javascript/JS_Runtime.cpp',
662         'fpdfsdk/src/javascript/JS_Value.cpp',
663         'fpdfsdk/src/javascript/PublicMethods.cpp',
664         'fpdfsdk/src/javascript/report.cpp',
665         'fpdfsdk/src/javascript/resource.cpp',
666         'fpdfsdk/src/javascript/util.cpp',
667       ],
668     },
669     {
670       'target_name': 'jsapi',
671       'type': 'static_library',
672       'dependencies': [
673         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
674       ],
675       'export_dependent_settings': [
676         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
677       ],
678       'include_dirs': [
679         '<(DEPTH)/v8',
680         '<(DEPTH)/v8/include',
681       ],
682       'ldflags': [ '-L<(PRODUCT_DIR)',],
683       'sources': [
684         'fpdfsdk/include/jsapi/fxjs_v8.h',
685         'fpdfsdk/src/jsapi/fxjs_v8.cpp',
686       ],
687     },
688     {
689       'target_name': 'formfiller',
690       'type': 'static_library',
691       'ldflags': [ '-L<(PRODUCT_DIR)',],
692       'sources': [
693         'fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h',
694         'fpdfsdk/include/formfiller/FFL_CheckBox.h',
695         'fpdfsdk/include/formfiller/FFL_ComboBox.h',
696         'fpdfsdk/include/formfiller/FFL_FormFiller.h',
697         'fpdfsdk/include/formfiller/FFL_IFormFiller.h',
698         'fpdfsdk/include/formfiller/FFL_ListBox.h',
699         'fpdfsdk/include/formfiller/FFL_Notify.h',
700         'fpdfsdk/include/formfiller/FFL_PushButton.h',
701         'fpdfsdk/include/formfiller/FFL_RadioButton.h',
702         'fpdfsdk/include/formfiller/FFL_TextField.h',
703         'fpdfsdk/include/formfiller/FFL_Utils.h',
704         'fpdfsdk/include/formfiller/FormFiller.h',
705         'fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp',
706         'fpdfsdk/src/formfiller/FFL_CheckBox.cpp',
707         'fpdfsdk/src/formfiller/FFL_ComboBox.cpp',
708         'fpdfsdk/src/formfiller/FFL_FormFiller.cpp',
709         'fpdfsdk/src/formfiller/FFL_IFormFiller.cpp',
710         'fpdfsdk/src/formfiller/FFL_ListBox.cpp',
711         'fpdfsdk/src/formfiller/FFL_Notify.cpp',
712         'fpdfsdk/src/formfiller/FFL_PushButton.cpp',
713         'fpdfsdk/src/formfiller/FFL_RadioButton.cpp',
714         'fpdfsdk/src/formfiller/FFL_TextField.cpp',
715         'fpdfsdk/src/formfiller/FFL_Utils.cpp',
716       ],
717     },
718     {
719       'target_name': 'pdfium_unittests',
720       'type': 'executable',
721       'dependencies': [
722         '<(DEPTH)/testing/gtest.gyp:gtest_main',
723         '<(DEPTH)/testing/gtest.gyp:gtest',
724         'pdfium',
725       ],
726       'include_dirs': [
727         '<(DEPTH)'
728       ],
729       'sources': [
730         'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp',
731         'core/src/fxcrt/fx_basic_bstring_unittest.cpp',
732         'core/src/fxcrt/fx_basic_memmgr_unittest.cpp',
733         'core/src/fxcrt/fx_basic_wstring_unittest.cpp',
734         'core/src/fxcrt/fx_bidi_unittest.cpp',
735         'core/src/fxcrt/fx_system_unittest.cpp',
736         'testing/fx_string_testhelpers.h',
737         'testing/fx_string_testhelpers.cpp',
738         'third_party/base/nonstd_unique_ptr_unittest.cpp',
739       ],
740     },
741     {
742       'target_name': 'pdfium_embeddertests',
743       'type': 'executable',
744       'dependencies': [
745         '<(DEPTH)/testing/gmock.gyp:gmock',
746         '<(DEPTH)/testing/gtest.gyp:gtest',
747         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
748         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
749         'pdfium',
750       ],
751       'include_dirs': [
752         '<(DEPTH)',
753         '<(DEPTH)/v8',
754         '<(DEPTH)/v8/include',
755       ],
756       'sources': [
757         'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp',
758         'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp',
759         'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp',
760         'fpdfsdk/src/fpdfdoc_embeddertest.cpp',
761         'fpdfsdk/src/fpdfformfill_embeddertest.cpp',
762         'fpdfsdk/src/fpdftext_embeddertest.cpp',
763         'fpdfsdk/src/fpdfview_c_api_test.c',
764         'fpdfsdk/src/fpdfview_c_api_test.h',
765         'fpdfsdk/src/fpdfview_embeddertest.cpp',
766         'fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp',
767         'testing/embedder_test.cpp',
768         'testing/embedder_test.h',
769         'testing/embedder_test_mock_delegate.h',
770         'testing/embedder_test_timer_handling_delegate.h',
771         'testing/fx_string_testhelpers.cpp',
772         'testing/fx_string_testhelpers.h',
773       ],
774     },
775   ],
776 }