• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 The PDFium Authors
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_readynodeiterator.cpp",
75    "cxfa_readynodeiterator.h",
76    "cxfa_textlayout.cpp",
77    "cxfa_textlayout.h",
78    "cxfa_textparser.cpp",
79    "cxfa_textparser.h",
80    "cxfa_textprovider.cpp",
81    "cxfa_textprovider.h",
82    "cxfa_texttabstopscontext.cpp",
83    "cxfa_texttabstopscontext.h",
84    "fxfa.h",
85    "fxfa_basic.h",
86  ]
87  deps = [
88    "../../constants",
89    "../../core/fpdfapi/parser",
90    "../../core/fpdfdoc",
91    "../../core/fxcodec",
92    "../../core/fxcrt",
93    "../../core/fxcrt/css",
94    "../../core/fxge",
95    "../../fxbarcode",
96    "../../fxjs",
97    "../../fxjs:gc",
98    "../fde",
99    "../fgas/font",
100    "../fgas/graphics",
101    "../fgas/layout",
102    "../fwl",
103    "layout",
104    "parser",
105  ]
106  allow_circular_includes_from = [
107    "../../fxjs",
108    "layout",
109    "parser",
110  ]
111  configs += [
112    "../../:pdfium_strict_config",
113    "../../:pdfium_noshorten_config",
114    "../:xfa_warnings",
115  ]
116  visibility = [ "../../*" ]
117}
118
119pdfium_unittest_source_set("unittests") {
120  sources = [
121    "cxfa_ffbarcode_unittest.cpp",
122    "cxfa_textparser_unittest.cpp",
123    "fxfa_basic_unittest.cpp",
124  ]
125  deps = [
126    ":fxfa",
127    "../../fxjs:gc",
128  ]
129  pdfium_root_dir = "../../"
130}
131