androidandroid-sourceandroid-buildandroid-soong

How the soong/android.bp build works?


Google introduced Soong build system the replacement of old makefile system.

Have any idea about how it works? What is this Android.bp in the sources?


Solution

  • Only Googlers can probably explain, some basic documentation is here:

    https://android.googlesource.com/platform/build/soong/

    Try search Google groups as well:

    https://groups.google.com/forum/#!topic/android-building/0Hy7kLwlBBk

    Note that in Oreo Android.mk files continue to work and can depend on Android.bp files, however Android.bp files cannot depend on Android.mk files. Apparently more and more of the build system will be converted to Android.bp as time goes on, hopefully Google does a better job with documentation.

    UPDATE Jan 2020

    More info added by Google here: https://source.android.com/setup/build/index