1# Copyright 2018 The PDFium Authors. All rights reserved.
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("fm2js") {
11  sources = [
12    "cxfa_fmexpression.cpp",
13    "cxfa_fmexpression.h",
14    "cxfa_fmlexer.cpp",
15    "cxfa_fmlexer.h",
16    "cxfa_fmparser.cpp",
17    "cxfa_fmparser.h",
18    "cxfa_fmsimpleexpression.cpp",
19    "cxfa_fmsimpleexpression.h",
20    "cxfa_fmtojavascriptdepth.cpp",
21    "cxfa_fmtojavascriptdepth.h",
22  ]
23  deps = [ "../../../core/fxcrt" ]
24  configs += [
25    "../../../:pdfium_core_config",
26    "../../:xfa_warnings",
27  ]
28  visibility = [ "../../../*" ]
29}
30
31pdfium_unittest_source_set("unittests") {
32  sources = [
33    "cxfa_fmexpression_unittest.cpp",
34    "cxfa_fmlexer_unittest.cpp",
35    "cxfa_fmparser_unittest.cpp",
36    "cxfa_fmsimpleexpression_unittest.cpp",
37  ]
38  deps = [ ":fm2js" ]
39  pdfium_root_dir = "../../../"
40}
41