Partial building of AOSP components

270 views
Skip to first unread message

Subodh Nijsure

unread,
Oct 22, 2015, 12:19:43 AM10/22/15
to Android Building

Is there a way to build just one component without having to do make from the top-level when building some .so file for Android.

Example -- lets for example consider external/sqlite/android, if one just want to build that component using ndk-build what is the correct way of doing it?

If one just do cd external/sqlite/android I am getting following error:

Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.


-Subodh


Glenn Kasten

unread,
Oct 22, 2015, 12:23:04 AM10/22/15
to Android Building
The platform is not built using ndk-build. 
Instead, to build the platform, see these instructions:
https://source.android.com/source/building.html
When you source or "." build/envsetup.sh, it
defines shell functions such as m/mm/mmm which can be used
to do partial builds. Review build/envsetup.sh for details.

andrew_esh

unread,
Oct 23, 2015, 8:05:04 PM10/23/15
to Android Building
Yes. Switch to the directory that contains the Android.mk that builds the target you are interested in, and do a "mma" in that directory. The target and all it depends on will be built. Nothing extra will be built.

Reply all
Reply to author
Forward
0 new messages