Adam Michael

Results 19 comments of Adam Michael

`android_library` has an implicit AAR output called `name.aar`. As an example, ``` $ cat java/com/foo/BUILD cc_library( name = "cc_lib", srcs = ["foo.cc"], ) android_library( name = "android_lib", srcs = ["Foo.java"],...

Augh, I should not have closed this. Per the documentation of android_library: > name.aar: An android 'aar' bundle containing the java archive and resources of this target. It does not...

@steeve, see my response in https://github.com/bazelbuild/bazel/issues/4407#issuecomment-356658776 if you want to build the `cc_library` for Android directly. Note that that will not get you a `.so`. To build a `.so` outside...

Yes, I was responding to your comment: > And when I build via name, it seems it is not built for the android ndk (unable to include jni.h, for instance)...

This is a common enough request (JNI in .aar) that I decided to throw together an example repository for how to workaround it: https://github.com/aj-michael/aar_with_jni

@jcayzac , please file a separate issue. If I understand what you mean, that is probably a much easier problem to solve. The JNI issue is a little tricky because...

Hi Austin, just to clarify, your feature request is to allow android_sdk_repository and android_ndk_repository to point to _other_ repositories that "fetch" the SDK/NDK like http_archive? If so, I think this...

To expand a little, there is currently no way to express the order of repository function evaluation in Bazel. Repository functions are executed the first time that Bazel loading phase...

@jin note that that solution has the same problems as the http_archive solution I posted in November. See https://github.com/quittle/bazel_android_sdk_downloader/blob/master/rules.bzl#L90: ``` def android_sdk_repository(name = None, workspace_name = None, api_level = None,...