Releases: bazelbuild/rules_android_ndk
Releases · bazelbuild/rules_android_ndk
v0.1.2
Using Bzlmod with Bazel 6 or greater
- (Bazel 6 only) Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_android_ndk", version = "0.1.2")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_android_ndk",
sha256 = "65aedff0cd728bee394f6fb8e65ba39c4c5efb11b29b766356922d4a74c623f5",
strip_prefix = "rules_android_ndk-0.1.2",
url = "https://github.com/bazelbuild/rules_android_ndk/releases/download/v0.1.2/rules_android_ndk-v0.1.2.tar.gz",
)
load("@rules_android_ndk//:rules.bzl", "android_ndk_repository")
android_ndk_repository(name = "androidndk")
register_toolchains("@androidndk//:all")
v0.1.1
0.1.0
- First release for rules_android_ndk
- NDK r25c verified
- Bazel 7.2.1 verified
- Bzlmod and WORKSPACE supported
--android_platforms
supported- Linux, Mac, and Windows hosts supported
- Additional NDK headers available with examples (android/log.h, android_native_app_glue.h)
NOTE: There is a nearly identical release of this codebase here as v0.1.2, where the only differences are fixes in the CI release pipeline and proper integration into the Bazel Central Registry (BCR).