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