2012-09-12 15:12:51 -07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="jzy3d" default="release">
|
|
|
|
<property name="dir.src" value="src/"/>
|
|
|
|
<property name="dir.src.api" value="src/api/"/>
|
|
|
|
<property name="dir.src.bridge" value="src/bridge/"/>
|
|
|
|
<property name="dir.src.redbook" value="src/glredbook/"/>
|
|
|
|
<property name="dir.src.groovy" value="src/groovy/"/>
|
|
|
|
<property name="dir.src.jogl" value="src/jogl/"/>
|
|
|
|
<property name="dir.lib" value="lib/"/>
|
|
|
|
<property name="dir.build" value="build/ant/"/>
|
|
|
|
<property name="dir.bin" value="run/"/>
|
|
|
|
<property name="dir.dist" value="dist/"/>
|
|
|
|
|
|
|
|
<property name="lib.name" value="org.jzy3d"/>
|
2012-10-02 14:06:52 -07:00
|
|
|
<property name="lib.version" value="0.9"/>
|
2012-09-12 15:12:51 -07:00
|
|
|
<property name="lib.path" value="org/jzy3d/"/>
|
|
|
|
|
2012-10-02 14:06:52 -07:00
|
|
|
<property name="jogl" value="jogl2-rc10"/>
|
2013-03-23 10:36:04 -07:00
|
|
|
|
|
|
|
<property name="convexhull" value="../jzy3d-tools-convexhull"/>
|
|
|
|
|
2012-10-02 14:06:52 -07:00
|
|
|
|
2012-09-12 15:12:51 -07:00
|
|
|
<dirname property="dir.basedir" file="${ant.file}"/>
|
|
|
|
|
|
|
|
<path id="compile.classpath">
|
2012-10-02 14:06:52 -07:00
|
|
|
<fileset dir="${dir.lib}/${jogl}"><include name="*.jar"/></fileset>
|
2012-09-12 15:12:51 -07:00
|
|
|
<fileset dir="${dir.lib}/misc"><include name="*.jar"/></fileset>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<path id="dir.classpath">
|
|
|
|
<path refid="compile.classpath"/>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${dir.build}"/>
|
|
|
|
<delete dir="${dir.dist}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile.api" description="Compile Jzy3d API and Bridge" depends="clean">
|
|
|
|
<mkdir dir="${dir.build}"/>
|
|
|
|
<javac destdir="${dir.build}" debug="yes" target="1.5">
|
|
|
|
<classpath refid="dir.classpath"/>
|
|
|
|
<src path="${dir.src.api}/" />
|
|
|
|
<src path="${dir.src.bridge}/" />
|
2013-03-23 10:36:04 -07:00
|
|
|
|
|
|
|
<src path="${convexhull}/src/" />
|
|
|
|
|
2012-09-12 15:12:51 -07:00
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jar.api" description="Export Jzy3d API and Bridge in a jar" depends="compile.api">
|
|
|
|
<echo message="Create a jar containing classes AND sources." />
|
|
|
|
<mkdir dir="${dir.dist}" />
|
|
|
|
<jar destfile="${dir.dist}/${lib.name}-${lib.version}.jar" >
|
|
|
|
<fileset dir="${dir.build}" includes="${lib.path}/**/*.class" excludes="${lib.path}/trials/**, ${lib.path}/demos/**"/>
|
|
|
|
<!-- includes sources for debugging -->
|
|
|
|
<fileset dir="${dir.src.api}" includes="**/*.java"/>
|
|
|
|
<fileset dir="${dir.src.bridge}" includes="**/*.java"/>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="zip.dependencies">
|
|
|
|
<zip destfile="${dir.dist}/${lib.name}-${lib.version}-dependencies.zip" update="false">
|
|
|
|
<fileset dir="${dir.lib}"/>
|
|
|
|
</zip>
|
|
|
|
</target>
|
|
|
|
|
2013-03-23 10:36:04 -07:00
|
|
|
<target name="release" depends="clean,jar.api,zip.dependencies">
|
2012-09-12 15:12:51 -07:00
|
|
|
</target>
|
|
|
|
</project>
|