grpc/third_party/cares
Ming-Chuan d6bb391449 [Build] Migrate Android NDK, android rules and platforms (#36116)
This commit does the following 3 things for Android bazel rules, which depends on each other

1. Update NDK to 26.2.11394342 (and a few other Android things)
2. Use rules_android_ndk instead of builtin `native.android_ndk_repository`
    * `third_party/android/android_configure.bzl` was a workaround for users who don't set `$ANDROID_NDK_HOME` env var. Now with rules_android_ndk, we can declare repo without registering the toolchain. Instead users who need NDK toolchain should use `--extra_toolchains` to manually register the toolchain, as shown in README.md.
3. Migrate to platforms. See https://bazel.build/concepts/platforms
    * Currently we declares android platforms that is needed for binder transport APK. Later gRPC repo can gradually migrate to platforms for other platforms.
    * The value of `crosstool_top` will still be `//external:android/crosstool` (which is the default value), so existings android `config_settings` will still work. We should migrate them to match with `@platforms//os:android` constraint later.

The platforms migration needs Bazel 7.0 to work so we also override bazel version in testing scripts.

Closes #36116

PiperOrigin-RevId: 617244655
2024-03-19 11:46:15 -07:00
..
cares@6360e96b5c [c-ares] Upgrade c-ares dependency to 1.19.1 (#33392) 2023-06-12 13:38:20 -07:00
config_android [GPR] Removed GPR_BACKWARDS_COMPATIBILITY_MODE (#35602) 2024-01-19 12:48:26 -08:00
config_darwin adapt cares config headers files to new version 2019-03-26 13:13:49 -07:00
config_freebsd adapt cares config headers files to new version 2019-03-26 13:13:49 -07:00
config_linux [GPR] Removed GPR_BACKWARDS_COMPATIBILITY_MODE (#35602) 2024-01-19 12:48:26 -08:00
config_openbsd adapt cares config headers files to new version 2019-03-26 13:13:49 -07:00
config_windows adapt cares config headers files to new version 2019-03-26 13:13:49 -07:00
BUILD Build C-Ares with Bazel on Windows 2018-06-03 10:37:47 +08:00
ares_build.h avoid __int64 for mingw portability 2017-09-09 16:32:48 +02:00
cares.BUILD [Build] Migrate Android NDK, android rules and platforms (#36116) 2024-03-19 11:46:15 -07:00