summaryrefslogtreecommitdiff
path: root/core/fxcrt/BUILD.gn
blob: 15a0e066e80c7e2c1cb9d1bd8daa3a31236d3680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Copyright 2018 The PDFium 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/jumbo.gni")
import("../../pdfium.gni")

jumbo_source_set("fxcrt") {
  sources = [
    "autorestorer.h",
    "bytestring.cpp",
    "bytestring.h",
    "cfx_binarybuf.cpp",
    "cfx_binarybuf.h",
    "cfx_bitstream.cpp",
    "cfx_bitstream.h",
    "cfx_datetime.cpp",
    "cfx_datetime.h",
    "cfx_fixedbufgrow.h",
    "cfx_memorystream.cpp",
    "cfx_memorystream.h",
    "cfx_readonlymemorystream.cpp",
    "cfx_readonlymemorystream.h",
    "cfx_seekablemultistream.cpp",
    "cfx_seekablemultistream.h",
    "cfx_seekablestreamproxy.cpp",
    "cfx_seekablestreamproxy.h",
    "cfx_utf8decoder.cpp",
    "cfx_utf8decoder.h",
    "cfx_utf8encoder.cpp",
    "cfx_utf8encoder.h",
    "cfx_widetextbuf.cpp",
    "cfx_widetextbuf.h",
    "fileaccess_iface.h",
    "fx_bidi.cpp",
    "fx_bidi.h",
    "fx_codepage.cpp",
    "fx_codepage.h",
    "fx_coordinates.cpp",
    "fx_coordinates.h",
    "fx_extension.cpp",
    "fx_extension.h",
    "fx_memory.cpp",
    "fx_memory.h",
    "fx_number.cpp",
    "fx_number.h",
    "fx_random.cpp",
    "fx_random.h",
    "fx_safe_types.h",
    "fx_stream.cpp",
    "fx_stream.h",
    "fx_string.cpp",
    "fx_string.h",
    "fx_system.cpp",
    "fx_system.h",
    "fx_ucddata.cpp",
    "fx_ucddata.h",
    "fx_unicode.cpp",
    "fx_unicode.h",
    "maybe_owned.h",
    "observable.h",
    "pauseindicator_iface.h",
    "retain_ptr.h",
    "shared_copy_on_write.h",
    "string_data_template.h",
    "string_pool_template.h",
    "string_view_template.h",
    "unowned_ptr.h",
    "weak_ptr.h",
    "widestring.cpp",
    "widestring.h",
    "xml/cfx_xmlchardata.cpp",
    "xml/cfx_xmlchardata.h",
    "xml/cfx_xmldocument.cpp",
    "xml/cfx_xmldocument.h",
    "xml/cfx_xmlelement.cpp",
    "xml/cfx_xmlelement.h",
    "xml/cfx_xmlinstruction.cpp",
    "xml/cfx_xmlinstruction.h",
    "xml/cfx_xmlnode.cpp",
    "xml/cfx_xmlnode.h",
    "xml/cfx_xmlparser.cpp",
    "xml/cfx_xmlparser.h",
    "xml/cfx_xmltext.cpp",
    "xml/cfx_xmltext.h",
  ]
  configs += [ "../../:pdfium_core_config" ]
  visibility = [
    "../*",
    "../../:*",
    "../../fpdfsdk/*",
    "../../fxbarcode:*",
    "../../fxjs:*",
    "../../third_party:*",
    "../../xfa/*",
  ]
  deps = [
    "../../third_party:pdfium_base",
  ]
  public_deps = [
    "../../:freetype_common",
    "../../third_party:pdfium_base",
    "//third_party/icu:icuuc",
  ]
  if (is_posix || is_fuchsia) {
    sources += [
      "cfx_fileaccess_posix.cpp",
      "cfx_fileaccess_posix.h",
    ]
  }
  if (is_win) {
    sources += [
      "cfx_fileaccess_windows.cpp",
      "cfx_fileaccess_windows.h",
    ]
  }
  if (pdf_enable_xfa) {
    sources += [
      "cfx_char.cpp",
      "cfx_char.h",
      "cfx_decimal.cpp",
      "cfx_decimal.h",
      "css/cfx_css.h",
      "css/cfx_csscolorvalue.cpp",
      "css/cfx_csscolorvalue.h",
      "css/cfx_csscomputedstyle.cpp",
      "css/cfx_csscomputedstyle.h",
      "css/cfx_csscustomproperty.cpp",
      "css/cfx_csscustomproperty.h",
      "css/cfx_cssdata.cpp",
      "css/cfx_cssdata.h",
      "css/cfx_cssdeclaration.cpp",
      "css/cfx_cssdeclaration.h",
      "css/cfx_cssenumvalue.cpp",
      "css/cfx_cssenumvalue.h",
      "css/cfx_cssexttextbuf.cpp",
      "css/cfx_cssexttextbuf.h",
      "css/cfx_cssnumbervalue.cpp",
      "css/cfx_cssnumbervalue.h",
      "css/cfx_csspropertyholder.cpp",
      "css/cfx_csspropertyholder.h",
      "css/cfx_cssrulecollection.cpp",
      "css/cfx_cssrulecollection.h",
      "css/cfx_cssselector.cpp",
      "css/cfx_cssselector.h",
      "css/cfx_cssstringvalue.cpp",
      "css/cfx_cssstringvalue.h",
      "css/cfx_cssstylerule.cpp",
      "css/cfx_cssstylerule.h",
      "css/cfx_cssstyleselector.cpp",
      "css/cfx_cssstyleselector.h",
      "css/cfx_cssstylesheet.cpp",
      "css/cfx_cssstylesheet.h",
      "css/cfx_csssyntaxparser.cpp",
      "css/cfx_csssyntaxparser.h",
      "css/cfx_csstextbuf.cpp",
      "css/cfx_csstextbuf.h",
      "css/cfx_cssvalue.cpp",
      "css/cfx_cssvalue.h",
      "css/cfx_cssvaluelist.cpp",
      "css/cfx_cssvaluelist.h",
      "css/cfx_cssvaluelistparser.cpp",
      "css/cfx_cssvaluelistparser.h",
      "fx_arabic.cpp",
      "fx_arabic.h",
      "locale_iface.h",
    ]
  }
}