1import("//llvm/utils/gn/build/libs/xml/enable.gni") 2import("//llvm/utils/gn/build/mac_sdk.gni") 3import("//llvm/utils/gn/build/sysroot.gni") 4 5config("xml_config") { 6 visibility = [ ":xml" ] 7 libs = [ "xml2" ] 8 if (host_os == "mac") { 9 include_dirs = [ "$mac_sdk_path/usr/include/libxml2" ] 10 } else { 11 include_dirs = [ "$sysroot/usr/include/libxml2" ] 12 } 13} 14 15group("xml") { 16 if (llvm_enable_libxml2) { 17 public_configs = [ ":xml_config" ] 18 } 19} 20