Fix clang warnings so we can treat warnings as errors.
[pdfium.git] / pdfium.gyp
1 {
2   'variables': {
3     'pdf_use_skia%': 0,
4   },
5   'target_defaults': {
6     'defines' : [
7       'FOXIT_CHROME_BUILD',
8       '_FXFT_VERSION_=2501',
9       '_FPDFSDK_LIB',
10       '_NO_GDIPLUS_',  # workaround text rendering issues on Windows
11     ],
12     'conditions': [
13       ['pdf_use_skia==1', {
14         'defines': ['_SKIA_SUPPORT_'],
15       }],
16       ['OS=="linux"', {
17         'cflags!': [
18           '-fno-exceptions',
19         ],
20         'conditions': [
21           ['target_arch=="x64"', {
22             'defines' : [
23               '_FX_CPU_=_FX_X64_',
24             ],
25             'cflags': [
26               '-fPIC',
27             ],
28           }],
29           ['target_arch=="ia32"', {
30             'defines' : [
31               '_FX_CPU_=_FX_X86_',
32             ],
33           }],
34         ],
35       }],
36       ['OS=="mac"', {
37         'xcode_settings': {
38           'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
39         },
40       }],
41       ['clang==1', {
42         'cflags!': [
43           '-Wheader-hygiene',
44         ],
45       }],
46     ],
47     'msvs_disabled_warnings': [
48       4005, 4018, 4146, 4333, 4345
49     ],
50   },
51   'targets': [
52     {
53       'target_name': 'fpdfsdk',
54       'type': 'static_library',
55       'dependencies': [
56         'fdrm',
57         'fpdfdoc',
58         'fpdfapi',
59         'fpdftext',
60         'formfiller',
61         'fxcodec',
62         'fxcrt',
63         'fxedit',
64         'fxge',
65         'javascript',
66         'jsapi',
67         'pdfwindow',
68       ],
69       'ldflags': [ '-L<(PRODUCT_DIR)',],
70       'sources': [
71         'fpdfsdk/include/fpdfdoc.h',
72         'fpdfsdk/include/fpdfedit.h',
73         'fpdfsdk/include/fpdfformfill.h',
74         'fpdfsdk/include/fpdfoom.h',
75         'fpdfsdk/include/fpdftext.h',
76         'fpdfsdk/include/fpdfview.h',
77         'fpdfsdk/include/fpdf_dataavail.h',
78         'fpdfsdk/include/fpdf_flatten.h',
79         'fpdfsdk/include/fpdf_progressive.h',
80         'fpdfsdk/include/fpdf_searchex.h',
81         'fpdfsdk/include/fpdf_sysfontinfo.h',
82         'fpdfsdk/include/fpdf_ext.h',
83         'fpdfsdk/include/fpdf_sysfontinfo.h',
84         'fpdfsdk/include/fsdk_actionhandler.h',
85         'fpdfsdk/include/fsdk_annothandler.h',
86         'fpdfsdk/include/fsdk_baseannot.h',
87         'fpdfsdk/include/fsdk_baseform.h',
88         'fpdfsdk/src/fpdfdoc.cpp',
89         'fpdfsdk/src/fpdfeditimg.cpp',
90         'fpdfsdk/src/fpdfeditpage.cpp',
91         'fpdfsdk/src/fpdfformfill.cpp',
92         'fpdfsdk/src/fpdfoom.cpp',
93         'fpdfsdk/src/fpdfppo.cpp',
94         'fpdfsdk/src/fpdfsave.cpp',
95         'fpdfsdk/src/fpdftext.cpp',
96         'fpdfsdk/src/fpdfview.cpp',
97         'fpdfsdk/src/fpdf_dataavail.cpp',
98         'fpdfsdk/src/fpdf_ext.cpp',
99         'fpdfsdk/src/fpdf_flatten.cpp',
100         'fpdfsdk/src/fpdf_progressive.cpp',
101         'fpdfsdk/src/fpdf_searchex.cpp',
102         'fpdfsdk/src/fpdf_sysfontinfo.cpp',
103         'fpdfsdk/src/fsdk_actionhandler.cpp',
104         'fpdfsdk/src/fsdk_annothandler.cpp',
105         'fpdfsdk/src/fsdk_baseannot.cpp',
106         'fpdfsdk/src/fsdk_baseform.cpp',
107         'fpdfsdk/src/fsdk_mgr.cpp',
108         'fpdfsdk/src/fsdk_rendercontext.cpp',
109         'fpdfsdk/src/fpdfsdkdll.rc',
110         'fpdfsdk/src/resource.h',
111         'fpdfsdk/include/fpdf_transformpage.h',
112         'fpdfsdk/src/fpdf_transformpage.cpp',
113       ],
114       'conditions': [
115         ['OS!="win"', {
116           'sources!': [
117             'fpdfsdk/src/fpdfsdkdll.rc',
118           ],
119         }],
120       ],
121     },
122     {
123       'target_name': 'fdrm',
124       'type': 'static_library',
125       'ldflags': [ '-L<(PRODUCT_DIR)',],
126       'sources': [
127         'core/include/fdrm/fx_crypt.h',
128         'core/src/fdrm/crypto/fx_crypt.cpp',
129         'core/src/fdrm/crypto/fx_crypt_aes.cpp',
130         'core/src/fdrm/crypto/fx_crypt_sha.cpp',
131       ],
132     },
133     {
134       'target_name': 'fpdfdoc',
135       'type': 'static_library',
136       'ldflags': [ '-L<(PRODUCT_DIR)',],
137       'sources': [
138         'core/include/fpdfdoc/fpdf_ap.h',
139         'core/include/fpdfdoc/fpdf_doc.h',
140         'core/include/fpdfdoc/fpdf_tagged.h',
141         'core/include/fpdfdoc/fpdf_vt.h',
142         'core/src/fpdfdoc/doc_action.cpp',
143         'core/src/fpdfdoc/doc_annot.cpp',
144         'core/src/fpdfdoc/doc_ap.cpp',
145         'core/src/fpdfdoc/doc_basic.cpp',
146         'core/src/fpdfdoc/doc_bookmark.cpp',
147         'core/src/fpdfdoc/doc_form.cpp',
148         'core/src/fpdfdoc/doc_formcontrol.cpp',
149         'core/src/fpdfdoc/doc_formfield.cpp',
150         'core/src/fpdfdoc/doc_link.cpp',
151         'core/src/fpdfdoc/doc_metadata.cpp',
152         'core/src/fpdfdoc/doc_ocg.cpp',
153         'core/src/fpdfdoc/doc_tagged.cpp',
154         'core/src/fpdfdoc/doc_utils.cpp',
155         'core/src/fpdfdoc/doc_viewerPreferences.cpp',
156         'core/src/fpdfdoc/doc_vt.cpp',
157         'core/src/fpdfdoc/doc_vtmodule.cpp',
158         'core/src/fpdfdoc/pdf_vt.h',
159         'core/src/fpdfdoc/tagged_int.h',
160       ],
161     },
162     {
163       'target_name': 'fpdfapi',
164       'type': 'static_library',
165       'ldflags': [ '-L<(PRODUCT_DIR)',],
166       'sources': [
167         'core/include/fpdfapi/fpdfapi.h',
168         'core/include/fpdfapi/fpdf_module.h',
169         'core/include/fpdfapi/fpdf_objects.h',
170         'core/include/fpdfapi/fpdf_page.h',
171         'core/include/fpdfapi/fpdf_pageobj.h',
172         'core/include/fpdfapi/fpdf_parser.h',
173         'core/include/fpdfapi/fpdf_render.h',
174         'core/include/fpdfapi/fpdf_resource.h',
175         'core/include/fpdfapi/fpdf_serial.h',
176         'core/src/fpdfapi/fpdf_basic_module.cpp',
177         'core/src/fpdfapi/fpdf_cmaps/cmap_int.h',
178         'core/src/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp',
179         'core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp',
180         'core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp',
181         'core/src/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.cpp',
182         'core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp',
183         'core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp',
184         'core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp',
185         'core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp',
186         'core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp',
187         'core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp',
188         'core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp',
189         'core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp',
190         'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp',
191         'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp',
192         'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp',
193         'core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp',
194         'core/src/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp',
195         'core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.cpp',
196         'core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp',
197         'core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp',
198         'core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp',
199         'core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp',
200         'core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp',
201         'core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp',
202         'core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp',
203         'core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp',
204         'core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp',
205         'core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp',
206         'core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp',
207         'core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp',
208         'core/src/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp',
209         'core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp',
210         'core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp',
211         'core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp',
212         'core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp',
213         'core/src/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp',
214         'core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp',
215         'core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp',
216         'core/src/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp',
217         'core/src/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.cpp',
218         'core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp',
219         'core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp',
220         'core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp',
221         'core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp',
222         'core/src/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp',
223         'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp',
224         'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp',
225         'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp',
226         'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp',
227         'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UTF16-H_5.cpp',
228         'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UTF16-V_5.cpp',
229         'core/src/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp',
230         'core/src/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp',
231         'core/src/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp',
232         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp',
233         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp',
234         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp',
235         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp',
236         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp',
237         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp',
238         'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp',
239         'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp',
240         'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp',
241         'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp',
242         'core/src/fpdfapi/fpdf_edit/editint.h',
243         'core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp',
244         'core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp',
245         'core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp',
246         'core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp',
247         'core/src/fpdfapi/fpdf_font/common.h',
248         'core/src/fpdfapi/fpdf_font/font_int.h',
249         'core/src/fpdfapi/fpdf_font/fpdf_font.cpp',
250         'core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp',
251         'core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp',
252         'core/src/fpdfapi/fpdf_font/fpdf_font_utility.cpp',
253         'core/src/fpdfapi/fpdf_font/ttgsubtable.cpp',
254         'core/src/fpdfapi/fpdf_font/ttgsubtable.h',
255         'core/src/fpdfapi/fpdf_page/fpdf_page.cpp',
256         'core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp',
257         'core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp',
258         'core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp',
259         'core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp',
260         'core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp',
261         'core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp',
262         'core/src/fpdfapi/fpdf_page/fpdf_page_parser_new.cpp',
263         'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp',
264         'core/src/fpdfapi/fpdf_page/fpdf_page_path.cpp',
265         'core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp',
266         'core/src/fpdfapi/fpdf_page/pageint.h',
267         'core/src/fpdfapi/fpdf_parser/filters_int.h',
268         'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp',
269         'core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp',
270         'core/src/fpdfapi/fpdf_parser/fpdf_parser_encrypt.cpp',
271         'core/src/fpdfapi/fpdf_parser/fpdf_parser_fdf.cpp',
272         'core/src/fpdfapi/fpdf_parser/fpdf_parser_filters.cpp',
273         'core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp',
274         'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp',
275         'core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp',
276         'core/src/fpdfapi/fpdf_render/fpdf_render.cpp',
277         'core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp',
278         'core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp',
279         'core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp',
280         'core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp',
281         'core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp',
282         'core/src/fpdfapi/fpdf_render/render_int.h',
283       ],
284     },
285     {
286       'target_name': 'fpdftext',
287       'type': 'static_library',
288       'ldflags': [ '-L<(PRODUCT_DIR)',],
289       'sources': [
290         'core/include/fpdftext/fpdf_text.h',
291         'core/src/fpdftext/fpdf_text.cpp',
292         'core/src/fpdftext/fpdf_text_int.cpp',
293         'core/src/fpdftext/fpdf_text_search.cpp',
294         'core/src/fpdftext/text_int.h',
295         'core/src/fpdftext/txtproc.h',
296         'core/src/fpdftext/unicodenormalization.cpp',
297         'core/src/fpdftext/unicodenormalizationdata.cpp',
298       ],
299     },
300     {
301       'target_name': 'fxcodec',
302       'type': 'static_library',
303       'include_dirs': [
304       ],
305       'ldflags': [ '-L<(PRODUCT_DIR)',],
306       'sources': [
307         'core/include/fxcodec/fx_codec.h',
308         'core/include/fxcodec/fx_codec_def.h',
309         'core/include/fxcodec/fx_codec_provider.h',
310         'core/src/fxcodec/codec/codec_int.h',
311         'core/src/fxcodec/codec/fx_codec.cpp',
312         'core/src/fxcodec/codec/fx_codec_fax.cpp',
313         'core/src/fxcodec/codec/fx_codec_flate.cpp',
314         'core/src/fxcodec/codec/fx_codec_icc.cpp',
315         'core/src/fxcodec/codec/fx_codec_jbig.cpp',
316         'core/src/fxcodec/codec/fx_codec_jbig_enc.cpp',
317         'core/src/fxcodec/codec/fx_codec_jpeg.cpp',
318         'core/src/fxcodec/codec/fx_codec_jpx_opj.cpp',
319         'core/src/fxcodec/fx_libopenjpeg/include/fx_openjpeg.h',
320         'core/src/fxcodec/fx_libopenjpeg/src/fx_bio.c',
321         'core/src/fxcodec/fx_libopenjpeg/src/fx_cio.c',
322         'core/src/fxcodec/fx_libopenjpeg/src/fx_dwt.c',
323         'core/src/fxcodec/fx_libopenjpeg/src/fx_event.c',
324         'core/src/fxcodec/fx_libopenjpeg/src/fx_function_list.c',
325         'core/src/fxcodec/fx_libopenjpeg/src/fx_image.c',
326         'core/src/fxcodec/fx_libopenjpeg/src/fx_invert.c',
327         'core/src/fxcodec/fx_libopenjpeg/src/fx_j2k.c',
328         'core/src/fxcodec/fx_libopenjpeg/src/fx_j2k_lib.c',
329         'core/src/fxcodec/fx_libopenjpeg/src/fx_jpt.c',
330         'core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c',
331         'core/src/fxcodec/fx_libopenjpeg/src/fx_mqc.c',
332         'core/src/fxcodec/fx_libopenjpeg/src/fx_openjpeg.c',
333         'core/src/fxcodec/fx_libopenjpeg/src/fx_openjpeg_jp2.c',
334         'core/src/fxcodec/fx_libopenjpeg/src/fx_opj_clock.c',
335         'core/src/fxcodec/fx_libopenjpeg/src/fx_pi.c',
336         'core/src/fxcodec/fx_libopenjpeg/src/fx_raw.c',
337         'core/src/fxcodec/fx_libopenjpeg/src/fx_t1.c',
338         'core/src/fxcodec/fx_libopenjpeg/src/fx_t1_generate_luts.c',
339         'core/src/fxcodec/fx_libopenjpeg/src/fx_t2.c',
340         'core/src/fxcodec/fx_libopenjpeg/src/fx_tcd.c',
341         'core/src/fxcodec/fx_libopenjpeg/src/fx_tgt.c',
342         'core/src/fxcodec/fx_zlib/include/fx_zlib.h',
343         'core/src/fxcodec/fx_zlib/src/fx_zlib_adler32.c',
344         'core/src/fxcodec/fx_zlib/src/fx_zlib_compress.c',
345         'core/src/fxcodec/fx_zlib/src/fx_zlib_crc32.c',
346         'core/src/fxcodec/fx_zlib/src/fx_zlib_deflate.c',
347         'core/src/fxcodec/fx_zlib/src/fx_zlib_gzclose.c',
348         'core/src/fxcodec/fx_zlib/src/fx_zlib_gzlib.c',
349         'core/src/fxcodec/fx_zlib/src/fx_zlib_gzread.c',
350         'core/src/fxcodec/fx_zlib/src/fx_zlib_gzwrite.c',
351         'core/src/fxcodec/fx_zlib/src/fx_zlib_infback.c',
352         'core/src/fxcodec/fx_zlib/src/fx_zlib_inffast.c',
353         'core/src/fxcodec/fx_zlib/src/fx_zlib_inflate.c',
354         'core/src/fxcodec/fx_zlib/src/fx_zlib_inftrees.c',
355         'core/src/fxcodec/fx_zlib/src/fx_zlib_trees.c',
356         'core/src/fxcodec/fx_zlib/src/fx_zlib_uncompr.c',
357         'core/src/fxcodec/fx_zlib/src/fx_zlib_zutil.c',
358         'core/src/fxcodec/jbig2/JBig2_ArithDecoder.h',
359         'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp',
360         'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h',
361         'core/src/fxcodec/jbig2/JBig2_ArithQe.h',
362         'core/src/fxcodec/jbig2/JBig2_BitStream.h',
363         'core/src/fxcodec/jbig2/JBig2_Context.cpp',
364         'core/src/fxcodec/jbig2/JBig2_Context.h',
365         'core/src/fxcodec/jbig2/JBig2_Define.h',
366         'core/src/fxcodec/jbig2/JBig2_GeneralDecoder.cpp',
367         'core/src/fxcodec/jbig2/JBig2_GeneralDecoder.h',
368         'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp',
369         'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.h',
370         'core/src/fxcodec/jbig2/JBig2_HuffmanTable.cpp',
371         'core/src/fxcodec/jbig2/JBig2_HuffmanTable.h',
372         'core/src/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h',
373         'core/src/fxcodec/jbig2/JBig2_Image.cpp',
374         'core/src/fxcodec/jbig2/JBig2_Image.h',
375         'core/src/fxcodec/jbig2/JBig2_List.h',
376         'core/src/fxcodec/jbig2/JBig2_Module.h',
377         'core/src/fxcodec/jbig2/JBig2_Object.cpp',
378         'core/src/fxcodec/jbig2/JBig2_Object.h',
379         'core/src/fxcodec/jbig2/JBig2_Page.h',
380         'core/src/fxcodec/jbig2/JBig2_PatternDict.cpp',
381         'core/src/fxcodec/jbig2/JBig2_PatternDict.h',
382         'core/src/fxcodec/jbig2/JBig2_Segment.cpp',
383         'core/src/fxcodec/jbig2/JBig2_Segment.h',
384         'core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp',
385         'core/src/fxcodec/jbig2/JBig2_SymbolDict.h',
386         'core/src/fxcodec/lcms2/src/fx_cmscam02.c',
387         'core/src/fxcodec/lcms2/src/fx_cmscgats.c',
388         'core/src/fxcodec/lcms2/src/fx_cmscnvrt.c',
389         'core/src/fxcodec/lcms2/src/fx_cmserr.c',
390         'core/src/fxcodec/lcms2/src/fx_cmsgamma.c',
391         'core/src/fxcodec/lcms2/src/fx_cmsgmt.c',
392         'core/src/fxcodec/lcms2/src/fx_cmshalf.c',
393         'core/src/fxcodec/lcms2/src/fx_cmsintrp.c',
394         'core/src/fxcodec/lcms2/src/fx_cmsio0.c',
395         'core/src/fxcodec/lcms2/src/fx_cmsio1.c',
396         'core/src/fxcodec/lcms2/src/fx_cmslut.c',
397         'core/src/fxcodec/lcms2/src/fx_cmsmd5.c',
398         'core/src/fxcodec/lcms2/src/fx_cmsmtrx.c',
399         'core/src/fxcodec/lcms2/src/fx_cmsnamed.c',
400         'core/src/fxcodec/lcms2/src/fx_cmsopt.c',
401         'core/src/fxcodec/lcms2/src/fx_cmspack.c',
402         'core/src/fxcodec/lcms2/src/fx_cmspcs.c',
403         'core/src/fxcodec/lcms2/src/fx_cmsplugin.c',
404         'core/src/fxcodec/lcms2/src/fx_cmsps2.c',
405         'core/src/fxcodec/lcms2/src/fx_cmssamp.c',
406         'core/src/fxcodec/lcms2/src/fx_cmssm.c',
407         'core/src/fxcodec/lcms2/src/fx_cmstypes.c',
408         'core/src/fxcodec/lcms2/src/fx_cmsvirt.c',
409         'core/src/fxcodec/lcms2/src/fx_cmswtpnt.c',
410         'core/src/fxcodec/lcms2/src/fx_cmsxform.c',
411         'core/src/fxcodec/libjpeg/cderror.h',
412         'core/src/fxcodec/libjpeg/cdjpeg.h',
413         'core/src/fxcodec/libjpeg/fpdfapi_jcapimin.c',
414         'core/src/fxcodec/libjpeg/fpdfapi_jcapistd.c',
415         'core/src/fxcodec/libjpeg/fpdfapi_jccoefct.c',
416         'core/src/fxcodec/libjpeg/fpdfapi_jccolor.c',
417         'core/src/fxcodec/libjpeg/fpdfapi_jcdctmgr.c',
418         'core/src/fxcodec/libjpeg/fpdfapi_jchuff.c',
419         'core/src/fxcodec/libjpeg/fpdfapi_jcinit.c',
420         'core/src/fxcodec/libjpeg/fpdfapi_jcmainct.c',
421         'core/src/fxcodec/libjpeg/fpdfapi_jcmarker.c',
422         'core/src/fxcodec/libjpeg/fpdfapi_jcmaster.c',
423         'core/src/fxcodec/libjpeg/fpdfapi_jcomapi.c',
424         'core/src/fxcodec/libjpeg/fpdfapi_jcparam.c',
425         'core/src/fxcodec/libjpeg/fpdfapi_jcphuff.c',
426         'core/src/fxcodec/libjpeg/fpdfapi_jcprepct.c',
427         'core/src/fxcodec/libjpeg/fpdfapi_jcsample.c',
428         'core/src/fxcodec/libjpeg/fpdfapi_jctrans.c',
429         'core/src/fxcodec/libjpeg/fpdfapi_jdapimin.c',
430         'core/src/fxcodec/libjpeg/fpdfapi_jdapistd.c',
431         'core/src/fxcodec/libjpeg/fpdfapi_jdcoefct.c',
432         'core/src/fxcodec/libjpeg/fpdfapi_jdcolor.c',
433         'core/src/fxcodec/libjpeg/fpdfapi_jddctmgr.c',
434         'core/src/fxcodec/libjpeg/fpdfapi_jdhuff.c',
435         'core/src/fxcodec/libjpeg/fpdfapi_jdinput.c',
436         'core/src/fxcodec/libjpeg/fpdfapi_jdmainct.c',
437         'core/src/fxcodec/libjpeg/fpdfapi_jdmarker.c',
438         'core/src/fxcodec/libjpeg/fpdfapi_jdmaster.c',
439         'core/src/fxcodec/libjpeg/fpdfapi_jdmerge.c',
440         'core/src/fxcodec/libjpeg/fpdfapi_jdphuff.c',
441         'core/src/fxcodec/libjpeg/fpdfapi_jdpostct.c',
442         'core/src/fxcodec/libjpeg/fpdfapi_jdsample.c',
443         'core/src/fxcodec/libjpeg/fpdfapi_jdtrans.c',
444         'core/src/fxcodec/libjpeg/fpdfapi_jerror.c',
445         'core/src/fxcodec/libjpeg/fpdfapi_jfdctfst.c',
446         'core/src/fxcodec/libjpeg/fpdfapi_jfdctint.c',
447         'core/src/fxcodec/libjpeg/fpdfapi_jidctfst.c',
448         'core/src/fxcodec/libjpeg/fpdfapi_jidctint.c',
449         'core/src/fxcodec/libjpeg/fpdfapi_jidctred.c',
450         'core/src/fxcodec/libjpeg/fpdfapi_jmemmgr.c',
451         'core/src/fxcodec/libjpeg/fpdfapi_jmemnobs.c',
452         'core/src/fxcodec/libjpeg/fpdfapi_jutils.c',
453         'core/src/fxcodec/libjpeg/jchuff.h',
454         'core/src/fxcodec/libjpeg/jconfig.h',
455         'core/src/fxcodec/libjpeg/jdct.h',
456         'core/src/fxcodec/libjpeg/jdhuff.h',
457         'core/src/fxcodec/libjpeg/jerror.h',
458         'core/src/fxcodec/libjpeg/jinclude.h',
459         'core/src/fxcodec/libjpeg/jmemsys.h',
460         'core/src/fxcodec/libjpeg/jmorecfg.h',
461         'core/src/fxcodec/libjpeg/jpegint.h',
462         'core/src/fxcodec/libjpeg/jpeglib.h',
463         'core/src/fxcodec/libjpeg/jversion.h',
464         'core/src/fxcodec/libjpeg/makefile',
465         'core/src/fxcodec/libjpeg/transupp.h',
466       ],
467     },
468     {
469       'target_name': 'fxcrt',
470       'type': 'static_library',
471       'ldflags': [ '-L<(PRODUCT_DIR)',],
472       'sources': [
473         'core/include/fxcrt/fx_arb.h',
474         'core/include/fxcrt/fx_basic.h',
475         'core/include/fxcrt/fx_coordinates.h',
476         'core/include/fxcrt/fx_ext.h',
477         'core/include/fxcrt/fx_memory.h',
478         'core/include/fxcrt/fx_stream.h',
479         'core/include/fxcrt/fx_string.h',
480         'core/include/fxcrt/fx_system.h',
481         'core/include/fxcrt/fx_ucd.h',
482         'core/include/fxcrt/fx_xml.h',
483         'core/src/fxcrt/extension.h',
484         'core/src/fxcrt/fxcrt_platforms.cpp',
485         'core/src/fxcrt/fxcrt_platforms.h',
486         'core/src/fxcrt/fxcrt_posix.cpp',
487         'core/src/fxcrt/fxcrt_posix.h',
488         'core/src/fxcrt/fxcrt_windows.cpp',
489         'core/src/fxcrt/fxcrt_windows.h',
490         'core/src/fxcrt/fx_arabic.cpp',
491         'core/src/fxcrt/fx_arabic.h',
492         'core/src/fxcrt/fx_basic_array.cpp',
493         'core/src/fxcrt/fx_basic_bstring.cpp',
494         'core/src/fxcrt/fx_basic_buffer.cpp',
495         'core/src/fxcrt/fx_basic_coords.cpp',
496         'core/src/fxcrt/fx_basic_gcc.cpp',
497         'core/src/fxcrt/fx_basic_list.cpp',
498         'core/src/fxcrt/fx_basic_maps.cpp',
499         'core/src/fxcrt/fx_basic_memmgr.cpp',
500         'core/src/fxcrt/fx_basic_memmgr_mini.cpp',
501         'core/src/fxcrt/fx_basic_plex.cpp',
502         'core/src/fxcrt/fx_basic_utf.cpp',
503         'core/src/fxcrt/fx_basic_util.cpp',
504         'core/src/fxcrt/fx_basic_wstring.cpp',
505         'core/src/fxcrt/fx_extension.cpp',
506         'core/src/fxcrt/fx_ucddata.cpp',
507         'core/src/fxcrt/fx_unicode.cpp',
508         'core/src/fxcrt/fx_xml_composer.cpp',
509         'core/src/fxcrt/fx_xml_parser.cpp',
510         'core/src/fxcrt/mem_int.h',
511         'core/src/fxcrt/plex.h',
512         'core/src/fxcrt/xml_int.h',
513       ],
514     },
515     {
516       'target_name': 'fxge',
517       'type': 'static_library',
518       'ldflags': [ '-L<(PRODUCT_DIR)',],
519       'sources': [
520         'core/include/fxge/fpf.h',
521         'core/include/fxge/fx_dib.h',
522         'core/include/fxge/fx_font.h',
523         'core/include/fxge/fx_freetype.h',
524         'core/include/fxge/fx_ge.h',
525         'core/include/fxge/fx_ge_apple.h',
526         'core/include/fxge/fx_ge_win32.h',
527         'core/src/fxge/agg/include/fxfx_agg_basics.h',
528         'core/src/fxge/agg/include/fxfx_agg_clip_liang_barsky.h',
529         'core/src/fxge/agg/include/fxfx_agg_conv_dash.h',
530         'core/src/fxge/agg/include/fxfx_agg_conv_stroke.h',
531         'core/src/fxge/agg/include/fxfx_agg_curves.h',
532         'core/src/fxge/agg/include/fxfx_agg_path_storage.h',
533         'core/src/fxge/agg/include/fxfx_agg_rasterizer_scanline_aa.h',
534         'core/src/fxge/agg/include/fxfx_agg_renderer_scanline.h',
535         'core/src/fxge/agg/include/fxfx_agg_rendering_buffer.h',
536         'core/src/fxge/agg/include/fxfx_agg_scanline_u.h',
537         'core/src/fxge/agg/include/fx_agg_driver.h',
538         'core/src/fxge/agg/src/fxfx_agg_curves.cpp',
539         'core/src/fxge/agg/src/fxfx_agg_driver.cpp',
540         'core/src/fxge/agg/src/fxfx_agg_path_storage.cpp',
541         'core/src/fxge/agg/src/fxfx_agg_rasterizer_scanline_aa.cpp',
542         'core/src/fxge/agg/src/fxfx_agg_vcgen_dash.cpp',
543         'core/src/fxge/agg/src/fxfx_agg_vcgen_stroke.cpp',
544         'core/src/fxge/android/fpf_skiafont.cpp',
545         'core/src/fxge/android/fpf_skiafont.h',
546         'core/src/fxge/android/fpf_skiafontmgr.cpp',
547         'core/src/fxge/android/fpf_skiafontmgr.h',
548         'core/src/fxge/android/fpf_skiamodule.cpp',
549         'core/src/fxge/android/fpf_skiamodule.h',
550         'core/src/fxge/android/fx_android_font.cpp',
551         'core/src/fxge/android/fx_android_font.h',
552         'core/src/fxge/android/fx_android_imp.cpp',
553         'core/src/fxge/android/fx_fpf.h',
554         'core/src/fxge/apple/apple_int.h',
555         'core/src/fxge/apple/fx_apple_platform.cpp',
556         'core/src/fxge/apple/fx_mac_imp.cpp',
557         'core/src/fxge/apple/fx_quartz_device.cpp',
558         'core/src/fxge/dib/dib_int.h',
559         'core/src/fxge/dib/fx_dib_composite.cpp',
560         'core/src/fxge/dib/fx_dib_convert.cpp',
561         'core/src/fxge/dib/fx_dib_engine.cpp',
562         'core/src/fxge/dib/fx_dib_main.cpp',
563         'core/src/fxge/dib/fx_dib_transform.cpp',
564         'core/src/fxge/fontdata/chromefontdata/FoxitDingbats.c',
565         'core/src/fxge/fontdata/chromefontdata/FoxitFixed.c',
566         'core/src/fxge/fontdata/chromefontdata/FoxitFixedBold.c',
567         'core/src/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.c',
568         'core/src/fxge/fontdata/chromefontdata/FoxitFixedItalic.c',
569         'core/src/fxge/fontdata/chromefontdata/FoxitSans.c',
570         'core/src/fxge/fontdata/chromefontdata/FoxitSansBold.c',
571         'core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.c',
572         'core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.c',
573         'core/src/fxge/fontdata/chromefontdata/FoxitSansMM.c',
574         'core/src/fxge/fontdata/chromefontdata/FoxitSerif.c',
575         'core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.c',
576         'core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.c',
577         'core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.c',
578         'core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.c',
579         'core/src/fxge/fontdata/chromefontdata/FoxitSymbol.c',
580         'core/src/fxge/fx_freetype/include/fxft_cffobjs.h',
581         'core/src/fxge/fx_freetype/include/fxft_cfftypes.h',
582         'core/src/fxge/fx_freetype/include/fxft_freetype.h',
583         'core/src/fxge/fx_freetype/include/fxft_ft2build.h',
584         'core/src/fxge/fx_freetype/include/fxft_ftmm.h',
585         'core/src/fxge/fx_freetype/include/fxft_ftobjs.h',
586         'core/src/fxge/fx_freetype/include/fxft_ftotval.h',
587         'core/src/fxge/fx_freetype/include/fxft_ftoutln.h',
588         'core/src/fxge/fx_freetype/include/fxft_ftstream.h',
589         'core/src/fxge/fx_freetype/include/fxft_tttables.h',
590         'core/src/fxge/fx_freetype/include/fxft_tttypes.h',
591         'core/src/fxge/fx_freetype/src/fxft_cff.c',
592         'core/src/fxge/fx_freetype/src/fxft_ftbase.c',
593         'core/src/fxge/fx_freetype/src/fxft_ftbitmap.c',
594         'core/src/fxge/fx_freetype/src/fxft_ftglyph.c',
595         'core/src/fxge/fx_freetype/src/fxft_ftinit.c',
596         'core/src/fxge/fx_freetype/src/fxft_ftlcdfil.c',
597         'core/src/fxge/fx_freetype/src/fxft_ftmm.c',
598         'core/src/fxge/fx_freetype/src/fxft_ftsystem.c',
599         'core/src/fxge/fx_freetype/src/fxft_psaux.c',
600         'core/src/fxge/fx_freetype/src/fxft_pshinter.c',
601         'core/src/fxge/fx_freetype/src/fxft_psmodule.c',
602         'core/src/fxge/fx_freetype/src/fxft_raster.c',
603         'core/src/fxge/fx_freetype/src/fxft_sfnt.c',
604         'core/src/fxge/fx_freetype/src/fxft_smooth.c',
605         'core/src/fxge/fx_freetype/src/fxft_truetype.c',
606         'core/src/fxge/fx_freetype/src/fxft_type1.c',
607         'core/src/fxge/fx_freetype/src/fxft_type1cid.c',
608         'core/src/fxge/ge/fx_ge.cpp',
609         'core/src/fxge/ge/fx_ge_device.cpp',
610         'core/src/fxge/ge/fx_ge_font.cpp',
611         'core/src/fxge/ge/fx_ge_fontmap.cpp',
612         'core/src/fxge/ge/fx_ge_linux.cpp',
613         'core/src/fxge/ge/fx_ge_path.cpp',
614         'core/src/fxge/ge/fx_ge_ps.cpp',
615         'core/src/fxge/ge/fx_ge_text.cpp',
616         'core/src/fxge/ge/text_int.h',
617       ],
618       'conditions': [
619         ['pdf_use_skia==1', {
620           'sources': [
621             'core/src/fxge/skia/fx_skia_blitter_new.cpp',
622             'core/src/fxge/skia/fx_skia_device.cpp',
623           ],
624           'dependencies': [
625             '<(DEPTH)/skia/skia.gyp:skia',
626           ],
627           'include_dirs': [
628             '<(DEPTH)/third_party/skia/include/config',
629             '<(DEPTH)/third_party/skia/include/core',
630             '<(DEPTH)/third_party/skia/include/effects',
631             '<(DEPTH)/third_party/skia/include/images',
632             '<(DEPTH)/third_party/skia/include/lazy',
633             '<(DEPTH)/third_party/skia/include/pathops',
634             '<(DEPTH)/third_party/skia/include/utils',
635             '<(DEPTH)/third_party/skia/src/core',
636           ],
637         }],
638         ['OS=="win"', {
639           'defines!': [
640             'NOMINMAX',
641             'WIN32_LEAN_AND_MEAN'
642           ],
643           'sources': [
644             'core/src/fxge/win32/dwrite_int.h',
645             'core/src/fxge/win32/fx_win32_device.cpp',
646             'core/src/fxge/win32/fx_win32_dib.cpp',
647             'core/src/fxge/win32/fx_win32_dwrite.cpp',
648             'core/src/fxge/win32/fx_win32_gdipext.cpp',
649             'core/src/fxge/win32/fx_win32_print.cpp',
650             'core/src/fxge/win32/win32_int.h',
651           ],
652         }],
653       ],
654     },
655     {
656       'target_name': 'fxedit',
657       'type': 'static_library',
658       'ldflags': [ '-L<(PRODUCT_DIR)',],
659       'sources': [
660         'fpdfsdk/include/fxedit/fx_edit.h',
661         'fpdfsdk/include/fxedit/fxet_edit.h',
662         'fpdfsdk/include/fxedit/fxet_list.h',
663         'fpdfsdk/include/fxedit/fxet_stub.h',
664         'fpdfsdk/src/fxedit/fxet_ap.cpp',
665         'fpdfsdk/src/fxedit/fxet_edit.cpp',
666         'fpdfsdk/src/fxedit/fxet_list.cpp',
667         'fpdfsdk/src/fxedit/fxet_module.cpp',
668         'fpdfsdk/src/fxedit/fxet_pageobjs.cpp',
669       ],
670     },
671     {
672       'target_name': 'pdfwindow',
673       'type': 'static_library',
674       'ldflags': [ '-L<(PRODUCT_DIR)',],
675       'sources': [
676         'fpdfsdk/include/pdfwindow/IPDFWindow.h',
677         'fpdfsdk/include/pdfwindow/PDFWindow.h',
678         'fpdfsdk/include/pdfwindow/PWL_Button.h',
679         'fpdfsdk/include/pdfwindow/PWL_Caret.h',
680         'fpdfsdk/include/pdfwindow/PWL_ComboBox.h',
681         'fpdfsdk/include/pdfwindow/PWL_Edit.h',
682         'fpdfsdk/include/pdfwindow/PWL_EditCtrl.h',
683         'fpdfsdk/include/pdfwindow/PWL_FontMap.h',
684         'fpdfsdk/include/pdfwindow/PWL_Icon.h',
685         'fpdfsdk/include/pdfwindow/PWL_IconList.h',
686         'fpdfsdk/include/pdfwindow/PWL_Label.h',
687         'fpdfsdk/include/pdfwindow/PWL_ListBox.h',
688         'fpdfsdk/include/pdfwindow/PWL_ListCtrl.h',
689         'fpdfsdk/include/pdfwindow/PWL_Note.h',
690         'fpdfsdk/include/pdfwindow/PWL_ScrollBar.h',
691         'fpdfsdk/include/pdfwindow/PWL_Signature.h',
692         'fpdfsdk/include/pdfwindow/PWL_SpecialButton.h',
693         'fpdfsdk/include/pdfwindow/PWL_Utils.h',
694         'fpdfsdk/include/pdfwindow/PWL_Wnd.h',
695         'fpdfsdk/src/pdfwindow/PWL_Button.cpp',
696         'fpdfsdk/src/pdfwindow/PWL_Caret.cpp',
697         'fpdfsdk/src/pdfwindow/PWL_ComboBox.cpp',
698         'fpdfsdk/src/pdfwindow/PWL_Edit.cpp',
699         'fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp',
700         'fpdfsdk/src/pdfwindow/PWL_FontMap.cpp',
701         'fpdfsdk/src/pdfwindow/PWL_Icon.cpp',
702         'fpdfsdk/src/pdfwindow/PWL_IconList.cpp',
703         'fpdfsdk/src/pdfwindow/PWL_Label.cpp',
704         'fpdfsdk/src/pdfwindow/PWL_ListBox.cpp',
705         'fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp',
706         'fpdfsdk/src/pdfwindow/PWL_Note.cpp',
707         'fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp',
708         'fpdfsdk/src/pdfwindow/PWL_Signature.cpp',
709         'fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp',
710         'fpdfsdk/src/pdfwindow/PWL_Utils.cpp',
711         'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp',
712       ],
713     },
714     {
715       'target_name': 'javascript',
716       'type': 'static_library',
717         'include_dirs': [
718           '<(DEPTH)/v8/include',
719         ],
720       'dependencies': [
721         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
722       ],
723       'export_dependent_settings': [
724         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
725       ],
726       'ldflags': [ '-L<(PRODUCT_DIR)',],
727       'sources': [
728         'fpdfsdk/include/javascript/app.h',
729         'fpdfsdk/include/javascript/color.h',
730         'fpdfsdk/include/javascript/console.h',
731         'fpdfsdk/include/javascript/Consts.h',
732         'fpdfsdk/include/javascript/Document.h',
733         'fpdfsdk/include/javascript/event.h',
734         'fpdfsdk/include/javascript/Field.h',
735         'fpdfsdk/include/javascript/global.h',
736         'fpdfsdk/include/javascript/Icon.h',
737         'fpdfsdk/include/javascript/IJavaScript.h',
738         'fpdfsdk/include/javascript/JavaScript.h',
739         'fpdfsdk/include/javascript/JS_Console.h',
740         'fpdfsdk/include/javascript/JS_Context.h',
741         'fpdfsdk/include/javascript/JS_Define.h',
742         'fpdfsdk/include/javascript/JS_EventHandler.h',
743         'fpdfsdk/include/javascript/JS_GlobalData.h',
744         'fpdfsdk/include/javascript/JS_Module.h',
745         'fpdfsdk/include/javascript/JS_Object.h',
746         'fpdfsdk/include/javascript/JS_Runtime.h',
747         'fpdfsdk/include/javascript/JS_Value.h',
748         'fpdfsdk/include/javascript/PublicMethods.h',
749         'fpdfsdk/include/javascript/report.h',
750         'fpdfsdk/include/javascript/resource.h',
751         'fpdfsdk/include/javascript/util.h',
752         'fpdfsdk/src/javascript/app.cpp',
753         'fpdfsdk/src/javascript/color.cpp',
754         'fpdfsdk/src/javascript/console.cpp',
755         'fpdfsdk/src/javascript/Consts.cpp',
756         'fpdfsdk/src/javascript/Document.cpp',
757         'fpdfsdk/src/javascript/event.cpp',
758         'fpdfsdk/src/javascript/Field.cpp',
759         'fpdfsdk/src/javascript/global.cpp',
760         'fpdfsdk/src/javascript/Icon.cpp',
761         'fpdfsdk/src/javascript/JS_Context.cpp',
762         'fpdfsdk/src/javascript/JS_EventHandler.cpp',
763         'fpdfsdk/src/javascript/JS_GlobalData.cpp',
764         'fpdfsdk/src/javascript/JS_Object.cpp',
765         'fpdfsdk/src/javascript/JS_Runtime.cpp',
766         'fpdfsdk/src/javascript/JS_Value.cpp',
767         'fpdfsdk/src/javascript/PublicMethods.cpp',
768         'fpdfsdk/src/javascript/report.cpp',
769         'fpdfsdk/src/javascript/util.cpp',
770       ],
771     },
772     {
773       'target_name': 'jsapi',
774       'type': 'static_library',
775       'dependencies': [
776         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
777       ],
778       'export_dependent_settings': [
779         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
780       ],
781       'include_dirs': [
782         '<(DEPTH)/v8/include',
783       ],
784       'ldflags': [ '-L<(PRODUCT_DIR)',],
785       'sources': [
786         'fpdfsdk/include/jsapi/fxjs_v8.h',
787         'fpdfsdk/src/jsapi/fxjs_v8.cpp',
788       ],
789     },
790     {
791       'target_name': 'formfiller',
792       'type': 'static_library',
793       'ldflags': [ '-L<(PRODUCT_DIR)',],
794       'sources': [
795         'fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h',
796         'fpdfsdk/include/formfiller/FFL_CheckBox.h',
797         'fpdfsdk/include/formfiller/FFL_ComboBox.h',
798         'fpdfsdk/include/formfiller/FFL_FormFiller.h',
799         'fpdfsdk/include/formfiller/FFL_IFormFiller.h',
800         'fpdfsdk/include/formfiller/FFL_ListBox.h',
801         'fpdfsdk/include/formfiller/FFL_Notify.h',
802         'fpdfsdk/include/formfiller/FFL_PushButton.h',
803         'fpdfsdk/include/formfiller/FFL_RadioButton.h',
804         'fpdfsdk/include/formfiller/FFL_TextField.h',
805         'fpdfsdk/include/formfiller/FFL_Utils.h',
806         'fpdfsdk/include/formfiller/FormFiller.h',
807         'fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp',
808         'fpdfsdk/src/formfiller/FFL_CheckBox.cpp',
809         'fpdfsdk/src/formfiller/FFL_ComboBox.cpp',
810         'fpdfsdk/src/formfiller/FFL_FormFiller.cpp',
811         'fpdfsdk/src/formfiller/FFL_IFormFiller.cpp',
812         'fpdfsdk/src/formfiller/FFL_ListBox.cpp',
813         'fpdfsdk/src/formfiller/FFL_Notify.cpp',
814         'fpdfsdk/src/formfiller/FFL_PushButton.cpp',
815         'fpdfsdk/src/formfiller/FFL_RadioButton.cpp',
816         'fpdfsdk/src/formfiller/FFL_TextField.cpp',
817         'fpdfsdk/src/formfiller/FFL_Utils.cpp',
818       ],
819     },
820   ],
821   'conditions': [
822     ['OS=="mac" or OS=="linux"', {
823       'targets': [
824         {
825           'target_name': 'gcctest',
826           'type': 'executable',
827           'dependencies': [
828             'fpdfsdk',
829           ],
830           'conditions': [
831             ['OS=="mac"', {
832               'link_settings': {
833                 'libraries': [
834                   '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
835                 ],
836               },
837             }],
838           ],
839           'sources': [
840             'test/gcctest.cpp',
841           ],
842         }
843       ],
844     }],
845   ],
846 }
847