Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Add a simple Ant build file.
Browse files Browse the repository at this point in the history
There are more things hardcoded than should be at the moment, but it works :).
  • Loading branch information
djcsdy committed Feb 13, 2012
1 parent be037d4 commit 5c787bb
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.idea
*.iml
/out
*~
*~
/build
59 changes: 59 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Ludum Dare Basecode" default="build">

<property name="minimum.ant.version" value="1.8.0"/>

<property environment="env"/>

<property name="FLEX_HOME" location="${env.FLEX_HOME}"/>

<property name="src.dir" location="src"/>
<property name="lib.dir" location="lib"/>
<property name="build.dir" location="build"/>

<property name="lib.flashpunk.dir" location="${lib.dir}/flashpunk"/>


<antversion property="ant.version.sufficient"
atleast="${minimum.ant.version}"/>

<fail unless="ant.version.sufficient">
Ant ${minimum.ant.version} is required
</fail>


<fail message='Flex not found.&#xa;
&#xa;
You must set either the environment variable "FLEX_HOME"&#xa;
or the Ant property "FLEX_HOME" to the directory where the Flex&#xa;
SDK is installed.&#xa;
&#xa;
For example: ant -DFLEX_HOME=C:\Flex&#xa;'>
<condition>
<not>
<available file="${FLEX_HOME}" type="dir"/>
</not>
</condition>
</fail>


<taskdef resource="flexTasks.tasks"
classpath="${FLEX_HOME}/lib/flexTasks.jar"/>


<target name="clean">
<delete dir="${build.dir}"/>
</target>

<target name="build">
<mxmlc file="${src.dir}/net/noiseinstitute/game/Preloader.as"
output="${build.dir}/Release.swf"
debug="false" strict="true">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<source-path path-element="${src.dir}"/>
<source-path path-element="${lib.flashpunk.dir}"/>
<source-path path-element="${FLEX_HOME}/frameworks"/>
<frame label="start" className="net.noiseinstitute.game.Main"/>
</mxmlc>
</target>
</project>

0 comments on commit 5c787bb

Please sign in to comment.