• 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("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/fxcodec",
31    "../../core/fxcrt",
32    "../../fxbarcode",
33    "../../fxjs",
34    "../../fxjs:gc",
35    "../../xfa/fgas/font",
36    "../../xfa/fgas/graphics",
37    "../../xfa/fwl",
38    "../../xfa/fxfa",
39    "../../xfa/fxfa/parser",
40  ]
41  visibility = [ "../../*" ]
42}
43
44pdfium_embeddertest_source_set("embeddertests") {
45  sources = [
46    "cpdfxfa_context_embeddertest.cpp",
47    "cpdfxfa_docenvironment_embeddertest.cpp",
48  ]
49  configs = [ "//v8:external_startup_data" ]
50  deps = [
51    ":fpdfxfa",
52    "../:fpdfsdk",
53    "../../fxjs",
54  ]
55  pdfium_root_dir = "../../"
56}
57