Search code examples
makefileandroid-ndkndk-build

Build a Make based C++ project using Android NDK


I need to build csparse library for an Android project. The project supports Make build system.

I am not familiar with use of NDK for Make build. I have used Androids CMake toolchain for building CMake based projects.

I am looking for pointers to usage of NDK for building C++ projects based on Make. I do not want to manually write a CMakeLists.txt for building the project with CMake toolchain because there are too many source files in the csparse project!

Any help is appreciated!


Solution

  • https://developer.android.com/ndk/guides/other_build_systems covers using the NDK with build systems other than ndk-build and CMake. The last section explicitly covers traditional make projects.