This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.xml
92 lines (79 loc) · 3.28 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="utf-8"?>
<project name="flexwires" default="build" basedir=".">
<!-- sdk.local.properties can be used to override props -->
<property file="./sdk.local.properties"/>
<property file="./sdk.properties"/>
<property file="./build.properties"/>
<target name="build" depends="prepare,build-lib,cleanup"/>
<target name="build-all" depends="build,build-docs,build-examples,package"/>
<target name="prepare">
<!-- delete old build output -->
<delete dir="${output}" includeemptydirs="true"/>
<!-- copy required source files -->
<copy overwrite="true" todir="${source.output}">
<fileset dir="${source}"/>
</copy>
<!-- copy informational files -->
<copy overwrite="true" todir="${output}">
<fileset dir="${basedir}">
<include name="license.txt"/>
<include name="readme.txt"/>
</fileset>
</copy>
<!-- some useful timestamps that we'll need later -->
<tstamp>
<format property="date.today" pattern="MMddyyyy"/>
</tstamp>
<tstamp>
<format property="date.year" pattern="yyyy"/>
</tstamp>
</target>
<target name="cleanup">
<!-- nothing to do here right now -->
</target>
<target name="build-lib" depends="prepare">
<exec executable="${compc}" dir="${basedir}" failonerror="true">
<arg line="--target-player 10.0.0"/>
<arg line="--namespace ${library.mxmlNamespace} manifest.xml"/>
<arg line="--source-path '${source.output}'"/>
<arg line="--include-stylesheet defaults.css source/defaults.css"/>
<arg line="--include-namespaces ${library.mxmlNamespace}"/>
<arg line="--include-classes+='com.flextoolbox.skins.halo.WireJackArrowDragImage'"/>
<arg line="--external-library-path+='${flexsdk.lib}'"/>
<arg line="--output '${build.output}/${library.shortName}.swc'"/>
</exec>
</target>
<target name="build-docs" depends="prepare">
<exec executable="${asdoc}" dir="${basedir}" failonerror="true">
<arg line="--target-player 10.0.0"/>
<arg line="--source-path '${source.output}'"/>
<arg line="--doc-sources '${source.output}'"/>
<arg line="--footer 'Copyright ${date.year} Josh Tynjala. All rights reserved.'"/>
<arg line="--main-title '${library.name} Documentation'"/>
<arg line="--window-title '${library.name} Documentation'"/>
<arg line="--output '${docs.output}'"/>
</exec>
</target>
<target name="build-examples" depends="build-lib">
<ant antfile="${examples}/GettingStarted/build.xml" target="build">
<property name="basedir" value="${examples}/GettingStarted"/>
<property name="output" value="${examples.output}/GettingStarted"/>
<property name="libs" value="${build.output}"/>
</ant>
<ant antfile="${examples}/IntroductionToJacks/build.xml" target="build">
<property name="basedir" value="${examples}/IntroductionToJacks"/>
<property name="output" value="${examples.output}/IntroductionToJacks"/>
<property name="libs" value="${build.output}"/>
</ant>
<ant antfile="${examples}/YouTubeTV/build.xml" target="build">
<property name="basedir" value="${examples}/YouTubeTV"/>
<property name="output" value="${examples.output}/YouTubeTV"/>
<property name="libs" value="${build.output}"/>
</ant>
</target>
<target name="package">
<zip destfile="${library.shortName}${date.today}.zip">
<zipfileset dir="${output}"/>
</zip>
</target>
</project>