aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/cares/cares_local_files.BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/cares/cares_local_files.BUILD')
-rw-r--r--third_party/cares/cares_local_files.BUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/third_party/cares/cares_local_files.BUILD b/third_party/cares/cares_local_files.BUILD
index 0861b6fa6d..fe59447beb 100644
--- a/third_party/cares/cares_local_files.BUILD
+++ b/third_party/cares/cares_local_files.BUILD
@@ -7,6 +7,37 @@ config_setting(
values = {"cpu": "darwin"},
)
+# Android is not officially supported through C++.
+# This just helps with the build for now.
+config_setting(
+ name = "android",
+ values = {
+ "crosstool_top": "//external:android/crosstool",
+ },
+)
+
+# iOS is not officially supported through C++.
+# This just helps with the build for now.
+config_setting(
+ name = "ios_x86_64",
+ values = {"cpu": "ios_x86_64"},
+)
+
+config_setting(
+ name = "ios_armv7",
+ values = {"cpu": "ios_armv7"},
+)
+
+config_setting(
+ name = "ios_armv7s",
+ values = {"cpu": "ios_armv7s"},
+)
+
+config_setting(
+ name = "ios_arm64",
+ values = {"cpu": "ios_arm64"},
+)
+
filegroup(
name = "ares_build_h",
srcs = ["ares_build.h"],
@@ -15,7 +46,12 @@ filegroup(
filegroup(
name = "ares_config_h",
srcs = select({
+ ":ios_x86_64": ["config_darwin/ares_config.h"],
+ ":ios_armv7": ["config_darwin/ares_config.h"],
+ ":ios_armv7s": ["config_darwin/ares_config.h"],
+ ":ios_arm64": ["config_darwin/ares_config.h"],
":darwin": ["config_darwin/ares_config.h"],
+ ":android": ["config_android/ares_config.h"],
"//conditions:default": ["config_linux/ares_config.h"],
}),
)