From c3ba98e2be94dc6bb4f43df994423f911f0b8618 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 22 Jan 2018 19:43:26 +0000 Subject: Break xfa target into smaller pieces. Change-Id: I3a30b3e945dd3147a85f0e057abd8768c9089331 Reviewed-on: https://pdfium-review.googlesource.com/23173 Reviewed-by: dsinclair Commit-Queue: Lei Zhang --- BUILD.gn | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 100 insertions(+), 9 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index c771b81910..de0016c384 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1806,15 +1806,41 @@ if (pdf_enable_xfa) { configs += [ ":pdfium_core_config" ] } + group("xfa") { + deps = [ + ":xfa_fde", + ":xfa_fgas", + ":xfa_fwl", + ":xfa_fxfa", + ":xfa_fxfa_fm2js", + ":xfa_fxfa_parser", + ":xfa_fxgraphics", + ] + } + # TODO(crbug.com/pdfium/964): Support jumbo builds. - static_library("xfa") { + 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", + ] + } + + # TODO(crbug.com/pdfium/964): Support jumbo builds. + static_library("xfa_fgas") { + sources = [ "xfa/fgas/crt/cfgas_formatstring.cpp", "xfa/fgas/crt/cfgas_formatstring.h", "xfa/fgas/font/cfgas_defaultfontmanager.cpp", @@ -1839,6 +1865,19 @@ if (pdf_enable_xfa) { "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", + ] + } + + # TODO(crbug.com/pdfium/964): Support jumbo builds. + static_library("xfa_fwl") { + sources = [ "xfa/fwl/cfwl_app.cpp", "xfa/fwl/cfwl_app.h", "xfa/fwl/cfwl_barcode.cpp", @@ -1955,6 +1994,21 @@ if (pdf_enable_xfa) { "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", + ] + } + + # TODO(crbug.com/pdfium/964): Support jumbo builds. + static_library("xfa_fxfa") { + sources = [ "xfa/fxfa/cxfa_eventparam.cpp", "xfa/fxfa/cxfa_eventparam.h", "xfa/fxfa/cxfa_ffapp.cpp", @@ -2045,6 +2099,24 @@ if (pdf_enable_xfa) { "xfa/fxfa/cxfa_widgetacc.h", "xfa/fxfa/cxfa_widgetacciterator.cpp", "xfa/fxfa/cxfa_widgetacciterator.h", + "xfa/fxfa/fxfa.h", + "xfa/fxfa/fxfa_basic.h", + ] + deps = [ + ":fxcrt", + ":fxjs", + ":xfa_fde", + ":xfa_fgas", + ] + configs += [ + ":pdfium_core_config", + ":xfa_warnings", + ] + } + + # TODO(crbug.com/pdfium/964): Support jumbo builds. + static_library("xfa_fxfa_fm2js") { + sources = [ "xfa/fxfa/fm2js/cxfa_fmexpression.cpp", "xfa/fxfa/fm2js/cxfa_fmexpression.h", "xfa/fxfa/fm2js/cxfa_fmlexer.cpp", @@ -2055,8 +2127,19 @@ if (pdf_enable_xfa) { "xfa/fxfa/fm2js/cxfa_fmsimpleexpression.h", "xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.cpp", "xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.h", - "xfa/fxfa/fxfa.h", - "xfa/fxfa/fxfa_basic.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", @@ -2747,6 +2830,20 @@ if (pdf_enable_xfa) { "xfa/fxfa/parser/xfa_resolvenode_rs.h", "xfa/fxfa/parser/xfa_utils.cpp", "xfa/fxfa/parser/xfa_utils.h", + ] + deps = [ + ":fxjs", + ":xfa_fgas", + ] + configs += [ + ":pdfium_core_config", + ":xfa_warnings", + ] + } + + # TODO(crbug.com/pdfium/964): Support jumbo builds. + static_library("xfa_fxgraphics") { + sources = [ "xfa/fxgraphics/cxfa_gecolor.cpp", "xfa/fxgraphics/cxfa_gecolor.h", "xfa/fxgraphics/cxfa_gepath.cpp", @@ -2758,12 +2855,6 @@ if (pdf_enable_xfa) { "xfa/fxgraphics/cxfa_graphics.cpp", "xfa/fxgraphics/cxfa_graphics.h", ] - include_dirs = [ "." ] - deps = [ - ":fxbarcode", - ":fxcrt", - ":fxjs", - ] configs += [ ":pdfium_core_config", ":xfa_warnings", -- cgit v1.2.3