forked from fljot/Gestouch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
76 lines (68 loc) · 3.09 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
<?xml version="1.0" encoding="utf-8"?>
<project name="Gestouch" default="release" basedir=".">
<!-- Thanks to Robotlegs project for the tasks -->
<!-- Load properties -->
<property file="build.properties" />
<property file="version.properties" />
<target name="release" description="" depends="compile.swc, asdoc, fat.swc">
<!-- TODO: tests? -->
</target>
<target name="compile.swc">
<echo>[compile] Compiling release SWC</echo>
<java jar="${flexSDK.dir}/lib/compc.jar" dir="${flexSDK.dir}/frameworks" fork="true" failonerror="true">
<!-- Build our SWC with a versioned name. -->
<arg value="-output=${binrelease.dir}/gestouch-${project.version}.swc"/>
<!-- We want all the org package classes in the SWC being built. -->
<arg value="-include-sources=${src.dir}"/>
<!-- Exclude Flex Framework classes (some mx events comes from binding). -->
<arg value="-external-library-path+=${flexSDK.dir}/frameworks/libs"/>
<!-- Exclude any external classes (such as Starling framework classes) -->
<arg value="-external-library-path+=${libs.dir}"/>
<!-- Keep the metatags (Apparat?). -->
<arg value="-keep-as3-metadata+=Abstract"/>
<!-- Boolean mosh pit! -->
<arg value="-incremental=false"/>
<arg value="-static-link-runtime-shared-libraries=true"/>
<arg value="-verbose-stacktraces=true"/>
<arg value="-headless-server=true"/>
</java>
<echo>[compile] Release SWC gestouch-${project.version}.swc created successfully</echo>
</target>
<target name="asdoc">
<echo>[asdoc] Generating ASDOC documentation</echo>
<tstamp>
<format property="docgen.time" pattern="MM/dd/yyyy hh:mm aa" unit="hour"/>
</tstamp>
<delete includeemptydirs="true" failonerror="false">
<fileset dir="${asdoc.dir}" defaultexcludes="false">
<include name="**/*" />
</fileset>
</delete>
<java jar="${FLEX_HOME}/lib/asdoc.jar" dir="${FLEX_HOME}/frameworks" fork="true" failonerror="true">
<arg line="-source-path ${src.dir}"/>
<arg line="-external-library-path+=${libs.dir}"/>
<arg line="-doc-sources ${src.dir}"/>
<arg line="-output ${asdoc.dir}"/>
<arg value="-keep-xml=true"/>
<arg value="-skip-xsl=true"/>
<arg line="-window-title 'Gestouch ${project.version}'"/>
<arg line="-main-title 'Gestouch ${project.version}'"/>
<arg line="-footer 'Gestouch - http://github.com/fljot/Gestouch/ - Documentation generated at: ${docgen.time}'"/>
<arg line="-package org.gestouch.gestures 'Gestures'"/>
<arg line="-package org.gestouch.events 'Gesture events, generated by gesture classes and dispatched by display objects.'"/>
</java>
<echo>[asdoc] ASDOC documentation generated successfully</echo>
</target>
<target name="fat.swc">
<echo>[fat.swc] Adding documentation to swc</echo>
<!-- updates swc with asdoc xml -->
<zip destfile="${binrelease.dir}/gestouch-${project.version}.swc" update="true">
<zipfileset dir="${asdoc.dir}/tempdita" prefix="docs">
<include name="*.*" />
<exclude name="ASDoc_Config.xml" />
<exclude name="overviews.xml" />
</zipfileset>
</zip>
<echo>[fat.swc] Documentation added to swc successfully</echo>
</target>
</project>