-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
63 lines (53 loc) · 1.94 KB
/
build.xml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<project name="game" default="compile" basedir=".">
<property name="src" location="src/"/>
<property name="assets" location="assets/"/>
<property name="build" location="build/"/>
<property name="lwjgl" location="./libs"/>
<property name="slick" location="./libs"/>
<path id="project.class.path">
<pathelement path="{$classpath}"/>
<fileset dir="${lwjgl}">
<include name="jar/*.jar"/>
</fileset>
<fileset dir="${slick}">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile the source">
<javac srcdir="${src}"
destdir="${build}"
classpathref="project.class.path"
includeantruntime="false"/>
</target>
<target name="clean"
description="clean up">
<delete dir="${build}"/>
</target>
<condition property="native" value="${lwjgl}/native/macosx">
<os family="mac"/>
</condition>
<condition property="native" value="${lwjgl}/native/windows">
<os family="windows"/>
</condition>
<target name="run" description="run the compiled code" depends="compile">
<property name="native" location="natives"/>
<java classname="com.github.capstone.Twotris" fork="true">
<sysproperty key="java.library.path" value="${native}"/>
<classpath refid="project.class.path"/>
<classpath>
<pathelement path="build/"/>
</classpath>
</java>
</target>
<target name="check-syntax" depends="init" description="check for errors">
<javac destdir="${build}"
classpathref="project.class.path"
includeantruntime="false">
<src path="${CHK_SOURCES}"/>
<compilerarg value="-Xlint"/>
</javac>
</target>
</project>