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("page") { 9 sources = [ 10 "cpdf_allstates.cpp", 11 "cpdf_allstates.h", 12 "cpdf_annotcontext.cpp", 13 "cpdf_annotcontext.h", 14 "cpdf_clippath.cpp", 15 "cpdf_clippath.h", 16 "cpdf_color.cpp", 17 "cpdf_color.h", 18 "cpdf_colorspace.cpp", 19 "cpdf_colorspace.h", 20 "cpdf_colorstate.cpp", 21 "cpdf_colorstate.h", 22 "cpdf_contentmarkitem.cpp", 23 "cpdf_contentmarkitem.h", 24 "cpdf_contentmarks.cpp", 25 "cpdf_contentmarks.h", 26 "cpdf_contentparser.cpp", 27 "cpdf_contentparser.h", 28 "cpdf_devicecs.cpp", 29 "cpdf_devicecs.h", 30 "cpdf_dib.cpp", 31 "cpdf_dib.h", 32 "cpdf_docpagedata.cpp", 33 "cpdf_docpagedata.h", 34 "cpdf_expintfunc.cpp", 35 "cpdf_expintfunc.h", 36 "cpdf_form.cpp", 37 "cpdf_form.h", 38 "cpdf_formobject.cpp", 39 "cpdf_formobject.h", 40 "cpdf_function.cpp", 41 "cpdf_function.h", 42 "cpdf_generalstate.cpp", 43 "cpdf_generalstate.h", 44 "cpdf_graphicstates.cpp", 45 "cpdf_graphicstates.h", 46 "cpdf_iccprofile.cpp", 47 "cpdf_iccprofile.h", 48 "cpdf_image.cpp", 49 "cpdf_image.h", 50 "cpdf_imageobject.cpp", 51 "cpdf_imageobject.h", 52 "cpdf_meshstream.cpp", 53 "cpdf_meshstream.h", 54 "cpdf_occontext.cpp", 55 "cpdf_occontext.h", 56 "cpdf_page.cpp", 57 "cpdf_page.h", 58 "cpdf_pagemodule.cpp", 59 "cpdf_pagemodule.h", 60 "cpdf_pageobject.cpp", 61 "cpdf_pageobject.h", 62 "cpdf_pageobjectholder.cpp", 63 "cpdf_pageobjectholder.h", 64 "cpdf_path.cpp", 65 "cpdf_path.h", 66 "cpdf_pathobject.cpp", 67 "cpdf_pathobject.h", 68 "cpdf_pattern.cpp", 69 "cpdf_pattern.h", 70 "cpdf_patterncs.cpp", 71 "cpdf_patterncs.h", 72 "cpdf_psengine.cpp", 73 "cpdf_psengine.h", 74 "cpdf_psfunc.cpp", 75 "cpdf_psfunc.h", 76 "cpdf_sampledfunc.cpp", 77 "cpdf_sampledfunc.h", 78 "cpdf_shadingobject.cpp", 79 "cpdf_shadingobject.h", 80 "cpdf_shadingpattern.cpp", 81 "cpdf_shadingpattern.h", 82 "cpdf_stitchfunc.cpp", 83 "cpdf_stitchfunc.h", 84 "cpdf_streamcontentparser.cpp", 85 "cpdf_streamcontentparser.h", 86 "cpdf_streamparser.cpp", 87 "cpdf_streamparser.h", 88 "cpdf_textobject.cpp", 89 "cpdf_textobject.h", 90 "cpdf_textstate.cpp", 91 "cpdf_textstate.h", 92 "cpdf_tilingpattern.cpp", 93 "cpdf_tilingpattern.h", 94 "cpdf_transferfunc.cpp", 95 "cpdf_transferfunc.h", 96 "cpdf_transferfuncdib.cpp", 97 "cpdf_transferfuncdib.h", 98 "cpdf_transparency.cpp", 99 "cpdf_transparency.h", 100 "ipdf_page.h", 101 ] 102 configs += [ "../../../:pdfium_core_config" ] 103 deps = [ 104 "../../../constants", 105 "../../fxcodec", 106 "../../fxcrt", 107 "../../fxge", 108 "../font", 109 "../parser", 110 ] 111 allow_circular_includes_from = [] 112 if (pdf_use_skia || pdf_use_skia_paths) { 113 allow_circular_includes_from += [ "../../fxge" ] 114 } 115 visibility = [ "../../../*" ] 116} 117 118pdfium_unittest_source_set("unittests") { 119 sources = [ 120 "cpdf_devicecs_unittest.cpp", 121 "cpdf_pageobjectholder_unittest.cpp", 122 "cpdf_psengine_unittest.cpp", 123 "cpdf_streamcontentparser_unittest.cpp", 124 "cpdf_streamparser_unittest.cpp", 125 ] 126 deps = [ ":page" ] 127 pdfium_root_dir = "../../../" 128} 129