-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
50 lines (37 loc) · 1.92 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
<?xml version="1.0"?>
<project name="FlashCamouflage" basedir="." default="full-build">
<!-- identify properties file -->
<property file="build.properties" />
<!-- Set up FlexUnit Ant tasks -->
<taskdef resource="flexUnitTasks.tasks" classpath="${lib.loc}/flexUnitTasks.jar" />
<!-- Add the ant-contrib tasks -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="${lib.loc}/ant-contrib.jar" />
<import file="${includes.loc}/misc.xml" />
<import file="${includes.loc}/test.xml" />
<import file="${includes.loc}/asdoc.xml" />
<import file="${includes.loc}/compile-swc.xml" />
<!--<import file="${includes.loc}/apparat.xml" />-->
<import file="${includes.loc}/import-others.xml"/>
<target name="usage" depends="misc.usage" description="Prints usage message" />
<target name="import" depends="import-others.copy-parts-in" />
<target name="test" depends="import,test.run" description="Runs unit tests and displays the report"/>
<target name="asdoc" depends="asdoc.gen" description="generates ASDoc"/>
<target name="compile" description="Compiles the project as a swc" depends="import">
<!--check for compiler flag: normal compile vs apparat compile-->
<if>
<equals arg1="apparat" arg2="${compile.type}" casesensitive="false" />
<then>
<runtarget target="compile-swc.clean-bin" />
<runtarget target="apparat.compile" />
</then>
<else>
<runtarget target="compile-swc.compile" />
</else>
</if>
</target>
<target name="full-build" depends="test,compile" description="Runs tests, compiles project, and optionally runs it.">
</target>
<target name="deploy-swc" depends="compile">
<move file="${bin.loc}/${deploy.name.versioned}.swc" tofile="${lib.deploy.dir}/${project.name.versioned}.swc"/>
</target>
</project>