summaryrefslogtreecommitdiffstats
path: root/llvm/utils/gn/build/libs/xml/BUILD.gn
blob: 3af3c851698c8c0deff8c127bbd86465da55ece8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import("//llvm/utils/gn/build/libs/xml/enable.gni")
import("//llvm/utils/gn/build/mac_sdk.gni")

config("xml_config") {
  visibility = [ ":xml" ]
  libs = [ "xml2" ]
  if (host_os == "mac") {
    include_dirs = [ "$mac_sdk_path/usr/include/libxml2" ]
  } else {
    include_dirs = [ "/usr/include/libxml2" ]
  }
}

group("xml") {
  if (llvm_enable_libxml2) {
    public_configs = [ ":xml_config" ]
  }
}
OpenPOWER on IntegriCloud