Hi Android Build group,
I hope this is the proper group to ask the question. Long story short, I'd like to know if it's possible to build projects contained in external and vendor directories using AOSP's Bazel. I read that is possible to build kernels (Kleaf) but it was futile for me to build some external and custom libs with it (even if I can build them using bazel in non-AOSP context).
In case that it's already supported, I'd like to know which modifications need to be done (or directly how to do it properly). Any tip and/or link to some repo/doc is more than welcomed.
In case that it's not yet supported, I'd like to know if it's included in the roadmap, and if we are far away from it.
For more context, we are trying to build a modified version of Tensorflow Lite lib. So far we are able to build it using CMake and the NDK, and include it somehow. As TFLite supports Bazel, we wanted to build it properly inside AOSP rather than including precompiled libs. I also found that there is a Tensorflow project in /external with several Android Blueprint files, which I guess I can port somehow to our TFLite, but I'd prefer to keep the same build system to minimize efforts.
Thanks for your time and best regards,
Extra ball: Is there any priority/control when selecting a build system for a project? If project X contains .mk, .bp and BUILD files, which system is going to be used? Bazel > Soong > .mk?