forked from robmoorman/as3-robotlegs-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
60 lines (51 loc) · 1.79 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="as3-robotlegs-library" default="build-all">
<property file="./build.properties" />
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
<target name="build-all">
<antcall target="build-swc" />
<antcall target="build-tests" />
<antcall target="clean-asdocs-output" />
<antcall target="build-asdocs" />
<antcall target="update-swc-with-asdocs" />
</target>
<target name="build-swc">
<exec executable="${FLEX_HOME}/bin/compc">
<arg line="-output ${dir.bin}/${version}.swc" />
<arg line="-include-sources ${dir.src}" />
<arg line="-external-library-path+=${dir.libs}" />
</exec>
</target>
<target name="build-tests">
<exec executable="${FLEX_HOME}/bin/mxmlc">
<arg line="${dir.tests}/UnitTests.mxml" />
<arg line="-output ${dir.bin}/${version}-unittests.swf" />
<arg line="-source-path ${dir.src}" />
<arg line="-library-path+=${dir.libs}" />
<arg line="-static-link-runtime-shared-libraries=true" />
</exec>
</target>
<target name="clean-asdocs-output">
<delete includeEmptyDirs="true">
<fileset dir="${dir.asdocs}" includes="**/*" />
</delete>
</target>
<target name="build-asdocs">
<exec executable="${FLEX_HOME}/bin/asdoc">
<arg line="-output ${dir.asdocs}" />
<arg line="-source-path ${dir.src}" />
<arg line="-doc-sources ${dir.src}" />
<arg line="-external-library-path+=${dir.libs}" />
<arg line="-keep-xml=true" />
</exec>
</target>
<target name="update-swc-with-asdocs">
<zip destfile="${dir.bin}/${version}.swc" update="true">
<zipfileset dir="${dir.asdocs}/tempdita" prefix="docs">
<include name="*.*" />
<exclude name="ASDoc_Config.xml" />
<exclude name="overviews.xml" />
</zipfileset>
</zip>
</target>
</project>