Created
March 8, 2013 06:32
-
-
Save warmwaffles/5114603 to your computer and use it in GitHub Desktop.
libgdx Build file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!-- Change MYAPPLICATION to yor project name --> | |
<project basedir="." default="run" name="MYAPPICATION"> | |
<property environment="env"/> | |
<property name="debuglevel" value="source,lines,vars"/> | |
<property name="target" value="1.6"/> | |
<property name="source" value="1.6"/> | |
<!-- Change MYAPPLICATION to yor project name --> | |
<path id="MYAPPICATION.classpath"> | |
<pathelement location="bin"/> | |
<pathelement location="libs/gdx-backend-lwjgl-natives.jar"/> | |
<pathelement location="libs/gdx-backend-lwjgl.jar"/> | |
<pathelement location="libs/gdx-natives.jar"/> | |
<pathelement location="libs/gdx.jar"/> | |
</path> | |
<target name="init"> | |
<mkdir dir="bin"/> | |
<copy includeemptydirs="false" todir="bin"> | |
<fileset dir="src"> | |
<exclude name="**/*.java"/> | |
</fileset> | |
</copy> | |
<copy includeemptydirs="false" todir="bin"> | |
<fileset dir="assets"> | |
<exclude name="**/*.java"/> | |
</fileset> | |
</copy> | |
</target> | |
<target name="clean"> | |
<delete dir="bin"/> | |
</target> | |
<target depends="init" name="build"> | |
<javac debug="true" | |
debuglevel="${debuglevel}" | |
destdir="bin" | |
includeantruntime="false" | |
source="${source}" | |
target="${target}"> | |
<src path="src"/> | |
<src path="assets"/> | |
<!-- Change MYAPPLICATION to yor project name --> | |
<classpath refid="MYAPPICATION.classpath"/> | |
</javac> | |
</target> | |
<target name="run" depends="build"> | |
<!-- Make sure you change the launcher or the main run class --> | |
<java classname="MYAPPICATION.Launcher" failonerror="true" fork="yes"> | |
<classpath refid="MYAPPICATION.classpath" /> | |
</java> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment