[cmake-developers] [Generator] Android.mk

Stephen Kelly steveire at gmail.com
Tue Jan 7 11:12:29 EST 2014


Vince Harron wrote:

> Hi all,
> 
> Thomas Richard asked this question a while back.
> 
> http://public.kitware.com/pipermail/cmake-developers/2013-March/006825.html
> 
> I would also like to see support for generating Android.mk files from
> CMake.

Hi,

Thanks for offering this. I'm no Android expert, but I've built applications 
and libraries for android with normal makefiles, as have others. Can you 
explain more why this generator is needed?

This is a bit orthogonal but it seems to me that it would be worthwhile to 
create an Modules/Platform/Android.cmake file to make it easier to target 
Android with existing generators. Is there some way that that is too 
limited?

[aside: I see on http://www.kandroid.org/ndk/docs/ANDROID-MK.html that there 
is a LOCAL_CPP_FEATURES API. That's good independent validation of my design 
for cmake compiler features 
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/6726/focus=7746
]

Why does that link also say that Android.mk files are only for creating 
shared and static libraries? Am I missing something here?

Thanks,

Steve.





More information about the cmake-developers mailing list