Home | History | Annotate | Download | only in jni
      1 <project name="android-natives" basedir="." default="postcompile">
      2 	<property environment="env" />
      3 	<!--  the suffix ndk-build executable -->	
      4 	<property name="ndkSuffix" value="" />
      5 
      6 	<target name="clean" depends="check-for-ndk" if="has-ndk-build">
      7 		<exec executable="${env.NDK_HOME}/ndk-build${ndkSuffix}" failonerror="true">
      8 			<arg value="clean"/>
      9 		</exec>
     10 	</target>
     11 
     12 	<target name="precompile" depends="check-for-ndk">
     13 		
     14 	</target>
     15 
     16 	<target name="compile-natives" depends="precompile" if="has-ndk-build">
     17 		<echo>ndk_home: ${env.NDK_HOME}</echo>
     18 		<exec executable="${env.NDK_HOME}/ndk-build${ndkSuffix}" failonerror="true"/>
     19 	</target>
     20 	
     21 	<target name="postcompile" depends="compile-natives">
     22 		
     23 	</target>
     24 
     25 	<target name="check-for-ndk">
     26 		<condition property="ndk-build-found">
     27 			<available file="ndk-build${ndkSuffix}" filepath="${env.NDK_HOME}"/>
     28 		</condition>
     29 		<condition property="has-ndk-build">
     30 			<equals arg1="${ndk-build-found}" arg2="true"/>
     31 		</condition>
     32 	</target>
     33 </project>
     34