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("layout") { 11 sources = [ 12 "cfx_break.cpp", 13 "cfx_break.h", 14 "cfx_breakline.cpp", 15 "cfx_breakline.h", 16 "cfx_breakpiece.cpp", 17 "cfx_breakpiece.h", 18 "cfx_char.cpp", 19 "cfx_char.h", 20 "cfx_linkuserdata.cpp", 21 "cfx_linkuserdata.h", 22 "cfx_rtfbreak.cpp", 23 "cfx_rtfbreak.h", 24 "cfx_textpiece.cpp", 25 "cfx_textpiece.h", 26 "cfx_textuserdata.cpp", 27 "cfx_textuserdata.h", 28 "cfx_txtbreak.cpp", 29 "cfx_txtbreak.h", 30 "fx_arabic.cpp", 31 "fx_arabic.h", 32 "fx_linebreak.cpp", 33 "fx_linebreak.h", 34 ] 35 deps = [ 36 "../:fgas", 37 "../../../core/fxcrt", 38 "../../../core/fxcrt/css", 39 "../../../core/fxge", 40 ] 41 configs += [ 42 "../../../:pdfium_core_config", 43 "../../:xfa_warnings", 44 ] 45 visibility = [ "../../../*" ] 46} 47 48pdfium_unittest_source_set("unittests") { 49 sources = [ 50 "cfx_rtfbreak_unittest.cpp", 51 "cfx_txtbreak_unittest.cpp", 52 ] 53 deps = [ 54 ":layout", 55 "../:fgas", 56 "../../../core/fxge", 57 "../../../testing:unit_test_support", 58 ] 59 pdfium_root_dir = "../../../" 60} 61