forked from willwh/osmf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
150 lines (128 loc) · 5.11 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
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
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" encoding="UTF-8"?>
<project name="OSMF" default="all" basedir=".">
<property environment="env" />
<!-- load external values -->
<property file="${basedir}/build.properties" />
<import file ="${buildtools.dir}/utils.xml"/>
<!-- ========= main targets ========= -->
<!-- main -->
<target name="all">
<antcall target="build" />
<antcall target="test" />
</target>
<!-- build entire project -->
<target name="build">
<sequential>
<antcall target="compile.osmf" />
<antcall target="compile.libs" />
<antcall target="compile.smp" />
<antcall target="compile.extended" />
<antcall target="compile.zeri" />
</sequential>
</target>
<!-- compile framework and compile and run framework tests -->
<target name="core" depends="compile.osmf">
<subant target="build" inheritall="true" antfile="testing/NetMockerLibrary/build.xml" buildpath="."/>
<subant target="run" inheritall="true" antfile="framework/OSMFTest/build.xml" buildpath="."/>
<!-- <subant target="run" inheritall="true" antfile="framework/OSMFIntegrationTest/build.xml" buildpath="."/> -->
</target>
<!-- compile strobe media player and compile and run coresponding tests -->
<target name="player" depends="compile.smp">
<subant target="build" inheritall="true" antfile="testing/NetMockerLibrary/build.xml" buildpath="."/>
<subant target="run" inheritall="true" antfile="player/StrobeMediaPlaybackTest/build.xml" buildpath="."/>
</target>
<!-- run all project available tests -->
<target name="test">
<antcall target="run.unittests" />
<!-- <antcall target="run.integrationtests" /> -->
</target>
<!-- ========= subtargets ========= -->
<!-- compiles osmf framework -->
<target name="compile.osmf">
<subant target="" inheritall="true" antfile="framework/OSMF/build.xml" buildpath="."/>
</target>
<!-- compile strobe media player -->
<target name="compile.smp">
<subant target="" inheritall="true" antfile="player/Preloader/build.xml" buildpath="."/>
<subant target="" inheritall="true" antfile="player/StrobeMediaPlayback/build.xml" buildpath="."/>
</target>
<!-- compiles libraries -->
<!-- OBS. when adding a new library make sure you solve all the dependencies with other libraries -->
<target name="compile.libs">
<sequential>
<subant target="" inheritall="true">
<fileset dir="." includes="*/VPAIDLibrary/build.xml" />
<fileset dir="." includes="*/*Library/build.xml" excludes="*VPAID*"/>
<fileset dir="." includes="testing/*Library/build.xml"/>
</subant>
</sequential>
</target>
<!-- compile applications -->
<target name="compile.extended">
<sequential>
<antcall target="compile.plugins" />
<antcall target="compile.samples" />
</sequential>
</target>
<target name="compile.plugins">
<subant target="build" inheritall="true">
<fileset dir="." includes="*/*Plugin/build.xml"/>
</subant>
</target>
<target name="compile.samples">
<sequential>
<subant target="build" inheritall="true">
<fileset dir="." includes="*/*Sample/build.xml"/>
</subant>
</sequential>
</target>
<!-- compile zeri certification -->
<target name="compile.zeri">
<sequential>
<subant target="build" inheritall="true">
<fileset dir="." includes="testing/certification/ZeriCertificationUtils/build.xml"/>
<fileset dir="." includes="testing/certification/ZeriCertificationPlayer/build.xml"/>
<!--<fileset dir="." includes="testing/certification/ZeriCertificationTest/build.xml"/>-->
</subant>
</sequential>
</target>
<!-- runs unit tests -->
<target name="run.unittests" >
<sequential>
<subant target="run" inheritall="true" antfile="framework/OSMFTest/build.xml" buildpath="."/>
<subant target="run" inheritall="true" antfile="player/StrobeMediaPlaybackTest/build.xml" buildpath="."/>
<!--
<subant target="run" inheritall="true" antfile="testing/NetMockerTest/build.xml" buildpath="."/>
<subant target="run" inheritall="true" antfile="samples/YouTubePluginTest/build.xml" buildpath="."/>
<fileset dir="." includes="testing/certification/ZeriCertificationTest/build.xml"/>
-->
</sequential>
</target>
<!-- runs integration tests -->
<!--
<target name="run.integrationtests" >
<sequential>
<subant target="run" inheritall="true" antfile="framework/OSMFIntegrationTest/build.xml" buildpath="."/>
</sequential>
</target>
-->
<!-- deletes the output directories -->
<target name="clean">
<sequential>
<delete includeemptydirs="true" quiet="true">
<fileset dir="${basedir}" defaultexcludes="false">
<include name="framework/**/bin/**" />
<include name="player/**/bin/**" />
<include name="samples/**/bin/**" />
<include name="testing/**/bin/**" />
<include name="**/bin-*/**" />
<include name="**/*Test/test-reports/**" />
<exclude name="buildtools/**" />
</fileset>
</delete>
<delete includeemptydirs="true" quiet="true">
<fileset dir="${reports.dir}" />
</delete>
</sequential>
</target>
</project>