-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
40 lines (31 loc) · 1.5 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
<?xml version="1.0"?>
<project name="GestureStudyProject" basedir="." default="app">
<condition property="file.local.settings" value="local.properties.Windows" else="local.properties.Linux">
<os family="windows" />
</condition>
<property file="${basedir}/${file.local.settings}" />
<property name="dir.flexsdk" value="${Path.FlexSDK}" />
<!-- -DForAir=true -->
<condition property="program.as3compiler.nosuffix" value="${dir.flexsdk}/bin/amxmlc" else="${dir.flexsdk}/bin/mxmlc">
<isset property="ForAir"/>
</condition>
<condition property="program.as3compiler" value="${program.as3compiler.nosuffix}.exe" else="${program.as3compiler.nosuffix}">
<os family="windows" />
</condition>
<property name="output.app" value="${basedir}/demo.swf" />
<property name="path.src" value="${basedir}/src" />
<target name="app">
<delete file="${output.app}" quiet="true" />
<exec executable="${program.as3compiler}">
<arg line="-debug=true"/>
<arg line="-locale=en_US" />
<arg line="--target-player=10.0.0" />
<arg line="-default-background-color 0xffffff"/>
<arg line="-default-size 500 500" />
<arg line="-static-link-runtime-shared-libraries" />
<arg line="-source-path=${path.src}" />
<arg line="-output=${output.app}"/>
<arg line="${path.src}/Demo.as" />
</exec>
</target>
</project>