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 8source_set("font") { 9 sources = [ 10 "cfx_cttgsubtable.cpp", 11 "cfx_cttgsubtable.h", 12 "cfx_stockfontarray.cpp", 13 "cfx_stockfontarray.h", 14 "cpdf_cid2unicodemap.cpp", 15 "cpdf_cid2unicodemap.h", 16 "cpdf_cidfont.cpp", 17 "cpdf_cidfont.h", 18 "cpdf_cmap.cpp", 19 "cpdf_cmap.h", 20 "cpdf_cmapmanager.cpp", 21 "cpdf_cmapmanager.h", 22 "cpdf_cmapparser.cpp", 23 "cpdf_cmapparser.h", 24 "cpdf_font.cpp", 25 "cpdf_font.h", 26 "cpdf_fontencoding.cpp", 27 "cpdf_fontencoding.h", 28 "cpdf_fontglobals.cpp", 29 "cpdf_fontglobals.h", 30 "cpdf_simplefont.cpp", 31 "cpdf_simplefont.h", 32 "cpdf_tounicodemap.cpp", 33 "cpdf_tounicodemap.h", 34 "cpdf_truetypefont.cpp", 35 "cpdf_truetypefont.h", 36 "cpdf_type1font.cpp", 37 "cpdf_type1font.h", 38 "cpdf_type3char.cpp", 39 "cpdf_type3char.h", 40 "cpdf_type3font.cpp", 41 "cpdf_type3font.h", 42 ] 43 configs += [ "../../../:pdfium_core_config" ] 44 deps = [ 45 "../../fxcrt", 46 "../../fxge", 47 "../cmaps", 48 "../parser", 49 ] 50 if (is_mac) { 51 libs = [ "CoreFoundation.framework" ] 52 } 53 visibility = [ "../../../*" ] 54} 55 56pdfium_unittest_source_set("unittests") { 57 sources = [ 58 "cpdf_cidfont_unittest.cpp", 59 "cpdf_cmapparser_unittest.cpp", 60 "cpdf_tounicodemap_unittest.cpp", 61 ] 62 deps = [ 63 ":font", 64 "../page", 65 "../parser", 66 "../render", 67 ] 68 pdfium_root_dir = "../../../" 69} 70