1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
<?xml version="1.0" encoding="UTF-8"?>
<project name="org.netlib" default="default" basedir=".">
<description>Builds, tests, and runs the project org.netlib.</description>
<property name="version" value="0.9.3" />
<!-- REMINDER: When bumping the version value, also bump the value in jni/configure -->
<import file="nbproject/build-impl.xml"/>
<!-- NOTE: before running 'ant test', run 'ant clean generate compile package' and then build the JNI -->
<!-- Delete all files that are autogenerated -->
<target name="-post-clean">
<delete>
<fileset dir="src/org/netlib/blas/" includes="**/*"/>
<fileset dir="src/org/netlib/lapack/" includes="**/*"/>
<fileset dir="src/org/netlib/arpack/" includes="**/*"/>
<fileset dir="jni/" includes="**org_netlib_*.c"/>
<fileset dir="jni/" includes="**.o"/>
<fileset dir="jni/" includes="**.a"/>
<fileset dir="jni/" includes="**org_netlib_*.h"/>
<fileset dir="jni/" includes="**Makefile.incl"/>
<fileset dir="jni/" includes="**.so"/>
<fileset dir="jni/" includes="**.jnilib"/>
</delete>
<delete dir="jni/ARPACK"/>
</target>
<target name="generate" depends="compile">
<!-- Autogenerate the Java and C files -->
<java fork="yes" classname="org.netlib.generate.JavaGenerator" classpath="${run.classpath}" />
</target>
<!--
WARNING: you need to call `ant clean generate compile package` for this to work
because there is no easy way to tell ant that we really do need the second
compile task to run.
-->
<target name="package" depends="javadoc">
<!-- TODO: unpack and include the F2J classes -->
<jar destfile="netlib-java.jar">
<fileset dir="build/classes"
excludes="**org/netlib/generate**" />
</jar>
</target>
<property name="javac.classpath" value="/usr/share/java/junit.jar:/usr/share/java/f2jutil.jar:/usr/share/java/jlapack-blas.jar:/usr/share/java/jlapack-lapack.jar:/usr/share/java/jlapack-xerbla.jar"/>
</project>
|