This repository has been archived by the owner on Apr 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are more things hardcoded than should be at the moment, but it works :).
- Loading branch information
Showing
2 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/.idea | ||
*.iml | ||
/out | ||
*~ | ||
*~ | ||
/build |
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
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.
 | ||

 | ||
You must set either the environment variable "FLEX_HOME"
 | ||
or the Ant property "FLEX_HOME" to the directory where the Flex
 | ||
SDK is installed.
 | ||

 | ||
For example: ant -DFLEX_HOME=C:\Flex
'> | ||
<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> |