Sorry, but I was asking this all along: Where do I find these 20 lines of configuration and 5 lines of code?
-
-
Well it might make sense to use https://docs.bazel.build/versions/master/tutorial/android-app.html … if you don't really care about doing things the usual way. AOSP uses make, but they moved to compiling mk -> ninja with Kati for fast incremental builds and are slowly moving to a declarative build system.
-
Not clear why I'd prefer bazel to make. Make gives fast incremental builds unless you intentionally misuse it.
-
The reason would be that they already wrote all the handling for Android support and they have an IDE plugin so if you ever wanted to open the project in the IDE for static analysis, etc. you could. It also wouldn't drive other contributors away as much.
-
From my perspective (ppl I work with), bazel would drive them away a lot more than make.
-
AOSP still primarily uses make but it's not really intended for external projects. They moved to their own implementation of make on top of ninja for better incremental build performance but it still works with GNU make.
-
They're slowly moving away from using make but not for performance reasons anymore (https://github.com/google/kati solved those). They treat it make as a declarative build system everywhere but central build code which just includes all of the declarative http://Android.mk files.
-
Their new build system is essentially just an implementation of their http://Android.mk templates in a way that enforces they're declarative. It's a little bit faster but the main reason is just avoiding the chance of making mistakes with make somewhere in the source tree.
-
Not sure how hard it would be to do things by hand with make. It would be painful because you would be exposed to the underlying tools changing over time. A year ago, they compiled Java -> dex with jack without javac, but now it's javac for bytecode -> dex compiler.
- 8 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.