<target name="compile-natives" depends="init, check-natives" if="natives-present">\r
<ant antfile="build.xml" target="clean" dir="${jni}"/>\r
<ant antfile="build.xml" target="all" dir="${jni}"/>\r
- </target> \r
+ <!-- copy shared libs for desktop -->\r
+ <copy failonerror="false" file="${libs}/${jar}-natives.jar" tofile="${distDir}/${jar}-natives.jar"/>\r
+ <!-- copy shared libs for android -->\r
+ <copy failonerror="false" todir="${distDir}/armeabi">\r
+ <fileset dir="${libs}/armeabi">\r
+ <include name="**/*.so"/>\r
+ </fileset>\r
+ </copy>\r
+ <copy failonerror="false" todir="${distDir}/armeabi-v7a">\r
+ <fileset dir="${libs}/armeabi-v7a">\r
+ <include name="**/*.so"/>\r
+ </fileset>\r
+ </copy>\r
+ </target>\r
\r
<!-- create source and class jar -->\r
<target name="all" depends="compile,compile-natives">\r
<!-- merge dependencies specified in parent build.xml -->\r
<zipfileset refid="jarfiles"/>\r
</jar>\r
- \r
- <!-- optional natives jar for desktop -->\r
- <copy failonerror="false" file="${libs}/${jar}-natives.jar" tofile="${distDir}/${jar}-natives.jar"/>\r
- \r
- <!-- optional shared libraries for android -->\r
- <copy failonerror="false" todir="${distDir}/armeabi">\r
- <fileset dir="${libs}/armeabi">\r
- <include name="**/*.so"/>\r
- </fileset>\r
- </copy>\r
- <copy failonerror="false" todir="${distDir}/armeabi-v7a">\r
- <fileset dir="${libs}/armeabi-v7a">\r
- <include name="**/*.so"/>\r
- </fileset>\r
- </copy>\r
</target>\r
</project>\r