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