forked from smakinson/Pusher-ActionScript-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
48 lines (40 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
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="utf-8"?>
<!--
**********************
builds Pusher-Actionscript-Library
**********************
exporting only classes declered in include-classes
-->
<project name="pusher" basedir="." default="main" >
<property environment="env"/>
<fail unless="env.FLEX_HOME">FLEX_HOME must be set with the current flash SDK path, maybe this would help: export FLEX_HOME="/Applications/Adobe Flash Builder 4.5/sdks/4.5.1_AIR3_1/"</fail>
<property name="FLEX_HOME" value="${env.FLEX_HOME}"/>
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
<property name="SRC_ROOT" value="${basedir}/src"/>
<property name="DEPLOY_DIR" value="${basedir}/bin-ant"/>
<property name="SWC_NAME" value="Pusher-Actionscript-Library.swc"/>
<target name="get_git_commit" >
<exec executable="git" outputproperty="git.revision">
<arg value="log" />
<arg value="-1"/>
<arg value="--oneline" />
</exec>
</target>
<target name="main" depends="get_git_commit">
<compc
output="${DEPLOY_DIR}/${SWC_NAME}"
include-classes="com.pusher.Pusher"
swf-version="13"
target-player="11.0.0"
>
<load-config filename="${FLEX_HOME}/frameworks/air-config.xml" />
<source-path path-element="${SRC_ROOT}" />
</compc>
</target>
<target name="clean">
<delete dir="${DEPLOY_DIR}/generated"/>
<delete>
<fileset dir="${DEPLOY_DIR}" includes="${SWC_NAME}"/>
</delete>
</target>
</project>