-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
50 lines (47 loc) · 1.85 KB
/
build.xml
File metadata and controls
50 lines (47 loc) · 1.85 KB
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" encoding="utf-8"?>
<project name="am" basedir="." default="build">
<description>Another ActionScript Framework</description>
<!-- compile-swc:
| This task contains the properties you would usually need to build a
| Action Script 3 SWC File.
'-->
<target name="compile-swc" >
<echo>[compile-swc] Loading properties from ${properties.loc}</echo>
<property file="${properties.loc}" />
<echo>[compile-swc] Compiling ${package.name}.swc</echo>
<java jar="${flex.sdk}/lib/compc.jar" dir="${flex.sdk}/frameworks" fork="true" failonerror="true">
<arg value="-output=${package.output}.swc"/>
<arg value="-target-player=${target.player}"/>
<arg value="-include-sources=${package.source.folder}"/>
<arg value="-keep-as3-metadata+=Event"/>
<arg value="-keep-as3-metadata+=API"/>
<arg value="-keep-as3-metadata+=Inspectable"/>
<arg value="-incremental=true"/>
<arg value="-static-link-runtime-shared-libraries=true"/>
<arg value="-verbose-stacktraces=true"/>
<arg value="-headless-server=true"/>
<arg value="-define=CONFIG::SUBMODULE,false"/>
<arg value="-define=CONFIG::FLASH_10_1,false"/>
<arg value="-define=CONFIG::AIR,false"/>
<arg value="-define=CONFIG::WEB,true"/>
</java>
<echo>[compile-swc] Removing cache file from ${package.output.folder}</echo>
<delete file="${package.output}.swc.cache" />
<echo>[compile-swc] ${package.name}.swc created successfully</echo>
</target>
<!-- test:
| This task contains the properties you would usually need to run the
| unit tests.
| NOTE: Obviously isn't implemented yet =(.
'-->
<target name="test">
<echo>[test] Done!</echo>
</target>
<!-- default: build -->
<target name="build">
<antcall target="compile-swc">
<param name="properties.loc" value="${basedir}/build.properties" />
</antcall>
<echo>[build] Complete =)</echo>
</target>
</project>