-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
60 lines (46 loc) · 1.83 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
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="utf-8"?>
<!--
This is the ant build file for Multigraph.swc.
To run this build file, first make sure that the FLEX_HOME environment variable is set to the
root of a Flex SDK installation. This script looks for the "compc" flex compiler
in the "bin" subdirectory of FLEX_HOME.
For example, on drought.nemac.unca.edu:
FLEX_HOME=/usr/local/src/flex/flex_sdk_4.1.0.16076 ant
-->
<project name="Multigraph" basedir="." default="build">
<property environment="env"/>
<property name="FLEX_HOME" value="${env.FLEX_HOME}"/>
<property name="compc.exe" value="${FLEX_HOME}/bin/compc"/>
<property name="mxmlc.exe" value="${FLEX_HOME}/bin/mxmlc"/>
<target name="checkenv">
<fail unless="env.FLEX_HOME">FLEX_HOME not set
The FLEX_HOME environment variable must be set to the root of a
Flex SDK installation (directory containing "bin", "lib", ...)
</fail>
</target>
<target name="build" depends="Multigraph.swc,Multigraph.swf">
</target>
<target name="Multigraph.swc" depends="checkenv">
<exec executable="./update-config">
<arg line="compc-config.xml"/>
</exec>
<exec executable="${compc.exe}" dir="${basedir}">
<arg line="-load-config '${FLEX_HOME}/frameworks/flex-config.xml'" />
<arg line="-load-config compc-config.xml" />
</exec>
</target>
<target name="Multigraph.swf" depends="checkenv">
<exec executable="./update-config">
<arg line="mxmlc-config.xml"/>
</exec>
<exec executable="${mxmlc.exe}" dir="${basedir}">
<arg line="-load-config '${FLEX_HOME}/frameworks/flex-config.xml'" />
<arg line="-load-config mxmlc-config.xml" />
<arg line="src/MultigraphApp.mxml" />
</exec>
</target>
<target name="clean">
<delete file="Multigraph.swc"/>
<delete file="Multigraph.swf"/>
</target>
</project>