This repository has been archived by the owner on Aug 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.xml
87 lines (79 loc) · 2.84 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
<?xml version="1.0"?>
<project name="Reflex Framework Build" basedir="." default="all">
<!-- Define variables/paths used in this build script -->
<property file="build.properties" />
<property name="FLEX_HOME" value="${flex-sdk.dir}" />
<!-- Define tasks used in this build script -->
<taskdef resource="flexTasks.tasks" classpath="${flex-sdk.dir}/ant/lib/flexTasks.jar"/>
<target name="all">
<antcall target="init" />
<antcall target="clean" />
<antcall target="compile" />
<!--<antcall target="test-reports" />-->
<antcall target="docs" />
</target>
<target name="init">
<mkdir dir="${bin.dir}"/>
<mkdir dir="${docs.dir}"/>
<!--
<mkdir dir="${tests.dir}"/>
<mkdir dir="${reports.dir}"/>
-->
</target>
<target name="clean">
<delete includeemptydirs="true" failonerror="false">
<fileset dir="${bin.dir}" defaultexcludes="false">
<include name="**/*"/>
</fileset>
<fileset dir="${docs.dir}" defaultexcludes="false">
<include name="**/*"/>
</fileset>
<!--
<fileset dir="${tests.dir}" defaultexcludes="false">
<include name="**/*"/>
</fileset>
-->
</delete>
</target>
<!--
Compile all of the classes under the "src" tree into a .swc file
-->
<target name="compile">
<compc output="${bin.dir}/${library.name}.swc" link-report="${link-report.dir}/link-report.xml">
<source-path path-element="${src.dir}"/>
<!--<source-path path-element="../FlightCore/src"/>-->
<namespace uri="http://rx.reflex.io/2010" manifest="${src.dir}/manifest.xml" />
<include-namespaces>http://rx.reflex.io/2010</include-namespaces>
<strict>true</strict>
<optimize>true</optimize>
<warnings>true</warnings>
<external-library-path dir="${flex-sdk.dir}/frameworks/libs/player/${flex-sdk.player}" append="true">
<include name="playerglobal.swc" />
</external-library-path>
<library-path dir="${flex-sdk.dir}/frameworks" append="true">
<include name="libs/*.swc" />
<include name="locale/${flex-sdk.locale}/*.swc" />
</library-path>
<!--<library-path dir="libs" append="true">
<include name="*.swc" />
</library-path>-->
<keep-as3-metadata name="Binding" />
<keep-as3-metadata name="EventListener" />
<keep-as3-metadata name="LayoutProperty" />
<keep-as3-metadata name="Commit" />
</compc>
</target>
<!--
Generate ASDoc output for the library
-->
<target name="docs">
<asdoc output="${docs.dir}" templates-path="${docs.templates}">
<doc-namespaces uri="http://reflex.io/2010" />
<namespace uri="http://reflex.io/2010" manifest="${basedir}/src/manifest.xml" />
<source-path path-element="${src.dir}" />
<!--<source-path path-element="../FlightCore/src"/>-->
<library-path dir="${flex-sdk.dir}/frameworks/libs" includes="*.swc" append="true" />
<!--<library-path dir="${basedir}/libs" includes="*.swc" append="true" />-->
</asdoc>
</target>
</project>