1# Copyright 2018 The PDFium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("../../pdfium.gni") 6import("../../testing/test.gni") 7 8assert(pdf_enable_xfa) 9 10source_set("fxfa") { 11 sources = [ 12 "cxfa_eventparam.cpp", 13 "cxfa_eventparam.h", 14 "cxfa_ffapp.cpp", 15 "cxfa_ffapp.h", 16 "cxfa_ffarc.cpp", 17 "cxfa_ffarc.h", 18 "cxfa_ffbarcode.cpp", 19 "cxfa_ffbarcode.h", 20 "cxfa_ffcheckbutton.cpp", 21 "cxfa_ffcheckbutton.h", 22 "cxfa_ffcombobox.cpp", 23 "cxfa_ffcombobox.h", 24 "cxfa_ffdatetimeedit.cpp", 25 "cxfa_ffdatetimeedit.h", 26 "cxfa_ffdoc.cpp", 27 "cxfa_ffdoc.h", 28 "cxfa_ffdocview.cpp", 29 "cxfa_ffdocview.h", 30 "cxfa_ffdropdown.cpp", 31 "cxfa_ffdropdown.h", 32 "cxfa_ffexclgroup.cpp", 33 "cxfa_ffexclgroup.h", 34 "cxfa_fffield.cpp", 35 "cxfa_fffield.h", 36 "cxfa_ffimage.cpp", 37 "cxfa_ffimage.h", 38 "cxfa_ffimageedit.cpp", 39 "cxfa_ffimageedit.h", 40 "cxfa_ffline.cpp", 41 "cxfa_ffline.h", 42 "cxfa_fflistbox.cpp", 43 "cxfa_fflistbox.h", 44 "cxfa_ffnotify.cpp", 45 "cxfa_ffnotify.h", 46 "cxfa_ffnumericedit.cpp", 47 "cxfa_ffnumericedit.h", 48 "cxfa_ffpageview.cpp", 49 "cxfa_ffpageview.h", 50 "cxfa_ffpasswordedit.cpp", 51 "cxfa_ffpasswordedit.h", 52 "cxfa_ffpushbutton.cpp", 53 "cxfa_ffpushbutton.h", 54 "cxfa_ffrectangle.cpp", 55 "cxfa_ffrectangle.h", 56 "cxfa_ffsignature.cpp", 57 "cxfa_ffsignature.h", 58 "cxfa_fftext.cpp", 59 "cxfa_fftext.h", 60 "cxfa_fftextedit.cpp", 61 "cxfa_fftextedit.h", 62 "cxfa_ffwidget.cpp", 63 "cxfa_ffwidget.h", 64 "cxfa_ffwidgethandler.cpp", 65 "cxfa_ffwidgethandler.h", 66 "cxfa_fontmgr.cpp", 67 "cxfa_fontmgr.h", 68 "cxfa_fwladapterwidgetmgr.cpp", 69 "cxfa_fwladapterwidgetmgr.h", 70 "cxfa_fwltheme.cpp", 71 "cxfa_fwltheme.h", 72 "cxfa_imagerenderer.cpp", 73 "cxfa_imagerenderer.h", 74 "cxfa_loadercontext.cpp", 75 "cxfa_loadercontext.h", 76 "cxfa_pieceline.cpp", 77 "cxfa_pieceline.h", 78 "cxfa_readynodeiterator.cpp", 79 "cxfa_readynodeiterator.h", 80 "cxfa_rendercontext.cpp", 81 "cxfa_rendercontext.h", 82 "cxfa_textlayout.cpp", 83 "cxfa_textlayout.h", 84 "cxfa_textparsecontext.cpp", 85 "cxfa_textparsecontext.h", 86 "cxfa_textparser.cpp", 87 "cxfa_textparser.h", 88 "cxfa_textpiece.cpp", 89 "cxfa_textpiece.h", 90 "cxfa_textprovider.cpp", 91 "cxfa_textprovider.h", 92 "cxfa_texttabstopscontext.cpp", 93 "cxfa_texttabstopscontext.h", 94 "fxfa.h", 95 "fxfa_basic.h", 96 ] 97 deps = [ 98 "../../core/fpdfapi/parser", 99 "../../core/fpdfdoc", 100 "../../core/fxcodec", 101 "../../core/fxcrt", 102 "../../core/fxcrt/css", 103 "../../core/fxge", 104 "../../fxbarcode", 105 "../../fxjs", 106 "../fde", 107 "../fgas", 108 "../fgas/layout", 109 "../fwl", 110 "../fxgraphics", 111 "layout", 112 "parser", 113 ] 114 allow_circular_includes_from = [ 115 "../../fxjs", 116 "layout", 117 "parser", 118 ] 119 configs += [ 120 "../../:pdfium_core_config", 121 "../:xfa_warnings", 122 ] 123 visibility = [ "../../*" ] 124} 125 126pdfium_unittest_source_set("unittests") { 127 sources = [ 128 "cxfa_ffbarcode_unittest.cpp", 129 "cxfa_textparser_unittest.cpp", 130 "fxfa_basic_unittest.cpp", 131 ] 132 deps = [ ":fxfa" ] 133 pdfium_root_dir = "../../" 134} 135