Porting a library with its existing build system using the Android NDK toolchain

The previous two recipes discussed how to port a library with the Android NDK build system. However, a lot of open source projects have their own build systems and sometimes it is troublesome to list out all sources in the Android.mk file. Fortunately, the Android NDK toolchain can also be used as a standalone cross compiler and we can use the cross compiler in an open source project's existing build system. This recipe will discuss how to port a library with its existing build system.

How to do it...

The following steps describe how to create our sample project, which demonstrates porting the open source libbmp library with its existing build system:

  1. Create an Android ...

Get Android Native Development Kit Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.