-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
56 lines (46 loc) · 1.61 KB
/
build.xml
File metadata and controls
56 lines (46 loc) · 1.61 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
51
52
53
54
55
56
<?xml version="1.0"?>
<project name="COLT" default="main" basedir=".">
<!-- Properties -->
<property file="build.properties"/>
<property name="flex.config.file" value="${basedir}/flex_config.xml"/>
<property name="flex.config.template" value="${basedir}/flex_config_template.xml"/>
<!-- Property for the platform. -->
<condition property="isMac" value="true">
<os family="mac"/>
</condition>
<condition property="isWindows">
<os family="windows" />
</condition>
<condition property="isLnx">
<and>
<os family="unix"/>
<not>
<os family="mac"/>
</not>
</and>
</condition>
<!-- Targets -->
<target name="main" depends="config.build,make.mac,make.win,clean" description="Full build" />
<target name="config.build">
<copy file="${flex.config.template}" tofile="${flex.config.file}" overwrite="true">
<filterset>
<filter token="OUTPUT_PATH" value="${swc.output.path}"/>
<filter token="BASE_DIR" value="${basedir}"/>
<filter token="PLAYER_VERSION" value="${player.version}"/>
</filterset>
</copy>
</target>
<target name="make.mac" if="isMac">
<exec executable="${flex.sdk.path}/bin/compc" dir="${flex.sdk.path}/bin">
<arg value="-load-config+=${flex.config.file}"/>
</exec>
</target>
<target name="make.win" if="isWindows">
<exec executable="${flex.sdk.path}/bin/compc.exe" dir="${flex.sdk.path}/bin">
<arg value="-load-config+=${flex.config.file}"/>
</exec>
</target>
<target name="clean">
<delete file="flex_config.xml" />
</target>
</project>