1import("//llvm/utils/gn/build/libs/zlib/enable.gni")
2
3config("zlib_config") {
4  visibility = [ ":zlib" ]
5  if (host_os == "win" && zlib_path != "") {
6    include_dirs = [ zlib_path ]
7    libs = [ "$zlib_path/zlib.lib" ]
8  } else {
9    libs = [ "z" ]
10  }
11}
12
13group("zlib") {
14  if (llvm_enable_zlib) {
15    assert(host_os != "win" || zlib_path != "",
16           "Please set zlib_path on Windows.")
17    public_configs = [ ":zlib_config" ]
18  }
19}
20