-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
138 lines (121 loc) · 4.19 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?xml version="1.0" encoding="utf-8"?>
<project name="OSMFSimple" default="main" basedir=".">
<property environment="env"/>
<property file="build.properties" />
<!-- do not change next 2 lines, it adds flex tasks to ant -->
<property name="FLEXTASKS" value="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<taskdef resource="flexTasks.tasks" classpath="${FLEXTASKS}"/>
<!-- deploy properties -->
<property name="zip-deploy-folder" value="deploy"/>
<!-- clean -->
<target name="clean">
<echo message="cleaning..." />
<sequential>
<delete includeemptydirs="true" quiet="true">
<fileset dir="." includes="**/bin/**/*" />
</delete>
<delete includeemptydirs="true" quiet="true">
<fileset dir="." includes="**/bin" />
</delete>
</sequential>
</target>
<!-- clean deploy -->
<target name="clean-deploy">
<echo message="cleaning deploy folder..." />
<sequential>
<delete includeemptydirs="true" quiet="true">
<fileset dir="." includes="**/${zip-deploy-folder}/**/*" />
</delete>
<delete includeemptydirs="true" quiet="true">
<fileset dir="." includes="**/${zip-deploy-folder}" />
</delete>
</sequential>
</target>
<!-- clean asdocs -->
<target name="clean-asdocs">
<echo message="cleaning asdocs..." />
<sequential>
<delete includeemptydirs="true" quiet="true">
<fileset dir="." includes="**/docs/**/*" />
</delete>
<delete includeemptydirs="true" quiet="true">
<fileset dir="." includes="**/docs" />
</delete>
</sequential>
</target>
<!-- create the html and js files -->
<target name="wrapper">
<html-wrapper
title="${ant.project.name}"
file="${ant.project.name}.html"
height="360"
width="640"
application="${ant.project.name}"
bgcolor="#000000"
swf="${ant.project.name}"
history="false"
express-install="true"
version-detection="true"
output="./bin"/>
</target>
<!-- Release build for latest OSMF release and Flash Player 10.1 -->
<target name="release-build" >
<echo message="building release..." />
<mxmlc
file="./src/Main.as"
output="bin/hyperbomb.swf"
debug="false"
incremental="false"
strict="true"
accessible="false"
link-report="link_report.xml"
static-link-runtime-shared-libraries="true">
<optimize>true</optimize>
<target-player>11.1</target-player>
<source-path path-element="./src" />
<library-path dir="./libs" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
</target>
<!-- Debug build -->
<target name="debug-build" >
<echo message="building debug..." />
<mxmlc
file="./src/Main.as"
output="bin/hyperbomb.swf"
debug="true"
incremental="false"
strict="true"
accessible="false"
link-report="link_report.xml"
static-link-runtime-shared-libraries="true">
<optimize>true</optimize>
<target-player>11.1</target-player>
<source-path path-element="./src" />
<library-path dir="./libs" append="true">
<include name="*.swc"/>
</library-path>
</mxmlc>
</target>
<!-- build asdocs -->
<target name="build-asdocs">
<echo message="building asdocs..."/>
<asdoc output="${basedir}/docs">
<doc-sources path-element="${basedir}/src"/>
<target-player>11.1</target-player>
<library-path dir="libs" append="true">
<include name="*.swc"/>
</library-path>
</asdoc>
</target>
<!-- create zip files -->
<target name="zip-deploy">
<zip destfile="${zip-deploy-folder}/${ant.project.name}-release.zip"
basedir="${basedir}"
includes="bin/*.* docs/**"
excludes="*.DS_Store /*.svn/*"/>
</target>
<!-- for release, replace "debug-build" with "release-build" -->
<target name="main" depends="clean, clean-deploy, clean-asdocs, debug-build, wrapper, build-asdocs, zip-deploy"/>
</project>