forked from theflashbum/BitmapScroller
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
51 lines (36 loc) · 2.04 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
<?xml version="1.0"?>
<project name="BitmapSampler" 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-swf.xml" />
<import file="${includes.loc}/compile-swc.xml" />
<import file="${includes.loc}/android.xml" />
<target name="usage" depends="misc.usage" description="Prints usage message" />
<target name="test" depends="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 swf">
<runtarget target="compile-swf.compile" />
</target>
<target name="full-build" depends="test,compile" description="Runs tests, compiles project, and optionally runs it.">
<if>
<istrue value="${autolaunch.url}"/>
<then><runtarget target="compile-swf.local-run"/></then>
</if>
</target>
<target name="compile-swc" description="Compiles project as swc" depends="compile-swc.compile" />
<target name="deploy-lib" description="Prepares swf lib and moves it to deploy directory" depends="compile-swc.deploy"/>
<target name="package-apk" description="Packages up project for deployment to android">
<var name="mobile" value="true" />
<runtarget target="compile" />
<runtarget target="android.package-apk" />
</target>
<target name="deploy-to-emulator" depends="package-apk,android.deploy-to-emulator" />
<target name="deploy-to-phone" depends="package-apk,android.deploy-to-phone" />
</project>