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("css") { 11 sources = [ 12 "cfx_css.h", 13 "cfx_csscolorvalue.cpp", 14 "cfx_csscolorvalue.h", 15 "cfx_csscomputedstyle.cpp", 16 "cfx_csscomputedstyle.h", 17 "cfx_csscustomproperty.cpp", 18 "cfx_csscustomproperty.h", 19 "cfx_cssdata.cpp", 20 "cfx_cssdata.h", 21 "cfx_cssdeclaration.cpp", 22 "cfx_cssdeclaration.h", 23 "cfx_cssenumvalue.cpp", 24 "cfx_cssenumvalue.h", 25 "cfx_cssinputtextbuf.cpp", 26 "cfx_cssinputtextbuf.h", 27 "cfx_cssnumbervalue.cpp", 28 "cfx_cssnumbervalue.h", 29 "cfx_cssoutputtextbuf.cpp", 30 "cfx_cssoutputtextbuf.h", 31 "cfx_csspropertyholder.cpp", 32 "cfx_csspropertyholder.h", 33 "cfx_cssrulecollection.cpp", 34 "cfx_cssrulecollection.h", 35 "cfx_cssselector.cpp", 36 "cfx_cssselector.h", 37 "cfx_cssstringvalue.cpp", 38 "cfx_cssstringvalue.h", 39 "cfx_cssstylerule.cpp", 40 "cfx_cssstylerule.h", 41 "cfx_cssstyleselector.cpp", 42 "cfx_cssstyleselector.h", 43 "cfx_cssstylesheet.cpp", 44 "cfx_cssstylesheet.h", 45 "cfx_csssyntaxparser.cpp", 46 "cfx_csssyntaxparser.h", 47 "cfx_cssvalue.cpp", 48 "cfx_cssvalue.h", 49 "cfx_cssvaluelist.cpp", 50 "cfx_cssvaluelist.h", 51 "cfx_cssvaluelistparser.cpp", 52 "cfx_cssvaluelistparser.h", 53 ] 54 configs += [ 55 "../../../:pdfium_strict_config", 56 "../../../:pdfium_noshorten_config", 57 ] 58 deps = [ 59 "../", 60 "../../fxge", 61 ] 62 visibility = [ "../../../*" ] 63} 64 65pdfium_unittest_source_set("unittests") { 66 sources = [ 67 "cfx_cssdata_unittest.cpp", 68 "cfx_cssdeclaration_unittest.cpp", 69 "cfx_cssstylesheet_unittest.cpp", 70 "cfx_csssyntaxparser_unittest.cpp", 71 "cfx_cssvaluelistparser_unittest.cpp", 72 ] 73 pdfium_root_dir = "../../../" 74 deps = [ ":css" ] 75} 76