blob: b2a736391d82fdfcfc5a14e26b358e9bfd27edf2 [file] [log] [blame]
Lei Zhang8241df72015-11-06 14:38:48 -08001# Copyright 2015 PDFium 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
John Abd-El-Malek5110c472014-05-17 22:33:34 -07005{
6 'variables': {
Lei Zhang476ac132015-11-05 20:07:27 -08007 # TODO(thakis): Enable this, pdfium:29
8 #'chromium_code': 1,
John Abd-El-Malek5110c472014-05-17 22:33:34 -07009 'pdf_use_skia%': 0,
Tom Sepez452b4f32015-10-13 09:27:27 -070010 'pdf_enable_v8%': 1,
Tom Sepeza8a39e22015-10-12 15:47:07 -070011 'pdf_enable_xfa%': 1,
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080012 'conditions': [
13 ['OS=="linux"', {
14 'bundle_freetype%': 0,
15 }, { # On Android there's no system FreeType. On Windows and Mac, only a
16 # few methods are used from it.
17 'bundle_freetype%': 1,
Tom Sepezd8bc3d52015-02-24 15:07:41 -080018 }],
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080019 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070020 },
21 'target_defaults': {
22 'defines' : [
Bo Xu043f07f2014-10-03 11:06:35 -070023 'OPJ_STATIC',
John Abd-El-Malek385729b2015-02-06 15:51:11 -080024 'PNG_PREFIX',
25 'PNGPREFIX_H',
26 'PNG_USE_READ_MACROS',
Tom Sepez6fd997b2015-06-18 17:51:37 -070027 'V8_DEPRECATION_WARNINGS',
28 '_CRT_SECURE_NO_WARNINGS',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070029 ],
Bo Xu4c764f32014-12-19 14:29:17 -080030 'include_dirs': [
Lei Zhang8241df72015-11-06 14:38:48 -080031 # This is implicit in GN.
32 '<(DEPTH)',
33 '.',
Bo Xu4c764f32014-12-19 14:29:17 -080034 'third_party/freetype/include',
Oliver Changcec3f682015-11-05 16:00:40 -080035 'third_party/freetype/include/freetype',
Bo Xu4c764f32014-12-19 14:29:17 -080036 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070037 'conditions': [
38 ['pdf_use_skia==1', {
39 'defines': ['_SKIA_SUPPORT_'],
40 }],
Tom Sepez452b4f32015-10-13 09:27:27 -070041 ['pdf_enable_v8==1', {
42 'defines': ['PDF_ENABLE_V8'],
43 }],
Tom Sepeza8a39e22015-10-12 15:47:07 -070044 ['pdf_enable_xfa==1', {
45 'defines': ['PDF_ENABLE_XFA'],
46 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070047 ['OS=="linux"', {
John Abd-El-Malek5110c472014-05-17 22:33:34 -070048 'conditions': [
49 ['target_arch=="x64"', {
Nico Weberb72977f2014-07-18 15:50:30 -070050 'defines' : [ '_FX_CPU_=_FX_X64_', ],
51 'cflags': [ '-fPIC', ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070052 }],
53 ['target_arch=="ia32"', {
Nico Weberb72977f2014-07-18 15:50:30 -070054 'defines' : [ '_FX_CPU_=_FX_X86_', ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070055 }],
56 ],
57 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070058 ],
59 'msvs_disabled_warnings': [
Lei Zhang476ac132015-11-05 20:07:27 -080060 4005, 4018, 4146, 4333, 4345, 4267,
61 # TODO(thestig): Fix all instances, remove this, pdfium:29
62 4245, 4310, 4389, 4701, 4702, 4706, 4800,
John Abd-El-Malek5110c472014-05-17 22:33:34 -070063 ],
Lei Zhang476ac132015-11-05 20:07:27 -080064 'variables': {
65 'clang_warning_flags': [
66 # TODO(thestig): Fix all instances, remove this, pdfium:29
67 '-Wno-sign-compare',
68 ],
69 # Make sure Chromium's build/common.gypi doesn't re-add the flag on linux.
70 'cflags_cc!': [ '-Wsign-compare' ],
71 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -070072 },
73 'targets': [
74 {
John Abd-El-Malekd68f9a32014-06-05 12:45:33 -070075 'target_name': 'pdfium',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070076 'type': 'static_library',
77 'dependencies': [
Bo Xu4c764f32014-12-19 14:29:17 -080078 'third_party/third_party.gyp:bigint',
Tom Sepez35425892015-02-05 10:03:18 -080079 'third_party/third_party.gyp:pdfium_base',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070080 'fdrm',
81 'fpdfdoc',
82 'fpdfapi',
83 'fpdftext',
84 'formfiller',
85 'fxcodec',
86 'fxcrt',
87 'fxedit',
88 'fxge',
89 'javascript',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070090 'pdfwindow',
Bo Xufdc00a72014-10-28 23:03:33 -070091 'fpdfxfa',
John Abd-El-Malek5110c472014-05-17 22:33:34 -070092 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -070093 'sources': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -070094 'fpdfsdk/include/fsdk_actionhandler.h',
95 'fpdfsdk/include/fsdk_annothandler.h',
96 'fpdfsdk/include/fsdk_baseannot.h',
97 'fpdfsdk/include/fsdk_baseform.h',
98 'fpdfsdk/src/fpdfdoc.cpp',
99 'fpdfsdk/src/fpdfeditimg.cpp',
100 'fpdfsdk/src/fpdfeditpage.cpp',
101 'fpdfsdk/src/fpdfformfill.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700102 'fpdfsdk/src/fpdfppo.cpp',
103 'fpdfsdk/src/fpdfsave.cpp',
104 'fpdfsdk/src/fpdftext.cpp',
105 'fpdfsdk/src/fpdfview.cpp',
106 'fpdfsdk/src/fpdf_dataavail.cpp',
107 'fpdfsdk/src/fpdf_ext.cpp',
108 'fpdfsdk/src/fpdf_flatten.cpp',
109 'fpdfsdk/src/fpdf_progressive.cpp',
110 'fpdfsdk/src/fpdf_searchex.cpp',
111 'fpdfsdk/src/fpdf_sysfontinfo.cpp',
Tom Sepez1ed8a212015-05-11 15:25:39 -0700112 'fpdfsdk/src/fpdf_transformpage.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700113 'fpdfsdk/src/fsdk_actionhandler.cpp',
114 'fpdfsdk/src/fsdk_annothandler.cpp',
115 'fpdfsdk/src/fsdk_baseannot.cpp',
116 'fpdfsdk/src/fsdk_baseform.cpp',
117 'fpdfsdk/src/fsdk_mgr.cpp',
118 'fpdfsdk/src/fsdk_rendercontext.cpp',
Tom Sepez1ed8a212015-05-11 15:25:39 -0700119 'public/fpdf_dataavail.h',
120 'public/fpdf_doc.h',
121 'public/fpdf_edit.h',
122 'public/fpdf_ext.h',
123 'public/fpdf_flatten.h',
124 'public/fpdf_formfill.h',
125 'public/fpdf_fwlevent.h',
126 'public/fpdf_ppo.h',
127 'public/fpdf_progressive.h',
128 'public/fpdf_save.h',
129 'public/fpdf_searchex.h',
130 'public/fpdf_sysfontinfo.h',
131 'public/fpdf_text.h',
132 'public/fpdf_transformpage.h',
133 'public/fpdfview.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700134 ],
135 'conditions': [
John Abd-El-Malekef4dce42015-02-02 16:52:07 -0800136 ['bundle_freetype==1', {
137 'dependencies': [
Lei Zhang41aa8412015-11-06 10:42:38 -0800138 'third_party/third_party.gyp:fx_freetype',
John Abd-El-Malekef4dce42015-02-02 16:52:07 -0800139 ],
140 }, {
141 'link_settings': {
142 'libraries': [
143 '-lfreetype',
144 ],
145 },
146 }],
John Abd-El-Malek26119322014-05-26 18:27:11 -0700147 ],
148 'all_dependent_settings': {
149 'msvs_settings': {
150 'VCLinkerTool': {
151 'AdditionalDependencies': [
152 'advapi32.lib',
153 'gdi32.lib',
154 'user32.lib',
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700155 ],
156 },
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700157 },
John Abd-El-Malek26119322014-05-26 18:27:11 -0700158 'conditions': [
159 ['OS=="mac"', {
160 'link_settings': {
161 'libraries': [
162 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
163 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
164 ],
165 },
166 }],
167 ],
John Abd-El-Malek75392b32014-05-26 11:48:05 -0700168 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700169 },
170 {
171 'target_name': 'fdrm',
172 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700173 'sources': [
174 'core/include/fdrm/fx_crypt.h',
175 'core/src/fdrm/crypto/fx_crypt.cpp',
176 'core/src/fdrm/crypto/fx_crypt_aes.cpp',
177 'core/src/fdrm/crypto/fx_crypt_sha.cpp',
178 ],
179 },
180 {
181 'target_name': 'fpdfdoc',
182 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700183 'sources': [
184 'core/include/fpdfdoc/fpdf_ap.h',
185 'core/include/fpdfdoc/fpdf_doc.h',
186 'core/include/fpdfdoc/fpdf_tagged.h',
187 'core/include/fpdfdoc/fpdf_vt.h',
188 'core/src/fpdfdoc/doc_action.cpp',
189 'core/src/fpdfdoc/doc_annot.cpp',
190 'core/src/fpdfdoc/doc_ap.cpp',
191 'core/src/fpdfdoc/doc_basic.cpp',
192 'core/src/fpdfdoc/doc_bookmark.cpp',
193 'core/src/fpdfdoc/doc_form.cpp',
194 'core/src/fpdfdoc/doc_formcontrol.cpp',
195 'core/src/fpdfdoc/doc_formfield.cpp',
196 'core/src/fpdfdoc/doc_link.cpp',
197 'core/src/fpdfdoc/doc_metadata.cpp',
198 'core/src/fpdfdoc/doc_ocg.cpp',
199 'core/src/fpdfdoc/doc_tagged.cpp',
200 'core/src/fpdfdoc/doc_utils.cpp',
Tom Sepezeff208f2015-05-08 13:45:01 -0700201 'core/src/fpdfdoc/doc_utils.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700202 'core/src/fpdfdoc/doc_viewerPreferences.cpp',
203 'core/src/fpdfdoc/doc_vt.cpp',
204 'core/src/fpdfdoc/doc_vtmodule.cpp',
205 'core/src/fpdfdoc/pdf_vt.h',
206 'core/src/fpdfdoc/tagged_int.h',
207 ],
208 },
209 {
210 'target_name': 'fpdfapi',
211 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700212 'sources': [
213 'core/include/fpdfapi/fpdfapi.h',
214 'core/include/fpdfapi/fpdf_module.h',
215 'core/include/fpdfapi/fpdf_objects.h',
216 'core/include/fpdfapi/fpdf_page.h',
217 'core/include/fpdfapi/fpdf_pageobj.h',
218 'core/include/fpdfapi/fpdf_parser.h',
219 'core/include/fpdfapi/fpdf_render.h',
220 'core/include/fpdfapi/fpdf_resource.h',
221 'core/include/fpdfapi/fpdf_serial.h',
222 'core/src/fpdfapi/fpdf_basic_module.cpp',
223 'core/src/fpdfapi/fpdf_cmaps/cmap_int.h',
224 'core/src/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp',
225 'core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp',
226 'core/src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp',
227 'core/src/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.cpp',
228 'core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp',
229 'core/src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp',
230 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp',
231 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp',
232 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp',
233 'core/src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp',
234 'core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp',
235 'core/src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp',
236 'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp',
237 'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp',
238 'core/src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp',
239 'core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp',
240 'core/src/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp',
241 'core/src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.cpp',
242 'core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp',
243 'core/src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp',
244 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp',
245 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp',
246 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp',
247 'core/src/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp',
248 'core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp',
249 'core/src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp',
250 'core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp',
251 'core/src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp',
252 'core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp',
253 'core/src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp',
254 'core/src/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp',
255 'core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp',
256 'core/src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp',
257 'core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp',
258 'core/src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp',
259 'core/src/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp',
260 'core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp',
261 'core/src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp',
262 'core/src/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp',
263 'core/src/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.cpp',
264 'core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp',
265 'core/src/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp',
266 'core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp',
267 'core/src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp',
268 'core/src/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp',
269 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp',
270 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp',
271 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp',
272 'core/src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700273 'core/src/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp',
274 'core/src/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp',
275 'core/src/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp',
276 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp',
277 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp',
278 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp',
279 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp',
280 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp',
281 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp',
282 'core/src/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp',
283 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp',
284 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp',
285 'core/src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp',
286 'core/src/fpdfapi/fpdf_edit/editint.h',
287 'core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp',
288 'core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp',
289 'core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp',
290 'core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700291 'core/src/fpdfapi/fpdf_font/font_int.h',
292 'core/src/fpdfapi/fpdf_font/fpdf_font.cpp',
293 'core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp',
294 'core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700295 'core/src/fpdfapi/fpdf_font/ttgsubtable.cpp',
296 'core/src/fpdfapi/fpdf_font/ttgsubtable.h',
297 'core/src/fpdfapi/fpdf_page/fpdf_page.cpp',
298 'core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp',
299 'core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp',
300 'core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp',
301 'core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp',
302 'core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp',
303 'core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700304 'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp',
305 'core/src/fpdfapi/fpdf_page/fpdf_page_path.cpp',
306 'core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp',
307 'core/src/fpdfapi/fpdf_page/pageint.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700308 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp',
309 'core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp',
310 'core/src/fpdfapi/fpdf_parser/fpdf_parser_encrypt.cpp',
311 'core/src/fpdfapi/fpdf_parser/fpdf_parser_fdf.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700312 'core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp',
313 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp',
314 'core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp',
Jun Fangdf7f3662015-11-10 18:29:18 +0800315 'core/src/fpdfapi/fpdf_parser/parser_int.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700316 'core/src/fpdfapi/fpdf_render/fpdf_render.cpp',
317 'core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp',
318 'core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp',
319 'core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp',
320 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp',
321 'core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp',
322 'core/src/fpdfapi/fpdf_render/render_int.h',
323 ],
324 },
325 {
326 'target_name': 'fpdftext',
327 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700328 'sources': [
329 'core/include/fpdftext/fpdf_text.h',
330 'core/src/fpdftext/fpdf_text.cpp',
331 'core/src/fpdftext/fpdf_text_int.cpp',
332 'core/src/fpdftext/fpdf_text_search.cpp',
333 'core/src/fpdftext/text_int.h',
334 'core/src/fpdftext/txtproc.h',
335 'core/src/fpdftext/unicodenormalization.cpp',
336 'core/src/fpdftext/unicodenormalizationdata.cpp',
Tom Sepez7da98032015-08-19 10:42:45 -0700337 'core/src/fpdftext/unicodenormalizationdata.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700338 ],
339 },
340 {
341 'target_name': 'fxcodec',
342 'type': 'static_library',
Tom Sepez8be55752015-06-17 11:05:02 -0700343 'dependencies': [
Lei Zhang8241df72015-11-06 14:38:48 -0800344 '<(libjpeg_gyp_path):libjpeg',
Tom Sepez8be55752015-06-17 11:05:02 -0700345 'third_party/third_party.gyp:fx_lcms2',
Tom Sepez6fd997b2015-06-18 17:51:37 -0700346 'third_party/third_party.gyp:fx_libopenjpeg',
Tom Sepez5ef9faa2015-10-12 15:43:01 -0700347 'third_party/third_party.gyp:fx_lpng',
348 'third_party/third_party.gyp:fx_tiff',
Tom Sepez6f93de52015-06-19 12:57:10 -0700349 'third_party/third_party.gyp:fx_zlib',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700350 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700351 'sources': [
352 'core/include/fxcodec/fx_codec.h',
353 'core/include/fxcodec/fx_codec_def.h',
Tom Sepezb2552022015-07-14 16:43:54 -0700354 'core/include/fxcodec/fx_codec_flate.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700355 'core/src/fxcodec/codec/codec_int.h',
356 'core/src/fxcodec/codec/fx_codec.cpp',
Bo Xufdc00a72014-10-28 23:03:33 -0700357 'core/src/fxcodec/codec/fx_codec_bmp.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700358 'core/src/fxcodec/codec/fx_codec_fax.cpp',
359 'core/src/fxcodec/codec/fx_codec_flate.cpp',
Bo Xufdc00a72014-10-28 23:03:33 -0700360 'core/src/fxcodec/codec/fx_codec_gif.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700361 'core/src/fxcodec/codec/fx_codec_icc.cpp',
362 'core/src/fxcodec/codec/fx_codec_jbig.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700363 'core/src/fxcodec/codec/fx_codec_jpeg.cpp',
364 'core/src/fxcodec/codec/fx_codec_jpx_opj.cpp',
Bo Xufdc00a72014-10-28 23:03:33 -0700365 'core/src/fxcodec/codec/fx_codec_png.cpp',
366 'core/src/fxcodec/codec/fx_codec_progress.cpp',
367 'core/src/fxcodec/codec/fx_codec_progress.h',
368 'core/src/fxcodec/codec/fx_codec_tiff.cpp',
Lei Zhangb060a552015-09-24 01:13:26 -0700369 'core/src/fxcodec/jbig2/JBig2_ArithDecoder.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700370 'core/src/fxcodec/jbig2/JBig2_ArithDecoder.h',
371 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp',
372 'core/src/fxcodec/jbig2/JBig2_ArithIntDecoder.h',
Lei Zhang4e568672015-10-07 21:33:55 -0700373 'core/src/fxcodec/jbig2/JBig2_BitStream.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700374 'core/src/fxcodec/jbig2/JBig2_BitStream.h',
375 'core/src/fxcodec/jbig2/JBig2_Context.cpp',
376 'core/src/fxcodec/jbig2/JBig2_Context.h',
377 'core/src/fxcodec/jbig2/JBig2_Define.h',
Lei Zhangb060a552015-09-24 01:13:26 -0700378 'core/src/fxcodec/jbig2/JBig2_GrdProc.cpp',
379 'core/src/fxcodec/jbig2/JBig2_GrdProc.h',
380 'core/src/fxcodec/jbig2/JBig2_GrrdProc.cpp',
381 'core/src/fxcodec/jbig2/JBig2_GrrdProc.h',
382 'core/src/fxcodec/jbig2/JBig2_GsidProc.cpp',
383 'core/src/fxcodec/jbig2/JBig2_GsidProc.h',
384 'core/src/fxcodec/jbig2/JBig2_HtrdProc.cpp',
385 'core/src/fxcodec/jbig2/JBig2_HtrdProc.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700386 'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp',
387 'core/src/fxcodec/jbig2/JBig2_HuffmanDecoder.h',
388 'core/src/fxcodec/jbig2/JBig2_HuffmanTable.cpp',
389 'core/src/fxcodec/jbig2/JBig2_HuffmanTable.h',
390 'core/src/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h',
391 'core/src/fxcodec/jbig2/JBig2_Image.cpp',
392 'core/src/fxcodec/jbig2/JBig2_Image.h',
393 'core/src/fxcodec/jbig2/JBig2_List.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700394 'core/src/fxcodec/jbig2/JBig2_Page.h',
395 'core/src/fxcodec/jbig2/JBig2_PatternDict.cpp',
396 'core/src/fxcodec/jbig2/JBig2_PatternDict.h',
Lei Zhangb060a552015-09-24 01:13:26 -0700397 'core/src/fxcodec/jbig2/JBig2_PddProc.cpp',
398 'core/src/fxcodec/jbig2/JBig2_PddProc.h',
399 'core/src/fxcodec/jbig2/JBig2_SddProc.cpp',
400 'core/src/fxcodec/jbig2/JBig2_SddProc.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700401 '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',
Lei Zhangb060a552015-09-24 01:13:26 -0700405 'core/src/fxcodec/jbig2/JBig2_TrdProc.cpp',
406 'core/src/fxcodec/jbig2/JBig2_TrdProc.h',
Bo Xufdc00a72014-10-28 23:03:33 -0700407 'core/src/fxcodec/lbmp/fx_bmp.cpp',
408 'core/src/fxcodec/lbmp/fx_bmp.h',
Bo Xufdc00a72014-10-28 23:03:33 -0700409 'core/src/fxcodec/lgif/fx_gif.cpp',
410 'core/src/fxcodec/lgif/fx_gif.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700411 ],
Tom Sepez8be55752015-06-17 11:05:02 -0700412 'msvs_settings': {
413 'VCCLCompilerTool': {
414 # Unresolved warnings in fx_codec_jpx_opj.cpp
415 # https://code.google.com/p/pdfium/issues/detail?id=100
416 'WarnAsError': 'false',
417 },
418 },
John Abd-El-Malekdef5c7d2014-06-09 16:07:18 -0700419 'conditions': [
420 ['os_posix==1', {
421 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
422 # conversion to check that an address is 16-bit aligned (benign).
423 'cflags_c': [ '-Wno-pointer-to-int-cast' ],
424 }],
425 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700426 },
427 {
428 'target_name': 'fxcrt',
429 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700430 'sources': [
431 'core/include/fxcrt/fx_arb.h',
432 'core/include/fxcrt/fx_basic.h',
Lei Zhangee02ea32015-10-29 15:01:55 -0700433 'core/include/fxcrt/fx_bidi.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700434 'core/include/fxcrt/fx_coordinates.h',
435 'core/include/fxcrt/fx_ext.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700436 'core/include/fxcrt/fx_memory.h',
Tom Sepez6675a802015-06-04 19:05:21 -0700437 'core/include/fxcrt/fx_safe_types.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700438 'core/include/fxcrt/fx_stream.h',
439 'core/include/fxcrt/fx_string.h',
440 'core/include/fxcrt/fx_system.h',
441 'core/include/fxcrt/fx_ucd.h',
442 'core/include/fxcrt/fx_xml.h',
443 'core/src/fxcrt/extension.h',
444 'core/src/fxcrt/fxcrt_platforms.cpp',
445 'core/src/fxcrt/fxcrt_platforms.h',
446 'core/src/fxcrt/fxcrt_posix.cpp',
447 'core/src/fxcrt/fxcrt_posix.h',
448 'core/src/fxcrt/fxcrt_windows.cpp',
449 'core/src/fxcrt/fxcrt_windows.h',
450 'core/src/fxcrt/fx_arabic.cpp',
451 'core/src/fxcrt/fx_arabic.h',
452 'core/src/fxcrt/fx_basic_array.cpp',
453 'core/src/fxcrt/fx_basic_bstring.cpp',
454 'core/src/fxcrt/fx_basic_buffer.cpp',
455 'core/src/fxcrt/fx_basic_coords.cpp',
456 'core/src/fxcrt/fx_basic_gcc.cpp',
457 'core/src/fxcrt/fx_basic_list.cpp',
458 'core/src/fxcrt/fx_basic_maps.cpp',
459 'core/src/fxcrt/fx_basic_memmgr.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700460 'core/src/fxcrt/fx_basic_plex.cpp',
461 'core/src/fxcrt/fx_basic_utf.cpp',
462 'core/src/fxcrt/fx_basic_util.cpp',
463 'core/src/fxcrt/fx_basic_wstring.cpp',
Lei Zhangee02ea32015-10-29 15:01:55 -0700464 'core/src/fxcrt/fx_bidi.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700465 'core/src/fxcrt/fx_extension.cpp',
466 'core/src/fxcrt/fx_ucddata.cpp',
467 'core/src/fxcrt/fx_unicode.cpp',
468 'core/src/fxcrt/fx_xml_composer.cpp',
469 'core/src/fxcrt/fx_xml_parser.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700470 'core/src/fxcrt/plex.h',
471 'core/src/fxcrt/xml_int.h',
472 ],
473 },
474 {
475 'target_name': 'fxge',
476 'type': 'static_library',
Tom Sepezb7d358b2015-06-17 10:01:00 -0700477 'dependencies': [
478 'third_party/third_party.gyp:fx_agg',
479 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700480 'sources': [
481 'core/include/fxge/fpf.h',
482 'core/include/fxge/fx_dib.h',
483 'core/include/fxge/fx_font.h',
484 'core/include/fxge/fx_freetype.h',
485 'core/include/fxge/fx_ge.h',
486 'core/include/fxge/fx_ge_apple.h',
487 'core/include/fxge/fx_ge_win32.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700488 'core/src/fxge/agg/include/fx_agg_driver.h',
Tom Sepezb7d358b2015-06-17 10:01:00 -0700489 'core/src/fxge/agg/src/fx_agg_driver.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700490 'core/src/fxge/android/fpf_skiafont.cpp',
491 'core/src/fxge/android/fpf_skiafont.h',
492 'core/src/fxge/android/fpf_skiafontmgr.cpp',
493 'core/src/fxge/android/fpf_skiafontmgr.h',
494 'core/src/fxge/android/fpf_skiamodule.cpp',
495 'core/src/fxge/android/fpf_skiamodule.h',
496 'core/src/fxge/android/fx_android_font.cpp',
497 'core/src/fxge/android/fx_android_font.h',
498 'core/src/fxge/android/fx_android_imp.cpp',
499 'core/src/fxge/android/fx_fpf.h',
500 'core/src/fxge/apple/apple_int.h',
501 'core/src/fxge/apple/fx_apple_platform.cpp',
502 'core/src/fxge/apple/fx_mac_imp.cpp',
503 'core/src/fxge/apple/fx_quartz_device.cpp',
504 'core/src/fxge/dib/dib_int.h',
505 'core/src/fxge/dib/fx_dib_composite.cpp',
506 'core/src/fxge/dib/fx_dib_convert.cpp',
507 'core/src/fxge/dib/fx_dib_engine.cpp',
508 'core/src/fxge/dib/fx_dib_main.cpp',
509 'core/src/fxge/dib/fx_dib_transform.cpp',
Tom Sepez7da98032015-08-19 10:42:45 -0700510 'core/src/fxge/fontdata/chromefontdata/chromefontdata.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700511 'core/src/fxge/fontdata/chromefontdata/FoxitDingbats.c',
512 'core/src/fxge/fontdata/chromefontdata/FoxitFixed.c',
513 'core/src/fxge/fontdata/chromefontdata/FoxitFixedBold.c',
514 'core/src/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.c',
515 'core/src/fxge/fontdata/chromefontdata/FoxitFixedItalic.c',
516 'core/src/fxge/fontdata/chromefontdata/FoxitSans.c',
517 'core/src/fxge/fontdata/chromefontdata/FoxitSansBold.c',
518 'core/src/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.c',
519 'core/src/fxge/fontdata/chromefontdata/FoxitSansItalic.c',
520 'core/src/fxge/fontdata/chromefontdata/FoxitSansMM.c',
521 'core/src/fxge/fontdata/chromefontdata/FoxitSerif.c',
522 'core/src/fxge/fontdata/chromefontdata/FoxitSerifBold.c',
523 'core/src/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.c',
524 'core/src/fxge/fontdata/chromefontdata/FoxitSerifItalic.c',
525 'core/src/fxge/fontdata/chromefontdata/FoxitSerifMM.c',
526 'core/src/fxge/fontdata/chromefontdata/FoxitSymbol.c',
Bo Xu4c764f32014-12-19 14:29:17 -0800527 'core/src/fxge/freetype/fx_freetype.c',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700528 'core/src/fxge/ge/fx_ge.cpp',
529 'core/src/fxge/ge/fx_ge_device.cpp',
530 'core/src/fxge/ge/fx_ge_font.cpp',
531 'core/src/fxge/ge/fx_ge_fontmap.cpp',
532 'core/src/fxge/ge/fx_ge_linux.cpp',
533 'core/src/fxge/ge/fx_ge_path.cpp',
534 'core/src/fxge/ge/fx_ge_ps.cpp',
535 'core/src/fxge/ge/fx_ge_text.cpp',
536 'core/src/fxge/ge/text_int.h',
537 ],
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400538 'variables': {
539 'clang_warning_flags': [
540 # http://code.google.com/p/pdfium/issues/detail?id=188
541 '-Wno-switch',
542 ],
543 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700544 'conditions': [
545 ['pdf_use_skia==1', {
546 'sources': [
547 'core/src/fxge/skia/fx_skia_blitter_new.cpp',
548 'core/src/fxge/skia/fx_skia_device.cpp',
549 ],
550 'dependencies': [
551 '<(DEPTH)/skia/skia.gyp:skia',
552 ],
553 'include_dirs': [
554 '<(DEPTH)/third_party/skia/include/config',
555 '<(DEPTH)/third_party/skia/include/core',
556 '<(DEPTH)/third_party/skia/include/effects',
557 '<(DEPTH)/third_party/skia/include/images',
558 '<(DEPTH)/third_party/skia/include/lazy',
559 '<(DEPTH)/third_party/skia/include/pathops',
560 '<(DEPTH)/third_party/skia/include/utils',
561 '<(DEPTH)/third_party/skia/src/core',
562 ],
563 }],
564 ['OS=="win"', {
565 'defines!': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700566 'WIN32_LEAN_AND_MEAN'
567 ],
568 'sources': [
569 'core/src/fxge/win32/dwrite_int.h',
570 'core/src/fxge/win32/fx_win32_device.cpp',
571 'core/src/fxge/win32/fx_win32_dib.cpp',
572 'core/src/fxge/win32/fx_win32_dwrite.cpp',
573 'core/src/fxge/win32/fx_win32_gdipext.cpp',
574 'core/src/fxge/win32/fx_win32_print.cpp',
575 'core/src/fxge/win32/win32_int.h',
576 ],
577 }],
578 ],
579 },
580 {
581 'target_name': 'fxedit',
582 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700583 'sources': [
584 'fpdfsdk/include/fxedit/fx_edit.h',
585 'fpdfsdk/include/fxedit/fxet_edit.h',
586 'fpdfsdk/include/fxedit/fxet_list.h',
587 'fpdfsdk/include/fxedit/fxet_stub.h',
588 'fpdfsdk/src/fxedit/fxet_ap.cpp',
589 'fpdfsdk/src/fxedit/fxet_edit.cpp',
590 'fpdfsdk/src/fxedit/fxet_list.cpp',
591 'fpdfsdk/src/fxedit/fxet_module.cpp',
592 'fpdfsdk/src/fxedit/fxet_pageobjs.cpp',
593 ],
594 },
595 {
596 'target_name': 'pdfwindow',
597 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700598 'sources': [
599 'fpdfsdk/include/pdfwindow/IPDFWindow.h',
600 'fpdfsdk/include/pdfwindow/PDFWindow.h',
601 'fpdfsdk/include/pdfwindow/PWL_Button.h',
602 'fpdfsdk/include/pdfwindow/PWL_Caret.h',
603 'fpdfsdk/include/pdfwindow/PWL_ComboBox.h',
604 'fpdfsdk/include/pdfwindow/PWL_Edit.h',
605 'fpdfsdk/include/pdfwindow/PWL_EditCtrl.h',
606 'fpdfsdk/include/pdfwindow/PWL_FontMap.h',
607 'fpdfsdk/include/pdfwindow/PWL_Icon.h',
608 'fpdfsdk/include/pdfwindow/PWL_IconList.h',
609 'fpdfsdk/include/pdfwindow/PWL_Label.h',
610 'fpdfsdk/include/pdfwindow/PWL_ListBox.h',
611 'fpdfsdk/include/pdfwindow/PWL_ListCtrl.h',
612 'fpdfsdk/include/pdfwindow/PWL_Note.h',
613 'fpdfsdk/include/pdfwindow/PWL_ScrollBar.h',
614 'fpdfsdk/include/pdfwindow/PWL_Signature.h',
615 'fpdfsdk/include/pdfwindow/PWL_SpecialButton.h',
616 'fpdfsdk/include/pdfwindow/PWL_Utils.h',
617 'fpdfsdk/include/pdfwindow/PWL_Wnd.h',
618 'fpdfsdk/src/pdfwindow/PWL_Button.cpp',
619 'fpdfsdk/src/pdfwindow/PWL_Caret.cpp',
620 'fpdfsdk/src/pdfwindow/PWL_ComboBox.cpp',
621 'fpdfsdk/src/pdfwindow/PWL_Edit.cpp',
622 'fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp',
623 'fpdfsdk/src/pdfwindow/PWL_FontMap.cpp',
624 'fpdfsdk/src/pdfwindow/PWL_Icon.cpp',
625 'fpdfsdk/src/pdfwindow/PWL_IconList.cpp',
626 'fpdfsdk/src/pdfwindow/PWL_Label.cpp',
627 'fpdfsdk/src/pdfwindow/PWL_ListBox.cpp',
628 'fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp',
629 'fpdfsdk/src/pdfwindow/PWL_Note.cpp',
630 'fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp',
631 'fpdfsdk/src/pdfwindow/PWL_Signature.cpp',
632 'fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp',
633 'fpdfsdk/src/pdfwindow/PWL_Utils.cpp',
634 'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp',
635 ],
636 },
637 {
Bo Xufdc00a72014-10-28 23:03:33 -0700638 'target_name': 'fpdfxfa',
639 'type': 'static_library',
Bo Xufdc00a72014-10-28 23:03:33 -0700640 'dependencies': [
Tom Sepeza8a39e22015-10-12 15:47:07 -0700641 'javascript'
Bo Xufdc00a72014-10-28 23:03:33 -0700642 ],
643 'sources': [
644 'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp',
645 'fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp',
646 'fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp',
647 'fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp',
648 'fpdfsdk/include/fpdfxfa/fpdfxfa_app.h',
649 'fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h',
650 'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h',
651 'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h',
652 ],
Tom Sepeza8a39e22015-10-12 15:47:07 -0700653 'conditions': [
654 [ "pdf_enable_xfa==1", {
655 'dependencies': [
656 'xfa.gyp:xfa',
657 ],
658 }],
659 ],
Bo Xufdc00a72014-10-28 23:03:33 -0700660 },
661 {
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700662 'target_name': 'javascript',
663 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700664 'sources': [
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700665 'fpdfsdk/include/javascript/IJavaScript.h',
Tom Sepez452b4f32015-10-13 09:27:27 -0700666 'fpdfsdk/src/javascript/JS_Runtime_Stub.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700667 ],
Tom Sepez452b4f32015-10-13 09:27:27 -0700668 'conditions': [
669 ['pdf_enable_v8==1', {
670 'include_dirs': [
671 '<(DEPTH)/v8',
672 '<(DEPTH)/v8/include',
673 ],
674 'dependencies': [
675 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
676 ],
677 'export_dependent_settings': [
678 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
679 ],
680 'sources!': [
681 'fpdfsdk/src/javascript/JS_Runtime_Stub.cpp',
682 ],
683 'sources': [
684 'fpdfsdk/src/javascript/Consts.cpp',
685 'fpdfsdk/src/javascript/Consts.h',
686 'fpdfsdk/src/javascript/Document.cpp',
687 'fpdfsdk/src/javascript/Document.h',
688 'fpdfsdk/src/javascript/Field.cpp',
689 'fpdfsdk/src/javascript/Field.h',
690 'fpdfsdk/src/javascript/Icon.cpp',
691 'fpdfsdk/src/javascript/Icon.h',
692 'fpdfsdk/src/javascript/JS_Context.cpp',
693 'fpdfsdk/src/javascript/JS_Context.h',
694 'fpdfsdk/src/javascript/JS_Define.h',
695 'fpdfsdk/src/javascript/JS_EventHandler.cpp',
696 'fpdfsdk/src/javascript/JS_EventHandler.h',
697 'fpdfsdk/src/javascript/JS_GlobalData.cpp',
698 'fpdfsdk/src/javascript/JS_GlobalData.h',
699 'fpdfsdk/src/javascript/JS_Object.cpp',
700 'fpdfsdk/src/javascript/JS_Object.h',
701 'fpdfsdk/src/javascript/JS_Runtime.cpp',
702 'fpdfsdk/src/javascript/JS_Runtime.h',
703 'fpdfsdk/src/javascript/JS_Value.cpp',
704 'fpdfsdk/src/javascript/JS_Value.h',
705 'fpdfsdk/src/javascript/PublicMethods.cpp',
706 'fpdfsdk/src/javascript/PublicMethods.h',
707 'fpdfsdk/src/javascript/app.cpp',
708 'fpdfsdk/src/javascript/app.cpp',
709 'fpdfsdk/src/javascript/app.h',
710 'fpdfsdk/src/javascript/color.cpp',
711 'fpdfsdk/src/javascript/color.cpp',
712 'fpdfsdk/src/javascript/color.h',
713 'fpdfsdk/src/javascript/console.cpp',
714 'fpdfsdk/src/javascript/console.cpp',
715 'fpdfsdk/src/javascript/console.h',
716 'fpdfsdk/src/javascript/event.cpp',
717 'fpdfsdk/src/javascript/event.h',
718 'fpdfsdk/src/javascript/global.cpp',
719 'fpdfsdk/src/javascript/global.h',
720 'fpdfsdk/src/javascript/report.cpp',
721 'fpdfsdk/src/javascript/report.h',
722 'fpdfsdk/src/javascript/resource.cpp',
723 'fpdfsdk/src/javascript/resource.h',
724 'fpdfsdk/src/javascript/util.cpp',
725 'fpdfsdk/src/javascript/util.h',
726 'fpdfsdk/include/jsapi/fxjs_v8.h',
727 'fpdfsdk/src/jsapi/fxjs_v8.cpp',
728 ],
729 }],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700730 ],
731 },
732 {
733 'target_name': 'formfiller',
734 'type': 'static_library',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700735 'sources': [
736 'fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h',
737 'fpdfsdk/include/formfiller/FFL_CheckBox.h',
738 'fpdfsdk/include/formfiller/FFL_ComboBox.h',
739 'fpdfsdk/include/formfiller/FFL_FormFiller.h',
740 'fpdfsdk/include/formfiller/FFL_IFormFiller.h',
741 'fpdfsdk/include/formfiller/FFL_ListBox.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700742 'fpdfsdk/include/formfiller/FFL_PushButton.h',
743 'fpdfsdk/include/formfiller/FFL_RadioButton.h',
744 'fpdfsdk/include/formfiller/FFL_TextField.h',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700745 'fpdfsdk/include/formfiller/FormFiller.h',
746 'fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp',
747 'fpdfsdk/src/formfiller/FFL_CheckBox.cpp',
748 'fpdfsdk/src/formfiller/FFL_ComboBox.cpp',
749 'fpdfsdk/src/formfiller/FFL_FormFiller.cpp',
750 'fpdfsdk/src/formfiller/FFL_IFormFiller.cpp',
751 'fpdfsdk/src/formfiller/FFL_ListBox.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700752 'fpdfsdk/src/formfiller/FFL_PushButton.cpp',
753 'fpdfsdk/src/formfiller/FFL_RadioButton.cpp',
754 'fpdfsdk/src/formfiller/FFL_TextField.cpp',
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700755 ],
756 },
Tom Sepez22ee2482015-01-07 10:04:16 -0800757 {
758 'target_name': 'pdfium_unittests',
759 'type': 'executable',
760 'dependencies': [
761 '<(DEPTH)/testing/gtest.gyp:gtest_main',
762 '<(DEPTH)/testing/gtest.gyp:gtest',
763 'pdfium',
Tom Sepezd831dc72015-10-19 16:04:22 -0700764 'test_support',
Tom Sepez22ee2482015-01-07 10:04:16 -0800765 ],
Tom Sepez22ee2482015-01-07 10:04:16 -0800766 'sources': [
Dan Sinclairbd552392015-11-02 16:26:55 -0500767 'core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp',
Dan Sinclair15a05702015-11-02 13:34:21 -0500768 'core/src/fpdfapi/fpdf_font/fpdf_font_unittest.cpp',
Dan Sinclairb4518212015-11-02 16:44:09 -0500769 'core/src/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp',
Dan Sinclair4d6f03a2015-11-02 16:12:41 -0500770 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp',
Dan Sinclaireed2ee92015-11-03 14:32:34 -0500771 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp',
Tom Sepezdb205822015-03-19 13:02:23 -0700772 'core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp',
Tom Sepez22ee2482015-01-07 10:04:16 -0800773 'core/src/fxcrt/fx_basic_bstring_unittest.cpp',
Tom Sepezed099be2015-05-15 16:30:52 -0700774 'core/src/fxcrt/fx_basic_memmgr_unittest.cpp',
Bo Xua6f95eb2015-01-21 12:17:23 -0800775 'core/src/fxcrt/fx_basic_wstring_unittest.cpp',
Lei Zhangee02ea32015-10-29 15:01:55 -0700776 'core/src/fxcrt/fx_bidi_unittest.cpp',
Dan Sinclair10cfea12015-11-16 13:09:00 -0500777 'core/src/fxcrt/fx_extension_unittest.cpp',
Tom Sepez24e733e2015-10-16 14:18:50 -0700778 'core/src/fxcrt/fx_system_unittest.cpp',
Tom Sepez24e733e2015-10-16 14:18:50 -0700779 'testing/fx_string_testhelpers.h',
Dan Sinclairbc6c6722015-10-22 14:58:54 -0400780 'testing/fx_string_testhelpers.cpp',
Tom Sepez7cfadd92015-09-22 15:22:48 -0700781 'third_party/base/nonstd_unique_ptr_unittest.cpp',
Tom Sepeza8a39e22015-10-12 15:47:07 -0700782 ],
783 'conditions': [
784 ['pdf_enable_xfa==1', {
785 'sources': [
786 'xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp',
787 'xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp',
788 ],
789 }],
Tom Sepez22ee2482015-01-07 10:04:16 -0800790 ],
791 },
Tom Sepez96d13342015-01-16 14:59:26 -0800792 {
793 'target_name': 'pdfium_embeddertests',
794 'type': 'executable',
795 'dependencies': [
Tom Sepeza310e002015-02-27 13:03:07 -0800796 '<(DEPTH)/testing/gmock.gyp:gmock',
Tom Sepez96d13342015-01-16 14:59:26 -0800797 '<(DEPTH)/testing/gtest.gyp:gtest',
798 'pdfium',
Tom Sepezd831dc72015-10-19 16:04:22 -0700799 'test_support',
Tom Sepez96d13342015-01-16 14:59:26 -0800800 ],
Tom Sepez96d13342015-01-16 14:59:26 -0800801 'sources': [
Oliver Chang67169d32015-11-04 14:33:56 -0800802 'core/src/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp',
Tom Sepez441932f2015-04-10 10:40:55 -0700803 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp',
JUN FANGfbc74492015-04-03 11:35:50 -0700804 'core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp',
Oliver Chang46bed622015-11-11 16:41:26 -0800805 'core/src/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp',
Dan Sinclair431ba182015-10-27 12:19:11 -0400806 'core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp',
Tom Sepez2255a1b2015-01-23 15:33:44 -0800807 'fpdfsdk/src/fpdf_dataavail_embeddertest.cpp',
Tom Sepezc8f6ab62015-01-22 11:20:06 -0800808 'fpdfsdk/src/fpdfdoc_embeddertest.cpp',
Tom Sepeza310e002015-02-27 13:03:07 -0800809 'fpdfsdk/src/fpdfformfill_embeddertest.cpp',
Tom Sepez26b8a5b2015-01-27 12:42:36 -0800810 'fpdfsdk/src/fpdftext_embeddertest.cpp',
Tom Sepezcf22eb82015-05-12 17:28:08 -0700811 'fpdfsdk/src/fpdfview_c_api_test.c',
812 'fpdfsdk/src/fpdfview_c_api_test.h',
Tom Sepez96d13342015-01-16 14:59:26 -0800813 'fpdfsdk/src/fpdfview_embeddertest.cpp',
814 'testing/embedder_test.cpp',
815 'testing/embedder_test.h',
Tom Sepeza310e002015-02-27 13:03:07 -0800816 'testing/embedder_test_mock_delegate.h',
Tom Sepez6efc0ad2015-06-02 17:11:18 -0700817 'testing/embedder_test_timer_handling_delegate.h',
Jun Fangbf18cb62015-10-28 18:36:28 +0800818 'xfa/src/fxfa/src/parser/xfa_parser_imp_embeddertest.cpp',
Tom Sepez96d13342015-01-16 14:59:26 -0800819 ],
Tom Sepez452b4f32015-10-13 09:27:27 -0700820 'conditions': [
821 ['pdf_enable_v8==1', {
822 'include_dirs': [
823 '<(DEPTH)/v8',
824 '<(DEPTH)/v8/include',
825 ],
826 'dependencies': [
827 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
828 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
829 ],
830 'sources': [
831 'fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp',
832 ],
833 }],
834 ],
Tom Sepez96d13342015-01-16 14:59:26 -0800835 },
Tom Sepezd831dc72015-10-19 16:04:22 -0700836 {
837 'target_name': 'test_support',
838 'type': 'static_library',
839 'dependencies': [
840 '<(DEPTH)/testing/gmock.gyp:gmock',
841 '<(DEPTH)/testing/gtest.gyp:gtest',
842 ],
Tom Sepezd831dc72015-10-19 16:04:22 -0700843 'sources': [
844 'testing/fx_string_testhelpers.cpp',
845 'testing/fx_string_testhelpers.h',
846 'testing/test_support.cpp',
847 'testing/test_support.h',
Wei Li091f7a02015-11-09 12:09:55 -0800848 'testing/utils/path_service.cpp',
Tom Sepezd831dc72015-10-19 16:04:22 -0700849 ],
850 'conditions': [
851 ['pdf_enable_v8==1', {
852 'include_dirs': [
853 '<(DEPTH)/v8',
854 '<(DEPTH)/v8/include',
855 ],
856 'dependencies': [
857 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
858 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
859 ],
860 }],
861 ],
862 },
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700863 ],
John Abd-El-Malek5110c472014-05-17 22:33:34 -0700864}