Android Ant(NDK)
Android SDK doesn’t have hook to build NDK because SDK and NDK is independent.
One solution is to change Android ant build.xml.
Some guys add ndk build in -pre-build. That’s one solution
How about team? It is difficult to change all files.
I mean that ndk build should be in our own build.xml that’s make sense.
And our build.xml calls Android SDK build.xml
<target name="ndk-build-debug" if="DEBUG"> <exec executable="ndk-build"> <arg value="NDK_DEBUG=1"/> </exec> </target> <target name="ndk-build-release" unless="DEBUG"> <exec executable="ndk-build"> <arg value="NDK_DEBUG=0"/> </exec> </target>