Can we use the ANT script for Android NDK builds ?
If Yes how?
And if no, then why Not ?
I don’t have any idea about it
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Call
ndk-buildfrom your-pre-buildtarget, like this:Then you can set
ndk.dirto point at the NDK directory from yourlocal.propertiesfile, or set it on the command line. I do this:Now running ant will build your native code automatically. Plus, running ‘ant clean’ will clean your native code.
Updated: Added
failonerror="true"to the<exec>tasks — this causes ant to abort if the make fails. Without it it’ll just go right ahead and generate an APK with an invalid binary in it. Not good!