Merge pull request #10718 from makdharma/cares_osx_bazel

fix bazel build for osx
pull/10739/head
makdharma 8 years ago committed by GitHub
commit 41d68a20d3
  1. 19
      third_party/cares/cares.BUILD

@ -1,3 +1,8 @@
config_setting(
name = "darwin",
values = {"cpu": "darwin"},
)
cc_library(
name = "ares",
srcs = [
@ -53,7 +58,6 @@ cc_library(
],
hdrs = [
"ares_build.h",
"config_linux/ares_config.h",
"cares/ares.h",
"cares/ares_data.h",
"cares/ares_dns.h",
@ -75,12 +79,17 @@ cc_library(
"cares/bitncmp.h",
"cares/config-win32.h",
"cares/setup_once.h",
],
] + select({
":darwin": ["config_darwin/ares_config.h"],
"//conditions:default": ["config_linux/ares_config.h"],
}),
includes = [
".",
"config_linux",
"cares",
],
"cares"
] + select({
":darwin": ["config_darwin"],
"//conditions:default": ["config_linux"],
}),
linkstatic = 1,
visibility = [
"//visibility:public",

Loading…
Cancel
Save