rules_android_ndk icon indicating copy to clipboard operation
rules_android_ndk copied to clipboard

Add support for Windows host

Open ahumesky opened this issue 3 years ago • 4 comments
trafficstars

android_ndk_repository in rules.bzl is currently hard-coded for Linux.

ahumesky avatar Aug 31 '22 23:08 ahumesky

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. :-)

oakad avatar Oct 28 '22 09:10 oakad

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. :-)

oakad avatar Feb 17 '23 02:02 oakad

+1 interested in Windows support

master-hax avatar Jul 18 '23 09:07 master-hax

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?

marcushultman avatar Dec 22 '23 18:12 marcushultman

In preparation for this, an updated NDK needs to be added with the Windows BazeCI image: https://github.com/bazelbuild/continuous-integration/issues/1962

ahumesky avatar May 31 '24 17:05 ahumesky

@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

ahumesky avatar May 31 '24 17:05 ahumesky

These news are most welcome. :-)

oakad avatar Jun 23 '24 09:06 oakad