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("formcalc") { 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_fmtojavascriptdepth.cpp", 19 "cxfa_fmtojavascriptdepth.h", 20 ] 21 configs += [ 22 "../../../:pdfium_strict_config", 23 "../../../:pdfium_noshorten_config", 24 "../../:xfa_warnings", 25 ] 26 deps = [ 27 "../../../core/fxcrt", 28 "../../../fxjs:gc", 29 ] 30 visibility = [ "../../../*" ] 31} 32 33pdfium_unittest_source_set("unittests") { 34 sources = [ 35 "cxfa_fmexpression_unittest.cpp", 36 "cxfa_fmlexer_unittest.cpp", 37 "cxfa_fmparser_unittest.cpp", 38 ] 39 deps = [ 40 ":formcalc", 41 "../../../fxjs:gc", 42 ] 43 pdfium_root_dir = "../../../" 44} 45