[libc++abi] Build cxxabi with sanitizers (#119612)
[llvm-project.git] / llvm / utils / gn / build / libs / xml / BUILD.gn
blob5d522645da59ac2a2b8b2cd2c8ece7e2c2de00d9
1 import("//llvm/utils/gn/build/libs/xml/enable.gni")
2 import("//llvm/utils/gn/build/mac_sdk.gni")
3 import("//llvm/utils/gn/build/sysroot.gni")
5 config("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   }
15 group("xml") {
16   if (llvm_enable_libxml2) {
17     public_configs = [ ":xml_config" ]
18   }