[CMake] CMake for Android projects

Robert Dailey rcdailey.lists at gmail.com
Tue May 6 09:55:40 EDT 2014


Hello,

I have been working on getting CMake working for Android projects. So
far, I have a custom toolchain file to build NDK libraries. I am also
able to generate makefiles for Eclipse, import those projects into
eclipse, and build from eclipse. All seems to be working fine from
that aspect.

The only part missing is the Java build. I need to build a Java
project and link against the .SO files generated from the NDK library
builds.

Can someone help me figure out how to integrate this into CMake? Do I
need to have a set of pre-generated java project files (ANT)? Do I
need to use 'android create project' inside my CMake scripts to
generate them on the fly?

I'm not sure exactly how to plug in the Java piece of the build
process. I'm not familiar with Android development completely, so
detailed directions will be immensely helpful!


More information about the CMake mailing list