libxml.gn (1520B)
1 # Copyright 2016 The Chromium Authors 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 import("//chromium/build/config/linux/pkg_config.gni") 6 7 pkg_config("system_libxml") { 8 packages = [ "libxml-2.0" ] 9 } 10 11 source_set("libxml") { 12 public_configs = [ ":system_libxml" ] 13 } 14 15 # Please keep in sync with //third_party/libxml/BUILD.gn. 16 static_library("libxml_utils") { 17 # Do not expand this visibility list without first consulting with the 18 # Security Team. 19 visibility = [ 20 ":xml_reader", 21 ":xml_writer", 22 "//base/test:test_support", 23 "//services/data_decoder:lib", 24 "//services/data_decoder:xml_parser_fuzzer_deps", 25 ] 26 sources = [ 27 "chromium/libxml_utils.cc", 28 "chromium/libxml_utils.h", 29 ] 30 public_configs = [ ":system_libxml" ] 31 } 32 33 # Please keep in sync with //third_party/libxml/BUILD.gn. 34 static_library("xml_reader") { 35 # Do not expand this visibility list without first consulting with the 36 # Security Team. 37 visibility = [ 38 "//base/test:test_support", 39 "//components/policy/core/common:unit_tests", 40 "//services/data_decoder:*", 41 ] 42 sources = [ 43 "chromium/xml_reader.cc", 44 "chromium/xml_reader.h", 45 ] 46 deps = [ ":libxml_utils" ] 47 } 48 49 # Please keep in sync with //third_party/libxml/BUILD.gn. 50 static_library("xml_writer") { 51 # The XmlWriter is considered safe to use from any target. 52 visibility = [ "*" ] 53 sources = [ 54 "chromium/xml_writer.cc", 55 "chromium/xml_writer.h", 56 ] 57 deps = [ ":libxml_utils" ] 58 }