xref: /aosp_15_r20/external/pdfium/fpdfsdk/fpdfxfa/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("fpdfxfa") {
11  sources = [
12    "cpdfxfa_context.cpp",
13    "cpdfxfa_context.h",
14    "cpdfxfa_docenvironment.cpp",
15    "cpdfxfa_docenvironment.h",
16    "cpdfxfa_page.cpp",
17    "cpdfxfa_page.h",
18    "cpdfxfa_widget.cpp",
19    "cpdfxfa_widget.h",
20  ]
21  configs += [
22    "../../:pdfium_strict_config",
23    "../../:pdfium_noshorten_config",
24  ]
25  deps = [
26    "../../:pdfium_public_headers",
27    "../../core/fpdfapi/page",
28    "../../core/fpdfapi/parser",
29    "../../core/fpdfapi/render",
30    "../../core/fxcrt",
31    "../../fxbarcode",
32    "../../fxjs",
33    "../../fxjs:gc",
34    "../../xfa/fgas/font",
35    "../../xfa/fgas/graphics",
36    "../../xfa/fwl",
37    "../../xfa/fxfa",
38    "../../xfa/fxfa/parser",
39  ]
40  visibility = [ "../../*" ]
41}
42
43pdfium_embeddertest_source_set("embeddertests") {
44  sources = [
45    "cpdfxfa_context_embeddertest.cpp",
46    "cpdfxfa_docenvironment_embeddertest.cpp",
47  ]
48  configs = [ "//v8:external_startup_data" ]
49  deps = [
50    ":fpdfxfa",
51    "../:fpdfsdk",
52    "../../fxjs",
53  ]
54  pdfium_root_dir = "../../"
55}
56