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("fpdfdoc") { 9 sources = [ 10 "cba_fontmap.cpp", 11 "cba_fontmap.h", 12 "cline.cpp", 13 "cline.h", 14 "cpdf_aaction.cpp", 15 "cpdf_aaction.h", 16 "cpdf_action.cpp", 17 "cpdf_action.h", 18 "cpdf_annot.cpp", 19 "cpdf_annot.h", 20 "cpdf_annotlist.cpp", 21 "cpdf_annotlist.h", 22 "cpdf_apsettings.cpp", 23 "cpdf_apsettings.h", 24 "cpdf_bookmark.cpp", 25 "cpdf_bookmark.h", 26 "cpdf_bookmarktree.cpp", 27 "cpdf_bookmarktree.h", 28 "cpdf_color_utils.cpp", 29 "cpdf_color_utils.h", 30 "cpdf_defaultappearance.cpp", 31 "cpdf_defaultappearance.h", 32 "cpdf_dest.cpp", 33 "cpdf_dest.h", 34 "cpdf_filespec.cpp", 35 "cpdf_filespec.h", 36 "cpdf_formcontrol.cpp", 37 "cpdf_formcontrol.h", 38 "cpdf_formfield.cpp", 39 "cpdf_formfield.h", 40 "cpdf_icon.cpp", 41 "cpdf_icon.h", 42 "cpdf_iconfit.cpp", 43 "cpdf_iconfit.h", 44 "cpdf_interactiveform.cpp", 45 "cpdf_interactiveform.h", 46 "cpdf_link.cpp", 47 "cpdf_link.h", 48 "cpdf_linklist.cpp", 49 "cpdf_linklist.h", 50 "cpdf_metadata.cpp", 51 "cpdf_metadata.h", 52 "cpdf_nametree.cpp", 53 "cpdf_nametree.h", 54 "cpdf_numbertree.cpp", 55 "cpdf_numbertree.h", 56 "cpdf_pagelabel.cpp", 57 "cpdf_pagelabel.h", 58 "cpdf_structelement.cpp", 59 "cpdf_structelement.h", 60 "cpdf_structtree.cpp", 61 "cpdf_structtree.h", 62 "cpdf_variabletext.cpp", 63 "cpdf_variabletext.h", 64 "cpdf_viewerpreferences.cpp", 65 "cpdf_viewerpreferences.h", 66 "cpvt_floatrect.h", 67 "cpvt_fontmap.cpp", 68 "cpvt_fontmap.h", 69 "cpvt_generateap.cpp", 70 "cpvt_generateap.h", 71 "cpvt_line.h", 72 "cpvt_lineinfo.h", 73 "cpvt_word.h", 74 "cpvt_wordinfo.cpp", 75 "cpvt_wordinfo.h", 76 "cpvt_wordplace.h", 77 "cpvt_wordrange.h", 78 "csection.cpp", 79 "csection.h", 80 "ctypeset.cpp", 81 "ctypeset.h", 82 "ipvt_fontmap.h", 83 ] 84 configs += [ "../../:pdfium_core_config" ] 85 deps = [ 86 "../../constants", 87 "../fpdfapi/font", 88 "../fpdfapi/page", 89 "../fpdfapi/parser", 90 "../fpdfapi/render", 91 "../fxcrt", 92 "../fxge", 93 ] 94 visibility = [ "../../*" ] 95} 96 97pdfium_unittest_source_set("unittests") { 98 sources = [ 99 "cpdf_annot_unittest.cpp", 100 "cpdf_defaultappearance_unittest.cpp", 101 "cpdf_dest_unittest.cpp", 102 "cpdf_filespec_unittest.cpp", 103 "cpdf_formfield_unittest.cpp", 104 "cpdf_metadata_unittest.cpp", 105 "cpdf_nametree_unittest.cpp", 106 ] 107 deps = [ 108 ":fpdfdoc", 109 "../fpdfapi/parser", 110 ] 111 pdfium_root_dir = "../../" 112} 113