Skip to content

Commit 55ba25e

Browse files
committed
added build.xml for LWJGL library
1 parent db6f22a commit 55ba25e

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

java/libraries/lwjgl/build.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0"?>
2+
<project name="Processing OpenGL LWJGL Library" default="build">
3+
4+
<target name="clean" description="Clean the build directories">
5+
<delete dir="bin" />
6+
<delete file="library/opengl-lwjgl.jar" />
7+
</target>
8+
9+
<target name="compile" description="Compile sources">
10+
<condition property="core-built">
11+
<available file="../../../core/library/core.jar" />
12+
</condition>
13+
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../../../core/library/core.jar" />
14+
15+
<mkdir dir="bin" />
16+
<javac source="1.6"
17+
target="1.6"
18+
srcdir="src" destdir="bin"
19+
encoding="UTF-8"
20+
includeAntRuntime="false"
21+
classpath="../../../core/library/core.jar; library/lwjgl.jar; library/lwjgl_util.jar" />
22+
</target>
23+
24+
<target name="build" depends="compile" description="Build OpenGL LWJGL library">
25+
<jar basedir="bin" destfile="library/opengl-lwjgl.jar" />
26+
</target>
27+
</project>

0 commit comments

Comments
 (0)