Files
processing4/java/libraries/opengl/build.xml
2012-03-19 13:52:09 +00:00

35 lines
1.1 KiB
XML

<?xml version="1.0"?>
<project name="Processing OpenGL Library" default="build">
<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="library/opengl.jar" />
</target>
<target name="compile" description="Compile sources">
<condition property="core-built">
<available file="../../../core/core.jar" />
</condition>
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../../../core/core.jar" />
<mkdir dir="bin" />
<javac target="1.5"
srcdir="src" destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
classpath="../../../core/core.jar; library/jogl.all.jar; library/gluegen-rt.jar" />
<!-- Copy the shaders to the bin folder.
Eclipse does this automatically. -->
<copy todir="bin">
<fileset dir="src">
<include name="processing/opengl/*.glsl" />
</fileset>
</copy>
</target>
<target name="build" depends="compile" description="Build OpenGL library">
<jar basedir="bin" destfile="library/opengl.jar" />
</target>
</project>