# Copyright 2018 The PDFium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import("//build/config/jumbo.gni") import("../../../pdfium.gni") import("../../../testing/test.gni") assert(pdf_enable_xfa) jumbo_source_set("parser") { sources = [ "cscript_datawindow.cpp", "cscript_datawindow.h", "cscript_eventpseudomodel.cpp", "cscript_eventpseudomodel.h", "cscript_hostpseudomodel.cpp", "cscript_hostpseudomodel.h", "cscript_layoutpseudomodel.cpp", "cscript_layoutpseudomodel.h", "cscript_logpseudomodel.cpp", "cscript_logpseudomodel.h", "cscript_signaturepseudomodel.cpp", "cscript_signaturepseudomodel.h", "cxfa_accessiblecontent.cpp", "cxfa_accessiblecontent.h", "cxfa_acrobat.cpp", "cxfa_acrobat.h", "cxfa_acrobat7.cpp", "cxfa_acrobat7.h", "cxfa_adbe_jsconsole.cpp", "cxfa_adbe_jsconsole.h", "cxfa_adbe_jsdebugger.cpp", "cxfa_adbe_jsdebugger.h", "cxfa_addsilentprint.cpp", "cxfa_addsilentprint.h", "cxfa_addviewerpreferences.cpp", "cxfa_addviewerpreferences.h", "cxfa_adjustdata.cpp", "cxfa_adjustdata.h", "cxfa_adobeextensionlevel.cpp", "cxfa_adobeextensionlevel.h", "cxfa_agent.cpp", "cxfa_agent.h", "cxfa_alwaysembed.cpp", "cxfa_alwaysembed.h", "cxfa_amd.cpp", "cxfa_amd.h", "cxfa_appearancefilter.cpp", "cxfa_appearancefilter.h", "cxfa_arc.cpp", "cxfa_arc.h", "cxfa_area.cpp", "cxfa_area.h", "cxfa_arraynodelist.cpp", "cxfa_arraynodelist.h", "cxfa_assist.cpp", "cxfa_assist.h", "cxfa_attachnodelist.cpp", "cxfa_attachnodelist.h", "cxfa_attributes.cpp", "cxfa_attributes.h", "cxfa_autosave.cpp", "cxfa_autosave.h", "cxfa_barcode.cpp", "cxfa_barcode.h", "cxfa_base.cpp", "cxfa_base.h", "cxfa_batchoutput.cpp", "cxfa_batchoutput.h", "cxfa_behavioroverride.cpp", "cxfa_behavioroverride.h", "cxfa_bind.cpp", "cxfa_bind.h", "cxfa_binditems.cpp", "cxfa_binditems.h", "cxfa_bookend.cpp", "cxfa_bookend.h", "cxfa_boolean.cpp", "cxfa_boolean.h", "cxfa_border.cpp", "cxfa_border.h", "cxfa_box.cpp", "cxfa_box.h", "cxfa_break.cpp", "cxfa_break.h", "cxfa_breakafter.cpp", "cxfa_breakafter.h", "cxfa_breakbefore.cpp", "cxfa_breakbefore.h", "cxfa_button.cpp", "cxfa_button.h", "cxfa_cache.cpp", "cxfa_cache.h", "cxfa_calculate.cpp", "cxfa_calculate.h", "cxfa_calendarsymbols.cpp", "cxfa_calendarsymbols.h", "cxfa_caption.cpp", "cxfa_caption.h", "cxfa_certificate.cpp", "cxfa_certificate.h", "cxfa_certificates.cpp", "cxfa_certificates.h", "cxfa_change.cpp", "cxfa_change.h", "cxfa_checkbutton.cpp", "cxfa_checkbutton.h", "cxfa_choicelist.cpp", "cxfa_choicelist.h", "cxfa_color.cpp", "cxfa_color.h", "cxfa_comb.cpp", "cxfa_comb.h", "cxfa_command.cpp", "cxfa_command.h", "cxfa_common.cpp", "cxfa_common.h", "cxfa_compress.cpp", "cxfa_compress.h", "cxfa_compression.cpp", "cxfa_compression.h", "cxfa_compresslogicalstructure.cpp", "cxfa_compresslogicalstructure.h", "cxfa_compressobjectstream.cpp", "cxfa_compressobjectstream.h", "cxfa_config.cpp", "cxfa_config.h", "cxfa_conformance.cpp", "cxfa_conformance.h", "cxfa_connect.cpp", "cxfa_connect.h", "cxfa_connectionset.cpp", "cxfa_connectionset.h", "cxfa_connectstring.cpp", "cxfa_connectstring.h", "cxfa_containerlayoutitem.cpp", "cxfa_containerlayoutitem.h", "cxfa_contentarea.cpp", "cxfa_contentarea.h", "cxfa_contentcopy.cpp", "cxfa_contentcopy.h", "cxfa_contentlayoutitem.cpp", "cxfa_contentlayoutitem.h", "cxfa_copies.cpp", "cxfa_copies.h", "cxfa_corner.cpp", "cxfa_corner.h", "cxfa_creator.cpp", "cxfa_creator.h", "cxfa_currencysymbol.cpp", "cxfa_currencysymbol.h", "cxfa_currencysymbols.cpp", "cxfa_currencysymbols.h", "cxfa_currentpage.cpp", "cxfa_currentpage.h", "cxfa_data.cpp", "cxfa_data.h", "cxfa_dataexporter.cpp", "cxfa_dataexporter.h", "cxfa_datagroup.cpp", "cxfa_datagroup.h", "cxfa_datamodel.cpp", "cxfa_datamodel.h", "cxfa_datavalue.cpp", "cxfa_datavalue.h", "cxfa_date.cpp", "cxfa_date.h", "cxfa_datepattern.cpp", "cxfa_datepattern.h", "cxfa_datepatterns.cpp", "cxfa_datepatterns.h", "cxfa_datetime.cpp", "cxfa_datetime.h", "cxfa_datetimeedit.cpp", "cxfa_datetimeedit.h", "cxfa_datetimesymbols.cpp", "cxfa_datetimesymbols.h", "cxfa_day.cpp", "cxfa_day.h", "cxfa_daynames.cpp", "cxfa_daynames.h", "cxfa_debug.cpp", "cxfa_debug.h", "cxfa_decimal.cpp", "cxfa_decimal.h", "cxfa_defaulttypeface.cpp", "cxfa_defaulttypeface.h", "cxfa_defaultui.cpp", "cxfa_defaultui.h", "cxfa_delete.cpp", "cxfa_delete.h", "cxfa_delta.cpp", "cxfa_delta.h", "cxfa_deltas.cpp", "cxfa_deltas.h", "cxfa_desc.cpp", "cxfa_desc.h", "cxfa_destination.cpp", "cxfa_destination.h", "cxfa_digestmethod.cpp", "cxfa_digestmethod.h", "cxfa_digestmethods.cpp", "cxfa_digestmethods.h", "cxfa_document.cpp", "cxfa_document.h", "cxfa_document_parser.cpp", "cxfa_document_parser.h", "cxfa_documentassembly.cpp", "cxfa_documentassembly.h", "cxfa_draw.cpp", "cxfa_draw.h", "cxfa_driver.cpp", "cxfa_driver.h", "cxfa_dsigdata.cpp", "cxfa_dsigdata.h", "cxfa_duplexoption.cpp", "cxfa_duplexoption.h", "cxfa_dynamicrender.cpp", "cxfa_dynamicrender.h", "cxfa_edge.cpp", "cxfa_edge.h", "cxfa_effectiveinputpolicy.cpp", "cxfa_effectiveinputpolicy.h", "cxfa_effectiveoutputpolicy.cpp", "cxfa_effectiveoutputpolicy.h", "cxfa_embed.cpp", "cxfa_embed.h", "cxfa_encoding.cpp", "cxfa_encoding.h", "cxfa_encodings.cpp", "cxfa_encodings.h", "cxfa_encrypt.cpp", "cxfa_encrypt.h", "cxfa_encryption.cpp", "cxfa_encryption.h", "cxfa_encryptionlevel.cpp", "cxfa_encryptionlevel.h", "cxfa_encryptionmethod.cpp", "cxfa_encryptionmethod.h", "cxfa_encryptionmethods.cpp", "cxfa_encryptionmethods.h", "cxfa_enforce.cpp", "cxfa_enforce.h", "cxfa_equate.cpp", "cxfa_equate.h", "cxfa_equaterange.cpp", "cxfa_equaterange.h", "cxfa_era.cpp", "cxfa_era.h", "cxfa_eranames.cpp", "cxfa_eranames.h", "cxfa_event.cpp", "cxfa_event.h", "cxfa_exclgroup.cpp", "cxfa_exclgroup.h", "cxfa_exclude.cpp", "cxfa_exclude.h", "cxfa_excludens.cpp", "cxfa_excludens.h", "cxfa_exdata.cpp", "cxfa_exdata.h", "cxfa_execute.cpp", "cxfa_execute.h", "cxfa_exobject.cpp", "cxfa_exobject.h", "cxfa_extras.cpp", "cxfa_extras.h", "cxfa_field.cpp", "cxfa_field.h", "cxfa_fill.cpp", "cxfa_fill.h", "cxfa_filter.cpp", "cxfa_filter.h", "cxfa_fliplabel.cpp", "cxfa_fliplabel.h", "cxfa_float.cpp", "cxfa_float.h", "cxfa_font.cpp", "cxfa_font.h", "cxfa_fontinfo.cpp", "cxfa_fontinfo.h", "cxfa_form.cpp", "cxfa_form.h", "cxfa_format.cpp", "cxfa_format.h", "cxfa_formfieldfilling.cpp", "cxfa_formfieldfilling.h", "cxfa_groupparent.cpp", "cxfa_groupparent.h", "cxfa_handler.cpp", "cxfa_handler.h", "cxfa_hyphenation.cpp", "cxfa_hyphenation.h", "cxfa_ifempty.cpp", "cxfa_ifempty.h", "cxfa_image.cpp", "cxfa_image.h", "cxfa_imageedit.cpp", "cxfa_imageedit.h", "cxfa_includexdpcontent.cpp", "cxfa_includexdpcontent.h", "cxfa_incrementalload.cpp", "cxfa_incrementalload.h", "cxfa_incrementalmerge.cpp", "cxfa_incrementalmerge.h", "cxfa_insert.cpp", "cxfa_insert.h", "cxfa_instancemanager.cpp", "cxfa_instancemanager.h", "cxfa_integer.cpp", "cxfa_integer.h", "cxfa_interactive.cpp", "cxfa_interactive.h", "cxfa_issuers.cpp", "cxfa_issuers.h", "cxfa_itemlayoutprocessor.cpp", "cxfa_itemlayoutprocessor.h", "cxfa_items.cpp", "cxfa_items.h", "cxfa_jog.cpp", "cxfa_jog.h", "cxfa_keep.cpp", "cxfa_keep.h", "cxfa_keyusage.cpp", "cxfa_keyusage.h", "cxfa_labelprinter.cpp", "cxfa_labelprinter.h", "cxfa_layout.cpp", "cxfa_layout.h", "cxfa_layoutcontext.cpp", "cxfa_layoutcontext.h", "cxfa_layoutitem.cpp", "cxfa_layoutitem.h", "cxfa_layoutpagemgr.cpp", "cxfa_layoutpagemgr.h", "cxfa_layoutprocessor.cpp", "cxfa_layoutprocessor.h", "cxfa_level.cpp", "cxfa_level.h", "cxfa_line.cpp", "cxfa_line.h", "cxfa_linear.cpp", "cxfa_linear.h", "cxfa_linearized.cpp", "cxfa_linearized.h", "cxfa_list.cpp", "cxfa_list.h", "cxfa_locale.cpp", "cxfa_locale.h", "cxfa_localemgr.cpp", "cxfa_localemgr.h", "cxfa_localeset.cpp", "cxfa_localeset.h", "cxfa_localevalue.cpp", "cxfa_localevalue.h", "cxfa_lockdocument.cpp", "cxfa_lockdocument.h", "cxfa_log.cpp", "cxfa_log.h", "cxfa_manifest.cpp", "cxfa_manifest.h", "cxfa_map.cpp", "cxfa_map.h", "cxfa_margin.cpp", "cxfa_margin.h", "cxfa_mdp.cpp", "cxfa_mdp.h", "cxfa_measurement.cpp", "cxfa_measurement.h", "cxfa_medium.cpp", "cxfa_medium.h", "cxfa_mediuminfo.cpp", "cxfa_mediuminfo.h", "cxfa_meridiem.cpp", "cxfa_meridiem.h", "cxfa_meridiemnames.cpp", "cxfa_meridiemnames.h", "cxfa_message.cpp", "cxfa_message.h", "cxfa_messaging.cpp", "cxfa_messaging.h", "cxfa_mode.cpp", "cxfa_mode.h", "cxfa_modifyannots.cpp", "cxfa_modifyannots.h", "cxfa_month.cpp", "cxfa_month.h", "cxfa_monthnames.cpp", "cxfa_monthnames.h", "cxfa_msgid.cpp", "cxfa_msgid.h", "cxfa_nameattr.cpp", "cxfa_nameattr.h", "cxfa_neverembed.cpp", "cxfa_neverembed.h", "cxfa_node.cpp", "cxfa_node.h", "cxfa_node_statics.cpp", "cxfa_nodehelper.cpp", "cxfa_nodehelper.h", "cxfa_nodeiteratortemplate.h", "cxfa_nodelocale.cpp", "cxfa_nodelocale.h", "cxfa_nodeowner.cpp", "cxfa_nodeowner.h", "cxfa_numberofcopies.cpp", "cxfa_numberofcopies.h", "cxfa_numberpattern.cpp", "cxfa_numberpattern.h", "cxfa_numberpatterns.cpp", "cxfa_numberpatterns.h", "cxfa_numbersymbol.cpp", "cxfa_numbersymbol.h", "cxfa_numbersymbols.cpp", "cxfa_numbersymbols.h", "cxfa_numericedit.cpp", "cxfa_numericedit.h", "cxfa_object.cpp", "cxfa_object.h", "cxfa_occur.cpp", "cxfa_occur.h", "cxfa_oid.cpp", "cxfa_oid.h", "cxfa_oids.cpp", "cxfa_oids.h", "cxfa_openaction.cpp", "cxfa_openaction.h", "cxfa_operation.cpp", "cxfa_operation.h", "cxfa_output.cpp", "cxfa_output.h", "cxfa_outputbin.cpp", "cxfa_outputbin.h", "cxfa_outputxsl.cpp", "cxfa_outputxsl.h", "cxfa_overflow.cpp", "cxfa_overflow.h", "cxfa_overprint.cpp", "cxfa_overprint.h", "cxfa_packet.cpp", "cxfa_packet.h", "cxfa_packets.cpp", "cxfa_packets.h", "cxfa_pagearea.cpp", "cxfa_pagearea.h", "cxfa_pageoffset.cpp", "cxfa_pageoffset.h", "cxfa_pagerange.cpp", "cxfa_pagerange.h", "cxfa_pageset.cpp", "cxfa_pageset.h", "cxfa_pagination.cpp", "cxfa_pagination.h", "cxfa_paginationoverride.cpp", "cxfa_paginationoverride.h", "cxfa_para.cpp", "cxfa_para.h", "cxfa_part.cpp", "cxfa_part.h", "cxfa_password.cpp", "cxfa_password.h", "cxfa_passwordedit.cpp", "cxfa_passwordedit.h", "cxfa_pattern.cpp", "cxfa_pattern.h", "cxfa_pcl.cpp", "cxfa_pcl.h", "cxfa_pdf.cpp", "cxfa_pdf.h", "cxfa_pdfa.cpp", "cxfa_pdfa.h", "cxfa_permissions.cpp", "cxfa_permissions.h", "cxfa_picktraybypdfsize.cpp", "cxfa_picktraybypdfsize.h", "cxfa_picture.cpp", "cxfa_picture.h", "cxfa_plaintextmetadata.cpp", "cxfa_plaintextmetadata.h", "cxfa_presence.cpp", "cxfa_presence.h", "cxfa_present.cpp", "cxfa_present.h", "cxfa_print.cpp", "cxfa_print.h", "cxfa_printername.cpp", "cxfa_printername.h", "cxfa_printhighquality.cpp", "cxfa_printhighquality.h", "cxfa_printscaling.cpp", "cxfa_printscaling.h", "cxfa_producer.cpp", "cxfa_producer.h", "cxfa_proto.cpp", "cxfa_proto.h", "cxfa_ps.cpp", "cxfa_ps.h", "cxfa_psmap.cpp", "cxfa_psmap.h", "cxfa_query.cpp", "cxfa_query.h", "cxfa_radial.cpp", "cxfa_radial.h", "cxfa_range.cpp", "cxfa_range.h", "cxfa_reason.cpp", "cxfa_reason.h", "cxfa_reasons.cpp", "cxfa_reasons.h", "cxfa_record.cpp", "cxfa_record.h", "cxfa_recordset.cpp", "cxfa_recordset.h", "cxfa_rectangle.cpp", "cxfa_rectangle.h", "cxfa_ref.cpp", "cxfa_ref.h", "cxfa_relevant.cpp", "cxfa_relevant.h", "cxfa_rename.cpp", "cxfa_rename.h", "cxfa_renderpolicy.cpp", "cxfa_renderpolicy.h", "cxfa_rootelement.cpp", "cxfa_rootelement.h", "cxfa_runscripts.cpp", "cxfa_runscripts.h", "cxfa_script.cpp", "cxfa_script.h", "cxfa_scriptmodel.cpp", "cxfa_scriptmodel.h", "cxfa_select.cpp", "cxfa_select.h", "cxfa_setproperty.cpp", "cxfa_setproperty.h", "cxfa_severity.cpp", "cxfa_severity.h", "cxfa_sharptext.cpp", "cxfa_sharptext.h", "cxfa_sharpxhtml.cpp", "cxfa_sharpxhtml.h", "cxfa_sharpxml.cpp", "cxfa_sharpxml.h", "cxfa_signature.cpp", "cxfa_signature.h", "cxfa_signatureproperties.cpp", "cxfa_signatureproperties.h", "cxfa_signdata.cpp", "cxfa_signdata.h", "cxfa_signing.cpp", "cxfa_signing.h", "cxfa_silentprint.cpp", "cxfa_silentprint.h", "cxfa_soapaction.cpp", "cxfa_soapaction.h", "cxfa_soapaddress.cpp", "cxfa_soapaddress.h", "cxfa_solid.cpp", "cxfa_solid.h", "cxfa_source.cpp", "cxfa_source.h", "cxfa_sourceset.cpp", "cxfa_sourceset.h", "cxfa_speak.cpp", "cxfa_speak.h", "cxfa_staple.cpp", "cxfa_staple.h", "cxfa_startnode.cpp", "cxfa_startnode.h", "cxfa_startpage.cpp", "cxfa_startpage.h", "cxfa_stipple.cpp", "cxfa_stipple.h", "cxfa_stroke.cpp", "cxfa_stroke.h", "cxfa_subform.cpp", "cxfa_subform.h", "cxfa_subformset.cpp", "cxfa_subformset.h", "cxfa_subjectdn.cpp", "cxfa_subjectdn.h", "cxfa_subjectdns.cpp", "cxfa_subjectdns.h", "cxfa_submit.cpp", "cxfa_submit.h", "cxfa_submitformat.cpp", "cxfa_submitformat.h", "cxfa_submiturl.cpp", "cxfa_submiturl.h", "cxfa_subsetbelow.cpp", "cxfa_subsetbelow.h", "cxfa_suppressbanner.cpp", "cxfa_suppressbanner.h", "cxfa_tagged.cpp", "cxfa_tagged.h", "cxfa_template.cpp", "cxfa_template.h", "cxfa_templatecache.cpp", "cxfa_templatecache.h", "cxfa_text.cpp", "cxfa_text.h", "cxfa_textedit.cpp", "cxfa_textedit.h", "cxfa_thisproxy.cpp", "cxfa_thisproxy.h", "cxfa_threshold.cpp", "cxfa_threshold.h", "cxfa_time.cpp", "cxfa_time.h", "cxfa_timepattern.cpp", "cxfa_timepattern.h", "cxfa_timepatterns.cpp", "cxfa_timepatterns.h", "cxfa_timestamp.cpp", "cxfa_timestamp.h", "cxfa_timezoneprovider.cpp", "cxfa_timezoneprovider.h", "cxfa_to.cpp", "cxfa_to.h", "cxfa_tooltip.cpp", "cxfa_tooltip.h", "cxfa_trace.cpp", "cxfa_trace.h", "cxfa_transform.cpp", "cxfa_transform.h", "cxfa_traversal.cpp", "cxfa_traversal.h", "cxfa_traverse.cpp", "cxfa_traverse.h", "cxfa_traversestrategy_contentareacontainerlayoutitem.h", "cxfa_traversestrategy_layoutitem.h", "cxfa_traversestrategy_xfacontainernode.h", "cxfa_traversestrategy_xfanode.h", "cxfa_treelist.cpp", "cxfa_treelist.h", "cxfa_type.cpp", "cxfa_type.h", "cxfa_typeface.cpp", "cxfa_typeface.h", "cxfa_typefaces.cpp", "cxfa_typefaces.h", "cxfa_ui.cpp", "cxfa_ui.h", "cxfa_update.cpp", "cxfa_update.h", "cxfa_uri.cpp", "cxfa_uri.h", "cxfa_user.cpp", "cxfa_user.h", "cxfa_validate.cpp", "cxfa_validate.h", "cxfa_validateapprovalsignatures.cpp", "cxfa_validateapprovalsignatures.h", "cxfa_validationmessaging.cpp", "cxfa_validationmessaging.h", "cxfa_value.cpp", "cxfa_value.h", "cxfa_variables.cpp", "cxfa_variables.h", "cxfa_version.cpp", "cxfa_version.h", "cxfa_versioncontrol.cpp", "cxfa_versioncontrol.h", "cxfa_viewerpreferences.cpp", "cxfa_viewerpreferences.h", "cxfa_webclient.cpp", "cxfa_webclient.h", "cxfa_whitespace.cpp", "cxfa_whitespace.h", "cxfa_window.cpp", "cxfa_window.h", "cxfa_wsdladdress.cpp", "cxfa_wsdladdress.h", "cxfa_wsdlconnection.cpp", "cxfa_wsdlconnection.h", "cxfa_xdc.cpp", "cxfa_xdc.h", "cxfa_xdp.cpp", "cxfa_xdp.h", "cxfa_xfa.cpp", "cxfa_xfa.h", "cxfa_xmlconnection.cpp", "cxfa_xmlconnection.h", "cxfa_xmllocale.cpp", "cxfa_xmllocale.h", "cxfa_xsdconnection.cpp", "cxfa_xsdconnection.h", "cxfa_xsl.cpp", "cxfa_xsl.h", "cxfa_zpl.cpp", "cxfa_zpl.h", "xfa_basic_data.h", "xfa_basic_data_element_script.cpp", "xfa_basic_data_enum.cpp", "xfa_document_datamerger_imp.cpp", "xfa_document_datamerger_imp.h", "xfa_resolvenode_rs.h", "xfa_utils.cpp", "xfa_utils.h", ] deps = [ "../../../core/fpdfapi", "../../../core/fxcodec", "../../../core/fxcrt", "../../../core/fxge", "../../../fxbarcode", "../../../fxjs", "../../fde", "../../fgas", "../../fxgraphics", ] allow_circular_includes_from = [ "../../fgas", "../../../fxjs", ] configs += [ "../../../:pdfium_core_config", "../../:xfa_warnings", ] visibility = [ "../../../*" ] } pdfium_unittest_source_set("unittests") { sources = [ "cxfa_document_parser_unittest.cpp", "cxfa_localevalue_unittest.cpp", "cxfa_node_unittest.cpp", "cxfa_nodeiteratortemplate_unittest.cpp", "cxfa_xmllocale_unittest.cpp", "xfa_utils_unittest.cpp", ] deps = [ ":parser", ] pdfium_root_dir = "../../../" } pdfium_embeddertest_source_set("embeddertests") { sources = [ "cxfa_document_parser_embeddertest.cpp", ] pdfium_root_dir = "../../../" }