blob: 96c3c6df2f6bd80bddf886bd63886505f7100874 [file] [log] [blame]
Lei Zhanga7dec322018-10-12 18:36:51 +00001# Copyright 2018 The 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
5import("//build/config/jumbo.gni")
6import("../pdfium.gni")
7
8jumbo_source_set("fxjs") {
9 sources = [
10 "cjs_event_context_stub.cpp",
11 "cjs_event_context_stub.h",
12 "cjs_runtimestub.cpp",
13 "cjs_runtimestub.h",
14 "ijs_event_context.h",
15 "ijs_runtime.cpp",
16 "ijs_runtime.h",
17 ]
18 configs += [ "../:pdfium_core_config" ]
19 deps = [
Lei Zhang995374a2018-10-12 19:52:04 +000020 "../core/fxcrt",
Lei Zhanga7dec322018-10-12 18:36:51 +000021 ]
22 visibility = [ "../*" ]
23
24 if (pdf_enable_v8) {
25 sources += [
26 "cfx_v8.cpp",
27 "cfx_v8.h",
28 "cfxjs_engine.cpp",
29 "cfxjs_engine.h",
30 "cjs_annot.cpp",
31 "cjs_annot.h",
32 "cjs_app.cpp",
33 "cjs_app.h",
34 "cjs_border.cpp",
35 "cjs_border.h",
36 "cjs_color.cpp",
37 "cjs_color.h",
38 "cjs_console.cpp",
39 "cjs_console.h",
40 "cjs_delaydata.cpp",
41 "cjs_delaydata.h",
42 "cjs_display.cpp",
43 "cjs_display.h",
44 "cjs_document.cpp",
45 "cjs_document.h",
46 "cjs_event.cpp",
47 "cjs_event.h",
48 "cjs_event_context.cpp",
49 "cjs_event_context.h",
50 "cjs_eventhandler.cpp",
51 "cjs_eventhandler.h",
52 "cjs_field.cpp",
53 "cjs_field.h",
54 "cjs_font.cpp",
55 "cjs_font.h",
56 "cjs_global.cpp",
57 "cjs_global.h",
58 "cjs_globalarrays.cpp",
59 "cjs_globalarrays.h",
60 "cjs_globalconsts.cpp",
61 "cjs_globalconsts.h",
62 "cjs_globaldata.cpp",
63 "cjs_globaldata.h",
64 "cjs_globalvariablearray.cpp",
65 "cjs_globalvariablearray.h",
66 "cjs_highlight.cpp",
67 "cjs_highlight.h",
68 "cjs_icon.cpp",
69 "cjs_icon.h",
70 "cjs_keyvalue.cpp",
71 "cjs_keyvalue.h",
72 "cjs_object.cpp",
73 "cjs_object.h",
74 "cjs_position.cpp",
75 "cjs_position.h",
76 "cjs_printparamsobj.cpp",
77 "cjs_printparamsobj.h",
78 "cjs_publicmethods.cpp",
79 "cjs_publicmethods.h",
80 "cjs_report.cpp",
81 "cjs_report.h",
82 "cjs_result.cpp",
83 "cjs_result.h",
84 "cjs_runtime.cpp",
85 "cjs_runtime.h",
86 "cjs_scalehow.cpp",
87 "cjs_scalehow.h",
88 "cjs_scalewhen.cpp",
89 "cjs_scalewhen.h",
90 "cjs_style.cpp",
91 "cjs_style.h",
92 "cjs_timerobj.cpp",
93 "cjs_timerobj.h",
94 "cjs_util.cpp",
95 "cjs_util.h",
96 "cjs_zoomtype.cpp",
97 "cjs_zoomtype.h",
98 "global_timer.cpp",
99 "global_timer.h",
100 "js_define.cpp",
101 "js_define.h",
102 "js_resources.cpp",
103 "js_resources.h",
104 "jse_define.h",
105 ]
106 deps += [
107 "//v8",
108 "//v8:v8_libplatform",
109 ]
110 configs += [ "//v8:external_startup_data" ]
111 public_deps = [
112 "//v8",
113 ]
114
115 if (pdf_enable_xfa) {
116 sources += [
117 "cfxjse_arguments.cpp",
118 "cfxjse_arguments.h",
119 "cfxjse_class.cpp",
120 "cfxjse_class.h",
121 "cfxjse_context.cpp",
122 "cfxjse_context.h",
123 "cfxjse_engine.cpp",
124 "cfxjse_engine.h",
125 "cfxjse_formcalc_context.cpp",
126 "cfxjse_formcalc_context.h",
127 "cfxjse_isolatetracker.cpp",
128 "cfxjse_isolatetracker.h",
129 "cfxjse_resolveprocessor.cpp",
130 "cfxjse_resolveprocessor.h",
131 "cfxjse_runtimedata.cpp",
132 "cfxjse_runtimedata.h",
133 "cfxjse_value.cpp",
134 "cfxjse_value.h",
135 "fxjse.cpp",
136 "fxjse.h",
137 "xfa/cjx_arc.cpp",
138 "xfa/cjx_arc.h",
139 "xfa/cjx_area.cpp",
140 "xfa/cjx_area.h",
141 "xfa/cjx_assist.cpp",
142 "xfa/cjx_assist.h",
143 "xfa/cjx_barcode.cpp",
144 "xfa/cjx_barcode.h",
145 "xfa/cjx_bind.cpp",
146 "xfa/cjx_bind.h",
147 "xfa/cjx_binditems.cpp",
148 "xfa/cjx_binditems.h",
149 "xfa/cjx_bookend.cpp",
150 "xfa/cjx_bookend.h",
151 "xfa/cjx_boolean.cpp",
152 "xfa/cjx_boolean.h",
153 "xfa/cjx_border.cpp",
154 "xfa/cjx_border.h",
155 "xfa/cjx_break.cpp",
156 "xfa/cjx_break.h",
157 "xfa/cjx_breakafter.cpp",
158 "xfa/cjx_breakafter.h",
159 "xfa/cjx_breakbefore.cpp",
160 "xfa/cjx_breakbefore.h",
161 "xfa/cjx_button.cpp",
162 "xfa/cjx_button.h",
163 "xfa/cjx_calculate.cpp",
164 "xfa/cjx_calculate.h",
165 "xfa/cjx_caption.cpp",
166 "xfa/cjx_caption.h",
167 "xfa/cjx_certificate.cpp",
168 "xfa/cjx_certificate.h",
169 "xfa/cjx_certificates.cpp",
170 "xfa/cjx_certificates.h",
171 "xfa/cjx_checkbutton.cpp",
172 "xfa/cjx_checkbutton.h",
173 "xfa/cjx_choicelist.cpp",
174 "xfa/cjx_choicelist.h",
175 "xfa/cjx_color.cpp",
176 "xfa/cjx_color.h",
177 "xfa/cjx_comb.cpp",
178 "xfa/cjx_comb.h",
179 "xfa/cjx_command.cpp",
180 "xfa/cjx_command.h",
181 "xfa/cjx_connect.cpp",
182 "xfa/cjx_connect.h",
183 "xfa/cjx_connectstring.cpp",
184 "xfa/cjx_connectstring.h",
185 "xfa/cjx_container.cpp",
186 "xfa/cjx_container.h",
187 "xfa/cjx_content.cpp",
188 "xfa/cjx_content.h",
189 "xfa/cjx_contentarea.cpp",
190 "xfa/cjx_contentarea.h",
191 "xfa/cjx_corner.cpp",
192 "xfa/cjx_corner.h",
193 "xfa/cjx_datavalue.cpp",
194 "xfa/cjx_datavalue.h",
195 "xfa/cjx_datawindow.cpp",
196 "xfa/cjx_datawindow.h",
197 "xfa/cjx_date.cpp",
198 "xfa/cjx_date.h",
199 "xfa/cjx_datetime.cpp",
200 "xfa/cjx_datetime.h",
201 "xfa/cjx_datetimeedit.cpp",
202 "xfa/cjx_datetimeedit.h",
203 "xfa/cjx_decimal.cpp",
204 "xfa/cjx_decimal.h",
205 "xfa/cjx_defaultui.cpp",
206 "xfa/cjx_defaultui.h",
207 "xfa/cjx_delete.cpp",
208 "xfa/cjx_delete.h",
209 "xfa/cjx_delta.cpp",
210 "xfa/cjx_delta.h",
211 "xfa/cjx_deltas.cpp",
212 "xfa/cjx_deltas.h",
213 "xfa/cjx_desc.cpp",
214 "xfa/cjx_desc.h",
215 "xfa/cjx_digestmethod.cpp",
216 "xfa/cjx_digestmethod.h",
217 "xfa/cjx_digestmethods.cpp",
218 "xfa/cjx_digestmethods.h",
219 "xfa/cjx_draw.cpp",
220 "xfa/cjx_draw.h",
221 "xfa/cjx_edge.cpp",
222 "xfa/cjx_edge.h",
223 "xfa/cjx_encoding.cpp",
224 "xfa/cjx_encoding.h",
225 "xfa/cjx_encodings.cpp",
226 "xfa/cjx_encodings.h",
227 "xfa/cjx_encrypt.cpp",
228 "xfa/cjx_encrypt.h",
229 "xfa/cjx_event.cpp",
230 "xfa/cjx_event.h",
231 "xfa/cjx_eventpseudomodel.cpp",
232 "xfa/cjx_eventpseudomodel.h",
233 "xfa/cjx_exclgroup.cpp",
234 "xfa/cjx_exclgroup.h",
235 "xfa/cjx_exdata.cpp",
236 "xfa/cjx_exdata.h",
237 "xfa/cjx_execute.cpp",
238 "xfa/cjx_execute.h",
239 "xfa/cjx_exobject.cpp",
240 "xfa/cjx_exobject.h",
241 "xfa/cjx_extras.cpp",
242 "xfa/cjx_extras.h",
243 "xfa/cjx_field.cpp",
244 "xfa/cjx_field.h",
245 "xfa/cjx_fill.cpp",
246 "xfa/cjx_fill.h",
247 "xfa/cjx_filter.cpp",
248 "xfa/cjx_filter.h",
249 "xfa/cjx_float.cpp",
250 "xfa/cjx_float.h",
251 "xfa/cjx_font.cpp",
252 "xfa/cjx_font.h",
253 "xfa/cjx_form.cpp",
254 "xfa/cjx_form.h",
255 "xfa/cjx_format.cpp",
256 "xfa/cjx_format.h",
257 "xfa/cjx_handler.cpp",
258 "xfa/cjx_handler.h",
259 "xfa/cjx_hostpseudomodel.cpp",
260 "xfa/cjx_hostpseudomodel.h",
261 "xfa/cjx_image.cpp",
262 "xfa/cjx_image.h",
263 "xfa/cjx_imageedit.cpp",
264 "xfa/cjx_imageedit.h",
265 "xfa/cjx_insert.cpp",
266 "xfa/cjx_insert.h",
267 "xfa/cjx_instancemanager.cpp",
268 "xfa/cjx_instancemanager.h",
269 "xfa/cjx_integer.cpp",
270 "xfa/cjx_integer.h",
271 "xfa/cjx_issuers.cpp",
272 "xfa/cjx_issuers.h",
273 "xfa/cjx_items.cpp",
274 "xfa/cjx_items.h",
275 "xfa/cjx_keep.cpp",
276 "xfa/cjx_keep.h",
277 "xfa/cjx_keyusage.cpp",
278 "xfa/cjx_keyusage.h",
279 "xfa/cjx_layoutpseudomodel.cpp",
280 "xfa/cjx_layoutpseudomodel.h",
281 "xfa/cjx_line.cpp",
282 "xfa/cjx_line.h",
283 "xfa/cjx_linear.cpp",
284 "xfa/cjx_linear.h",
285 "xfa/cjx_list.cpp",
286 "xfa/cjx_list.h",
287 "xfa/cjx_logpseudomodel.cpp",
288 "xfa/cjx_logpseudomodel.h",
289 "xfa/cjx_manifest.cpp",
290 "xfa/cjx_manifest.h",
291 "xfa/cjx_map.cpp",
292 "xfa/cjx_map.h",
293 "xfa/cjx_margin.cpp",
294 "xfa/cjx_margin.h",
295 "xfa/cjx_mdp.cpp",
296 "xfa/cjx_mdp.h",
297 "xfa/cjx_medium.cpp",
298 "xfa/cjx_medium.h",
299 "xfa/cjx_message.cpp",
300 "xfa/cjx_message.h",
301 "xfa/cjx_model.cpp",
302 "xfa/cjx_model.h",
303 "xfa/cjx_node.cpp",
304 "xfa/cjx_node.h",
305 "xfa/cjx_numericedit.cpp",
306 "xfa/cjx_numericedit.h",
307 "xfa/cjx_object.cpp",
308 "xfa/cjx_object.h",
309 "xfa/cjx_occur.cpp",
310 "xfa/cjx_occur.h",
311 "xfa/cjx_oid.cpp",
312 "xfa/cjx_oid.h",
313 "xfa/cjx_oids.cpp",
314 "xfa/cjx_oids.h",
315 "xfa/cjx_operation.cpp",
316 "xfa/cjx_operation.h",
317 "xfa/cjx_overflow.cpp",
318 "xfa/cjx_overflow.h",
319 "xfa/cjx_packet.cpp",
320 "xfa/cjx_packet.h",
321 "xfa/cjx_pagearea.cpp",
322 "xfa/cjx_pagearea.h",
323 "xfa/cjx_pageset.cpp",
324 "xfa/cjx_pageset.h",
325 "xfa/cjx_para.cpp",
326 "xfa/cjx_para.h",
327 "xfa/cjx_password.cpp",
328 "xfa/cjx_password.h",
329 "xfa/cjx_passwordedit.cpp",
330 "xfa/cjx_passwordedit.h",
331 "xfa/cjx_pattern.cpp",
332 "xfa/cjx_pattern.h",
333 "xfa/cjx_picture.cpp",
334 "xfa/cjx_picture.h",
335 "xfa/cjx_query.cpp",
336 "xfa/cjx_query.h",
337 "xfa/cjx_radial.cpp",
338 "xfa/cjx_radial.h",
339 "xfa/cjx_reason.cpp",
340 "xfa/cjx_reason.h",
341 "xfa/cjx_reasons.cpp",
342 "xfa/cjx_reasons.h",
343 "xfa/cjx_recordset.cpp",
344 "xfa/cjx_recordset.h",
345 "xfa/cjx_rectangle.cpp",
346 "xfa/cjx_rectangle.h",
347 "xfa/cjx_ref.cpp",
348 "xfa/cjx_ref.h",
349 "xfa/cjx_rootelement.cpp",
350 "xfa/cjx_rootelement.h",
351 "xfa/cjx_script.cpp",
352 "xfa/cjx_script.h",
353 "xfa/cjx_select.cpp",
354 "xfa/cjx_select.h",
355 "xfa/cjx_setproperty.cpp",
356 "xfa/cjx_setproperty.h",
357 "xfa/cjx_signature.cpp",
358 "xfa/cjx_signature.h",
359 "xfa/cjx_signatureproperties.cpp",
360 "xfa/cjx_signatureproperties.h",
361 "xfa/cjx_signaturepseudomodel.cpp",
362 "xfa/cjx_signaturepseudomodel.h",
363 "xfa/cjx_signdata.cpp",
364 "xfa/cjx_signdata.h",
365 "xfa/cjx_signing.cpp",
366 "xfa/cjx_signing.h",
367 "xfa/cjx_soapaction.cpp",
368 "xfa/cjx_soapaction.h",
369 "xfa/cjx_soapaddress.cpp",
370 "xfa/cjx_soapaddress.h",
371 "xfa/cjx_solid.cpp",
372 "xfa/cjx_solid.h",
373 "xfa/cjx_source.cpp",
374 "xfa/cjx_source.h",
375 "xfa/cjx_sourceset.cpp",
376 "xfa/cjx_sourceset.h",
377 "xfa/cjx_speak.cpp",
378 "xfa/cjx_speak.h",
379 "xfa/cjx_stipple.cpp",
380 "xfa/cjx_stipple.h",
381 "xfa/cjx_subform.cpp",
382 "xfa/cjx_subform.h",
383 "xfa/cjx_subformset.cpp",
384 "xfa/cjx_subformset.h",
385 "xfa/cjx_subjectdn.cpp",
386 "xfa/cjx_subjectdn.h",
387 "xfa/cjx_subjectdns.cpp",
388 "xfa/cjx_subjectdns.h",
389 "xfa/cjx_submit.cpp",
390 "xfa/cjx_submit.h",
391 "xfa/cjx_template.cpp",
392 "xfa/cjx_template.h",
393 "xfa/cjx_text.cpp",
394 "xfa/cjx_text.h",
395 "xfa/cjx_textedit.cpp",
396 "xfa/cjx_textedit.h",
397 "xfa/cjx_textnode.cpp",
398 "xfa/cjx_textnode.h",
399 "xfa/cjx_time.cpp",
400 "xfa/cjx_time.h",
401 "xfa/cjx_timestamp.cpp",
402 "xfa/cjx_timestamp.h",
403 "xfa/cjx_tooltip.cpp",
404 "xfa/cjx_tooltip.h",
405 "xfa/cjx_traversal.cpp",
406 "xfa/cjx_traversal.h",
407 "xfa/cjx_traverse.cpp",
408 "xfa/cjx_traverse.h",
409 "xfa/cjx_tree.cpp",
410 "xfa/cjx_tree.h",
411 "xfa/cjx_treelist.cpp",
412 "xfa/cjx_treelist.h",
413 "xfa/cjx_ui.cpp",
414 "xfa/cjx_ui.h",
415 "xfa/cjx_update.cpp",
416 "xfa/cjx_update.h",
417 "xfa/cjx_uri.cpp",
418 "xfa/cjx_uri.h",
419 "xfa/cjx_user.cpp",
420 "xfa/cjx_user.h",
421 "xfa/cjx_validate.cpp",
422 "xfa/cjx_validate.h",
423 "xfa/cjx_value.cpp",
424 "xfa/cjx_value.h",
425 "xfa/cjx_variables.cpp",
426 "xfa/cjx_variables.h",
427 "xfa/cjx_wsdladdress.cpp",
428 "xfa/cjx_wsdladdress.h",
429 "xfa/cjx_wsdlconnection.cpp",
430 "xfa/cjx_wsdlconnection.h",
431 "xfa/cjx_xfa.cpp",
432 "xfa/cjx_xfa.h",
433 "xfa/cjx_xmlconnection.cpp",
434 "xfa/cjx_xmlconnection.h",
435 "xfa/cjx_xsdconnection.cpp",
436 "xfa/cjx_xsdconnection.h",
437 ]
438 }
439 }
440}