forked from HaxePunk/HaxePunk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
86 lines (76 loc) · 2.26 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<project name="HaxePunk" default="all" basedir=".">
<description>Builds the haxepunk project</description>
<target name="tools">
<exec executable="haxe" dir="tools">
<arg line="-main SetupTool" />
<arg line="-neko ../run.n" />
</exec>
</target>
<target name="haxelib" depends="tools">
<zip destfile="template.zip" basedir="template" />
<zip destfile="haxepunk.zip">
<zipfileset dir="" prefix="haxepunk" includes="run.n,haxelib.xml,template.zip,CHANGELOG,LICENSE" />
<zipfileset dir="src" prefix="haxepunk" />
</zip>
<exec executable="haxelib" dir=".">
<arg line="test haxepunk.zip" />
</exec>
</target>
<target name="unit" depends="haxelib">
<exec executable="haxe" dir="tests">
<arg line="compile.hxml" />
</exec>
<exec executable="neko" dir="tests">
<arg line="unit.n" />
</exec>
</target>
<target name="build" depends="haxelib">
<exec executable="haxelib" dir=".">
<arg line="run HaxePunk new Example" />
</exec>
<exec executable="haxelib" dir="Example">
<arg line="run nme build build.nmml" />
<arg line="flash" />
</exec>
<exec executable="haxelib" dir="Example">
<arg line="run nme build build.nmml" />
<arg line="neko" />
</exec>
<exec executable="haxelib" dir="Example">
<arg line="run nme build build.nmml" />
<arg line="html5" />
</exec>
</target>
<target name="examples" depends="haxelib">
<exec executable="haxelib" dir="examples">
<arg line="run nme test build.nmml" />
<arg line="flash -debug" />
</exec>
</target>
<target name="test" depends="haxelib">
<exec executable="haxelib" dir=".">
<arg line="run HaxePunk new Example" />
</exec>
<exec executable="haxelib" dir="Example">
<arg line="run nme test build.nmml neko -debug" />
</exec>
</target>
<target name="doc">
<exec executable="haxe" dir="doc">
<arg line="doc.hxml" />
</exec>
<exec executable="chxdoc" dir="doc">
<arg line="-o docs" />
<arg line="--title=HaxePunk" />
<arg line="--subtitle=http://haxepunk.com" />
<arg line="all.xml" />
</exec>
</target>
<target name="clean">
<delete quiet="true">
<fileset dir="Example" />
<fileset dir="." includes="*.n,*.zip,com.haxepunk.debug.swf" />
</delete>
</target>
<target name="all" depends="clean, examples, unit" />
</project>