-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
139 lines (111 loc) · 4.39 KB
/
Copy pathbuild.xml
File metadata and controls
139 lines (111 loc) · 4.39 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?xml version="1.0" encoding="UTF-8"?>
<project name="dreamsocket_actionscript_analytics" default="buildAll" basedir=".">
<!-- FLEX TASKS -->
<property name="FLEX_HOME" value="/tools/flash/flexsdk/4_0"/>
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
<tstamp><format property="build.date" pattern="yyMMdd" locale="en"/></tstamp>
<property name="build.version.major" value="0" />
<property name="build.version.minor" value="5" />
<property name="build.version.build" value="0" />
<!-- DIRECTORIES -->
<property name="project.docs" value="${basedir}/docs/"/>
<property name="project.libs" value="${basedir}/libs/"/>
<property name="project.output" value="${basedir}/bin/" />
<property name="project.src" value="${basedir}/src/" />
<property name="project.name" value="dreamsocket_analytics" />
<property name="swf.framerate" value="31" />
<property name="swf.width" value="1" />
<property name="swf.height" value="1" />
<!-- BUILD ALL -->
<target name="buildAll" depends="clean,buildSWC,buildGoogleModule,buildJavaScriptModule,buildOmnitureModule,buildURLModule" />
<!-- BUILD ALL PLUGINS -->
<target name="buildAllModules" depends="buildGoogleModule,buildJavaScriptModule,buildOmnitureModule,buildURLModule" />
<!-- BUILD GOOGLE PLUGIN -->
<target name="buildGoogleModule">
<antcall target="compileModule">
<param name="module.name" value="daf_google" />
<param name="module.class" value="com/dreamsocket/analytics/google/GoogleTrackerModule.as" />
</antcall>
</target>
<!-- BUILD JAVASCRIPT PLUGIN -->
<target name="buildJavaScriptModule">
<antcall target="compileModule">
<param name="module.name" value="daf_javascript" />
<param name="module.class" value="com/dreamsocket/analytics/js/JSTrackerModule.as" />
</antcall>
</target>
<!-- BUILD OMNITURE PLUGIN -->
<target name="buildOmnitureModule">
<antcall target="compileModule">
<param name="module.name" value="daf_omniture" />
<param name="module.class" value="com/dreamsocket/analytics/omniture/OmnitureTrackerModule.as" />
</antcall>
</target>
<!-- BUILD URL PLUGIN -->
<target name="buildURLModule">
<antcall target="compileModule">
<param name="module.name" value="daf_url" />
<param name="module.class" value="com/dreamsocket/analytics/url/URLTrackerModule.as" />
</antcall>
</target>
<!-- COMPILE SWC -->
<target name="buildSWC">
<compc output="${project.output}/${project.name}_${build.version.major}.${build.version.minor}.${build.date}.swc">
<external-library-path dir="${project.libs}/" append="true" includes="**" />
<include-sources dir="${project.src}" includes="**"/>
</compc>
</target>
<!-- COMPILE PLUGIN-->
<target name="compileModule">
<mxmlc
file="${project.src}${module.class}"
output="${project.output}${module.name}.swf"
strict="true"
static-link-runtime-shared-libraries="true"
>
<default-size
width="1"
height="1" />
<source-path
path-element="${project.src}"/>
<compiler.library-path
dir="${basedir}"
append="true">
<include
name="libs" />
</compiler.library-path>
</mxmlc>
</target>
<!-- CLEAN -->
<target name="clean">
<mkdir dir="${project.output}"/>
<delete>
<fileset dir="${project.output}" includes="**"/>
</delete>
</target>
<!-- PACKAGE -->
<target name="package" depends="buildAll">
<zip update="true" destfile="${project.output}${project.name}_${build.version.major}.${build.version.minor}.${build.date}.zip" >
<zipfileset dir="${basedir}" includes="bin/**,libs/**,src/**,test/**,build.xml" />
</zip>
</target>
<!-- BUILD DOCS -->
<target name="buildDocs">
<delete dir="${project.docs}"/>
<mkdir dir="${project.docs}"/>
<asdoc
output="${project.docs}"
lenient="true"
failonerror="true"
main-title="${project.name} ${build.version.major}.${build.version.minor}.${build.date}"
window-title="${project.name} ${build.version.major}.${build.version.minor}.${build.date}">
<doc-sources path-element="${project.src}"/>
<compiler.library-path
dir="${basedir}"
append="true">
<include
name="libs" />
</compiler.library-path>
</asdoc>
</target>
</project>