File: build.xml

package info (click to toggle)
netlib-java 0.9.3-3~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 9,492 kB
  • sloc: ansic: 21,058; java: 6,798; xml: 989; sh: 93; makefile: 41
file content (46 lines) | stat: -rw-r--r-- 1,940 bytes parent folder | download | duplicates (5)
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>