<project name="vtm-jni-natives" basedir="." default="all">
	<target name="clean">
		<ant antfile="build-android32.xml" target="clean"/>
		<ant antfile="build-linux64.xml" target="clean"/>
		<ant antfile="build-linux32.xml" target="clean"/>
		<ant antfile="build-windows32.xml" target="clean"/>
		<ant antfile="build-windows64.xml" target="clean"/>

	</target>
	
	<target name="compile-natives">
		<ant antfile="build-android32.xml"/>
		<ant antfile="build-linux64.xml"/>
		<ant antfile="build-linux32.xml"/>
		<ant antfile="build-windows32.xml"/>
		<ant antfile="build-windows64.xml"/>

	</target>
	
	<target name="pack-natives">
		<jar destfile="../libs/vtm-jni-natives.jar">
			<fileset dir="../libs/linux64" includes="libvtm-jni64.so"/>
			<fileset dir="../libs/linux32" includes="libvtm-jni.so"/>
			<fileset dir="../libs/macosx32" includes="libvtm-jni.so"/>
			<fileset dir="../libs/windows32" includes="libvtm-jni.dylib"/>
			<fileset dir="../libs/windows64" includes="libvtm-jni.a"/>

		</jar>
	</target>

	<target name="all" depends="compile-natives,pack-natives"/>
</project>
