use ant to compile jassimp
parent
32b1579c80
commit
1ddcbf49da
|
@ -42,4 +42,4 @@ script:
|
|||
- echo "=========================================================="
|
||||
- echo "REGRESSION TEST FAILS (results/run_regression_suite_failures.csv)"
|
||||
- cat ../results/run_regression_suite_failures.csv
|
||||
|
||||
- if [ $ANDROID ]; then ant -v -Dbasedir=${TRAVIS_BUILD_DIR} -f port/jassimp/build.xml ndk-jni ; fi
|
||||
|
|
|
@ -1,45 +1,53 @@
|
|||
<project name="jassimp" basedir="." default="all">
|
||||
<property name="native-src.dir" value="jassimp-native/src" />
|
||||
<property name="src.dir" value="jassimp/src" />
|
||||
<property name="jassimp.lwjgl-src.dir" value="jassimp.lwjgl/src" />
|
||||
<property name="build.dir" value="jassimp/bin" />
|
||||
<property name="dist.dir" value="dist" />
|
||||
<property name="doc.dir" value="doc" />
|
||||
|
||||
<path id="classpath">
|
||||
</path>
|
||||
<property name="native-src.dir" value="jassimp-native/src" />
|
||||
<property name="src.dir" value="jassimp/src" />
|
||||
<property name="jassimp.lwjgl-src.dir" value="jassimp.lwjgl/src" />
|
||||
<property name="build.dir" value="jassimp/bin" />
|
||||
<property name="dist.dir" value="dist" />
|
||||
<property name="doc.dir" value="doc" />
|
||||
<property environment="env"/>
|
||||
<property name="ndk.dir" value="${env.NDK_HOME}" />
|
||||
|
||||
<target name="compile">
|
||||
<delete dir="${build.dir}" />
|
||||
<mkdir dir="${build.dir}" />
|
||||
<javac classpathref="classpath" destdir="${build.dir}" srcdir="${src.dir}"
|
||||
source="1.6" target="1.6" includeantruntime="false">
|
||||
</javac>
|
||||
</target>
|
||||
<path id="classpath">
|
||||
</path>
|
||||
|
||||
<target name="jni_header">
|
||||
<mkdir dir="${native-src.dir}" />
|
||||
<javah outputfile="${native-src.dir}/jassimp.h" force="yes">
|
||||
<classpath>
|
||||
<pathelement path="${build.dir}" />
|
||||
</classpath>
|
||||
<class name="jassimp.Jassimp" />
|
||||
</javah>
|
||||
</target>
|
||||
|
||||
<target name="package" depends="compile">
|
||||
<jar destfile="${dist.dir}/jassimp.jar" basedir="${build.dir}">
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="doc">
|
||||
<delete dir="${doc.dir}" />
|
||||
<javadoc access="public" author="false" destdir="${doc.dir}"
|
||||
sourcepath="${src.dir}">
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
<target name="all" depends="package, doc">
|
||||
</target>
|
||||
</project>
|
||||
<target name="compile">
|
||||
<delete dir="${build.dir}" />
|
||||
<mkdir dir="${build.dir}" />
|
||||
<javac classpathref="classpath" destdir="${build.dir}" srcdir="${src.dir}"
|
||||
source="1.6" target="1.6" includeantruntime="false">
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="jni_header">
|
||||
<mkdir dir="${native-src.dir}" />
|
||||
<javah outputfile="${native-src.dir}/jassimp.h" force="yes">
|
||||
<classpath>
|
||||
<pathelement path="${build.dir}" />
|
||||
</classpath>
|
||||
<class name="jassimp.Jassimp" />
|
||||
</javah>
|
||||
</target>
|
||||
|
||||
<target name="ndk-jni">
|
||||
<exec executable="${ndk.dir}/ndk-build">
|
||||
<arg line="all NDK_PROJECT_PATH=workspaces/Android-NDK"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="package" depends="compile">
|
||||
<jar destfile="${dist.dir}/jassimp.jar" basedir="${build.dir}">
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="doc">
|
||||
<delete dir="${doc.dir}" />
|
||||
<javadoc access="public" author="false" destdir="${doc.dir}"
|
||||
sourcepath="${src.dir}">
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
<target name="all" depends="package, doc">
|
||||
</target>
|
||||
</project>
|
||||
|
|
Loading…
Reference in New Issue