-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
74 lines (62 loc) · 2.82 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="NetflixAS3 Build File" basedir="." default="build">
<!-- Set Up ============================================================================= -->
<!-- file description -->
<description>Build Script</description>
<!--location of property file -->
<property file="./build.properties" description="set the initial build properties common to all builds" />
<!-- timestamp -->
<tstamp>
<format property="timestamp" pattern="yyyyMMdd" />
</tstamp>
<!-- additional tasks -->
<taskdef resource="flexTasks.tasks" classpath="${FlexTasksLib.file}" />
<!-- ======================================================================================= -->
<!-- MAIN COMPILE ========================================================================== -->
<target name="build">
<antcall target="clean"/>
<antcall target="compile"/>
<antcall target="asdoc"/>
<antcall target="zip"/>
</target>
<!-- ======================================================================================= -->
<!-- COMPILE LIBRARIES ===================================================================== -->
<target name="compile">
<compc debug="${Debug.boolean}" output="${bin.dir}/${swc.name}.swc">
<source-path path-element="${src.dir}" />
<include-sources dir="${src.dir}" includes="*"/>
<compiler.library-path dir="${library.dir}" append="true">
<include name="*.swc" />
</compiler.library-path>
<metadata>
<creator>Jonathan Campos</creator>
<publisher>UnitedMindset</publisher>
<language>EN</language>
</metadata>
</compc>
</target>
<target name="clean">
<delete dir="${bin.dir}" failOnError="false" includeEmptyDirs="true" />
<mkdir dir="${bin.dir}" />
</target>
<!-- ======================================================================================= -->
<!-- ASDOC ================================================================================= -->
<target name="asdoc" description="build of asdoc">
<exec executable="${asdocs.exe}" failonerror="true">
<arg line="-doc-sources '${src.dir}'" />
<arg line="-external-library-path '${library.dir}'" />
<arg line="-main-title '${library.name}'" />
<arg line="-window-title '${windowTitle.name}'" />
<arg line="-output '${output.dir}'" />
<arg line="-footer '${footerText.name}'" />
</exec>
</target>
<!-- ======================================================================================= -->
<!-- ZIP =================================================================================== -->
<target name="zip">
<zip destfile="${bin.dir}/${swc.name}.zip">
<fileset dir="${bin.dir}" />
</zip>
</target>
<!-- ======================================================================================= -->
</project>