forked from HaxePunk/HaxePunk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
89 lines (78 loc) · 2.34 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
87
88
89
<project name="HaxePunk" default="all" basedir=".">
<description>Builds the haxepunk project</description>
<target name="tools">
<exec executable="haxe" dir="tools">
<arg line="build.hxml" />
</exec>
</target>
<target name="haxelib" depends="tools">
<zip destfile="template.zip" useLanguageEncodingFlag="UTF-8" basedir="template" />
<zip destfile="haxepunk.zip" useLanguageEncodingFlag="UTF-8">
<zipfileset dir="" prefix="haxepunk" includes="run.n,haxelib.json,include.xml,template.zip,CHANGELOG,LICENSE" />
<zipfileset dir="com" prefix="haxepunk/com" />
<zipfileset dir="assets" prefix="haxepunk/assets" />
</zip>
<exec executable="haxelib" dir=".">
<arg line="local 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="unit-travis" depends="haxelib">
<exec executable="sh" dir="tests">
<arg line="travis.sh" />
</exec>
</target>
<target name="build" depends="haxelib">
<exec executable="haxelib" dir=".">
<arg line="run HaxePunk new build-test" />
</exec>
<exec executable="lime" dir="build-test">
<arg line="build flash" />
</exec>
<exec executable="lime" dir="build-test">
<arg line="build neko" />
</exec>
<exec executable="lime" dir="build-test">
<arg line="build html5" />
</exec>
</target>
<target name="examples" depends="haxelib">
<exec executable="lime" dir="examples">
<arg line="test neko -debug" />
</exec>
</target>
<target name="doc">
<exec executable="haxe" dir="doc">
<arg line="doc.hxml" />
</exec>
<exec executable="haxedoc" dir="doc">
<arg line="neko.xml" />
<arg line="-f flash" />
<arg line="-f openfl" />
<arg line="-f com" />
</exec>
</target>
<target name="docset" depends="doc">
<exec executable="haxelib" dir="doc">
<arg line="run docset" />
<arg line="-i ../template/assets/HaxePunk.svg" />
<arg line="-x neko.xml" />
<arg line="-t local.xml" />
<arg line="HaxePunk" />
</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, build, examples, unit" />
</project>