# Copyright 2016 The Chromium 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/freetype/freetype.gni")
import("//build/config/jumbo.gni")
import("//testing/test.gni")
import("pdfium.gni")

group("freetype_common") {
  public_deps = []
  if (pdf_bundle_freetype) {
    public_deps += [ "third_party:fx_freetype" ]
  } else {
    public_deps += [ "//build/config/freetype" ]
  }
}

config("pdfium_common_config") {
  cflags = []
  ldflags = []
  include_dirs = [ "." ]
  defines = [
    "OPJ_STATIC",
    "PNG_PREFIX",
    "PNG_USE_READ_MACROS",
  ]

  if (pdf_enable_v8) {
    defines += [ "PDF_ENABLE_V8" ]
  }

  if (pdf_enable_xfa) {
    defines += [ "PDF_ENABLE_XFA" ]
    if (pdf_enable_xfa_bmp) {
      defines += [ "PDF_ENABLE_XFA_BMP" ]
    }
    if (pdf_enable_xfa_gif) {
      defines += [ "PDF_ENABLE_XFA_GIF" ]
    }
    if (pdf_enable_xfa_png) {
      defines += [ "PDF_ENABLE_XFA_PNG" ]
    }
    if (pdf_enable_xfa_tiff) {
      defines += [ "PDF_ENABLE_XFA_TIFF" ]
    }
  }

  if (pdf_use_skia) {
    defines += [ "_SKIA_SUPPORT_" ]
  }

  if (pdf_use_skia_paths) {
    defines += [ "_SKIA_SUPPORT_PATHS_" ]
  }

  if (pdf_use_win32_gdi) {
    defines += [ "PDFIUM_PRINT_TEXT_WITH_GDI" ]
  }

  if (use_coverage && is_clang) {
    cflags += [
      "--coverage",
      "-g",
      "-O0",
    ]
    ldflags += [ "--coverage" ]
  }

  if (is_win) {
    # Assume UTF-8 by default to avoid code page dependencies.
    cflags += [ "/utf-8" ]
  }
  if (is_clang) {
    # TODO(thakis): Consider enabling this, https://crbug.com/807632
    cflags += [ "-Wno-implicit-fallthrough" ]
  }
}

config("pdfium_core_config") {
  cflags = []
  configs = [ ":pdfium_common_config" ]
  defines = [ "V8_DEPRECATION_WARNINGS" ]
  if (is_linux) {
    if (current_cpu == "x64") {
      defines += [ "_FX_CPU_=_FX_X64_" ]
      cflags += [ "-fPIC" ]
    } else if (current_cpu == "x86") {
      defines += [ "_FX_CPU_=_FX_X86_" ]
    }
  }
  if (is_win) {
    cflags += [
      "/wd4267",
      "/wd4324",
      "/wd4577",
    ]
  }
}

config("xfa_warnings") {
  visibility = [ ":*" ]
  if (is_posix && !is_clang) {  # When GCC.
    cflags = [ "-Wno-strict-overflow" ]
  }
}

jumbo_static_library("pdfium") {
  sources = [
    "fpdfsdk/cba_annotiterator.cpp",
    "fpdfsdk/cba_annotiterator.h",
    "fpdfsdk/cfx_systemhandler.cpp",
    "fpdfsdk/cfx_systemhandler.h",
    "fpdfsdk/cpdfsdk_annot.cpp",
    "fpdfsdk/cpdfsdk_annot.h",
    "fpdfsdk/cpdfsdk_annothandlermgr.cpp",
    "fpdfsdk/cpdfsdk_annothandlermgr.h",
    "fpdfsdk/cpdfsdk_annotiteration.cpp",
    "fpdfsdk/cpdfsdk_annotiteration.h",
    "fpdfsdk/cpdfsdk_baannot.cpp",
    "fpdfsdk/cpdfsdk_baannot.h",
    "fpdfsdk/cpdfsdk_baannothandler.cpp",
    "fpdfsdk/cpdfsdk_baannothandler.h",
    "fpdfsdk/cpdfsdk_datetime.cpp",
    "fpdfsdk/cpdfsdk_datetime.h",
    "fpdfsdk/cpdfsdk_formfillenvironment.cpp",
    "fpdfsdk/cpdfsdk_formfillenvironment.h",
    "fpdfsdk/cpdfsdk_interform.cpp",
    "fpdfsdk/cpdfsdk_interform.h",
    "fpdfsdk/cpdfsdk_pageview.cpp",
    "fpdfsdk/cpdfsdk_pageview.h",
    "fpdfsdk/cpdfsdk_widget.cpp",
    "fpdfsdk/cpdfsdk_widget.h",
    "fpdfsdk/cpdfsdk_widgethandler.cpp",
    "fpdfsdk/cpdfsdk_widgethandler.h",
    "fpdfsdk/fpdf_dataavail.cpp",
    "fpdfsdk/fpdf_ext.cpp",
    "fpdfsdk/fpdf_flatten.cpp",
    "fpdfsdk/fpdf_ppo.cpp",
    "fpdfsdk/fpdf_progressive.cpp",
    "fpdfsdk/fpdf_searchex.cpp",
    "fpdfsdk/fpdf_structtree.cpp",
    "fpdfsdk/fpdf_sysfontinfo.cpp",
    "fpdfsdk/fpdf_transformpage.cpp",
    "fpdfsdk/fpdfannot.cpp",
    "fpdfsdk/fpdfattachment.cpp",
    "fpdfsdk/fpdfcatalog.cpp",
    "fpdfsdk/fpdfdoc.cpp",
    "fpdfsdk/fpdfeditimg.cpp",
    "fpdfsdk/fpdfeditpage.cpp",
    "fpdfsdk/fpdfeditpath.cpp",
    "fpdfsdk/fpdfedittext.cpp",
    "fpdfsdk/fpdfformfill.cpp",
    "fpdfsdk/fpdfsave.cpp",
    "fpdfsdk/fpdftext.cpp",
    "fpdfsdk/fpdfview.cpp",
    "fpdfsdk/fsdk_actionhandler.cpp",
    "fpdfsdk/fsdk_actionhandler.h",
    "fpdfsdk/fsdk_filewriteadapter.cpp",
    "fpdfsdk/fsdk_filewriteadapter.h",
    "fpdfsdk/fsdk_pauseadapter.cpp",
    "fpdfsdk/fsdk_pauseadapter.h",
    "fpdfsdk/pdfsdk_fieldaction.cpp",
    "fpdfsdk/pdfsdk_fieldaction.h",
    "public/cpp/fpdf_deleters.h",
    "public/fpdf_annot.h",
    "public/fpdf_attachment.h",
    "public/fpdf_catalog.h",
    "public/fpdf_dataavail.h",
    "public/fpdf_doc.h",
    "public/fpdf_edit.h",
    "public/fpdf_ext.h",
    "public/fpdf_flatten.h",
    "public/fpdf_formfill.h",
    "public/fpdf_fwlevent.h",
    "public/fpdf_ppo.h",
    "public/fpdf_progressive.h",
    "public/fpdf_save.h",
    "public/fpdf_searchex.h",
    "public/fpdf_structtree.h",
    "public/fpdf_sysfontinfo.h",
    "public/fpdf_text.h",
    "public/fpdf_transformpage.h",
    "public/fpdfview.h",
  ]

  libs = []
  configs += [ ":pdfium_core_config" ]

  deps = [
    ":fdrm",
    ":formfiller",
    ":fpdfapi",
    ":fpdfdoc",
    ":fpdftext",
    ":fxcodec",
    ":fxcrt",
    ":fxge",
    ":fxjs",
    ":pwl",
    "third_party:bigint",
    "third_party:pdfium_base",
  ]

  public_deps = [
    ":fxcrt",
  ]
  if (pdf_enable_xfa) {
    sources += [
      "fpdfsdk/cpdfsdk_xfawidget.cpp",
      "fpdfsdk/cpdfsdk_xfawidget.h",
      "fpdfsdk/cpdfsdk_xfawidgethandler.cpp",
      "fpdfsdk/cpdfsdk_xfawidgethandler.h",
    ]

    deps += [ ":fpdfxfa" ]
  }

  if (is_win) {
    libs += [
      "advapi32.lib",
      "gdi32.lib",
      "user32.lib",
    ]
  }

  if (is_mac) {
    libs += [
      "AppKit.framework",
      "CoreFoundation.framework",
    ]
  }

  if (pdf_is_complete_lib) {
    complete_static_lib = true
  }
}

jumbo_static_library("test_support") {
  testonly = true
  sources = [
    "testing/fx_string_testhelpers.cpp",
    "testing/fx_string_testhelpers.h",
    "testing/test_support.cpp",
    "testing/test_support.h",
    "testing/utils/path_service.cpp",
    "testing/utils/path_service.h",
  ]
  data = [
    "testing/resources/",
  ]
  deps = [
    ":pdfium",
    "//testing/gmock",
    "//testing/gtest",
  ]
  include_dirs = []
  if (pdf_enable_v8) {
    deps += [
      "//v8",
      "//v8:v8_libplatform",
    ]
    include_dirs += [
      "//v8",
      "//v8/include",
    ]
    configs += [ "//v8:external_startup_data" ]
  }
  configs += [ ":pdfium_core_config" ]
}

jumbo_static_library("image_diff") {
  testonly = true
  sources = [
    "testing/image_diff/image_diff_png.cpp",
    "testing/image_diff/image_diff_png.h",
  ]
  configs += [ ":pdfium_core_config" ]
  deps = []
  if (!pdf_enable_xfa) {
    deps += [ "third_party:png" ]
  }
}

# Targets below this are only visible within this file (and to the
# top-level gn_visibility target used to help gn_all build everything).
visibility = [
  ":*",
  "//:gn_visibility",
]

jumbo_static_library("fdrm") {
  sources = [
    "core/fdrm/crypto/fx_crypt.cpp",
    "core/fdrm/crypto/fx_crypt.h",
    "core/fdrm/crypto/fx_crypt_aes.cpp",
    "core/fdrm/crypto/fx_crypt_sha.cpp",
  ]
  configs += [ ":pdfium_core_config" ]
  deps = [
    ":fxcrt",
  ]
}

jumbo_static_library("fpdfdoc") {
  sources = [
    "core/fpdfdoc/cline.cpp",
    "core/fpdfdoc/cline.h",
    "core/fpdfdoc/cpdf_aaction.cpp",
    "core/fpdfdoc/cpdf_aaction.h",
    "core/fpdfdoc/cpdf_action.cpp",
    "core/fpdfdoc/cpdf_action.h",
    "core/fpdfdoc/cpdf_actionfields.cpp",
    "core/fpdfdoc/cpdf_actionfields.h",
    "core/fpdfdoc/cpdf_annot.cpp",
    "core/fpdfdoc/cpdf_annot.h",
    "core/fpdfdoc/cpdf_annotlist.cpp",
    "core/fpdfdoc/cpdf_annotlist.h",
    "core/fpdfdoc/cpdf_apsettings.cpp",
    "core/fpdfdoc/cpdf_apsettings.h",
    "core/fpdfdoc/cpdf_bookmark.cpp",
    "core/fpdfdoc/cpdf_bookmark.h",
    "core/fpdfdoc/cpdf_bookmarktree.cpp",
    "core/fpdfdoc/cpdf_bookmarktree.h",
    "core/fpdfdoc/cpdf_defaultappearance.cpp",
    "core/fpdfdoc/cpdf_defaultappearance.h",
    "core/fpdfdoc/cpdf_dest.cpp",
    "core/fpdfdoc/cpdf_dest.h",
    "core/fpdfdoc/cpdf_docjsactions.cpp",
    "core/fpdfdoc/cpdf_docjsactions.h",
    "core/fpdfdoc/cpdf_filespec.cpp",
    "core/fpdfdoc/cpdf_filespec.h",
    "core/fpdfdoc/cpdf_formcontrol.cpp",
    "core/fpdfdoc/cpdf_formcontrol.h",
    "core/fpdfdoc/cpdf_formfield.cpp",
    "core/fpdfdoc/cpdf_formfield.h",
    "core/fpdfdoc/cpdf_iconfit.cpp",
    "core/fpdfdoc/cpdf_iconfit.h",
    "core/fpdfdoc/cpdf_interform.cpp",
    "core/fpdfdoc/cpdf_interform.h",
    "core/fpdfdoc/cpdf_link.cpp",
    "core/fpdfdoc/cpdf_link.h",
    "core/fpdfdoc/cpdf_linklist.cpp",
    "core/fpdfdoc/cpdf_linklist.h",
    "core/fpdfdoc/cpdf_metadata.cpp",
    "core/fpdfdoc/cpdf_metadata.h",
    "core/fpdfdoc/cpdf_nametree.cpp",
    "core/fpdfdoc/cpdf_nametree.h",
    "core/fpdfdoc/cpdf_numbertree.cpp",
    "core/fpdfdoc/cpdf_numbertree.h",
    "core/fpdfdoc/cpdf_occontext.cpp",
    "core/fpdfdoc/cpdf_occontext.h",
    "core/fpdfdoc/cpdf_pagelabel.cpp",
    "core/fpdfdoc/cpdf_pagelabel.h",
    "core/fpdfdoc/cpdf_structelement.cpp",
    "core/fpdfdoc/cpdf_structelement.h",
    "core/fpdfdoc/cpdf_structtree.cpp",
    "core/fpdfdoc/cpdf_structtree.h",
    "core/fpdfdoc/cpdf_variabletext.cpp",
    "core/fpdfdoc/cpdf_variabletext.h",
    "core/fpdfdoc/cpdf_viewerpreferences.cpp",
    "core/fpdfdoc/cpdf_viewerpreferences.h",
    "core/fpdfdoc/cpvt_floatrect.h",
    "core/fpdfdoc/cpvt_fontmap.cpp",
    "core/fpdfdoc/cpvt_fontmap.h",
    "core/fpdfdoc/cpvt_generateap.cpp",
    "core/fpdfdoc/cpvt_generateap.h",
    "core/fpdfdoc/cpvt_line.h",
    "core/fpdfdoc/cpvt_lineinfo.h",
    "core/fpdfdoc/cpvt_word.h",
    "core/fpdfdoc/cpvt_wordinfo.cpp",
    "core/fpdfdoc/cpvt_wordinfo.h",
    "core/fpdfdoc/cpvt_wordplace.h",
    "core/fpdfdoc/cpvt_wordrange.h",
    "core/fpdfdoc/csection.cpp",
    "core/fpdfdoc/csection.h",
    "core/fpdfdoc/ctypeset.cpp",
    "core/fpdfdoc/ctypeset.h",
    "core/fpdfdoc/ipdf_formnotify.h",
    "core/fpdfdoc/ipvt_fontmap.h",
  ]
  configs += [ ":pdfium_core_config" ]
  deps = [
    ":fxcrt",
  ]
}

jumbo_static_library("fpdfapi") {
  sources = [
    "core/fpdfapi/cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp",
    "core/fpdfapi/cmaps/CNS1/B5pc-H_0.cpp",
    "core/fpdfapi/cmaps/CNS1/B5pc-V_0.cpp",
    "core/fpdfapi/cmaps/CNS1/CNS-EUC-H_0.cpp",
    "core/fpdfapi/cmaps/CNS1/CNS-EUC-V_0.cpp",
    "core/fpdfapi/cmaps/CNS1/ETen-B5-H_0.cpp",
    "core/fpdfapi/cmaps/CNS1/ETen-B5-V_0.cpp",
    "core/fpdfapi/cmaps/CNS1/ETenms-B5-H_0.cpp",
    "core/fpdfapi/cmaps/CNS1/ETenms-B5-V_0.cpp",
    "core/fpdfapi/cmaps/CNS1/HKscs-B5-H_5.cpp",
    "core/fpdfapi/cmaps/CNS1/HKscs-B5-V_5.cpp",
    "core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-H_3.cpp",
    "core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-V_3.cpp",
    "core/fpdfapi/cmaps/CNS1/UniCNS-UTF16-H_0.cpp",
    "core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp",
    "core/fpdfapi/cmaps/GB1/Adobe-GB1-UCS2_5.cpp",
    "core/fpdfapi/cmaps/GB1/GB-EUC-H_0.cpp",
    "core/fpdfapi/cmaps/GB1/GB-EUC-V_0.cpp",
    "core/fpdfapi/cmaps/GB1/GBK-EUC-H_2.cpp",
    "core/fpdfapi/cmaps/GB1/GBK-EUC-V_2.cpp",
    "core/fpdfapi/cmaps/GB1/GBK2K-H_5.cpp",
    "core/fpdfapi/cmaps/GB1/GBK2K-V_5.cpp",
    "core/fpdfapi/cmaps/GB1/GBKp-EUC-H_2.cpp",
    "core/fpdfapi/cmaps/GB1/GBKp-EUC-V_2.cpp",
    "core/fpdfapi/cmaps/GB1/GBpc-EUC-H_0.cpp",
    "core/fpdfapi/cmaps/GB1/GBpc-EUC-V_0.cpp",
    "core/fpdfapi/cmaps/GB1/UniGB-UCS2-H_4.cpp",
    "core/fpdfapi/cmaps/GB1/UniGB-UCS2-V_4.cpp",
    "core/fpdfapi/cmaps/GB1/cmaps_gb1.cpp",
    "core/fpdfapi/cmaps/Japan1/83pv-RKSJ-H_1.cpp",
    "core/fpdfapi/cmaps/Japan1/90ms-RKSJ-H_2.cpp",
    "core/fpdfapi/cmaps/Japan1/90ms-RKSJ-V_2.cpp",
    "core/fpdfapi/cmaps/Japan1/90msp-RKSJ-H_2.cpp",
    "core/fpdfapi/cmaps/Japan1/90msp-RKSJ-V_2.cpp",
    "core/fpdfapi/cmaps/Japan1/90pv-RKSJ-H_1.cpp",
    "core/fpdfapi/cmaps/Japan1/Add-RKSJ-H_1.cpp",
    "core/fpdfapi/cmaps/Japan1/Add-RKSJ-V_1.cpp",
    "core/fpdfapi/cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp",
    "core/fpdfapi/cmaps/Japan1/EUC-H_1.cpp",
    "core/fpdfapi/cmaps/Japan1/EUC-V_1.cpp",
    "core/fpdfapi/cmaps/Japan1/Ext-RKSJ-H_2.cpp",
    "core/fpdfapi/cmaps/Japan1/Ext-RKSJ-V_2.cpp",
    "core/fpdfapi/cmaps/Japan1/H_1.cpp",
    "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp",
    "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp",
    "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-H_4.cpp",
    "core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-V_4.cpp",
    "core/fpdfapi/cmaps/Japan1/V_1.cpp",
    "core/fpdfapi/cmaps/Japan1/cmaps_japan1.cpp",
    "core/fpdfapi/cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp",
    "core/fpdfapi/cmaps/Korea1/KSC-EUC-H_0.cpp",
    "core/fpdfapi/cmaps/Korea1/KSC-EUC-V_0.cpp",
    "core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-H_1.cpp",
    "core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-V_1.cpp",
    "core/fpdfapi/cmaps/Korea1/KSCms-UHC-H_1.cpp",
    "core/fpdfapi/cmaps/Korea1/KSCms-UHC-V_1.cpp",
    "core/fpdfapi/cmaps/Korea1/KSCpc-EUC-H_0.cpp",
    "core/fpdfapi/cmaps/Korea1/UniKS-UCS2-H_1.cpp",
    "core/fpdfapi/cmaps/Korea1/UniKS-UCS2-V_1.cpp",
    "core/fpdfapi/cmaps/Korea1/UniKS-UTF16-H_0.cpp",
    "core/fpdfapi/cmaps/Korea1/cmaps_korea1.cpp",
    "core/fpdfapi/cmaps/cmap_int.h",
    "core/fpdfapi/cmaps/fpdf_cmaps.cpp",
    "core/fpdfapi/cpdf_modulemgr.cpp",
    "core/fpdfapi/cpdf_modulemgr.h",
    "core/fpdfapi/cpdf_pagerendercontext.cpp",
    "core/fpdfapi/cpdf_pagerendercontext.h",
    "core/fpdfapi/edit/cpdf_creator.cpp",
    "core/fpdfapi/edit/cpdf_creator.h",
    "core/fpdfapi/edit/cpdf_encryptor.cpp",
    "core/fpdfapi/edit/cpdf_encryptor.h",
    "core/fpdfapi/edit/cpdf_flateencoder.cpp",
    "core/fpdfapi/edit/cpdf_flateencoder.h",
    "core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp",
    "core/fpdfapi/edit/cpdf_pagecontentgenerator.h",
    "core/fpdfapi/font/cfx_cttgsubtable.cpp",
    "core/fpdfapi/font/cfx_cttgsubtable.h",
    "core/fpdfapi/font/cfx_stockfontarray.cpp",
    "core/fpdfapi/font/cfx_stockfontarray.h",
    "core/fpdfapi/font/cpdf_cid2unicodemap.cpp",
    "core/fpdfapi/font/cpdf_cid2unicodemap.h",
    "core/fpdfapi/font/cpdf_cidfont.cpp",
    "core/fpdfapi/font/cpdf_cidfont.h",
    "core/fpdfapi/font/cpdf_cmap.cpp",
    "core/fpdfapi/font/cpdf_cmap.h",
    "core/fpdfapi/font/cpdf_cmapmanager.cpp",
    "core/fpdfapi/font/cpdf_cmapmanager.h",
    "core/fpdfapi/font/cpdf_cmapparser.cpp",
    "core/fpdfapi/font/cpdf_cmapparser.h",
    "core/fpdfapi/font/cpdf_font.cpp",
    "core/fpdfapi/font/cpdf_font.h",
    "core/fpdfapi/font/cpdf_fontencoding.cpp",
    "core/fpdfapi/font/cpdf_fontencoding.h",
    "core/fpdfapi/font/cpdf_fontglobals.cpp",
    "core/fpdfapi/font/cpdf_fontglobals.h",
    "core/fpdfapi/font/cpdf_simplefont.cpp",
    "core/fpdfapi/font/cpdf_simplefont.h",
    "core/fpdfapi/font/cpdf_tounicodemap.cpp",
    "core/fpdfapi/font/cpdf_tounicodemap.h",
    "core/fpdfapi/font/cpdf_truetypefont.cpp",
    "core/fpdfapi/font/cpdf_truetypefont.h",
    "core/fpdfapi/font/cpdf_type1font.cpp",
    "core/fpdfapi/font/cpdf_type1font.h",
    "core/fpdfapi/font/cpdf_type3char.cpp",
    "core/fpdfapi/font/cpdf_type3char.h",
    "core/fpdfapi/font/cpdf_type3font.cpp",
    "core/fpdfapi/font/cpdf_type3font.h",
    "core/fpdfapi/page/cpdf_allstates.cpp",
    "core/fpdfapi/page/cpdf_allstates.h",
    "core/fpdfapi/page/cpdf_clippath.cpp",
    "core/fpdfapi/page/cpdf_clippath.h",
    "core/fpdfapi/page/cpdf_color.cpp",
    "core/fpdfapi/page/cpdf_color.h",
    "core/fpdfapi/page/cpdf_colorspace.cpp",
    "core/fpdfapi/page/cpdf_colorspace.h",
    "core/fpdfapi/page/cpdf_colorstate.cpp",
    "core/fpdfapi/page/cpdf_colorstate.h",
    "core/fpdfapi/page/cpdf_contentmark.cpp",
    "core/fpdfapi/page/cpdf_contentmark.h",
    "core/fpdfapi/page/cpdf_contentmarkitem.cpp",
    "core/fpdfapi/page/cpdf_contentmarkitem.h",
    "core/fpdfapi/page/cpdf_contentparser.cpp",
    "core/fpdfapi/page/cpdf_contentparser.h",
    "core/fpdfapi/page/cpdf_countedobject.h",
    "core/fpdfapi/page/cpdf_devicecs.cpp",
    "core/fpdfapi/page/cpdf_devicecs.h",
    "core/fpdfapi/page/cpdf_docpagedata.cpp",
    "core/fpdfapi/page/cpdf_docpagedata.h",
    "core/fpdfapi/page/cpdf_expintfunc.cpp",
    "core/fpdfapi/page/cpdf_expintfunc.h",
    "core/fpdfapi/page/cpdf_form.cpp",
    "core/fpdfapi/page/cpdf_form.h",
    "core/fpdfapi/page/cpdf_formobject.cpp",
    "core/fpdfapi/page/cpdf_formobject.h",
    "core/fpdfapi/page/cpdf_function.cpp",
    "core/fpdfapi/page/cpdf_function.h",
    "core/fpdfapi/page/cpdf_generalstate.cpp",
    "core/fpdfapi/page/cpdf_generalstate.h",
    "core/fpdfapi/page/cpdf_graphicstates.cpp",
    "core/fpdfapi/page/cpdf_graphicstates.h",
    "core/fpdfapi/page/cpdf_iccprofile.cpp",
    "core/fpdfapi/page/cpdf_iccprofile.h",
    "core/fpdfapi/page/cpdf_image.cpp",
    "core/fpdfapi/page/cpdf_image.h",
    "core/fpdfapi/page/cpdf_imageobject.cpp",
    "core/fpdfapi/page/cpdf_imageobject.h",
    "core/fpdfapi/page/cpdf_meshstream.cpp",
    "core/fpdfapi/page/cpdf_meshstream.h",
    "core/fpdfapi/page/cpdf_page.cpp",
    "core/fpdfapi/page/cpdf_page.h",
    "core/fpdfapi/page/cpdf_pagemodule.cpp",
    "core/fpdfapi/page/cpdf_pagemodule.h",
    "core/fpdfapi/page/cpdf_pageobject.cpp",
    "core/fpdfapi/page/cpdf_pageobject.h",
    "core/fpdfapi/page/cpdf_pageobjectholder.cpp",
    "core/fpdfapi/page/cpdf_pageobjectholder.h",
    "core/fpdfapi/page/cpdf_pageobjectlist.cpp",
    "core/fpdfapi/page/cpdf_pageobjectlist.h",
    "core/fpdfapi/page/cpdf_path.cpp",
    "core/fpdfapi/page/cpdf_path.h",
    "core/fpdfapi/page/cpdf_pathobject.cpp",
    "core/fpdfapi/page/cpdf_pathobject.h",
    "core/fpdfapi/page/cpdf_pattern.cpp",
    "core/fpdfapi/page/cpdf_pattern.h",
    "core/fpdfapi/page/cpdf_patterncs.cpp",
    "core/fpdfapi/page/cpdf_patterncs.h",
    "core/fpdfapi/page/cpdf_psengine.cpp",
    "core/fpdfapi/page/cpdf_psengine.h",
    "core/fpdfapi/page/cpdf_psfunc.cpp",
    "core/fpdfapi/page/cpdf_psfunc.h",
    "core/fpdfapi/page/cpdf_sampledfunc.cpp",
    "core/fpdfapi/page/cpdf_sampledfunc.h",
    "core/fpdfapi/page/cpdf_shadingobject.cpp",
    "core/fpdfapi/page/cpdf_shadingobject.h",
    "core/fpdfapi/page/cpdf_shadingpattern.cpp",
    "core/fpdfapi/page/cpdf_shadingpattern.h",
    "core/fpdfapi/page/cpdf_stitchfunc.cpp",
    "core/fpdfapi/page/cpdf_stitchfunc.h",
    "core/fpdfapi/page/cpdf_streamcontentparser.cpp",
    "core/fpdfapi/page/cpdf_streamcontentparser.h",
    "core/fpdfapi/page/cpdf_streamparser.cpp",
    "core/fpdfapi/page/cpdf_streamparser.h",
    "core/fpdfapi/page/cpdf_textobject.cpp",
    "core/fpdfapi/page/cpdf_textobject.h",
    "core/fpdfapi/page/cpdf_textstate.cpp",
    "core/fpdfapi/page/cpdf_textstate.h",
    "core/fpdfapi/page/cpdf_tilingpattern.cpp",
    "core/fpdfapi/page/cpdf_tilingpattern.h",
    "core/fpdfapi/parser/cfdf_document.cpp",
    "core/fpdfapi/parser/cfdf_document.h",
    "core/fpdfapi/parser/cpdf_array.cpp",
    "core/fpdfapi/parser/cpdf_array.h",
    "core/fpdfapi/parser/cpdf_boolean.cpp",
    "core/fpdfapi/parser/cpdf_boolean.h",
    "core/fpdfapi/parser/cpdf_cross_ref_avail.cpp",
    "core/fpdfapi/parser/cpdf_cross_ref_avail.h",
    "core/fpdfapi/parser/cpdf_crypto_handler.cpp",
    "core/fpdfapi/parser/cpdf_crypto_handler.h",
    "core/fpdfapi/parser/cpdf_data_avail.cpp",
    "core/fpdfapi/parser/cpdf_data_avail.h",
    "core/fpdfapi/parser/cpdf_dictionary.cpp",
    "core/fpdfapi/parser/cpdf_dictionary.h",
    "core/fpdfapi/parser/cpdf_document.cpp",
    "core/fpdfapi/parser/cpdf_document.h",
    "core/fpdfapi/parser/cpdf_hint_tables.cpp",
    "core/fpdfapi/parser/cpdf_hint_tables.h",
    "core/fpdfapi/parser/cpdf_indirect_object_holder.cpp",
    "core/fpdfapi/parser/cpdf_indirect_object_holder.h",
    "core/fpdfapi/parser/cpdf_linearized_header.cpp",
    "core/fpdfapi/parser/cpdf_linearized_header.h",
    "core/fpdfapi/parser/cpdf_name.cpp",
    "core/fpdfapi/parser/cpdf_name.h",
    "core/fpdfapi/parser/cpdf_null.cpp",
    "core/fpdfapi/parser/cpdf_null.h",
    "core/fpdfapi/parser/cpdf_number.cpp",
    "core/fpdfapi/parser/cpdf_number.h",
    "core/fpdfapi/parser/cpdf_object.cpp",
    "core/fpdfapi/parser/cpdf_object.h",
    "core/fpdfapi/parser/cpdf_object_avail.cpp",
    "core/fpdfapi/parser/cpdf_object_avail.h",
    "core/fpdfapi/parser/cpdf_object_walker.cpp",
    "core/fpdfapi/parser/cpdf_object_walker.h",
    "core/fpdfapi/parser/cpdf_page_object_avail.cpp",
    "core/fpdfapi/parser/cpdf_page_object_avail.h",
    "core/fpdfapi/parser/cpdf_parser.cpp",
    "core/fpdfapi/parser/cpdf_parser.h",
    "core/fpdfapi/parser/cpdf_read_validator.cpp",
    "core/fpdfapi/parser/cpdf_read_validator.h",
    "core/fpdfapi/parser/cpdf_reference.cpp",
    "core/fpdfapi/parser/cpdf_reference.h",
    "core/fpdfapi/parser/cpdf_security_handler.cpp",
    "core/fpdfapi/parser/cpdf_security_handler.h",
    "core/fpdfapi/parser/cpdf_simple_parser.cpp",
    "core/fpdfapi/parser/cpdf_simple_parser.h",
    "core/fpdfapi/parser/cpdf_stream.cpp",
    "core/fpdfapi/parser/cpdf_stream.h",
    "core/fpdfapi/parser/cpdf_stream_acc.cpp",
    "core/fpdfapi/parser/cpdf_stream_acc.h",
    "core/fpdfapi/parser/cpdf_string.cpp",
    "core/fpdfapi/parser/cpdf_string.h",
    "core/fpdfapi/parser/cpdf_syntax_parser.cpp",
    "core/fpdfapi/parser/cpdf_syntax_parser.h",
    "core/fpdfapi/parser/fpdf_parser_decode.cpp",
    "core/fpdfapi/parser/fpdf_parser_decode.h",
    "core/fpdfapi/parser/fpdf_parser_utility.cpp",
    "core/fpdfapi/parser/fpdf_parser_utility.h",
    "core/fpdfapi/render/cpdf_charposlist.cpp",
    "core/fpdfapi/render/cpdf_charposlist.h",
    "core/fpdfapi/render/cpdf_devicebuffer.cpp",
    "core/fpdfapi/render/cpdf_devicebuffer.h",
    "core/fpdfapi/render/cpdf_dibsource.cpp",
    "core/fpdfapi/render/cpdf_dibsource.h",
    "core/fpdfapi/render/cpdf_dibtransferfunc.cpp",
    "core/fpdfapi/render/cpdf_dibtransferfunc.h",
    "core/fpdfapi/render/cpdf_docrenderdata.cpp",
    "core/fpdfapi/render/cpdf_docrenderdata.h",
    "core/fpdfapi/render/cpdf_imagecacheentry.cpp",
    "core/fpdfapi/render/cpdf_imagecacheentry.h",
    "core/fpdfapi/render/cpdf_imageloader.cpp",
    "core/fpdfapi/render/cpdf_imageloader.h",
    "core/fpdfapi/render/cpdf_imagerenderer.cpp",
    "core/fpdfapi/render/cpdf_imagerenderer.h",
    "core/fpdfapi/render/cpdf_pagerendercache.cpp",
    "core/fpdfapi/render/cpdf_pagerendercache.h",
    "core/fpdfapi/render/cpdf_progressiverenderer.cpp",
    "core/fpdfapi/render/cpdf_progressiverenderer.h",
    "core/fpdfapi/render/cpdf_rendercontext.cpp",
    "core/fpdfapi/render/cpdf_rendercontext.h",
    "core/fpdfapi/render/cpdf_renderoptions.cpp",
    "core/fpdfapi/render/cpdf_renderoptions.h",
    "core/fpdfapi/render/cpdf_renderstatus.cpp",
    "core/fpdfapi/render/cpdf_renderstatus.h",
    "core/fpdfapi/render/cpdf_scaledrenderbuffer.cpp",
    "core/fpdfapi/render/cpdf_scaledrenderbuffer.h",
    "core/fpdfapi/render/cpdf_textrenderer.cpp",
    "core/fpdfapi/render/cpdf_textrenderer.h",
    "core/fpdfapi/render/cpdf_transferfunc.cpp",
    "core/fpdfapi/render/cpdf_transferfunc.h",
    "core/fpdfapi/render/cpdf_type3cache.cpp",
    "core/fpdfapi/render/cpdf_type3cache.h",
    "core/fpdfapi/render/cpdf_type3glyphs.cpp",
    "core/fpdfapi/render/cpdf_type3glyphs.h",
  ]
  configs += [ ":pdfium_core_config" ]
  deps = [
    ":fxcrt",
    "third_party:lcms2",
  ]
}

jumbo_static_library("fpdftext") {
  sources = [
    "core/fpdftext/cpdf_linkextract.cpp",
    "core/fpdftext/cpdf_linkextract.h",
    "core/fpdftext/cpdf_textpage.cpp",
    "core/fpdftext/cpdf_textpage.h",
    "core/fpdftext/cpdf_textpagefind.cpp",
    "core/fpdftext/cpdf_textpagefind.h",
    "core/fpdftext/unicodenormalizationdata.cpp",
    "core/fpdftext/unicodenormalizationdata.h",
  ]
  configs += [ ":pdfium_core_config" ]
  deps = [
    ":fxcrt",
  ]
}

jumbo_static_library("fxcodec") {
  sources = [
    "core/fxcodec/JBig2_DocumentContext.h",
    "core/fxcodec/codec/ccodec_basicmodule.h",
    "core/fxcodec/codec/ccodec_faxmodule.h",
    "core/fxcodec/codec/ccodec_flatemodule.h",
    "core/fxcodec/codec/ccodec_iccmodule.h",
    "core/fxcodec/codec/ccodec_jbig2module.h",
    "core/fxcodec/codec/ccodec_jpegmodule.h",
    "core/fxcodec/codec/ccodec_jpxmodule.h",
    "core/fxcodec/codec/ccodec_scanlinedecoder.cpp",
    "core/fxcodec/codec/ccodec_scanlinedecoder.h",
    "core/fxcodec/codec/cjpx_decoder.h",
    "core/fxcodec/codec/codec_int.h",
    "core/fxcodec/codec/fx_codec.cpp",
    "core/fxcodec/codec/fx_codec_fax.cpp",
    "core/fxcodec/codec/fx_codec_flate.cpp",
    "core/fxcodec/codec/fx_codec_icc.cpp",
    "core/fxcodec/codec/fx_codec_jbig.cpp",
    "core/fxcodec/codec/fx_codec_jpeg.cpp",
    "core/fxcodec/codec/fx_codec_jpx_opj.cpp",
    "core/fxcodec/fx_codec.h",
    "core/fxcodec/fx_codec_def.h",
    "core/fxcodec/jbig2/JBig2_ArithDecoder.cpp",
    "core/fxcodec/jbig2/JBig2_ArithDecoder.h",
    "core/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp",
    "core/fxcodec/jbig2/JBig2_ArithIntDecoder.h",
    "core/fxcodec/jbig2/JBig2_BitStream.cpp",
    "core/fxcodec/jbig2/JBig2_BitStream.h",
    "core/fxcodec/jbig2/JBig2_Context.cpp",
    "core/fxcodec/jbig2/JBig2_Context.h",
    "core/fxcodec/jbig2/JBig2_Define.h",
    "core/fxcodec/jbig2/JBig2_GrdProc.cpp",
    "core/fxcodec/jbig2/JBig2_GrdProc.h",
    "core/fxcodec/jbig2/JBig2_GrrdProc.cpp",
    "core/fxcodec/jbig2/JBig2_GrrdProc.h",
    "core/fxcodec/jbig2/JBig2_HtrdProc.cpp",
    "core/fxcodec/jbig2/JBig2_HtrdProc.h",
    "core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp",
    "core/fxcodec/jbig2/JBig2_HuffmanDecoder.h",
    "core/fxcodec/jbig2/JBig2_HuffmanTable.cpp",
    "core/fxcodec/jbig2/JBig2_HuffmanTable.h",
    "core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.cpp",
    "core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h",
    "core/fxcodec/jbig2/JBig2_Image.cpp",
    "core/fxcodec/jbig2/JBig2_Image.h",
    "core/fxcodec/jbig2/JBig2_Page.h",
    "core/fxcodec/jbig2/JBig2_PatternDict.cpp",
    "core/fxcodec/jbig2/JBig2_PatternDict.h",
    "core/fxcodec/jbig2/JBig2_PddProc.cpp",
    "core/fxcodec/jbig2/JBig2_PddProc.h",
    "core/fxcodec/jbig2/JBig2_SddProc.cpp",
    "core/fxcodec/jbig2/JBig2_SddProc.h",
    "core/fxcodec/jbig2/JBig2_Segment.cpp",
    "core/fxcodec/jbig2/JBig2_Segment.h",
    "core/fxcodec/jbig2/JBig2_SymbolDict.cpp",
    "core/fxcodec/jbig2/JBig2_SymbolDict.h",
    "core/fxcodec/jbig2/JBig2_TrdProc.cpp",
    "core/fxcodec/jbig2/JBig2_TrdProc.h",
  ]
  configs += [ ":pdfium_core_config" ]
  include_dirs = []
  deps = [
    ":fxcrt",
    "third_party:fx_libopenjpeg",
    "third_party:lcms2",
    "third_party:zlib",
    "//third_party:jpeg",
  ]

  if (pdf_enable_xfa) {
    sources += [
      "core/fxcodec/bmp/cfx_bmpcontext.cpp",
      "core/fxcodec/bmp/cfx_bmpcontext.h",
      "core/fxcodec/bmp/cfx_bmpdecompressor.cpp",
      "core/fxcodec/bmp/cfx_bmpdecompressor.h",
      "core/fxcodec/bmp/fx_bmp.cpp",
      "core/fxcodec/bmp/fx_bmp.h",
      "core/fxcodec/codec/ccodec_bmpmodule.cpp",
      "core/fxcodec/codec/ccodec_bmpmodule.h",
      "core/fxcodec/codec/ccodec_gifmodule.cpp",
      "core/fxcodec/codec/ccodec_gifmodule.h",
      "core/fxcodec/codec/ccodec_pngmodule.cpp",
      "core/fxcodec/codec/ccodec_pngmodule.h",
      "core/fxcodec/codec/ccodec_progressivedecoder.h",
      "core/fxcodec/codec/ccodec_tiffmodule.cpp",
      "core/fxcodec/codec/ccodec_tiffmodule.h",
      "core/fxcodec/codec/fx_codec_progress.cpp",
      "core/fxcodec/gif/cfx_gif.cpp",
      "core/fxcodec/gif/cfx_gif.h",
      "core/fxcodec/gif/cfx_gifcontext.cpp",
      "core/fxcodec/gif/cfx_gifcontext.h",
      "core/fxcodec/gif/cfx_lzwdecompressor.cpp",
      "core/fxcodec/gif/cfx_lzwdecompressor.h",
    ]
    deps += [
      "third_party:fx_tiff",
      "third_party:png",
    ]
  }
  if (is_posix) {
    # core/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
    # conversion to check that an address is 16-bit aligned (benign).
    cflags_c = [ "-Wno-pointer-to-int-cast" ]
  }
}

config("fxge_warnings") {
  if (is_clang) {
    cflags = [
      # http://code.google.com/p/pdfium/issues/detail?id=188
      "-Wno-switch",
    ]
  }
}

jumbo_static_library("fxcrt") {
  sources = [
    "core/fxcrt/autorestorer.h",
    "core/fxcrt/bytestring.cpp",
    "core/fxcrt/bytestring.h",
    "core/fxcrt/cfx_binarybuf.cpp",
    "core/fxcrt/cfx_binarybuf.h",
    "core/fxcrt/cfx_bitstream.cpp",
    "core/fxcrt/cfx_bitstream.h",
    "core/fxcrt/cfx_datetime.cpp",
    "core/fxcrt/cfx_datetime.h",
    "core/fxcrt/cfx_fileaccess_posix.cpp",
    "core/fxcrt/cfx_fileaccess_posix.h",
    "core/fxcrt/cfx_fileaccess_windows.cpp",
    "core/fxcrt/cfx_fileaccess_windows.h",
    "core/fxcrt/cfx_fixedbufgrow.h",
    "core/fxcrt/cfx_memorystream.cpp",
    "core/fxcrt/cfx_memorystream.h",
    "core/fxcrt/cfx_seekablemultistream.cpp",
    "core/fxcrt/cfx_seekablemultistream.h",
    "core/fxcrt/cfx_utf8decoder.cpp",
    "core/fxcrt/cfx_utf8decoder.h",
    "core/fxcrt/cfx_widetextbuf.cpp",
    "core/fxcrt/cfx_widetextbuf.h",
    "core/fxcrt/fx_bidi.cpp",
    "core/fxcrt/fx_bidi.h",
    "core/fxcrt/fx_codepage.h",
    "core/fxcrt/fx_coordinates.cpp",
    "core/fxcrt/fx_coordinates.h",
    "core/fxcrt/fx_extension.cpp",
    "core/fxcrt/fx_extension.h",
    "core/fxcrt/fx_memory.cpp",
    "core/fxcrt/fx_memory.h",
    "core/fxcrt/fx_random.cpp",
    "core/fxcrt/fx_random.h",
    "core/fxcrt/fx_safe_types.h",
    "core/fxcrt/fx_stream.cpp",
    "core/fxcrt/fx_stream.h",
    "core/fxcrt/fx_string.cpp",
    "core/fxcrt/fx_string.h",
    "core/fxcrt/fx_system.cpp",
    "core/fxcrt/fx_system.h",
    "core/fxcrt/fx_ucddata.cpp",
    "core/fxcrt/fx_ucddata.h",
    "core/fxcrt/fx_unicode.cpp",
    "core/fxcrt/fx_unicode.h",
    "core/fxcrt/ifx_fileaccess.h",
    "core/fxcrt/ifx_pauseindicator.h",
    "core/fxcrt/maybe_owned.h",
    "core/fxcrt/observable.h",
    "core/fxcrt/retain_ptr.h",
    "core/fxcrt/shared_copy_on_write.h",
    "core/fxcrt/string_data_template.h",
    "core/fxcrt/string_pool_template.h",
    "core/fxcrt/string_view_template.h",
    "core/fxcrt/unowned_ptr.h",
    "core/fxcrt/weak_ptr.h",
    "core/fxcrt/widestring.cpp",
    "core/fxcrt/widestring.h",
    "core/fxcrt/xml/cxml_attritem.cpp",
    "core/fxcrt/xml/cxml_attritem.h",
    "core/fxcrt/xml/cxml_content.cpp",
    "core/fxcrt/xml/cxml_content.h",
    "core/fxcrt/xml/cxml_databufacc.cpp",
    "core/fxcrt/xml/cxml_databufacc.h",
    "core/fxcrt/xml/cxml_element.cpp",
    "core/fxcrt/xml/cxml_element.h",
    "core/fxcrt/xml/cxml_object.cpp",
    "core/fxcrt/xml/cxml_object.h",
    "core/fxcrt/xml/cxml_parser.cpp",
    "core/fxcrt/xml/cxml_parser.h",
  ]
  configs += [ ":pdfium_core_config" ]
  visibility += [ "third_party:*" ]
  deps = [
    "third_party:pdfium_base",
  ]
  public_deps = [
    ":freetype_common",
    "third_party:pdfium_base",
  ]

  if (pdf_enable_xfa) {
    sources += [
      "core/fxcrt/cfx_blockbuffer.cpp",
      "core/fxcrt/cfx_blockbuffer.h",
      "core/fxcrt/cfx_char.cpp",
      "core/fxcrt/cfx_char.h",
      "core/fxcrt/cfx_checksumcontext.cpp",
      "core/fxcrt/cfx_checksumcontext.h",
      "core/fxcrt/cfx_decimal.cpp",
      "core/fxcrt/cfx_decimal.h",
      "core/fxcrt/cfx_seekablestreamproxy.cpp",
      "core/fxcrt/cfx_seekablestreamproxy.h",
      "core/fxcrt/css/cfx_css.h",
      "core/fxcrt/css/cfx_csscolorvalue.cpp",
      "core/fxcrt/css/cfx_csscolorvalue.h",
      "core/fxcrt/css/cfx_csscomputedstyle.cpp",
      "core/fxcrt/css/cfx_csscomputedstyle.h",
      "core/fxcrt/css/cfx_csscustomproperty.cpp",
      "core/fxcrt/css/cfx_csscustomproperty.h",
      "core/fxcrt/css/cfx_cssdata.cpp",
      "core/fxcrt/css/cfx_cssdata.h",
      "core/fxcrt/css/cfx_cssdeclaration.cpp",
      "core/fxcrt/css/cfx_cssdeclaration.h",
      "core/fxcrt/css/cfx_cssenumvalue.cpp",
      "core/fxcrt/css/cfx_cssenumvalue.h",
      "core/fxcrt/css/cfx_cssexttextbuf.cpp",
      "core/fxcrt/css/cfx_cssexttextbuf.h",
      "core/fxcrt/css/cfx_cssnumbervalue.cpp",
      "core/fxcrt/css/cfx_cssnumbervalue.h",
      "core/fxcrt/css/cfx_csspropertyholder.cpp",
      "core/fxcrt/css/cfx_csspropertyholder.h",
      "core/fxcrt/css/cfx_cssrulecollection.cpp",
      "core/fxcrt/css/cfx_cssrulecollection.h",
      "core/fxcrt/css/cfx_cssselector.cpp",
      "core/fxcrt/css/cfx_cssselector.h",
      "core/fxcrt/css/cfx_cssstringvalue.cpp",
      "core/fxcrt/css/cfx_cssstringvalue.h",
      "core/fxcrt/css/cfx_cssstylerule.cpp",
      "core/fxcrt/css/cfx_cssstylerule.h",
      "core/fxcrt/css/cfx_cssstyleselector.cpp",
      "core/fxcrt/css/cfx_cssstyleselector.h",
      "core/fxcrt/css/cfx_cssstylesheet.cpp",
      "core/fxcrt/css/cfx_cssstylesheet.h",
      "core/fxcrt/css/cfx_csssyntaxparser.cpp",
      "core/fxcrt/css/cfx_csssyntaxparser.h",
      "core/fxcrt/css/cfx_csstextbuf.cpp",
      "core/fxcrt/css/cfx_csstextbuf.h",
      "core/fxcrt/css/cfx_cssvalue.cpp",
      "core/fxcrt/css/cfx_cssvalue.h",
      "core/fxcrt/css/cfx_cssvaluelist.cpp",
      "core/fxcrt/css/cfx_cssvaluelist.h",
      "core/fxcrt/css/cfx_cssvaluelistparser.cpp",
      "core/fxcrt/css/cfx_cssvaluelistparser.h",
      "core/fxcrt/fx_arabic.cpp",
      "core/fxcrt/fx_arabic.h",
      "core/fxcrt/ifx_locale.h",
      "core/fxcrt/xml/cfx_saxcontext.cpp",
      "core/fxcrt/xml/cfx_saxcontext.h",
      "core/fxcrt/xml/cfx_saxreader.cpp",
      "core/fxcrt/xml/cfx_saxreader.h",
      "core/fxcrt/xml/cfx_saxreaderhandler.cpp",
      "core/fxcrt/xml/cfx_saxreaderhandler.h",
      "core/fxcrt/xml/cfx_xmlattributenode.cpp",
      "core/fxcrt/xml/cfx_xmlattributenode.h",
      "core/fxcrt/xml/cfx_xmlchardata.cpp",
      "core/fxcrt/xml/cfx_xmlchardata.h",
      "core/fxcrt/xml/cfx_xmldoc.cpp",
      "core/fxcrt/xml/cfx_xmldoc.h",
      "core/fxcrt/xml/cfx_xmlelement.cpp",
      "core/fxcrt/xml/cfx_xmlelement.h",
      "core/fxcrt/xml/cfx_xmlinstruction.cpp",
      "core/fxcrt/xml/cfx_xmlinstruction.h",
      "core/fxcrt/xml/cfx_xmlnode.cpp",
      "core/fxcrt/xml/cfx_xmlnode.h",
      "core/fxcrt/xml/cfx_xmlparser.cpp",
      "core/fxcrt/xml/cfx_xmlparser.h",
      "core/fxcrt/xml/cfx_xmlsyntaxparser.cpp",
      "core/fxcrt/xml/cfx_xmlsyntaxparser.h",
      "core/fxcrt/xml/cfx_xmltext.cpp",
      "core/fxcrt/xml/cfx_xmltext.h",
    ]
  }
}

jumbo_static_library("fxge") {
  sources = [
    "core/fxge/android/cfpf_skiabufferfont.cpp",
    "core/fxge/android/cfpf_skiabufferfont.h",
    "core/fxge/android/cfpf_skiadevicemodule.cpp",
    "core/fxge/android/cfpf_skiadevicemodule.h",
    "core/fxge/android/cfpf_skiafilefont.cpp",
    "core/fxge/android/cfpf_skiafilefont.h",
    "core/fxge/android/cfpf_skiafont.cpp",
    "core/fxge/android/cfpf_skiafont.h",
    "core/fxge/android/cfpf_skiafontdescriptor.cpp",
    "core/fxge/android/cfpf_skiafontdescriptor.h",
    "core/fxge/android/cfpf_skiafontmgr.cpp",
    "core/fxge/android/cfpf_skiafontmgr.h",
    "core/fxge/android/cfpf_skiapathfont.cpp",
    "core/fxge/android/cfpf_skiapathfont.h",
    "core/fxge/android/cfx_androidfontinfo.cpp",
    "core/fxge/android/cfx_androidfontinfo.h",
    "core/fxge/android/fx_android_imp.cpp",
    "core/fxge/cfx_cliprgn.cpp",
    "core/fxge/cfx_cliprgn.h",
    "core/fxge/cfx_color.cpp",
    "core/fxge/cfx_color.h",
    "core/fxge/cfx_defaultrenderdevice.h",
    "core/fxge/cfx_facecache.cpp",
    "core/fxge/cfx_facecache.h",
    "core/fxge/cfx_folderfontinfo.cpp",
    "core/fxge/cfx_folderfontinfo.h",
    "core/fxge/cfx_font.cpp",
    "core/fxge/cfx_fontcache.cpp",
    "core/fxge/cfx_fontcache.h",
    "core/fxge/cfx_fontmapper.cpp",
    "core/fxge/cfx_fontmapper.h",
    "core/fxge/cfx_fontmgr.cpp",
    "core/fxge/cfx_fontmgr.h",
    "core/fxge/cfx_gemodule.cpp",
    "core/fxge/cfx_gemodule.h",
    "core/fxge/cfx_graphstate.cpp",
    "core/fxge/cfx_graphstate.h",
    "core/fxge/cfx_graphstatedata.cpp",
    "core/fxge/cfx_graphstatedata.h",
    "core/fxge/cfx_pathdata.cpp",
    "core/fxge/cfx_pathdata.h",
    "core/fxge/cfx_renderdevice.cpp",
    "core/fxge/cfx_renderdevice.h",
    "core/fxge/cfx_substfont.cpp",
    "core/fxge/cfx_substfont.h",
    "core/fxge/cfx_unicodeencoding.cpp",
    "core/fxge/cfx_unicodeencoding.h",
    "core/fxge/cfx_windowsrenderdevice.h",
    "core/fxge/cttfontdesc.cpp",
    "core/fxge/cttfontdesc.h",
    "core/fxge/dib/cfx_bitmapcomposer.cpp",
    "core/fxge/dib/cfx_bitmapcomposer.h",
    "core/fxge/dib/cfx_bitmapstorer.cpp",
    "core/fxge/dib/cfx_bitmapstorer.h",
    "core/fxge/dib/cfx_dibextractor.cpp",
    "core/fxge/dib/cfx_dibextractor.h",
    "core/fxge/dib/cfx_dibitmap.cpp",
    "core/fxge/dib/cfx_dibitmap.h",
    "core/fxge/dib/cfx_dibsource.cpp",
    "core/fxge/dib/cfx_dibsource.h",
    "core/fxge/dib/cfx_filtereddib.cpp",
    "core/fxge/dib/cfx_filtereddib.h",
    "core/fxge/dib/cfx_imagerenderer.cpp",
    "core/fxge/dib/cfx_imagerenderer.h",
    "core/fxge/dib/cfx_imagestretcher.cpp",
    "core/fxge/dib/cfx_imagestretcher.h",
    "core/fxge/dib/cfx_imagetransformer.cpp",
    "core/fxge/dib/cfx_imagetransformer.h",
    "core/fxge/dib/cfx_scanlinecompositor.cpp",
    "core/fxge/dib/cfx_scanlinecompositor.h",
    "core/fxge/dib/cstretchengine.cpp",
    "core/fxge/dib/cstretchengine.h",
    "core/fxge/dib/fx_dib_main.cpp",
    "core/fxge/dib/ifx_scanlinecomposer.h",
    "core/fxge/fontdata/chromefontdata/FoxitDingbats.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitFixed.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitFixedBold.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitFixedItalic.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitSans.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitSansBold.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitSansItalic.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitSansMM.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitSerif.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitSerifBold.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitSerifItalic.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitSerifMM.cpp",
    "core/fxge/fontdata/chromefontdata/FoxitSymbol.cpp",
    "core/fxge/fontdata/chromefontdata/chromefontdata.h",
    "core/fxge/freetype/fx_freetype.cpp",
    "core/fxge/fx_dib.h",
    "core/fxge/fx_font.h",
    "core/fxge/fx_freetype.h",
    "core/fxge/fx_ge_fontmap.cpp",
    "core/fxge/fx_ge_linux.cpp",
    "core/fxge/fx_ge_text.cpp",
    "core/fxge/ifx_renderdevicedriver.cpp",
    "core/fxge/ifx_renderdevicedriver.h",
    "core/fxge/ifx_systemfontinfo.h",
    "core/fxge/win32/cfx_windowsdib.h",
  ]

  configs += [
    ":fxge_warnings",
    ":pdfium_core_config",
  ]

  deps = [
    ":fxcrt",
  ]

  if (is_component_build || use_system_freetype) {
    # ft_adobe_glyph_list is not exported from the Freetype shared library so we
    # need it defined in component builds and builds using system freetype.
    defines = [ "DEFINE_PS_TABLES_DATA" ]
  }

  if (pdf_enable_xfa) {
    sources += [
      "core/fxge/cfx_unicodeencodingex.cpp",
      "core/fxge/cfx_unicodeencodingex.h",
    ]
  }

  if (pdf_use_skia || pdf_use_skia_paths) {
    sources += [ "core/fxge/skia/fx_skia_device.cpp" ]
    deps += [ "//skia" ]
  } else {
    sources += [
      "core/fxge/agg/fx_agg_driver.cpp",
      "core/fxge/agg/fx_agg_driver.h",
    ]
    deps += [ "third_party:fx_agg" ]
  }

  if (is_mac) {
    sources += [ "core/fxge/apple/fx_apple_platform.cpp" ]
  }

  if (is_win) {
    sources += [
      "core/fxge/win32/cfx_psrenderer.cpp",
      "core/fxge/win32/cfx_psrenderer.h",
      "core/fxge/win32/cpsoutput.cpp",
      "core/fxge/win32/cpsoutput.h",
      "core/fxge/win32/dwrite_int.h",
      "core/fxge/win32/fx_win32_device.cpp",
      "core/fxge/win32/fx_win32_dib.cpp",
      "core/fxge/win32/fx_win32_dwrite.cpp",
      "core/fxge/win32/fx_win32_gdipext.cpp",
      "core/fxge/win32/fx_win32_print.cpp",
      "core/fxge/win32/win32_int.h",
    ]
    configs -= [ "//build/config/win:lean_and_mean" ]
  }

  if (is_mac) {
    sources += [
      "core/fxge/apple/apple_int.h",
      "core/fxge/apple/fx_mac_imp.cpp",
      "core/fxge/apple/fx_quartz_device.cpp",
    ]
  }
}

jumbo_static_library("pwl") {
  sources = [
    "fpdfsdk/pwl/cpwl_appstream.cpp",
    "fpdfsdk/pwl/cpwl_appstream.h",
    "fpdfsdk/pwl/cpwl_button.cpp",
    "fpdfsdk/pwl/cpwl_button.h",
    "fpdfsdk/pwl/cpwl_caret.cpp",
    "fpdfsdk/pwl/cpwl_caret.h",
    "fpdfsdk/pwl/cpwl_combo_box.cpp",
    "fpdfsdk/pwl/cpwl_combo_box.h",
    "fpdfsdk/pwl/cpwl_edit.cpp",
    "fpdfsdk/pwl/cpwl_edit.h",
    "fpdfsdk/pwl/cpwl_edit_ctrl.cpp",
    "fpdfsdk/pwl/cpwl_edit_ctrl.h",
    "fpdfsdk/pwl/cpwl_edit_impl.cpp",
    "fpdfsdk/pwl/cpwl_edit_impl.h",
    "fpdfsdk/pwl/cpwl_font_map.cpp",
    "fpdfsdk/pwl/cpwl_font_map.h",
    "fpdfsdk/pwl/cpwl_icon.cpp",
    "fpdfsdk/pwl/cpwl_icon.h",
    "fpdfsdk/pwl/cpwl_list_box.cpp",
    "fpdfsdk/pwl/cpwl_list_box.h",
    "fpdfsdk/pwl/cpwl_list_impl.cpp",
    "fpdfsdk/pwl/cpwl_list_impl.h",
    "fpdfsdk/pwl/cpwl_scroll_bar.cpp",
    "fpdfsdk/pwl/cpwl_scroll_bar.h",
    "fpdfsdk/pwl/cpwl_special_button.cpp",
    "fpdfsdk/pwl/cpwl_special_button.h",
    "fpdfsdk/pwl/cpwl_timer.cpp",
    "fpdfsdk/pwl/cpwl_timer.h",
    "fpdfsdk/pwl/cpwl_timer_handler.cpp",
    "fpdfsdk/pwl/cpwl_timer_handler.h",
    "fpdfsdk/pwl/cpwl_wnd.cpp",
    "fpdfsdk/pwl/cpwl_wnd.h",
  ]
  configs += [ ":pdfium_core_config" ]
  deps = [
    ":fxcrt",
  ]
}

jumbo_static_library("fxjs") {
  sources = [
    "fxjs/ijs_event_context.h",
    "fxjs/ijs_runtime.h",
  ]
  configs += [ ":pdfium_core_config" ]
  deps = [
    ":fxcrt",
  ]

  if (pdf_enable_v8) {
    sources += [
      "fxjs/CJX_Define.h",
      "fxjs/JS_Define.cpp",
      "fxjs/JS_Define.h",
      "fxjs/cjs_annot.cpp",
      "fxjs/cjs_annot.h",
      "fxjs/cjs_app.cpp",
      "fxjs/cjs_app.h",
      "fxjs/cjs_border.cpp",
      "fxjs/cjs_border.h",
      "fxjs/cjs_color.cpp",
      "fxjs/cjs_color.h",
      "fxjs/cjs_console.cpp",
      "fxjs/cjs_console.h",
      "fxjs/cjs_delaydata.cpp",
      "fxjs/cjs_delaydata.h",
      "fxjs/cjs_display.cpp",
      "fxjs/cjs_display.h",
      "fxjs/cjs_document.cpp",
      "fxjs/cjs_document.h",
      "fxjs/cjs_event.cpp",
      "fxjs/cjs_event.h",
      "fxjs/cjs_event_context.cpp",
      "fxjs/cjs_event_context.h",
      "fxjs/cjs_eventhandler.cpp",
      "fxjs/cjs_eventhandler.h",
      "fxjs/cjs_field.cpp",
      "fxjs/cjs_field.h",
      "fxjs/cjs_font.cpp",
      "fxjs/cjs_font.h",
      "fxjs/cjs_global.cpp",
      "fxjs/cjs_global.h",
      "fxjs/cjs_globalarrays.cpp",
      "fxjs/cjs_globalarrays.h",
      "fxjs/cjs_globalconsts.cpp",
      "fxjs/cjs_globalconsts.h",
      "fxjs/cjs_globaldata.cpp",
      "fxjs/cjs_globaldata.h",
      "fxjs/cjs_globalvariablearray.cpp",
      "fxjs/cjs_globalvariablearray.h",
      "fxjs/cjs_highlight.cpp",
      "fxjs/cjs_highlight.h",
      "fxjs/cjs_icon.cpp",
      "fxjs/cjs_icon.h",
      "fxjs/cjs_keyvalue.cpp",
      "fxjs/cjs_keyvalue.h",
      "fxjs/cjs_object.cpp",
      "fxjs/cjs_object.h",
      "fxjs/cjs_position.cpp",
      "fxjs/cjs_position.h",
      "fxjs/cjs_printparamsobj.cpp",
      "fxjs/cjs_printparamsobj.h",
      "fxjs/cjs_publicmethods.cpp",
      "fxjs/cjs_publicmethods.h",
      "fxjs/cjs_report.cpp",
      "fxjs/cjs_report.h",
      "fxjs/cjs_return.cpp",
      "fxjs/cjs_return.h",
      "fxjs/cjs_runtime.cpp",
      "fxjs/cjs_runtime.h",
      "fxjs/cjs_scalehow.cpp",
      "fxjs/cjs_scalehow.h",
      "fxjs/cjs_scalewhen.cpp",
      "fxjs/cjs_scalewhen.h",
      "fxjs/cjs_style.cpp",
      "fxjs/cjs_style.h",
      "fxjs/cjs_timerobj.cpp",
      "fxjs/cjs_timerobj.h",
      "fxjs/cjs_util.cpp",
      "fxjs/cjs_util.h",
      "fxjs/cjs_v8.cpp",
      "fxjs/cjs_v8.h",
      "fxjs/cjs_zoomtype.cpp",
      "fxjs/cjs_zoomtype.h",
      "fxjs/fxjs_v8.cpp",
      "fxjs/fxjs_v8.h",
      "fxjs/global_timer.cpp",
      "fxjs/global_timer.h",
      "fxjs/js_resources.cpp",
      "fxjs/js_resources.h",
    ]
    deps += [
      ":fxcrt",
      "//v8",
      "//v8:v8_libplatform",
    ]
    configs += [ "//v8:external_startup_data" ]
    include_dirs = [
      "//v8",
      "//v8/include",
    ]
    public_deps = [
      "//v8",
    ]

    if (pdf_enable_xfa) {
      sources += [
        "fxjs/cfxjse_arguments.cpp",
        "fxjs/cfxjse_arguments.h",
        "fxjs/cfxjse_class.cpp",
        "fxjs/cfxjse_class.h",
        "fxjs/cfxjse_context.cpp",
        "fxjs/cfxjse_context.h",
        "fxjs/cfxjse_engine.cpp",
        "fxjs/cfxjse_engine.h",
        "fxjs/cfxjse_formcalc_context.cpp",
        "fxjs/cfxjse_formcalc_context.h",
        "fxjs/cfxjse_isolatetracker.cpp",
        "fxjs/cfxjse_isolatetracker.h",
        "fxjs/cfxjse_resolveprocessor.cpp",
        "fxjs/cfxjse_resolveprocessor.h",
        "fxjs/cfxjse_runtimedata.cpp",
        "fxjs/cfxjse_runtimedata.h",
        "fxjs/cfxjse_value.cpp",
        "fxjs/cfxjse_value.h",
        "fxjs/fxjse.h",
        "fxjs/xfa/cjx_arc.cpp",
        "fxjs/xfa/cjx_arc.h",
        "fxjs/xfa/cjx_area.cpp",
        "fxjs/xfa/cjx_area.h",
        "fxjs/xfa/cjx_assist.cpp",
        "fxjs/xfa/cjx_assist.h",
        "fxjs/xfa/cjx_barcode.cpp",
        "fxjs/xfa/cjx_barcode.h",
        "fxjs/xfa/cjx_bind.cpp",
        "fxjs/xfa/cjx_bind.h",
        "fxjs/xfa/cjx_binditems.cpp",
        "fxjs/xfa/cjx_binditems.h",
        "fxjs/xfa/cjx_bookend.cpp",
        "fxjs/xfa/cjx_bookend.h",
        "fxjs/xfa/cjx_boolean.cpp",
        "fxjs/xfa/cjx_boolean.h",
        "fxjs/xfa/cjx_border.cpp",
        "fxjs/xfa/cjx_border.h",
        "fxjs/xfa/cjx_break.cpp",
        "fxjs/xfa/cjx_break.h",
        "fxjs/xfa/cjx_breakafter.cpp",
        "fxjs/xfa/cjx_breakafter.h",
        "fxjs/xfa/cjx_breakbefore.cpp",
        "fxjs/xfa/cjx_breakbefore.h",
        "fxjs/xfa/cjx_button.cpp",
        "fxjs/xfa/cjx_button.h",
        "fxjs/xfa/cjx_calculate.cpp",
        "fxjs/xfa/cjx_calculate.h",
        "fxjs/xfa/cjx_caption.cpp",
        "fxjs/xfa/cjx_caption.h",
        "fxjs/xfa/cjx_certificate.cpp",
        "fxjs/xfa/cjx_certificate.h",
        "fxjs/xfa/cjx_certificates.cpp",
        "fxjs/xfa/cjx_certificates.h",
        "fxjs/xfa/cjx_checkbutton.cpp",
        "fxjs/xfa/cjx_checkbutton.h",
        "fxjs/xfa/cjx_choicelist.cpp",
        "fxjs/xfa/cjx_choicelist.h",
        "fxjs/xfa/cjx_color.cpp",
        "fxjs/xfa/cjx_color.h",
        "fxjs/xfa/cjx_comb.cpp",
        "fxjs/xfa/cjx_comb.h",
        "fxjs/xfa/cjx_command.cpp",
        "fxjs/xfa/cjx_command.h",
        "fxjs/xfa/cjx_connect.cpp",
        "fxjs/xfa/cjx_connect.h",
        "fxjs/xfa/cjx_connectstring.cpp",
        "fxjs/xfa/cjx_connectstring.h",
        "fxjs/xfa/cjx_container.cpp",
        "fxjs/xfa/cjx_container.h",
        "fxjs/xfa/cjx_content.cpp",
        "fxjs/xfa/cjx_content.h",
        "fxjs/xfa/cjx_contentarea.cpp",
        "fxjs/xfa/cjx_contentarea.h",
        "fxjs/xfa/cjx_corner.cpp",
        "fxjs/xfa/cjx_corner.h",
        "fxjs/xfa/cjx_datavalue.cpp",
        "fxjs/xfa/cjx_datavalue.h",
        "fxjs/xfa/cjx_datawindow.cpp",
        "fxjs/xfa/cjx_datawindow.h",
        "fxjs/xfa/cjx_date.cpp",
        "fxjs/xfa/cjx_date.h",
        "fxjs/xfa/cjx_datetime.cpp",
        "fxjs/xfa/cjx_datetime.h",
        "fxjs/xfa/cjx_datetimeedit.cpp",
        "fxjs/xfa/cjx_datetimeedit.h",
        "fxjs/xfa/cjx_decimal.cpp",
        "fxjs/xfa/cjx_decimal.h",
        "fxjs/xfa/cjx_defaultui.cpp",
        "fxjs/xfa/cjx_defaultui.h",
        "fxjs/xfa/cjx_delete.cpp",
        "fxjs/xfa/cjx_delete.h",
        "fxjs/xfa/cjx_delta.cpp",
        "fxjs/xfa/cjx_delta.h",
        "fxjs/xfa/cjx_deltas.cpp",
        "fxjs/xfa/cjx_deltas.h",
        "fxjs/xfa/cjx_desc.cpp",
        "fxjs/xfa/cjx_desc.h",
        "fxjs/xfa/cjx_digestmethod.cpp",
        "fxjs/xfa/cjx_digestmethod.h",
        "fxjs/xfa/cjx_digestmethods.cpp",
        "fxjs/xfa/cjx_digestmethods.h",
        "fxjs/xfa/cjx_draw.cpp",
        "fxjs/xfa/cjx_draw.h",
        "fxjs/xfa/cjx_edge.cpp",
        "fxjs/xfa/cjx_edge.h",
        "fxjs/xfa/cjx_encoding.cpp",
        "fxjs/xfa/cjx_encoding.h",
        "fxjs/xfa/cjx_encodings.cpp",
        "fxjs/xfa/cjx_encodings.h",
        "fxjs/xfa/cjx_encrypt.cpp",
        "fxjs/xfa/cjx_encrypt.h",
        "fxjs/xfa/cjx_event.cpp",
        "fxjs/xfa/cjx_event.h",
        "fxjs/xfa/cjx_eventpseudomodel.cpp",
        "fxjs/xfa/cjx_eventpseudomodel.h",
        "fxjs/xfa/cjx_exclgroup.cpp",
        "fxjs/xfa/cjx_exclgroup.h",
        "fxjs/xfa/cjx_exdata.cpp",
        "fxjs/xfa/cjx_exdata.h",
        "fxjs/xfa/cjx_execute.cpp",
        "fxjs/xfa/cjx_execute.h",
        "fxjs/xfa/cjx_exobject.cpp",
        "fxjs/xfa/cjx_exobject.h",
        "fxjs/xfa/cjx_extras.cpp",
        "fxjs/xfa/cjx_extras.h",
        "fxjs/xfa/cjx_field.cpp",
        "fxjs/xfa/cjx_field.h",
        "fxjs/xfa/cjx_fill.cpp",
        "fxjs/xfa/cjx_fill.h",
        "fxjs/xfa/cjx_filter.cpp",
        "fxjs/xfa/cjx_filter.h",
        "fxjs/xfa/cjx_float.cpp",
        "fxjs/xfa/cjx_float.h",
        "fxjs/xfa/cjx_font.cpp",
        "fxjs/xfa/cjx_font.h",
        "fxjs/xfa/cjx_form.cpp",
        "fxjs/xfa/cjx_form.h",
        "fxjs/xfa/cjx_format.cpp",
        "fxjs/xfa/cjx_format.h",
        "fxjs/xfa/cjx_handler.cpp",
        "fxjs/xfa/cjx_handler.h",
        "fxjs/xfa/cjx_hostpseudomodel.cpp",
        "fxjs/xfa/cjx_hostpseudomodel.h",
        "fxjs/xfa/cjx_image.cpp",
        "fxjs/xfa/cjx_image.h",
        "fxjs/xfa/cjx_imageedit.cpp",
        "fxjs/xfa/cjx_imageedit.h",
        "fxjs/xfa/cjx_insert.cpp",
        "fxjs/xfa/cjx_insert.h",
        "fxjs/xfa/cjx_instancemanager.cpp",
        "fxjs/xfa/cjx_instancemanager.h",
        "fxjs/xfa/cjx_integer.cpp",
        "fxjs/xfa/cjx_integer.h",
        "fxjs/xfa/cjx_issuers.cpp",
        "fxjs/xfa/cjx_issuers.h",
        "fxjs/xfa/cjx_items.cpp",
        "fxjs/xfa/cjx_items.h",
        "fxjs/xfa/cjx_keep.cpp",
        "fxjs/xfa/cjx_keep.h",
        "fxjs/xfa/cjx_keyusage.cpp",
        "fxjs/xfa/cjx_keyusage.h",
        "fxjs/xfa/cjx_layoutpseudomodel.cpp",
        "fxjs/xfa/cjx_layoutpseudomodel.h",
        "fxjs/xfa/cjx_line.cpp",
        "fxjs/xfa/cjx_line.h",
        "fxjs/xfa/cjx_linear.cpp",
        "fxjs/xfa/cjx_linear.h",
        "fxjs/xfa/cjx_list.cpp",
        "fxjs/xfa/cjx_list.h",
        "fxjs/xfa/cjx_logpseudomodel.cpp",
        "fxjs/xfa/cjx_logpseudomodel.h",
        "fxjs/xfa/cjx_manifest.cpp",
        "fxjs/xfa/cjx_manifest.h",
        "fxjs/xfa/cjx_map.cpp",
        "fxjs/xfa/cjx_map.h",
        "fxjs/xfa/cjx_margin.cpp",
        "fxjs/xfa/cjx_margin.h",
        "fxjs/xfa/cjx_mdp.cpp",
        "fxjs/xfa/cjx_mdp.h",
        "fxjs/xfa/cjx_medium.cpp",
        "fxjs/xfa/cjx_medium.h",
        "fxjs/xfa/cjx_message.cpp",
        "fxjs/xfa/cjx_message.h",
        "fxjs/xfa/cjx_model.cpp",
        "fxjs/xfa/cjx_model.h",
        "fxjs/xfa/cjx_node.cpp",
        "fxjs/xfa/cjx_node.h",
        "fxjs/xfa/cjx_numericedit.cpp",
        "fxjs/xfa/cjx_numericedit.h",
        "fxjs/xfa/cjx_object.cpp",
        "fxjs/xfa/cjx_object.h",
        "fxjs/xfa/cjx_occur.cpp",
        "fxjs/xfa/cjx_occur.h",
        "fxjs/xfa/cjx_oid.cpp",
        "fxjs/xfa/cjx_oid.h",
        "fxjs/xfa/cjx_oids.cpp",
        "fxjs/xfa/cjx_oids.h",
        "fxjs/xfa/cjx_operation.cpp",
        "fxjs/xfa/cjx_operation.h",
        "fxjs/xfa/cjx_overflow.cpp",
        "fxjs/xfa/cjx_overflow.h",
        "fxjs/xfa/cjx_packet.cpp",
        "fxjs/xfa/cjx_packet.h",
        "fxjs/xfa/cjx_pagearea.cpp",
        "fxjs/xfa/cjx_pagearea.h",
        "fxjs/xfa/cjx_pageset.cpp",
        "fxjs/xfa/cjx_pageset.h",
        "fxjs/xfa/cjx_para.cpp",
        "fxjs/xfa/cjx_para.h",
        "fxjs/xfa/cjx_password.cpp",
        "fxjs/xfa/cjx_password.h",
        "fxjs/xfa/cjx_passwordedit.cpp",
        "fxjs/xfa/cjx_passwordedit.h",
        "fxjs/xfa/cjx_pattern.cpp",
        "fxjs/xfa/cjx_pattern.h",
        "fxjs/xfa/cjx_picture.cpp",
        "fxjs/xfa/cjx_picture.h",
        "fxjs/xfa/cjx_query.cpp",
        "fxjs/xfa/cjx_query.h",
        "fxjs/xfa/cjx_radial.cpp",
        "fxjs/xfa/cjx_radial.h",
        "fxjs/xfa/cjx_reason.cpp",
        "fxjs/xfa/cjx_reason.h",
        "fxjs/xfa/cjx_reasons.cpp",
        "fxjs/xfa/cjx_reasons.h",
        "fxjs/xfa/cjx_recordset.cpp",
        "fxjs/xfa/cjx_recordset.h",
        "fxjs/xfa/cjx_rectangle.cpp",
        "fxjs/xfa/cjx_rectangle.h",
        "fxjs/xfa/cjx_ref.cpp",
        "fxjs/xfa/cjx_ref.h",
        "fxjs/xfa/cjx_rootelement.cpp",
        "fxjs/xfa/cjx_rootelement.h",
        "fxjs/xfa/cjx_script.cpp",
        "fxjs/xfa/cjx_script.h",
        "fxjs/xfa/cjx_select.cpp",
        "fxjs/xfa/cjx_select.h",
        "fxjs/xfa/cjx_setproperty.cpp",
        "fxjs/xfa/cjx_setproperty.h",
        "fxjs/xfa/cjx_signature.cpp",
        "fxjs/xfa/cjx_signature.h",
        "fxjs/xfa/cjx_signatureproperties.cpp",
        "fxjs/xfa/cjx_signatureproperties.h",
        "fxjs/xfa/cjx_signaturepseudomodel.cpp",
        "fxjs/xfa/cjx_signaturepseudomodel.h",
        "fxjs/xfa/cjx_signdata.cpp",
        "fxjs/xfa/cjx_signdata.h",
        "fxjs/xfa/cjx_signing.cpp",
        "fxjs/xfa/cjx_signing.h",
        "fxjs/xfa/cjx_soapaction.cpp",
        "fxjs/xfa/cjx_soapaction.h",
        "fxjs/xfa/cjx_soapaddress.cpp",
        "fxjs/xfa/cjx_soapaddress.h",
        "fxjs/xfa/cjx_solid.cpp",
        "fxjs/xfa/cjx_solid.h",
        "fxjs/xfa/cjx_source.cpp",
        "fxjs/xfa/cjx_source.h",
        "fxjs/xfa/cjx_sourceset.cpp",
        "fxjs/xfa/cjx_sourceset.h",
        "fxjs/xfa/cjx_speak.cpp",
        "fxjs/xfa/cjx_speak.h",
        "fxjs/xfa/cjx_stipple.cpp",
        "fxjs/xfa/cjx_stipple.h",
        "fxjs/xfa/cjx_subform.cpp",
        "fxjs/xfa/cjx_subform.h",
        "fxjs/xfa/cjx_subformset.cpp",
        "fxjs/xfa/cjx_subformset.h",
        "fxjs/xfa/cjx_subjectdn.cpp",
        "fxjs/xfa/cjx_subjectdn.h",
        "fxjs/xfa/cjx_subjectdns.cpp",
        "fxjs/xfa/cjx_subjectdns.h",
        "fxjs/xfa/cjx_submit.cpp",
        "fxjs/xfa/cjx_submit.h",
        "fxjs/xfa/cjx_template.cpp",
        "fxjs/xfa/cjx_template.h",
        "fxjs/xfa/cjx_text.cpp",
        "fxjs/xfa/cjx_text.h",
        "fxjs/xfa/cjx_textedit.cpp",
        "fxjs/xfa/cjx_textedit.h",
        "fxjs/xfa/cjx_textnode.cpp",
        "fxjs/xfa/cjx_textnode.h",
        "fxjs/xfa/cjx_time.cpp",
        "fxjs/xfa/cjx_time.h",
        "fxjs/xfa/cjx_timestamp.cpp",
        "fxjs/xfa/cjx_timestamp.h",
        "fxjs/xfa/cjx_tooltip.cpp",
        "fxjs/xfa/cjx_tooltip.h",
        "fxjs/xfa/cjx_traversal.cpp",
        "fxjs/xfa/cjx_traversal.h",
        "fxjs/xfa/cjx_traverse.cpp",
        "fxjs/xfa/cjx_traverse.h",
        "fxjs/xfa/cjx_tree.cpp",
        "fxjs/xfa/cjx_tree.h",
        "fxjs/xfa/cjx_treelist.cpp",
        "fxjs/xfa/cjx_treelist.h",
        "fxjs/xfa/cjx_ui.cpp",
        "fxjs/xfa/cjx_ui.h",
        "fxjs/xfa/cjx_update.cpp",
        "fxjs/xfa/cjx_update.h",
        "fxjs/xfa/cjx_uri.cpp",
        "fxjs/xfa/cjx_uri.h",
        "fxjs/xfa/cjx_user.cpp",
        "fxjs/xfa/cjx_user.h",
        "fxjs/xfa/cjx_validate.cpp",
        "fxjs/xfa/cjx_validate.h",
        "fxjs/xfa/cjx_value.cpp",
        "fxjs/xfa/cjx_value.h",
        "fxjs/xfa/cjx_variables.cpp",
        "fxjs/xfa/cjx_variables.h",
        "fxjs/xfa/cjx_wsdladdress.cpp",
        "fxjs/xfa/cjx_wsdladdress.h",
        "fxjs/xfa/cjx_wsdlconnection.cpp",
        "fxjs/xfa/cjx_wsdlconnection.h",
        "fxjs/xfa/cjx_xfa.cpp",
        "fxjs/xfa/cjx_xfa.h",
        "fxjs/xfa/cjx_xmlconnection.cpp",
        "fxjs/xfa/cjx_xmlconnection.h",
        "fxjs/xfa/cjx_xsdconnection.cpp",
        "fxjs/xfa/cjx_xsdconnection.h",
      ]
    }
  } else {
    sources += [
      "fxjs/cjs_event_context_stub.cpp",
      "fxjs/cjs_event_context_stub.h",
      "fxjs/cjs_runtimestub.cpp",
    ]
  }
}

jumbo_static_library("formfiller") {
  sources = [
    "fpdfsdk/formfiller/cba_fontmap.cpp",
    "fpdfsdk/formfiller/cba_fontmap.h",
    "fpdfsdk/formfiller/cffl_button.cpp",
    "fpdfsdk/formfiller/cffl_button.h",
    "fpdfsdk/formfiller/cffl_checkbox.cpp",
    "fpdfsdk/formfiller/cffl_checkbox.h",
    "fpdfsdk/formfiller/cffl_combobox.cpp",
    "fpdfsdk/formfiller/cffl_combobox.h",
    "fpdfsdk/formfiller/cffl_formfiller.cpp",
    "fpdfsdk/formfiller/cffl_formfiller.h",
    "fpdfsdk/formfiller/cffl_interactiveformfiller.cpp",
    "fpdfsdk/formfiller/cffl_interactiveformfiller.h",
    "fpdfsdk/formfiller/cffl_listbox.cpp",
    "fpdfsdk/formfiller/cffl_listbox.h",
    "fpdfsdk/formfiller/cffl_pushbutton.cpp",
    "fpdfsdk/formfiller/cffl_pushbutton.h",
    "fpdfsdk/formfiller/cffl_radiobutton.cpp",
    "fpdfsdk/formfiller/cffl_radiobutton.h",
    "fpdfsdk/formfiller/cffl_textfield.cpp",
    "fpdfsdk/formfiller/cffl_textfield.h",
    "fpdfsdk/formfiller/cffl_textobject.cpp",
    "fpdfsdk/formfiller/cffl_textobject.h",
  ]
  configs += [ ":pdfium_core_config" ]
  deps = [
    ":fxcrt",
  ]
}

if (pdf_enable_xfa) {
  jumbo_static_library("fpdfxfa") {
    sources = [
      "fpdfsdk/fpdfxfa/cpdfxfa_context.cpp",
      "fpdfsdk/fpdfxfa/cpdfxfa_context.h",
      "fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp",
      "fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h",
      "fpdfsdk/fpdfxfa/cpdfxfa_page.cpp",
      "fpdfsdk/fpdfxfa/cpdfxfa_page.h",
      "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.cpp",
      "fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h",
    ]
    deps = [
      ":fxcrt",
      ":fxjs",
      ":xfa",
    ]
    configs += [ ":pdfium_core_config" ]
  }

  jumbo_static_library("fxbarcode") {
    sources = [
      "fxbarcode/BC_Library.cpp",
      "fxbarcode/BC_Library.h",
      "fxbarcode/BC_TwoDimWriter.cpp",
      "fxbarcode/BC_TwoDimWriter.h",
      "fxbarcode/BC_UtilCodingConvert.cpp",
      "fxbarcode/BC_UtilCodingConvert.h",
      "fxbarcode/BC_Utils.cpp",
      "fxbarcode/BC_Writer.cpp",
      "fxbarcode/BC_Writer.h",
      "fxbarcode/cbc_codabar.cpp",
      "fxbarcode/cbc_codabar.h",
      "fxbarcode/cbc_code128.cpp",
      "fxbarcode/cbc_code128.h",
      "fxbarcode/cbc_code39.cpp",
      "fxbarcode/cbc_code39.h",
      "fxbarcode/cbc_codebase.cpp",
      "fxbarcode/cbc_codebase.h",
      "fxbarcode/cbc_datamatrix.cpp",
      "fxbarcode/cbc_datamatrix.h",
      "fxbarcode/cbc_ean13.cpp",
      "fxbarcode/cbc_ean13.h",
      "fxbarcode/cbc_ean8.cpp",
      "fxbarcode/cbc_ean8.h",
      "fxbarcode/cbc_onecode.cpp",
      "fxbarcode/cbc_onecode.h",
      "fxbarcode/cbc_pdf417i.cpp",
      "fxbarcode/cbc_pdf417i.h",
      "fxbarcode/cbc_qrcode.cpp",
      "fxbarcode/cbc_qrcode.h",
      "fxbarcode/cbc_upca.cpp",
      "fxbarcode/cbc_upca.h",
      "fxbarcode/common/BC_CommonBitArray.cpp",
      "fxbarcode/common/BC_CommonBitArray.h",
      "fxbarcode/common/BC_CommonBitMatrix.cpp",
      "fxbarcode/common/BC_CommonBitMatrix.h",
      "fxbarcode/common/BC_CommonByteArray.cpp",
      "fxbarcode/common/BC_CommonByteArray.h",
      "fxbarcode/common/BC_CommonByteMatrix.cpp",
      "fxbarcode/common/BC_CommonByteMatrix.h",
      "fxbarcode/common/reedsolomon/BC_ReedSolomon.cpp",
      "fxbarcode/common/reedsolomon/BC_ReedSolomon.h",
      "fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.cpp",
      "fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h",
      "fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.cpp",
      "fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.h",
      "fxbarcode/datamatrix/BC_ASCIIEncoder.cpp",
      "fxbarcode/datamatrix/BC_ASCIIEncoder.h",
      "fxbarcode/datamatrix/BC_Base256Encoder.cpp",
      "fxbarcode/datamatrix/BC_Base256Encoder.h",
      "fxbarcode/datamatrix/BC_C40Encoder.cpp",
      "fxbarcode/datamatrix/BC_C40Encoder.h",
      "fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.cpp",
      "fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.h",
      "fxbarcode/datamatrix/BC_DataMatrixWriter.cpp",
      "fxbarcode/datamatrix/BC_DataMatrixWriter.h",
      "fxbarcode/datamatrix/BC_DefaultPlacement.cpp",
      "fxbarcode/datamatrix/BC_DefaultPlacement.h",
      "fxbarcode/datamatrix/BC_EdifactEncoder.cpp",
      "fxbarcode/datamatrix/BC_EdifactEncoder.h",
      "fxbarcode/datamatrix/BC_Encoder.cpp",
      "fxbarcode/datamatrix/BC_Encoder.h",
      "fxbarcode/datamatrix/BC_EncoderContext.cpp",
      "fxbarcode/datamatrix/BC_EncoderContext.h",
      "fxbarcode/datamatrix/BC_ErrorCorrection.cpp",
      "fxbarcode/datamatrix/BC_ErrorCorrection.h",
      "fxbarcode/datamatrix/BC_HighLevelEncoder.cpp",
      "fxbarcode/datamatrix/BC_HighLevelEncoder.h",
      "fxbarcode/datamatrix/BC_SymbolInfo.cpp",
      "fxbarcode/datamatrix/BC_SymbolInfo.h",
      "fxbarcode/datamatrix/BC_TextEncoder.cpp",
      "fxbarcode/datamatrix/BC_TextEncoder.h",
      "fxbarcode/datamatrix/BC_X12Encoder.cpp",
      "fxbarcode/datamatrix/BC_X12Encoder.h",
      "fxbarcode/oned/BC_OneDimWriter.cpp",
      "fxbarcode/oned/BC_OneDimWriter.h",
      "fxbarcode/oned/BC_OnedCodaBarWriter.cpp",
      "fxbarcode/oned/BC_OnedCodaBarWriter.h",
      "fxbarcode/oned/BC_OnedCode128Writer.cpp",
      "fxbarcode/oned/BC_OnedCode128Writer.h",
      "fxbarcode/oned/BC_OnedCode39Writer.cpp",
      "fxbarcode/oned/BC_OnedCode39Writer.h",
      "fxbarcode/oned/BC_OnedEAN13Writer.cpp",
      "fxbarcode/oned/BC_OnedEAN13Writer.h",
      "fxbarcode/oned/BC_OnedEAN8Writer.cpp",
      "fxbarcode/oned/BC_OnedEAN8Writer.h",
      "fxbarcode/oned/BC_OnedEANChecksum.cpp",
      "fxbarcode/oned/BC_OnedEANChecksum.h",
      "fxbarcode/oned/BC_OnedUPCAWriter.cpp",
      "fxbarcode/oned/BC_OnedUPCAWriter.h",
      "fxbarcode/pdf417/BC_PDF417.cpp",
      "fxbarcode/pdf417/BC_PDF417.h",
      "fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp",
      "fxbarcode/pdf417/BC_PDF417BarcodeMatrix.h",
      "fxbarcode/pdf417/BC_PDF417BarcodeRow.cpp",
      "fxbarcode/pdf417/BC_PDF417BarcodeRow.h",
      "fxbarcode/pdf417/BC_PDF417Compaction.cpp",
      "fxbarcode/pdf417/BC_PDF417Compaction.h",
      "fxbarcode/pdf417/BC_PDF417ErrorCorrection.cpp",
      "fxbarcode/pdf417/BC_PDF417ErrorCorrection.h",
      "fxbarcode/pdf417/BC_PDF417HighLevelEncoder.cpp",
      "fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h",
      "fxbarcode/pdf417/BC_PDF417Writer.cpp",
      "fxbarcode/pdf417/BC_PDF417Writer.h",
      "fxbarcode/qrcode/BC_QRCodeWriter.cpp",
      "fxbarcode/qrcode/BC_QRCodeWriter.h",
      "fxbarcode/qrcode/BC_QRCoder.cpp",
      "fxbarcode/qrcode/BC_QRCoder.h",
      "fxbarcode/qrcode/BC_QRCoderBitVector.cpp",
      "fxbarcode/qrcode/BC_QRCoderBitVector.h",
      "fxbarcode/qrcode/BC_QRCoderBlockPair.cpp",
      "fxbarcode/qrcode/BC_QRCoderBlockPair.h",
      "fxbarcode/qrcode/BC_QRCoderECBlocks.cpp",
      "fxbarcode/qrcode/BC_QRCoderECBlocks.h",
      "fxbarcode/qrcode/BC_QRCoderECBlocksData.cpp",
      "fxbarcode/qrcode/BC_QRCoderECBlocksData.h",
      "fxbarcode/qrcode/BC_QRCoderEncoder.cpp",
      "fxbarcode/qrcode/BC_QRCoderEncoder.h",
      "fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.cpp",
      "fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h",
      "fxbarcode/qrcode/BC_QRCoderMaskUtil.cpp",
      "fxbarcode/qrcode/BC_QRCoderMaskUtil.h",
      "fxbarcode/qrcode/BC_QRCoderMatrixUtil.cpp",
      "fxbarcode/qrcode/BC_QRCoderMatrixUtil.h",
      "fxbarcode/qrcode/BC_QRCoderMode.cpp",
      "fxbarcode/qrcode/BC_QRCoderMode.h",
      "fxbarcode/qrcode/BC_QRCoderVersion.cpp",
      "fxbarcode/qrcode/BC_QRCoderVersion.h",
      "fxbarcode/utils.h",
    ]
    deps = [
      ":fxcrt",
    ]
    configs += [ ":pdfium_core_config" ]
  }

  group("xfa") {
    deps = [
      ":xfa_fde",
      ":xfa_fgas",
      ":xfa_fwl",
      ":xfa_fxfa",
      ":xfa_fxfa_fm2js",
      ":xfa_fxfa_parser",
      ":xfa_fxgraphics",
    ]
  }

  jumbo_static_library("xfa_fde") {
    sources = [
      "xfa/fde/cfde_data.h",
      "xfa/fde/cfde_texteditengine.cpp",
      "xfa/fde/cfde_texteditengine.h",
      "xfa/fde/cfde_textout.cpp",
      "xfa/fde/cfde_textout.h",
      "xfa/fde/cfde_wordbreak_data.cpp",
      "xfa/fde/cfde_wordbreak_data.h",
    ]
    deps = [
      ":fxcrt",
    ]
    configs += [
      ":pdfium_core_config",
      ":xfa_warnings",
    ]
  }

  jumbo_static_library("xfa_fgas") {
    sources = [
      "xfa/fgas/crt/cfgas_formatstring.cpp",
      "xfa/fgas/crt/cfgas_formatstring.h",
      "xfa/fgas/font/cfgas_defaultfontmanager.cpp",
      "xfa/fgas/font/cfgas_defaultfontmanager.h",
      "xfa/fgas/font/cfgas_fontmgr.cpp",
      "xfa/fgas/font/cfgas_fontmgr.h",
      "xfa/fgas/font/cfgas_gefont.cpp",
      "xfa/fgas/font/cfgas_gefont.h",
      "xfa/fgas/font/cfgas_pdffontmgr.cpp",
      "xfa/fgas/font/cfgas_pdffontmgr.h",
      "xfa/fgas/font/fgas_fontutils.cpp",
      "xfa/fgas/font/fgas_fontutils.h",
      "xfa/fgas/layout/cfx_break.cpp",
      "xfa/fgas/layout/cfx_break.h",
      "xfa/fgas/layout/cfx_breakline.cpp",
      "xfa/fgas/layout/cfx_breakline.h",
      "xfa/fgas/layout/cfx_breakpiece.cpp",
      "xfa/fgas/layout/cfx_breakpiece.h",
      "xfa/fgas/layout/cfx_linebreak.cpp",
      "xfa/fgas/layout/cfx_linebreak.h",
      "xfa/fgas/layout/cfx_rtfbreak.cpp",
      "xfa/fgas/layout/cfx_rtfbreak.h",
      "xfa/fgas/layout/cfx_txtbreak.cpp",
      "xfa/fgas/layout/cfx_txtbreak.h",
    ]
    deps = [
      ":fxcrt",
    ]
    configs += [
      ":pdfium_core_config",
      ":xfa_warnings",
    ]
  }

  jumbo_static_library("xfa_fwl") {
    sources = [
      "xfa/fwl/cfwl_app.cpp",
      "xfa/fwl/cfwl_app.h",
      "xfa/fwl/cfwl_barcode.cpp",
      "xfa/fwl/cfwl_barcode.h",
      "xfa/fwl/cfwl_caret.cpp",
      "xfa/fwl/cfwl_caret.h",
      "xfa/fwl/cfwl_checkbox.cpp",
      "xfa/fwl/cfwl_checkbox.h",
      "xfa/fwl/cfwl_combobox.cpp",
      "xfa/fwl/cfwl_combobox.h",
      "xfa/fwl/cfwl_comboboxproxy.cpp",
      "xfa/fwl/cfwl_comboboxproxy.h",
      "xfa/fwl/cfwl_comboedit.cpp",
      "xfa/fwl/cfwl_comboedit.h",
      "xfa/fwl/cfwl_combolist.cpp",
      "xfa/fwl/cfwl_combolist.h",
      "xfa/fwl/cfwl_datetimeedit.cpp",
      "xfa/fwl/cfwl_datetimeedit.h",
      "xfa/fwl/cfwl_datetimepicker.cpp",
      "xfa/fwl/cfwl_datetimepicker.h",
      "xfa/fwl/cfwl_edit.cpp",
      "xfa/fwl/cfwl_edit.h",
      "xfa/fwl/cfwl_event.cpp",
      "xfa/fwl/cfwl_event.h",
      "xfa/fwl/cfwl_eventcheckword.cpp",
      "xfa/fwl/cfwl_eventcheckword.h",
      "xfa/fwl/cfwl_eventmouse.cpp",
      "xfa/fwl/cfwl_eventmouse.h",
      "xfa/fwl/cfwl_eventscroll.cpp",
      "xfa/fwl/cfwl_eventscroll.h",
      "xfa/fwl/cfwl_eventselectchanged.cpp",
      "xfa/fwl/cfwl_eventselectchanged.h",
      "xfa/fwl/cfwl_eventtarget.cpp",
      "xfa/fwl/cfwl_eventtarget.h",
      "xfa/fwl/cfwl_eventtextchanged.cpp",
      "xfa/fwl/cfwl_eventtextchanged.h",
      "xfa/fwl/cfwl_eventvalidate.cpp",
      "xfa/fwl/cfwl_eventvalidate.h",
      "xfa/fwl/cfwl_form.cpp",
      "xfa/fwl/cfwl_form.h",
      "xfa/fwl/cfwl_formproxy.cpp",
      "xfa/fwl/cfwl_formproxy.h",
      "xfa/fwl/cfwl_listbox.cpp",
      "xfa/fwl/cfwl_listbox.h",
      "xfa/fwl/cfwl_listitem.cpp",
      "xfa/fwl/cfwl_listitem.h",
      "xfa/fwl/cfwl_message.cpp",
      "xfa/fwl/cfwl_message.h",
      "xfa/fwl/cfwl_messagekey.cpp",
      "xfa/fwl/cfwl_messagekey.h",
      "xfa/fwl/cfwl_messagekillfocus.cpp",
      "xfa/fwl/cfwl_messagekillfocus.h",
      "xfa/fwl/cfwl_messagemouse.cpp",
      "xfa/fwl/cfwl_messagemouse.h",
      "xfa/fwl/cfwl_messagemousewheel.cpp",
      "xfa/fwl/cfwl_messagemousewheel.h",
      "xfa/fwl/cfwl_messagesetfocus.cpp",
      "xfa/fwl/cfwl_messagesetfocus.h",
      "xfa/fwl/cfwl_monthcalendar.cpp",
      "xfa/fwl/cfwl_monthcalendar.h",
      "xfa/fwl/cfwl_notedriver.cpp",
      "xfa/fwl/cfwl_notedriver.h",
      "xfa/fwl/cfwl_noteloop.cpp",
      "xfa/fwl/cfwl_noteloop.h",
      "xfa/fwl/cfwl_picturebox.cpp",
      "xfa/fwl/cfwl_picturebox.h",
      "xfa/fwl/cfwl_pushbutton.cpp",
      "xfa/fwl/cfwl_pushbutton.h",
      "xfa/fwl/cfwl_scrollbar.cpp",
      "xfa/fwl/cfwl_scrollbar.h",
      "xfa/fwl/cfwl_themebackground.h",
      "xfa/fwl/cfwl_themepart.cpp",
      "xfa/fwl/cfwl_themepart.h",
      "xfa/fwl/cfwl_themetext.h",
      "xfa/fwl/cfwl_timer.cpp",
      "xfa/fwl/cfwl_timer.h",
      "xfa/fwl/cfwl_timerinfo.cpp",
      "xfa/fwl/cfwl_timerinfo.h",
      "xfa/fwl/cfwl_widget.cpp",
      "xfa/fwl/cfwl_widget.h",
      "xfa/fwl/cfwl_widgetmgr.cpp",
      "xfa/fwl/cfwl_widgetmgr.h",
      "xfa/fwl/cfwl_widgetproperties.cpp",
      "xfa/fwl/cfwl_widgetproperties.h",
      "xfa/fwl/cfx_barcode.cpp",
      "xfa/fwl/cfx_barcode.h",
      "xfa/fwl/fwl_widgetdef.h",
      "xfa/fwl/fwl_widgethit.h",
      "xfa/fwl/ifwl_adaptertimermgr.h",
      "xfa/fwl/ifwl_themeprovider.h",
      "xfa/fwl/ifwl_widgetdelegate.h",
      "xfa/fwl/theme/cfwl_barcodetp.cpp",
      "xfa/fwl/theme/cfwl_barcodetp.h",
      "xfa/fwl/theme/cfwl_carettp.cpp",
      "xfa/fwl/theme/cfwl_carettp.h",
      "xfa/fwl/theme/cfwl_checkboxtp.cpp",
      "xfa/fwl/theme/cfwl_checkboxtp.h",
      "xfa/fwl/theme/cfwl_comboboxtp.cpp",
      "xfa/fwl/theme/cfwl_comboboxtp.h",
      "xfa/fwl/theme/cfwl_datetimepickertp.cpp",
      "xfa/fwl/theme/cfwl_datetimepickertp.h",
      "xfa/fwl/theme/cfwl_edittp.cpp",
      "xfa/fwl/theme/cfwl_edittp.h",
      "xfa/fwl/theme/cfwl_listboxtp.cpp",
      "xfa/fwl/theme/cfwl_listboxtp.h",
      "xfa/fwl/theme/cfwl_monthcalendartp.cpp",
      "xfa/fwl/theme/cfwl_monthcalendartp.h",
      "xfa/fwl/theme/cfwl_pictureboxtp.cpp",
      "xfa/fwl/theme/cfwl_pictureboxtp.h",
      "xfa/fwl/theme/cfwl_pushbuttontp.cpp",
      "xfa/fwl/theme/cfwl_pushbuttontp.h",
      "xfa/fwl/theme/cfwl_scrollbartp.cpp",
      "xfa/fwl/theme/cfwl_scrollbartp.h",
      "xfa/fwl/theme/cfwl_utils.h",
      "xfa/fwl/theme/cfwl_widgettp.cpp",
      "xfa/fwl/theme/cfwl_widgettp.h",
    ]
    deps = [
      ":fxbarcode",
      ":fxcrt",
      ":xfa_fgas",
    ]
    configs += [
      ":pdfium_core_config",
      ":xfa_warnings",
    ]
  }

  jumbo_static_library("xfa_fxfa") {
    sources = [
      "xfa/fxfa/cxfa_eventparam.cpp",
      "xfa/fxfa/cxfa_eventparam.h",
      "xfa/fxfa/cxfa_ffapp.cpp",
      "xfa/fxfa/cxfa_ffapp.h",
      "xfa/fxfa/cxfa_ffarc.cpp",
      "xfa/fxfa/cxfa_ffarc.h",
      "xfa/fxfa/cxfa_ffbarcode.cpp",
      "xfa/fxfa/cxfa_ffbarcode.h",
      "xfa/fxfa/cxfa_ffcheckbutton.cpp",
      "xfa/fxfa/cxfa_ffcheckbutton.h",
      "xfa/fxfa/cxfa_ffcombobox.cpp",
      "xfa/fxfa/cxfa_ffcombobox.h",
      "xfa/fxfa/cxfa_ffdatetimeedit.cpp",
      "xfa/fxfa/cxfa_ffdatetimeedit.h",
      "xfa/fxfa/cxfa_ffdoc.cpp",
      "xfa/fxfa/cxfa_ffdoc.h",
      "xfa/fxfa/cxfa_ffdocview.cpp",
      "xfa/fxfa/cxfa_ffdocview.h",
      "xfa/fxfa/cxfa_ffdropdown.cpp",
      "xfa/fxfa/cxfa_ffdropdown.h",
      "xfa/fxfa/cxfa_ffexclgroup.cpp",
      "xfa/fxfa/cxfa_ffexclgroup.h",
      "xfa/fxfa/cxfa_fffield.cpp",
      "xfa/fxfa/cxfa_fffield.h",
      "xfa/fxfa/cxfa_ffimage.cpp",
      "xfa/fxfa/cxfa_ffimage.h",
      "xfa/fxfa/cxfa_ffimageedit.cpp",
      "xfa/fxfa/cxfa_ffimageedit.h",
      "xfa/fxfa/cxfa_ffline.cpp",
      "xfa/fxfa/cxfa_ffline.h",
      "xfa/fxfa/cxfa_fflistbox.cpp",
      "xfa/fxfa/cxfa_fflistbox.h",
      "xfa/fxfa/cxfa_ffnotify.cpp",
      "xfa/fxfa/cxfa_ffnotify.h",
      "xfa/fxfa/cxfa_ffnumericedit.cpp",
      "xfa/fxfa/cxfa_ffnumericedit.h",
      "xfa/fxfa/cxfa_ffpageview.cpp",
      "xfa/fxfa/cxfa_ffpageview.h",
      "xfa/fxfa/cxfa_ffpasswordedit.cpp",
      "xfa/fxfa/cxfa_ffpasswordedit.h",
      "xfa/fxfa/cxfa_ffpushbutton.cpp",
      "xfa/fxfa/cxfa_ffpushbutton.h",
      "xfa/fxfa/cxfa_ffrectangle.cpp",
      "xfa/fxfa/cxfa_ffrectangle.h",
      "xfa/fxfa/cxfa_ffsignature.cpp",
      "xfa/fxfa/cxfa_ffsignature.h",
      "xfa/fxfa/cxfa_fftext.cpp",
      "xfa/fxfa/cxfa_fftext.h",
      "xfa/fxfa/cxfa_fftextedit.cpp",
      "xfa/fxfa/cxfa_fftextedit.h",
      "xfa/fxfa/cxfa_ffwidget.cpp",
      "xfa/fxfa/cxfa_ffwidget.h",
      "xfa/fxfa/cxfa_ffwidgethandler.cpp",
      "xfa/fxfa/cxfa_ffwidgethandler.h",
      "xfa/fxfa/cxfa_fontmgr.cpp",
      "xfa/fxfa/cxfa_fontmgr.h",
      "xfa/fxfa/cxfa_fwladapterwidgetmgr.cpp",
      "xfa/fxfa/cxfa_fwladapterwidgetmgr.h",
      "xfa/fxfa/cxfa_fwltheme.cpp",
      "xfa/fxfa/cxfa_fwltheme.h",
      "xfa/fxfa/cxfa_imagerenderer.cpp",
      "xfa/fxfa/cxfa_imagerenderer.h",
      "xfa/fxfa/cxfa_linkuserdata.cpp",
      "xfa/fxfa/cxfa_linkuserdata.h",
      "xfa/fxfa/cxfa_loadercontext.cpp",
      "xfa/fxfa/cxfa_loadercontext.h",
      "xfa/fxfa/cxfa_pieceline.cpp",
      "xfa/fxfa/cxfa_pieceline.h",
      "xfa/fxfa/cxfa_readynodeiterator.cpp",
      "xfa/fxfa/cxfa_readynodeiterator.h",
      "xfa/fxfa/cxfa_rendercontext.cpp",
      "xfa/fxfa/cxfa_rendercontext.h",
      "xfa/fxfa/cxfa_textlayout.cpp",
      "xfa/fxfa/cxfa_textlayout.h",
      "xfa/fxfa/cxfa_textparsecontext.cpp",
      "xfa/fxfa/cxfa_textparsecontext.h",
      "xfa/fxfa/cxfa_textparser.cpp",
      "xfa/fxfa/cxfa_textparser.h",
      "xfa/fxfa/cxfa_textpiece.cpp",
      "xfa/fxfa/cxfa_textpiece.h",
      "xfa/fxfa/cxfa_textprovider.cpp",
      "xfa/fxfa/cxfa_textprovider.h",
      "xfa/fxfa/cxfa_texttabstopscontext.cpp",
      "xfa/fxfa/cxfa_texttabstopscontext.h",
      "xfa/fxfa/cxfa_textuserdata.cpp",
      "xfa/fxfa/cxfa_textuserdata.h",
      "xfa/fxfa/fxfa.h",
      "xfa/fxfa/fxfa_basic.h",
    ]
    deps = [
      ":fxcrt",
      ":fxjs",
      ":xfa_fde",
      ":xfa_fgas",
    ]
    configs += [
      ":pdfium_core_config",
      ":xfa_warnings",
    ]
  }

  jumbo_static_library("xfa_fxfa_fm2js") {
    sources = [
      "xfa/fxfa/fm2js/cxfa_fmexpression.cpp",
      "xfa/fxfa/fm2js/cxfa_fmexpression.h",
      "xfa/fxfa/fm2js/cxfa_fmlexer.cpp",
      "xfa/fxfa/fm2js/cxfa_fmlexer.h",
      "xfa/fxfa/fm2js/cxfa_fmparser.cpp",
      "xfa/fxfa/fm2js/cxfa_fmparser.h",
      "xfa/fxfa/fm2js/cxfa_fmsimpleexpression.cpp",
      "xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h",
      "xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.cpp",
      "xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.h",
    ]
    deps = [
      "//third_party/icu:icuuc",
    ]
    configs += [
      ":pdfium_core_config",
      ":xfa_warnings",
    ]
  }

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

  jumbo_static_library("xfa_fxgraphics") {
    sources = [
      "xfa/fxgraphics/cxfa_gecolor.cpp",
      "xfa/fxgraphics/cxfa_gecolor.h",
      "xfa/fxgraphics/cxfa_gepath.cpp",
      "xfa/fxgraphics/cxfa_gepath.h",
      "xfa/fxgraphics/cxfa_gepattern.cpp",
      "xfa/fxgraphics/cxfa_gepattern.h",
      "xfa/fxgraphics/cxfa_geshading.cpp",
      "xfa/fxgraphics/cxfa_geshading.h",
      "xfa/fxgraphics/cxfa_graphics.cpp",
      "xfa/fxgraphics/cxfa_graphics.h",
    ]
    configs += [
      ":pdfium_core_config",
      ":xfa_warnings",
    ]
  }
}

test("pdfium_unittests") {
  sources = [
    "core/fdrm/crypto/fx_crypt_unittest.cpp",
    "core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp",
    "core/fpdfapi/font/cpdf_cmapparser_unittest.cpp",
    "core/fpdfapi/font/cpdf_tounicodemap_unittest.cpp",
    "core/fpdfapi/page/cpdf_devicecs_unittest.cpp",
    "core/fpdfapi/page/cpdf_psengine_unittest.cpp",
    "core/fpdfapi/page/cpdf_streamcontentparser_unittest.cpp",
    "core/fpdfapi/page/cpdf_streamparser_unittest.cpp",
    "core/fpdfapi/parser/cpdf_array_unittest.cpp",
    "core/fpdfapi/parser/cpdf_cross_ref_avail_unittest.cpp",
    "core/fpdfapi/parser/cpdf_document_unittest.cpp",
    "core/fpdfapi/parser/cpdf_hint_tables_unittest.cpp",
    "core/fpdfapi/parser/cpdf_indirect_object_holder_unittest.cpp",
    "core/fpdfapi/parser/cpdf_object_avail_unittest.cpp",
    "core/fpdfapi/parser/cpdf_object_unittest.cpp",
    "core/fpdfapi/parser/cpdf_object_walker_unittest.cpp",
    "core/fpdfapi/parser/cpdf_page_object_avail_unittest.cpp",
    "core/fpdfapi/parser/cpdf_parser_unittest.cpp",
    "core/fpdfapi/parser/cpdf_read_validator_unittest.cpp",
    "core/fpdfapi/parser/cpdf_simple_parser_unittest.cpp",
    "core/fpdfapi/parser/cpdf_syntax_parser_unittest.cpp",
    "core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp",
    "core/fpdfdoc/cpdf_dest_unittest.cpp",
    "core/fpdfdoc/cpdf_filespec_unittest.cpp",
    "core/fpdfdoc/cpdf_formfield_unittest.cpp",
    "core/fpdfdoc/cpdf_nametree_unittest.cpp",
    "core/fpdftext/cpdf_linkextract_unittest.cpp",
    "core/fxcodec/codec/fx_codec_a85_unittest.cpp",
    "core/fxcodec/codec/fx_codec_jpx_unittest.cpp",
    "core/fxcodec/codec/fx_codec_rle_unittest.cpp",
    "core/fxcodec/jbig2/JBig2_BitStream_unittest.cpp",
    "core/fxcodec/jbig2/JBig2_Image_unittest.cpp",
    "core/fxcrt/bytestring_unittest.cpp",
    "core/fxcrt/cfx_seekablemultistream_unittest.cpp",
    "core/fxcrt/fx_bidi_unittest.cpp",
    "core/fxcrt/fx_coordinates_unittest.cpp",
    "core/fxcrt/fx_extension_unittest.cpp",
    "core/fxcrt/fx_memory_unittest.cpp",
    "core/fxcrt/fx_random_unittest.cpp",
    "core/fxcrt/fx_string_unittest.cpp",
    "core/fxcrt/fx_system_unittest.cpp",
    "core/fxcrt/maybe_owned_unittest.cpp",
    "core/fxcrt/observable_unittest.cpp",
    "core/fxcrt/retain_ptr_unittest.cpp",
    "core/fxcrt/shared_copy_on_write_unittest.cpp",
    "core/fxcrt/string_pool_template_unittest.cpp",
    "core/fxcrt/unowned_ptr_unittest.cpp",
    "core/fxcrt/weak_ptr_unittest.cpp",
    "core/fxcrt/widestring_unittest.cpp",
    "core/fxge/dib/cstretchengine_unittest.cpp",
    "fpdfsdk/fpdfcatalog_unittest.cpp",
    "fpdfsdk/fpdfdoc_unittest.cpp",
    "fpdfsdk/fpdfeditimg_unittest.cpp",
    "testing/unit_test_main.cpp",
  ]
  deps = [
    ":pdfium",
    ":test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
  include_dirs = []
  if (pdf_enable_xfa) {
    sources += [
      "core/fxcodec/gif/cfx_gifcontext_unittest.cpp",
      "core/fxcodec/gif/cfx_lzwdecompressor_unittest.cpp",
      "core/fxcrt/css/cfx_cssdeclaration_unittest.cpp",
      "core/fxcrt/css/cfx_cssstylesheet_unittest.cpp",
      "core/fxcrt/css/cfx_cssvaluelistparser_unittest.cpp",
      "core/fxcrt/xml/cfx_saxreader_unittest.cpp",
      "core/fxcrt/xml/cfx_xmlsyntaxparser_unittest.cpp",
      "fxbarcode/oned/BC_OnedCodaBarWriter_unittest.cpp",
      "fxbarcode/oned/BC_OnedCode128Writer_unittest.cpp",
      "fxbarcode/oned/BC_OnedCode39Writer_unittest.cpp",
      "fxbarcode/oned/BC_OnedEAN13Writer_unittest.cpp",
      "fxbarcode/oned/BC_OnedEAN8Writer_unittest.cpp",
      "fxbarcode/oned/BC_OnedUPCAWriter_unittest.cpp",
      "fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp",
      "xfa/fde/cfde_texteditengine_unittest.cpp",
      "xfa/fgas/crt/cfgas_formatstring_unittest.cpp",
      "xfa/fgas/layout/cfx_rtfbreak_unittest.cpp",
      "xfa/fwl/cfx_barcode_unittest.cpp",
      "xfa/fxfa/cxfa_ffbarcode_unittest.cpp",
      "xfa/fxfa/cxfa_textparser_unittest.cpp",
      "xfa/fxfa/fm2js/cxfa_fmlexer_unittest.cpp",
      "xfa/fxfa/fm2js/cxfa_fmparser_unittest.cpp",
      "xfa/fxfa/fm2js/cxfa_fmsimpleexpression_unittest.cpp",
      "xfa/fxfa/parser/cxfa_node_unittest.cpp",
      "xfa/fxfa/parser/cxfa_nodeiteratortemplate_unittest.cpp",
      "xfa/fxfa/parser/xfa_utils_unittest.cpp",
    ]
  }
  if (pdf_use_skia || pdf_use_skia_paths) {
    sources += [ "core/fxge/skia/fx_skia_device_unittest.cpp" ]
    deps += [ "//skia" ]
  }
  if (pdf_enable_v8) {
    sources += [
      "fxjs/cjs_publicmethods_unittest.cpp",
      "fxjs/cjs_util_unittest.cpp",
    ]
    include_dirs += [
      "//v8",
      "//v8/include",
    ]
  }
  configs += [ ":pdfium_core_config" ]
  if (is_android) {
    use_raw_android_executable = true
  }
}

test("pdfium_embeddertests") {
  sources = [
    "core/fpdfapi/edit/cpdf_creator_embeddertest.cpp",
    "core/fpdfapi/page/cpdf_stitchfunc_embeddertest.cpp",
    "core/fpdfapi/parser/cpdf_parser_embeddertest.cpp",
    "core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp",
    "core/fpdfapi/parser/fpdf_parser_decode_embeddertest.cpp",
    "core/fpdfapi/render/fpdf_render_loadimage_embeddertest.cpp",
    "core/fpdfapi/render/fpdf_render_pattern_embeddertest.cpp",
    "core/fxcodec/codec/fx_codec_embeddertest.cpp",
    "core/fxge/fx_ge_text_embeddertest.cpp",
    "fpdfsdk/fpdf_dataavail_embeddertest.cpp",
    "fpdfsdk/fpdf_flatten_embeddertest.cpp",
    "fpdfsdk/fpdf_structtree_embeddertest.cpp",
    "fpdfsdk/fpdfannot_embeddertest.cpp",
    "fpdfsdk/fpdfattachment_embeddertest.cpp",
    "fpdfsdk/fpdfdoc_embeddertest.cpp",
    "fpdfsdk/fpdfedit_embeddertest.cpp",
    "fpdfsdk/fpdfeditpath_embeddertest.cpp",
    "fpdfsdk/fpdfext_embeddertest.cpp",
    "fpdfsdk/fpdfformfill_embeddertest.cpp",
    "fpdfsdk/fpdfppo_embeddertest.cpp",
    "fpdfsdk/fpdfsave_embeddertest.cpp",
    "fpdfsdk/fpdftext_embeddertest.cpp",
    "fpdfsdk/fpdfview_c_api_test.c",
    "fpdfsdk/fpdfview_c_api_test.h",
    "fpdfsdk/fpdfview_embeddertest.cpp",
    "fpdfsdk/fsdk_baseform_embeddertest.cpp",
    "fpdfsdk/pwl/cpwl_combo_box_embeddertest.cpp",
    "fpdfsdk/pwl/cpwl_edit_embeddertest.cpp",
    "testing/embedder_test.cpp",
    "testing/embedder_test.h",
    "testing/embedder_test_main.cpp",
    "testing/embedder_test_mock_delegate.h",
    "testing/embedder_test_timer_handling_delegate.h",
    "testing/fake_file_access.cpp",
    "testing/fake_file_access.h",
    "testing/range_set.cpp",
    "testing/range_set.h",
  ]
  deps = [
    ":image_diff",
    ":pdfium",
    ":test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
  include_dirs = [ "testing/gmock/include" ]
  configs += [ ":pdfium_core_config" ]

  if (pdf_enable_v8) {
    sources += [
      "fxjs/cjs_publicmethods_embeddertest.cpp",
      "fxjs/fxjs_v8_embeddertest.cpp",
      "testing/js_embedder_test.cpp",
      "testing/js_embedder_test.h",
    ]
    deps += [ ":fxjs" ]
    configs += [ "//v8:external_startup_data" ]
  }
  if (pdf_enable_xfa) {
    sources += [
      "fxjs/cfxjse_formcalc_context_embeddertest.cpp",
      "testing/xfa_js_embedder_test.cpp",
      "testing/xfa_js_embedder_test.h",
      "xfa/fwl/cfwl_edit_embeddertest.cpp",
      "xfa/fxfa/parser/cxfa_simple_parser_embeddertest.cpp",
    ]
  }
  if (is_android) {
    ignore_all_data_deps = true
    use_raw_android_executable = true
  }
}

if (pdf_is_standalone) {
  source_set("samples") {
    testonly = true
    deps = [
      "//samples",
    ]
  }

  executable("pdfium_diff") {
    testonly = true
    sources = [
      "testing/image_diff/image_diff.cpp",
    ]
    deps = [
      ":image_diff",
      ":pdfium",
      "//build/config:exe_and_shlib_deps",
      "//build/win:default_exe_manifest",
    ]
    configs -= [ "//build/config/compiler:chromium_code" ]
    configs += [ "//build/config/compiler:no_chromium_code" ]
    configs += [ ":pdfium_core_config" ]
  }

  group("fuzzers") {
    testonly = true
    deps = [
      "//testing/libfuzzer",
    ]
  }
}

group("pdfium_all") {
  testonly = true
  deps = [
    ":pdfium_embeddertests",
    ":pdfium_unittests",
  ]
  if (pdf_is_standalone) {
    deps += [
      ":fuzzers",
      ":pdfium_diff",
      ":samples",
    ]
  }
}