[CMake] Android In-Depth CMake Questions

Rolf Eike Beer eike at sf-mail.de
Fri Mar 16 14:38:54 EDT 2012


Gregory Peele ARA/CFD wrote:
> Hi all,
> 
> I'm experimenting with adding more in-depth support for Android to my
> CMake-based projects since I have a large body of CMake-built C++ code I
> want to use on Android (but not make Android-specific).  I used the Google
> Android toolchain file as a starting point for NDK support, and wrote a
> platform definition for Android so that the toolchain file only has to
> locate the right cross compiler. I also wrote functions to define Android
> APK targets using the Android SDK and Ant (for now) to compile the Java
> pieces and the final APK, where my functions deal with generating temporary
> Android projects for each APK target, generating an Android manifest from a
> template file based on CMake variables, and staging native CMake .so
> targets and non-system external libraries into the right spot to be put
> into the APK.   The APK install step also has an option to install to the
> Android emulator or attached devices using ADB.
> 
> First off, is there any general interest in this kind of work?  Would other
> people find this sort of thing useful in CMake itself?

Absolutely. I know that some people in KDE are trying to get their stuff 
ported to Android as well. Since KDE is basically entirely CMake-based 
everything that CMake could do out of the box will likely be of great value to 
them.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120316/7ba74c01/attachment.pgp>


More information about the CMake mailing list