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