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("layout") { 11 sources = [ 12 "cfgas_break.cpp", 13 "cfgas_break.h", 14 "cfgas_breakline.cpp", 15 "cfgas_breakline.h", 16 "cfgas_breakpiece.cpp", 17 "cfgas_breakpiece.h", 18 "cfgas_char.cpp", 19 "cfgas_char.h", 20 "cfgas_linkuserdata.cpp", 21 "cfgas_linkuserdata.h", 22 "cfgas_rtfbreak.cpp", 23 "cfgas_rtfbreak.h", 24 "cfgas_textpiece.cpp", 25 "cfgas_textpiece.h", 26 "cfgas_textuserdata.cpp", 27 "cfgas_textuserdata.h", 28 "cfgas_txtbreak.cpp", 29 "cfgas_txtbreak.h", 30 "fgas_arabic.cpp", 31 "fgas_arabic.h", 32 "fgas_linebreak.cpp", 33 "fgas_linebreak.h", 34 ] 35 deps = [ 36 "../../../core/fxcrt", 37 "../../../core/fxcrt/css", 38 "../../../core/fxge", 39 "../font", 40 ] 41 configs += [ 42 "../../../:pdfium_strict_config", 43 "../../../:pdfium_noshorten_config", 44 "../../:xfa_warnings", 45 ] 46 visibility = [ "../../../*" ] 47} 48 49pdfium_unittest_source_set("unittests") { 50 sources = [ 51 "cfgas_rtfbreak_unittest.cpp", 52 "cfgas_txtbreak_unittest.cpp", 53 ] 54 deps = [ 55 ":layout", 56 "../../../core/fxge", 57 "../font", 58 ] 59 pdfium_root_dir = "../../../" 60} 61