rules_android_ndk
rules_android_ndk copied to clipboard
Add support for Windows host
android_ndk_repository in rules.bzl is currently hard-coded for Linux.
I've got one of my projects compiling fine with rules_android_ndk on Linux and now want to do so on Windows. Alas, as of right now it's still "Unsupported operating system: windows 10".
If something happens in the Windows support direction, I will be happy to test whatever changes are there. :-)
Windows is still the most used platform by Android devs (AFAIK). By having NDK broken on Bazel/Windows (as people keep upgrading their NDKs), you're essentially telling us to drop Bazel and go look elsewhere.
The ongoing campaign of closing all the old Bazel issues without ever fixing most of them is also not encouraging trust. :-)
+1 interested in Windows support
I must be missing something, but it seems like I can't even use this repository_rule since I need to be able to configure my WORKSPACE on multiple platforms (including windows). Even if no target depend on the repository, the whole setup errors out when configuring. How can optionally call android_ndk_repository based on platform from my WORKSPACE?
In preparation for this, an updated NDK needs to be added with the Windows BazeCI image: https://github.com/bazelbuild/continuous-integration/issues/1962
@marcushultman see https://stackoverflow.com/questions/78122191/bazel-its-possible-to-download-different-external-dependencies-depending-on-the for some advice on making this work across different platforms
These news are most welcome. :-)