xref: /aosp_15_r20/external/pdfium/core/fpdfdoc/BUILD.gn (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
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
8source_set("fpdfdoc") {
9  sources = [
10    "cpdf_aaction.cpp",
11    "cpdf_aaction.h",
12    "cpdf_action.cpp",
13    "cpdf_action.h",
14    "cpdf_annot.cpp",
15    "cpdf_annot.h",
16    "cpdf_annotlist.cpp",
17    "cpdf_annotlist.h",
18    "cpdf_apsettings.cpp",
19    "cpdf_apsettings.h",
20    "cpdf_bafontmap.cpp",
21    "cpdf_bafontmap.h",
22    "cpdf_bookmark.cpp",
23    "cpdf_bookmark.h",
24    "cpdf_bookmarktree.cpp",
25    "cpdf_bookmarktree.h",
26    "cpdf_color_utils.cpp",
27    "cpdf_color_utils.h",
28    "cpdf_defaultappearance.cpp",
29    "cpdf_defaultappearance.h",
30    "cpdf_dest.cpp",
31    "cpdf_dest.h",
32    "cpdf_filespec.cpp",
33    "cpdf_filespec.h",
34    "cpdf_formcontrol.cpp",
35    "cpdf_formcontrol.h",
36    "cpdf_formfield.cpp",
37    "cpdf_formfield.h",
38    "cpdf_generateap.cpp",
39    "cpdf_generateap.h",
40    "cpdf_icon.cpp",
41    "cpdf_icon.h",
42    "cpdf_iconfit.cpp",
43    "cpdf_iconfit.h",
44    "cpdf_interactiveform.cpp",
45    "cpdf_interactiveform.h",
46    "cpdf_link.cpp",
47    "cpdf_link.h",
48    "cpdf_linklist.cpp",
49    "cpdf_linklist.h",
50    "cpdf_metadata.cpp",
51    "cpdf_metadata.h",
52    "cpdf_nametree.cpp",
53    "cpdf_nametree.h",
54    "cpdf_numbertree.cpp",
55    "cpdf_numbertree.h",
56    "cpdf_pagelabel.cpp",
57    "cpdf_pagelabel.h",
58    "cpdf_structelement.cpp",
59    "cpdf_structelement.h",
60    "cpdf_structtree.cpp",
61    "cpdf_structtree.h",
62    "cpdf_viewerpreferences.cpp",
63    "cpdf_viewerpreferences.h",
64    "cpvt_floatrect.h",
65    "cpvt_fontmap.cpp",
66    "cpvt_fontmap.h",
67    "cpvt_line.h",
68    "cpvt_lineinfo.h",
69    "cpvt_section.cpp",
70    "cpvt_section.h",
71    "cpvt_variabletext.cpp",
72    "cpvt_variabletext.h",
73    "cpvt_word.h",
74    "cpvt_wordinfo.cpp",
75    "cpvt_wordinfo.h",
76    "cpvt_wordplace.h",
77    "cpvt_wordrange.h",
78    "ipvt_fontmap.h",
79  ]
80  configs += [
81    "../../:pdfium_strict_config",
82    "../../:pdfium_noshorten_config",
83  ]
84  deps = [
85    "../../constants",
86    "../fpdfapi/font",
87    "../fpdfapi/page",
88    "../fpdfapi/parser",
89    "../fpdfapi/render",
90    "../fxcrt",
91    "../fxge",
92  ]
93  visibility = [ "../../*" ]
94}
95
96pdfium_unittest_source_set("unittests") {
97  sources = [
98    "cpdf_action_unittest.cpp",
99    "cpdf_annot_unittest.cpp",
100    "cpdf_annotlist_unittest.cpp",
101    "cpdf_bafontmap_unittest.cpp",
102    "cpdf_defaultappearance_unittest.cpp",
103    "cpdf_dest_unittest.cpp",
104    "cpdf_filespec_unittest.cpp",
105    "cpdf_formfield_unittest.cpp",
106    "cpdf_metadata_unittest.cpp",
107    "cpdf_nametree_unittest.cpp",
108  ]
109  deps = [
110    ":fpdfdoc",
111    "../../constants",
112    "../fpdfapi/font",
113    "../fpdfapi/page",
114    "../fpdfapi/page:unit_test_support",
115    "../fpdfapi/parser",
116    "../fpdfapi/parser:unit_test_support",
117    "../fpdfapi/render",
118  ]
119  pdfium_root_dir = "../../"
120}
121