xref: /aosp_15_r20/external/pdfium/xfa/fde/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
8assert(pdf_enable_xfa)
9
10source_set("fde") {
11  sources = [
12    "cfde_data.h",
13    "cfde_texteditengine.cpp",
14    "cfde_texteditengine.h",
15    "cfde_textout.cpp",
16    "cfde_textout.h",
17    "cfde_wordbreak_data.cpp",
18    "cfde_wordbreak_data.h",
19  ]
20  configs += [
21    "../../:pdfium_strict_config",
22    "../../:pdfium_noshorten_config",
23    "../:xfa_warnings",
24  ]
25  deps = [
26    "../../core/fxcrt",
27    "../../core/fxge",
28    "../fgas/font",
29    "../fgas/layout",
30  ]
31  visibility = [ "../../*" ]
32}
33
34pdfium_unittest_source_set("unittests") {
35  sources = [
36    "cfde_texteditengine_unittest.cpp",
37    "cfde_textout_unittest.cpp",
38  ]
39  deps = [
40    ":fde",
41    "../../core/fdrm",
42    "../../core/fxge",
43    "../fgas/font",
44  ]
45  pdfium_root_dir = "../../"
46}
47