author | Shabe Razvi <shaber@symbian.org> |
Mon, 20 Sep 2010 14:23:42 +0100 | |
changeset 1259 | 5f8149838262 |
parent 1252 | f2fbf395f696 |
child 1261 | dd40521a5759 |
permissions | -rw-r--r-- |
1251 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<project name="SF-POSTBUILD" xmlns:hlm="http://www.nokia.com/helium"> |
|
3 |
<target name="sf-postbuild" depends="sf-build-roms"> |
|
4 |
<stopwatch name="sf-postbuild"/> |
|
5 |
<echo>[SF-POSTBUILD]</echo> |
|
6 |
||
7 |
<if><istrue value="${sf.relicense.exported.headers}"/> |
|
8 |
<then> |
|
9 |
<runtarget target="sf-run-sfl-licence-munging"/> |
|
10 |
</then> |
|
11 |
</if> |
|
12 |
||
13 |
<parallel> |
|
14 |
<!-- TAG SOURCE CODE --> |
|
15 |
<if> |
|
16 |
<istrue value="${sf.spec.tagafterbuild.enable}" /> |
|
17 |
<then> |
|
18 |
<echo message="Apply tag to the source code used in this build"/> |
|
19 |
<runtarget target="sf-tag-hg-code"/> |
|
20 |
</then> |
|
21 |
</if> |
|
22 |
||
23 |
<!-- Create MD5s --> |
|
24 |
<if> |
|
25 |
<istrue value="${sf.spec.md5.enable}"/> |
|
26 |
<then> |
|
27 |
<echo message="INFO Creating MD5s"/> |
|
28 |
<runtarget target="sf-run-evalid"/> |
|
29 |
</then> |
|
30 |
</if> |
|
31 |
||
32 |
<!-- Package up the binaries we built --> |
|
33 |
<if> |
|
34 |
<istrue value="${sf.spec.package.bin.enable}"/> |
|
35 |
<then> |
|
36 |
<stopwatch name="sf-postbuild packaging binaries"/> |
|
37 |
<echo message="INFO Packaging Binaries"/> |
|
38 |
<runtarget target="sf-package-binary"/> |
|
39 |
||
40 |
<echo message="INFO Validate Zip files"/> |
|
41 |
<runtarget target="sf-package-validate"/> |
|
42 |
<stopwatch name="sf-postbuild packaging binaries" action="elapsed"/> |
|
43 |
</then> |
|
44 |
</if> |
|
45 |
||
46 |
<!-- run build analysis tools --> |
|
47 |
<runtarget target="sf-run-analysis"/> |
|
48 |
||
49 |
<if> |
|
50 |
<istrue value="${sf.spec.publish.enable}"/> |
|
51 |
<then> |
|
52 |
<!-- Generate reports to compare this build to a previous one --> |
|
53 |
<runtarget target="sf-compare-to-baseline"/> |
|
54 |
</then> |
|
55 |
</if> |
|
56 |
</parallel> |
|
57 |
||
58 |
<!-- Generate release_metadata entries for the md5 zips --> |
|
59 |
<antcall target="sf-zip-content"> |
|
60 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
61 |
<param name="zip.target.name" value="md5-just-metadata" /> |
|
62 |
</antcall> |
|
63 |
||
64 |
<!-- Launch smoketest --> |
|
65 |
<if><istrue value="${sf.spec.test.sendpkg.enable}"/> |
|
66 |
<then> |
|
67 |
<runtarget target="sf-build-smoketestpkg"/> |
|
68 |
<runtarget target="sf-send-testpkg"/> |
|
69 |
</then> |
|
70 |
</if> |
|
71 |
||
72 |
<!-- Launch BC check --> |
|
73 |
<if><istrue value="${sf.spec.bccheck.enable}"/> |
|
74 |
<then> |
|
75 |
<runtarget target="sf-bc-check"/> |
|
76 |
</then> |
|
77 |
</if> |
|
78 |
||
79 |
<!-- Launch package tests --> |
|
80 |
<if><istrue value="${sf.spec.package.test.enable}"/> |
|
81 |
<then> |
|
82 |
<runtarget target="sf-test-package"/> |
|
83 |
</then> |
|
84 |
</if> |
|
85 |
||
86 |
<!-- copy log files linked to the generation of roms for REE --> |
|
87 |
<runtarget target="sf-copy-rom-logs"/> |
|
88 |
||
89 |
<runtarget target="sf-merge-brag"/> |
|
90 |
||
91 |
<!-- Zip up all the logs --> |
|
92 |
<runtarget target="sf-zip-logs"/> |
|
93 |
||
94 |
<if> |
|
95 |
<istrue value="${sf.spec.publish.enable}" /> |
|
96 |
<then> |
|
97 |
<echo message="Send links to Diamonds"/> |
|
98 |
<runtarget target="sf-links-to-diamonds"/> |
|
99 |
<echo message="Send BRAG status information to Diamonds"/> |
|
100 |
<runtarget target="sf-brag-to-diamonds"/> |
|
101 |
||
102 |
<echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/> |
|
103 |
<runtarget target="sf-publish"/> |
|
104 |
</then> |
|
105 |
</if> |
|
106 |
<stopwatch name="sf-postbuild" action="elapsed"/> |
|
107 |
</target> |
|
108 |
||
109 |
<target name="sf-tag-hg-code"> |
|
110 |
<!-- To do the tagging, we need to know what tag to use, and who the author is (from hg's perspective) --> |
|
111 |
<fail message="This target needs to have all the details specified, or to be run interactively so it can query the user"> |
|
112 |
<condition> |
|
113 |
<and> |
|
114 |
<isset property="sf.hudson.executor.number"/> |
|
115 |
<not> |
|
116 |
<or> |
|
117 |
<isset property="sf.tagafterbuild.tag"/> |
|
118 |
<isset property="sf.hg.ui.username"/> |
|
119 |
</or> |
|
120 |
</not> |
|
121 |
</and> |
|
122 |
</condition> |
|
123 |
</fail> |
|
124 |
||
125 |
<!-- Ask the user, interactively, what tag to use --> |
|
126 |
<input addproperty="sf.tagafterbuild.tag" message="Enter the tag to apply to the code (eg "PDK_1.0.1"):"/> |
|
127 |
<fail message="No tag supplied"> |
|
128 |
<condition> |
|
129 |
<length string="${sf.tagafterbuild.tag}" trim="true" length="0"/> |
|
130 |
</condition> |
|
131 |
</fail> |
|
132 |
||
133 |
<!-- Now get the username sorted out --> |
|
134 |
<exec executable="hg" outputproperty="sf.hg.showconfig.ui.username"> |
|
135 |
<arg value="showconfig"/> |
|
136 |
<arg value="ui.username"/> |
|
137 |
</exec> |
|
138 |
<input addproperty="sf.hg.ui.username" message="Enter hg author credentials (eg "Fred Bloggs <fredb@example.org>") default is" defaultvalue="${sf.hg.showconfig.ui.username}"/> |
|
139 |
<fail message="No author supplied"> |
|
140 |
<condition> |
|
141 |
<length string="${sf.hg.ui.username}" trim="true" length="0"/> |
|
142 |
</condition> |
|
143 |
</fail> |
|
144 |
||
145 |
<fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl" |
|
146 |
outputFile="${temp.build.dir}/tag-hg-code.ant.xml"> |
|
147 |
<data expandProperties="yes"> |
|
148 |
ant: antProperties() |
|
149 |
data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','}) |
|
150 |
</data> |
|
151 |
</fmpp> |
|
152 |
<ant antfile="${temp.build.dir}/tag-hg-code.ant.xml"/> |
|
153 |
</target> |
|
154 |
||
155 |
<target name="sf-push-hg-tags"> |
|
156 |
<!-- To do the pushing, we need to have a set of credentials for the developer.symbian.org site --> |
|
157 |
<fail message="This target needs to have loging credentials specified specified, or to be run interactively so it can query the user"> |
|
158 |
<condition> |
|
159 |
<and> |
|
160 |
<isset property="sf.hudson.executor.number"/> |
|
161 |
<not> |
|
162 |
<or> |
|
163 |
<isset property="sf.symbian.account.username"/> |
|
164 |
<isset property="sf.symbian.account.password"/> |
|
165 |
</or> |
|
166 |
</not> |
|
167 |
</and> |
|
168 |
</condition> |
|
169 |
</fail> |
|
170 |
||
171 |
<input addproperty="sf.symbian.account.username" message="Enter symbian.org username (eg "fredb")"/> |
|
172 |
<fail message="No author supplied"> |
|
173 |
<condition> |
|
174 |
<length string="${sf.hg.ui.username}" trim="true" length="0"/> |
|
175 |
</condition> |
|
176 |
</fail> |
|
177 |
||
178 |
<input addproperty="sf.symbian.account.password" message="Enter symbian.org password (eg "unguessable")"> |
|
179 |
<!-- Ant 1.8 supports secure here, which would be an improvement... --> |
|
180 |
<handler type="default"/> |
|
181 |
</input> |
|
182 |
<fail message="No password supplied"> |
|
183 |
<condition> |
|
184 |
<length string="${sf.hg.ui.password}" trim="true" length="0"/> |
|
185 |
</condition> |
|
186 |
</fail> |
|
187 |
||
188 |
<if> |
|
189 |
<not> |
|
190 |
<available file="${build.drive}/tagging" type="dir"/> |
|
191 |
</not> |
|
192 |
<then> |
|
193 |
<!-- No dir with tagged repos in - create them! --> |
|
194 |
<runtarget target="sf-tag-hg-code"/> |
|
195 |
</then> |
|
196 |
</if> |
|
197 |
||
198 |
<fmpp sourceFile="${sf.common.config.dir}/templates/push-hg-tags.ant.xml.ftl" |
|
199 |
outputFile="${temp.build.dir}/push-hg-tags.ant.xml"> |
|
200 |
<data expandProperties="yes"> |
|
201 |
ant: antProperties() |
|
202 |
data: csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','}) |
|
203 |
</data> |
|
204 |
</fmpp> |
|
205 |
<ant antfile="${temp.build.dir}/push-hg-tags.ant.xml"/> |
|
206 |
</target> |
|
207 |
||
208 |
<target name="sf-run-evalid" > |
|
209 |
<delete dir="${build.drive}/output/md5"/> |
|
210 |
<mkdir dir="${build.drive}/output/md5"/> |
|
211 |
||
212 |
<parallel> |
|
213 |
<exec executable="cmd" dir="${build.drive}/"> |
|
214 |
<arg value="/c"/> |
|
215 |
<arg value="evalid -g epoc32/include output/md5/epoc32_include.md5"/> |
|
216 |
</exec> |
|
217 |
<exec executable="cmd" dir="${build.drive}/"> |
|
218 |
<arg value="/c"/> |
|
219 |
<arg value="evalid -g epoc32/s60 output/md5/epoc32_s60.md5"/> |
|
220 |
</exec> |
|
221 |
<exec executable="cmd" dir="${build.drive}/"> |
|
222 |
<arg value="/c"/> |
|
223 |
<arg value="evalid -g epoc32/localisation output/md5/epoc32_localisation.md5"/> |
|
224 |
</exec> |
|
225 |
<exec executable="cmd" dir="${build.drive}/"> |
|
226 |
<arg value="/c"/> |
|
227 |
<arg value="evalid -x \.sym$ -x ^armv5/udeb -x ^armv5/urel -x ^winscw/udeb -x ^winscw/urel -g epoc32/release output/md5/epoc32_release.md5"/> |
|
228 |
</exec> |
|
229 |
<exec executable="cmd" dir="${build.drive}/"> |
|
230 |
<arg value="/c"/> |
|
231 |
<arg value="evalid -x \.sym$ -g epoc32/release/armv5/udeb output/md5/epoc32_release_armv5_udeb.md5"/> |
|
232 |
</exec> |
|
233 |
<exec executable="cmd" dir="${build.drive}/"> |
|
234 |
<arg value="/c"/> |
|
235 |
<arg value="evalid -x \.sym$ -g epoc32/release/armv5/urel output/md5/epoc32_release_armv5_urel.md5"/> |
|
236 |
</exec> |
|
237 |
<exec executable="cmd" dir="${build.drive}/"> |
|
238 |
<arg value="/c"/> |
|
239 |
<arg value="evalid -x \.sym$ -g epoc32/release/winscw/udeb output/md5/epoc32_release_winscw_udeb.md5"/> |
|
240 |
</exec> |
|
241 |
<exec executable="cmd" dir="${build.drive}/"> |
|
242 |
<arg value="/c"/> |
|
243 |
<arg value="evalid -x \.sym$ -g epoc32/release/winscw/urel output/md5/epoc32_release_winscw_urel.md5"/> |
|
244 |
</exec> |
|
245 |
<exec executable="cmd" dir="${build.drive}/"> |
|
246 |
<arg value="/c"/> |
|
247 |
<arg value="evalid -g epoc32/cshlpcmp_template output/md5/epoc32_cshlpcmp_template.md5"/> |
|
248 |
</exec> |
|
249 |
<exec executable="cmd" dir="${build.drive}/"> |
|
250 |
<arg value="/c"/> |
|
251 |
<arg value="evalid -g epoc32/data output/md5/epoc32_data.md5"/> |
|
252 |
</exec> |
|
253 |
<exec executable="cmd" dir="${build.drive}/"> |
|
254 |
<arg value="/c"/> |
|
255 |
<arg value="evalid -g epoc32/engdoc output/md5/epoc32_engdoc.md5"/> |
|
256 |
</exec> |
|
257 |
<exec executable="cmd" dir="${build.drive}/"> |
|
258 |
<arg value="/c"/> |
|
259 |
<arg value="evalid -g epoc32/engineeringtools output/md5/epoc32_engineeringtools.md5"/> |
|
260 |
</exec> |
|
261 |
<exec executable="cmd" dir="${build.drive}/"> |
|
262 |
<arg value="/c"/> |
|
263 |
<arg value="evalid -g epoc32/gcc output/md5/epoc32_gcc.md5"/> |
|
264 |
</exec> |
|
265 |
<exec executable="cmd" dir="${build.drive}/"> |
|
266 |
<arg value="/c"/> |
|
267 |
<arg value="evalid -g epoc32/gcc_mingw output/md5/epoc32_gcc_mingw.md5"/> |
|
268 |
</exec> |
|
269 |
<exec executable="cmd" dir="${build.drive}/"> |
|
270 |
<arg value="/c"/> |
|
271 |
<arg value="evalid -g epoc32/ksa output/md5/epoc32_ksa.md5"/> |
|
272 |
</exec> |
|
273 |
<exec executable="cmd" dir="${build.drive}/"> |
|
274 |
<arg value="/c"/> |
|
275 |
<arg value="evalid -g epoc32/rom output/md5/epoc32_rom.md5"/> |
|
276 |
</exec> |
|
277 |
<exec executable="cmd" dir="${build.drive}/"> |
|
278 |
<arg value="/c"/> |
|
279 |
<arg value="evalid -g epoc32/rombuild output/md5/epoc32_rombuild.md5"/> |
|
280 |
</exec> |
|
281 |
<exec executable="cmd" dir="${build.drive}/"> |
|
282 |
<arg value="/c"/> |
|
283 |
<arg value="evalid -g epoc32/sbs_config output/md5/epoc32_sbs_config.md5"/> |
|
284 |
</exec> |
|
285 |
<exec executable="cmd" dir="${build.drive}/"> |
|
286 |
<arg value="/c"/> |
|
287 |
<arg value="evalid -g epoc32/sdk_special output/md5/epoc32_sdk_special.md5"/> |
|
288 |
</exec> |
|
289 |
<exec executable="cmd" dir="${build.drive}/"> |
|
290 |
<arg value="/c"/> |
|
291 |
<arg value="evalid -g epoc32/stdapis output/md5/epoc32_stdapis.md5"/> |
|
292 |
</exec> |
|
293 |
<exec executable="cmd" dir="${build.drive}/"> |
|
294 |
<arg value="/c"/> |
|
295 |
<arg value="evalid -g epoc32/stubs output/md5/epoc32_stubs.md5"/> |
|
296 |
</exec> |
|
297 |
<exec executable="cmd" dir="${build.drive}/"> |
|
298 |
<arg value="/c"/> |
|
299 |
<arg value="evalid -g epoc32/tools output/md5/epoc32_tools.md5"/> |
|
300 |
</exec> |
|
301 |
<exec executable="cmd" dir="${build.drive}/"> |
|
302 |
<arg value="/c"/> |
|
303 |
<arg value="evalid -g epoc32/wins output/md5/epoc32_wins.md5"/> |
|
304 |
</exec> |
|
305 |
<exec executable="cmd" dir="${build.drive}/"> |
|
306 |
<arg value="/c"/> |
|
307 |
<arg value="evalid -g epoc32/winscw output/md5/epoc32_winscw.md5"/> |
|
308 |
</exec> |
|
309 |
</parallel> |
|
310 |
<!-- package MD5s directly into epoc32/relinfo location so that its usable out-of-the-box --> |
|
311 |
<mkdir dir="${build.output.dir}/zips/release"/> <!-- Hack to prevent non-existing release dir --> |
|
312 |
<zip destfile="${build.output.dir}/zips/release/build_md5.zip"> |
|
313 |
<zipfileset dir="${build.drive}/output/md5/" prefix="epoc32/relinfo"/> |
|
314 |
</zip> |
|
315 |
</target> |
|
316 |
||
317 |
<target name="sf-package-binary" depends="sf-package-postbuild-rnd,sf-merge-manifest"> |
|
318 |
<!-- Warning: Reverting to using the He zipper will also revert to a single zip for the binaries: |
|
319 |
would need to update the template and possibly the script that populates it --> |
|
320 |
<!--antcall target="sf-zip-content"> |
|
321 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
322 |
<param name="zip.target.name" value="bin" /> |
|
323 |
</antcall--> |
|
324 |
<parallel> |
|
325 |
<sequential> |
|
326 |
<if> |
|
327 |
<isset property="sf.sdk.header.list.file"/> |
|
328 |
<then> |
|
329 |
<property name="sf.epoc32.exclusions.file" value="${sf.sdk.header.list.file}"/> |
|
330 |
</then> |
|
331 |
</if> |
|
332 |
<property name="sf.epoc32.exclusions.file" value="nul:"/> |
|
333 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log"> |
|
334 |
<arg value="a"/> |
|
335 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
336 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> <!-- rnd content taken from internal hg repos --> |
|
337 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
338 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> <!-- merged list of prebuilt content such as binaries_prebuilt --> |
|
339 |
<arg value="-x@${sf.epoc32.exclusions.file}"/> |
|
340 |
<arg value="-x!epoc32\gcc"/> |
|
341 |
<arg value="-x!epoc32\gcc_mingw"/> |
|
342 |
<arg value="-x!epoc32\tools"/> |
|
343 |
<arg value="-x!epoc32\data\buildinfo.txt"/> |
|
344 |
<!-- Feature database artifacts released as part of the tools zip --> |
|
345 |
<arg value="-x!epoc32\data\config\features.dat"/> |
|
346 |
<arg value="-x!epoc32\include\featureuids.h"/> |
|
347 |
<arg value="-x!epoc32\rom\include\feature.iby"/> |
|
348 |
<arg value="-x!epoc32\rom\include\featuredatabase.xml"/> |
|
349 |
<arg value="-x!epoc32\data\media"/> <!-- Files created when emulator is used to create comms database - not worth releasing--> |
|
350 |
<arg value="-x!epoc32\build"/> |
|
351 |
<arg value="-x!epoc32\release\armv5"/> |
|
352 |
<arg value="-x!epoc32\release\winscw"/> |
|
353 |
<arg value="-xr!*.sym"/> |
|
354 |
<arg value="${build.drive}/output/zips/release/binaries_epoc.zip"/> |
|
355 |
<arg value="epoc32\"/> |
|
356 |
</exec> |
|
357 |
</sequential> |
|
358 |
||
359 |
<if> |
|
360 |
<isset property="sf.sdk.header.list.file"/> |
|
361 |
<then> |
|
362 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_sdk.log"> |
|
363 |
<arg value="a"/> |
|
364 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
365 |
<arg value="-i@${sf.sdk.header.list.file}"/> |
|
366 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
367 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
368 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
369 |
<arg value="-x!epoc32/include/featureuids.h"/> <!-- This needs to come from the tools zip instead --> |
|
370 |
<arg value="${build.drive}/output/zips/release/binaries_epoc_sdk.zip"/> |
|
371 |
</exec> |
|
372 |
<!-- Check that all the files we want in the SDK are zipped --> |
|
373 |
<antcall target="sf-log-to-brag"> |
|
374 |
<param name="sf.brag.id" value="SDK"/> |
|
375 |
<param name="sf.brag.log" value="${build.log.dir}/zip_${build.id}_binaries_sdk.log"/> |
|
376 |
<param name="sf.brag.phase" value="Postbuild"/> |
|
377 |
<param name="sf.brag.step" value="Package SDK"/> |
|
378 |
</antcall> |
|
379 |
<!-- Generate release_metadata entries for the SDK zip --> |
|
380 |
<antcall target="sf-zip-content"> |
|
381 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
382 |
<param name="zip.target.name" value="bin-sdk-just-metadata" /> |
|
383 |
</antcall> |
|
384 |
</then> |
|
385 |
</if> |
|
386 |
||
387 |
<!-- WinsCW binaries, by udeb/urel/lib --> |
|
388 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_udeb.log"> |
|
389 |
<arg value="a"/> |
|
390 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
391 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
392 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
393 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
394 |
<arg value="-xr!*.sym"/> |
|
395 |
<arg value="-xr!*.lib"/> |
|
396 |
<arg value="${build.drive}/output/zips/release/binaries_winscw_udeb.zip"/> |
|
397 |
<arg value="epoc32\release\winscw\udeb"/> |
|
398 |
</exec> |
|
399 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_urel.log"> |
|
400 |
<arg value="a"/> |
|
401 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
402 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
403 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
404 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
405 |
<arg value="-xr!*.sym"/> |
|
406 |
<arg value="-xr!*.lib"/> |
|
407 |
<arg value="${build.drive}/output/zips/release/binaries_winscw_urel.zip"/> |
|
408 |
<arg value="epoc32\release\winscw\urel"/> |
|
409 |
</exec> |
|
410 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_lib.log"> |
|
411 |
<arg value="a"/> |
|
412 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
413 |
<arg value="-ir!epoc32/release/winscw/*.lib"/> |
|
414 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
415 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
416 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
417 |
<arg value="${build.drive}/output/zips/release/binaries_winscw_lib.zip"/> |
|
418 |
</exec> |
|
419 |
||
420 |
<!-- ARMv5 binaries, by udeb/urel/lib --> |
|
421 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_udeb.log"> |
|
422 |
<arg value="a"/> |
|
423 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
424 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
425 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
426 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
427 |
<arg value="-xr!*.sym"/> |
|
428 |
<arg value="${build.drive}/output/zips/release/binaries_armv5_udeb.zip"/> |
|
429 |
<arg value="epoc32\release\armv5\udeb"/> |
|
430 |
</exec> |
|
431 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_urel.log"> |
|
432 |
<arg value="a"/> |
|
433 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
434 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
435 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
436 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
437 |
<arg value="-xr!*.sym"/> |
|
438 |
<arg value="${build.drive}/output/zips/release/binaries_armv5_urel.zip"/> |
|
439 |
<arg value="epoc32\release\armv5\urel"/> |
|
440 |
</exec> |
|
441 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_lib.log"> |
|
442 |
<arg value="a"/> |
|
443 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
444 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
445 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
446 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
447 |
<arg value="-xr!*.sym"/> |
|
448 |
<arg value="-ir!epoc32/release/armv5/_*.bin"/> <!-- include bootloaders in common lib zipfile --> |
|
449 |
<arg value="${build.drive}/output/zips/release/binaries_armv5_lib.zip"/> |
|
450 |
<arg value="epoc32\release\armv5\lib"/> |
|
451 |
</exec> |
|
452 |
</parallel> |
|
453 |
||
454 |
<runtarget target="sf-package-tools"/> |
|
455 |
<runtarget target="sf-package-prebuilt"/> |
|
456 |
||
457 |
<!-- Generate release_metadata entries for the above zips --> |
|
458 |
<antcall target="sf-zip-content"> |
|
459 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
460 |
<param name="zip.target.name" value="bin-just-metadata" /> |
|
461 |
</antcall> |
|
462 |
</target> |
|
463 |
||
464 |
<target name="sf-package-postbuild-rnd" > |
|
465 |
<antcall target="sf-zip-content"> |
|
466 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
467 |
<param name="zip.target.name" value="rnd-postbuild" /> |
|
468 |
</antcall> |
|
469 |
</target> |
|
470 |
||
471 |
<target name="sf-package-tools" depends="sf-merge-manifest"> |
|
472 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log"> |
|
473 |
<arg value="a"/> |
|
474 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
475 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
476 |
<arg value="-x@/output/temp_build_files/manifest_excludelist.txt"/> |
|
477 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
478 |
<arg value="${build.drive}/output/zips/release/tools_epoc.zip"/> |
|
479 |
<arg value="epoc32/tools"/> |
|
480 |
<arg value="epoc32/gcc"/> |
|
481 |
<arg value="epoc32/gcc_mingw"/> |
|
482 |
<arg value="epoc32/data/buildinfo.txt"/> |
|
483 |
<arg value="epoc32/data/config/features.dat"/> |
|
484 |
<arg value="epoc32/include/featureuids.h"/> |
|
485 |
<arg value="epoc32/rom/include/feature.iby"/> |
|
486 |
<arg value="epoc32/rom/include/featuredatabase.xml"/> |
|
487 |
</exec> |
|
488 |
<antcall target="sf-zip-content"> |
|
489 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
490 |
<param name="zip.target.name" value="tools" /> |
|
491 |
</antcall> |
|
492 |
</target> |
|
493 |
||
494 |
<target name="sf-package-validate"> |
|
495 |
<exec executable="7z" dir="${build.drive}/output/zips" failonerror="false" output="${build.drive}/output/zips/validate.log"> |
|
496 |
<arg value="t"/> |
|
497 |
<arg value="*.zip"/> |
|
498 |
</exec> |
|
499 |
<exec executable="7z" dir="${build.drive}/output/zips/release" failonerror="false" output="${build.drive}/output/zips/release/validate.log"> |
|
500 |
<arg value="t"/> |
|
501 |
<arg value="*.zip"/> |
|
502 |
</exec> |
|
503 |
</target> |
|
504 |
||
505 |
<!-- merge manifests for prebuilt stuff delivered at the start of build process --> |
|
506 |
<target name="sf-merge-manifest"> |
|
507 |
<echo message="INFO Build drive is ${build.drive} "/> |
|
508 |
<concat destfile="${build.drive}\output\temp_build_files\manifest_excludelist.txt"> |
|
509 |
<fileset dir="${build.drive}" includes="*manifest*" excludes="manifest_excludelist.txt"/> |
|
510 |
</concat> |
|
511 |
||
512 |
<!-- touch file to update/create it in the event that there are no manifest* files available |
|
513 |
as 7z will not be happy being given a non-existent file --> |
|
514 |
<touch file="${build.drive}\output\temp_build_files\manifest_excludelist.txt"/> |
|
515 |
</target> |
|
516 |
||
517 |
<target name="sf-package-prebuilt" depends="sf-merge-manifest"> |
|
518 |
<!-- for each prebuilt manifest* file, repackage --> |
|
519 |
||
520 |
<for param="manifest"> |
|
521 |
<path> |
|
522 |
<fileset dir="${build.drive}\"> |
|
523 |
<include name="manifest*.txt"/> |
|
524 |
<exclude name="manifest*restricted*.txt"/> <!-- dont repack restricted content such as testconfigfileparser --> |
|
525 |
</fileset> |
|
526 |
</path> |
|
527 |
<!-- strip manifest_ and .txt extension for matched file --> |
|
528 |
<sequential> |
|
529 |
<propertyregex property="manifest.shortname" override="true" input="@{manifest}" regexp="manifest_(\S+)(.txt)" select="\1" global="true" casesensitive="false"/> |
|
530 |
<propertyregex property="manifest.fullname" override="true" input="@{manifest}" regexp="(.*)" select="\1" global="true" casesensitive="false"/> |
|
531 |
<propertyregex property="manifest.pkgname" override="true" input="@{manifest}" regexp="manifest_binaries_(\S+)(.txt)" select="\1" global="true" casesensitive="false"/> |
|
532 |
||
533 |
<echo message="INFO Packaging ${manifest.fullname} into ${manifest.shortname}.zip"/> |
|
534 |
||
535 |
<exec executable="7za" dir="${build.drive}/" output="${build.drive}/zip_${manifest.shortname}.log"> |
|
536 |
<arg value="a"/> |
|
537 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
538 |
<arg value="-i@${manifest.fullname}"/> |
|
539 |
<arg value="${build.drive}/output/zips/release/${manifest.shortname}.zip"/> |
|
540 |
</exec> |
|
541 |
||
542 |
<!-- merge release metadata --> |
|
543 |
<antcall target="sf-zip-content"> |
|
544 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
545 |
<param name="zip.target.name" value="bin-${manifest.pkgname}-metadata" /> |
|
546 |
<param name="sf.spec.job.name" value="${manifest.pkgname}" /> |
|
547 |
</antcall> |
|
548 |
</sequential> |
|
549 |
</for> |
|
550 |
||
551 |
</target> |
|
552 |
<!-- runs analysis of missing bins and source --> |
|
553 |
<target name="sf-run-analysis"> |
|
554 |
<stopwatch name="sf-run-analysis"/> |
|
555 |
<mkdir dir="${build.log.dir}/analysis"/> |
|
556 |
<parallel> |
|
557 |
<runtarget target="sf-run-analysis-ant"/> |
|
558 |
<runtarget target="sf-run-analysis-raptor"/> |
|
559 |
<runtarget target="sf-run-analysis-yarp"/> |
|
560 |
<runtarget target="sf-run-analysis-whatlog-summary"/> |
|
561 |
<runtarget target="sf-run-analysis-missing-files"/> |
|
562 |
</parallel> |
|
563 |
<if> |
|
564 |
<istrue value="${sf.spec.publish.enable}"/> |
|
565 |
<then> |
|
566 |
<runtarget target="sf-run-analysis-diamonds"/> |
|
567 |
</then> |
|
568 |
</if> |
|
569 |
<stopwatch name="sf-run-analysis" action="elapsed"/> |
|
570 |
</target> |
|
571 |
||
572 |
<target name="sf-run-analysis-ant"> |
|
573 |
<echo message="Running source analysis of ANT output"/> |
|
574 |
<exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log"> |
|
575 |
<arg value="${sf.common.config.dir}/tools/analysis/scan_antlogs.pl"/> |
|
576 |
<arg value="*ant*"/> |
|
577 |
<arg value="*stderr*"/> <!-- helium 7 splits output into stderr logs, so use them also --> |
|
578 |
<arg value="*sbs_error*"/> |
|
579 |
</exec> |
|
580 |
</target> |
|
581 |
||
582 |
<target name="sf-run-analysis-raptor"> |
|
583 |
<!-- Cook the processed raptor logs to produce something in the right format for the BRAG system --> |
|
584 |
<mkdir dir="${build.log.dir}/summary/"/> |
|
585 |
<!-- exec executable="perl" output="${build.log.dir}/summary/sbs_BRAG.xml" logError="yes" failonerror="false"> |
|
586 |
<arg value="${sf.common.config.dir}/tools/brag/sbsToBRAG.pl"/> |
|
587 |
<arg value="${build.log.dir}/analysis/*_compile_preprocessed.log"/> |
|
588 |
</exec --> |
|
589 |
||
590 |
<echo message="Running UH parser on *_compile.log files"/> |
|
591 |
<apply executable="perl" dir="${build.drive}/utilities/uh_parser" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" parallel="true"> |
|
592 |
<arg value="uh.pl"/> |
|
593 |
<arg value="-m"/> |
|
594 |
<arg value="--basedir=${build.log.dir}"/> |
|
595 |
<fileset dir="${build.log.dir}"> |
|
596 |
<include name="*_compile.log"/> |
|
597 |
<include name="*_export.log"/> <!-- for explicit export step --> |
|
598 |
<exclude name="*build_check_compile.log"/> |
|
599 |
</fileset> |
|
600 |
</apply> |
|
601 |
||
602 |
<!-- Now iterate through the generated TSVs to sort them and remove duplicates --> |
|
603 |
<for param="tsv"> |
|
604 |
<path> |
|
605 |
<fileset dir="${build.log.dir}"> |
|
606 |
<include name="releaseables/**/*.tsv"/> |
|
607 |
</fileset> |
|
608 |
</path> |
|
609 |
<sequential> |
|
610 |
<exec executable="perl" input="@{tsv}" output="@{tsv}"> |
|
611 |
<arg value="${sf.common.config.dir}/tools/sortUnique.pl"/> |
|
612 |
</exec> |
|
613 |
</sequential> |
|
614 |
</for> |
|
615 |
||
616 |
<!-- Cook the raptor analysis further to produce something in the right format for the BRAG system --> |
|
617 |
<exec executable="perl" output="${build.log.dir}/summary/Uh_BRAG.xml" logError="yes"> |
|
618 |
<arg value="${sf.common.config.dir}/tools/brag/uh2brag.pl"/> |
|
619 |
<arg value="--index"/> |
|
620 |
<arg value="${build.log.dir}/html/index.html"/> |
|
621 |
</exec> |
|
622 |
<!-- And copy the XSL so the output can be transformed by a browser --> |
|
623 |
<copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/> |
|
624 |
</target> |
|
625 |
||
626 |
<target name="sf-run-analysis-yarp"> |
|
627 |
<echo message="Running yarp over *_compile.log files"/> |
|
628 |
<for param="logfile"> |
|
629 |
<path> |
|
630 |
<fileset dir="${build.log.dir}"> |
|
631 |
<include name="*_compile.log"/> |
|
632 |
<exclude name="*build_check_compile.log"/> |
|
633 |
</fileset> |
|
634 |
</path> |
|
635 |
<sequential> |
|
636 |
<propertyregex override="yes" property="yarpfile" input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/> |
|
637 |
<propertyregex override="yes" property="yarpfile_short" input="${yarpfile}" regexp="[^_]*_[^_]*_[^_]*_(.+)_[^_]*_yarp\.csv" replace="YARP_\1"/> |
|
638 |
<echo message="Yarping @{logfile}..."/> |
|
639 |
<exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${yarpfile}.log" append="true"> |
|
640 |
<arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/> |
|
641 |
<arg value="@{logfile}"/> |
|
642 |
<arg value="${build.log.dir}/analysis/${yarpfile}"/> |
|
643 |
</exec> |
|
644 |
<exec executable="cmd" output="${build.drive}/output/logs/analysis/tmp_yarp_files.csv" append="true"> |
|
645 |
<arg value="/c"/> |
|
646 |
<arg value="echo"/> |
|
647 |
<arg value="${yarpfile_short},${sf.spec.publish.networkdrive}\${sf.spec.job.name}\builds\${sf.spec.job.codeline}\${build.id}\logs\analysis\${yarpfile},${build.drive}\output\logs\analysis\${yarpfile}"/> |
|
648 |
</exec> |
|
649 |
</sequential> |
|
650 |
</for> |
|
651 |
||
652 |
<!-- Cook the yarp analysis further to produce something in the right format for the BRAG system --> |
|
653 |
<mkdir dir="${build.log.dir}/summary/"/> |
|
654 |
<!-- exec executable="perl" output="${build.log.dir}/summary/Yarp_BRAG.xml" logError="yes"> |
|
655 |
<arg value="${sf.common.config.dir}/tools/brag/yarpToBRAG.pl"/> |
|
656 |
<arg value="${build.log.dir}/analysis/*_yarp.csv"/> |
|
657 |
</exec --> |
|
658 |
||
659 |
<exec executable="perl" dir="${build.drive}" failonerror="false" outputproperty="sf.job.totalyarperrors"> |
|
660 |
<arg value="${sf.common.config.dir}/tools/analysis/parse_yarp_files.pl"/> |
|
661 |
<arg value="${build.drive}/output/logs/analysis/tmp_yarp_files.csv"/> |
|
662 |
</exec> |
|
663 |
<echo message="Total yarp errors: ${sf.job.totalyarperrors}"/> |
|
664 |
</target> |
|
665 |
||
666 |
<target name="sf-run-analysis-whatlog-summary" > |
|
667 |
<sequential> |
|
668 |
<parallel> |
|
669 |
<runtarget target="sf-run-analysis-list"/> |
|
670 |
<runtarget target="sf-run-analysis-whatlog"/> |
|
671 |
</parallel> |
|
672 |
<runtarget target="sf-run-analysis-whatlog-merge" /> |
|
673 |
<parallel> |
|
674 |
<runtarget target="sf-run-analysis-whatlog-package"/> |
|
675 |
<runtarget target="sf-run-analysis-whatlog-collisons"/> |
|
676 |
</parallel> |
|
677 |
</sequential> |
|
678 |
</target> |
|
679 |
||
680 |
<target name="sf-run-analysis-list"> |
|
681 |
<echo message="Running list analysis"/> |
|
682 |
<exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_list_results.log"> |
|
683 |
<arg value="${sf.common.config.dir}/tools/analysis/parselistdirs.pl"/> |
|
684 |
<arg value="..\"/> |
|
685 |
</exec> |
|
686 |
</target> |
|
687 |
||
688 |
<target name="sf-run-analysis-whatlog"> |
|
689 |
<echo message="Running whatlog analysis"/> |
|
690 |
<exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_what_results.csv"> |
|
691 |
<arg value="${sf.common.config.dir}/tools/analysis/parsewhatlog.pl"/> |
|
692 |
<arg value="..\"/> |
|
693 |
</exec> |
|
694 |
</target> |
|
695 |
||
696 |
<target name="sf-run-analysis-whatlog-merge" > |
|
697 |
<echo message="Running summary analysis"/> |
|
698 |
<exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log"> |
|
699 |
<arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/> |
|
700 |
<arg value="${build.id}_what_results.csv"/> |
|
701 |
<arg value="${build.id}_list_results.log"/> |
|
702 |
<arg value="${build.drive}/output/zips/release/binaries_epoc_additional.zip"/> |
|
703 |
</exec> |
|
704 |
</target> |
|
705 |
||
706 |
<target name="sf-run-analysis-whatlog-package" > |
|
707 |
<exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log"> |
|
708 |
<arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/> |
|
709 |
<arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/> |
|
710 |
<arg value="${build.id}_what_results.csv_results.csv"/> |
|
711 |
<arg value="${sf.project.location}/sysdefs/system_model_os.xml"/> |
|
712 |
<arg value="${sf.project.location}/sysdefs/system_model_s60.xml"/> |
|
713 |
</exec> |
|
714 |
</target> |
|
715 |
||
716 |
<target name="sf-run-analysis-whatlog-collisons" > |
|
717 |
<echo message="Running collision analysis"/> |
|
718 |
<exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log"> |
|
719 |
<arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/> |
|
720 |
<arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/> |
|
721 |
</exec> |
|
722 |
</target> |
|
723 |
||
724 |
<target name="sf-run-analysis-diamonds"> |
|
725 |
<if> |
|
726 |
<istrue value="${sf.spec.publish.enable}"/> |
|
727 |
<then> |
|
728 |
<echo>[SF-RUN-ANALYSIS-DIAMONDS]</echo> |
|
729 |
<echo message="Translate \output\logs\html\index.html into a Diamonds file"/> |
|
730 |
<exec executable="perl" dir="${build.drive}"> |
|
731 |
<arg value="${sf.common.config.dir}/tools/uh2diamonds.pl"/> |
|
732 |
</exec> |
|
733 |
<echo message="Send ${build.log.dir}/diamonds_uh.xml to Diamonds"/> |
|
734 |
<exec executable="python"> |
|
735 |
<arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
|
736 |
<arg value="-u"/> |
|
737 |
<arg value="http://${diamonds.host}${diamonds.build.id}"/> |
|
738 |
<arg value="-f"/> |
|
739 |
<arg value="${build.log.dir}/diamonds_uh.xml"/> |
|
740 |
</exec> |
|
741 |
</then> |
|
742 |
</if> |
|
743 |
</target> |
|
1259
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
744 |
|
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
745 |
|
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
746 |
<target name="sf-run-analysis-depends"> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
747 |
|
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
748 |
<for param="binary" parallel="true" threadCount="${env.NUMBER_OF_PROCESSORS}"> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
749 |
|
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
750 |
<fileset dir="${build.drive}/epoc32/release/winscw/udeb"> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
751 |
<filename name="*.dll"/> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
752 |
<filename name="*.exe"/> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
753 |
</fileset> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
754 |
|
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
755 |
<sequential> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
756 |
|
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
757 |
<propertyregex property="binary.filename" override="true" input="@{binary}" regexp="\\([^\\]*)$" select="\1" casesensitive="false"/> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
758 |
<echo message="INFO Processing ${binary.filename}"/> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
759 |
|
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
760 |
<exec executable="cmd" dir="${sf.common.config.dir}/tools/analysis/" output="${temp.build.dir}/${binary.filename}.depends.out"> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
761 |
<arg value="/c"/> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
762 |
<arg value="perl"/> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
763 |
<arg value="depends.pl"/> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
764 |
<arg value="@{binary}"/> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
765 |
</exec> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
766 |
|
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
767 |
</sequential> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
768 |
</for> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
769 |
|
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
770 |
<concat destfile="${build.log.dir}\analysis\${build.id}_depends.log"> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
771 |
<fileset dir="${temp.build.dir}" includes="*depends.out"/> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
772 |
</concat> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
773 |
|
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
774 |
</target> |
5f8149838262
Add dependency analysis tool, however dont switch on yet until v2.x of depends.exe tool is deployed.
Shabe Razvi <shaber@symbian.org>
parents:
1252
diff
changeset
|
775 |
|
1251 | 776 |
<target name="sf-links-to-diamonds"> |
777 |
<fmpp sourceFile="${sf.common.config.dir}/diamonds/linksForDiamonds.xml.ftl" outputFile="${build.log.dir}/linksForDiamonds.xml"> |
|
778 |
<data expandProperties="yes"> |
|
779 |
ant: antProperties() |
|
780 |
</data> |
|
781 |
</fmpp> |
|
782 |
<!-- Send the data to the server --> |
|
783 |
<exec executable="python"> |
|
784 |
<arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
|
785 |
<arg value="-u"/> |
|
786 |
<arg value="http://${diamonds.host}${diamonds.build.id}"/> |
|
787 |
<arg value="-f"/> |
|
788 |
<arg value="${build.log.dir}/linksForDiamonds.xml"/> |
|
789 |
</exec> |
|
790 |
||
791 |
<echo message="report	Summary,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/summary/_brag.xml,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/> |
|
792 |
<echo message="report	Raptor Build Summary,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/html/index.html,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/> |
|
793 |
<echo message="report	Build BOM,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/build_BOM.zip,file${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/> |
|
794 |
<echo message="report	Build Logs,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/build_logs.zip,file${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/> |
|
795 |
<if><and><equals arg1="${sf.spec.smoketest.enable}" arg2="true"/><equals arg1="${sf.spec.ats.version}" arg2="ats3"/></and><then> |
|
796 |
<echo message="report	Smoke Test Report,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/ats_reports/ATS3Report.html,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/> |
|
797 |
</then></if> |
|
798 |
<if><and><equals arg1="${sf.spec.smoketest.enable}" arg2="true"/><equals arg1="${sf.spec.ats.version}" arg2="ats4"/></and><then> |
|
799 |
<echo message="report	Smoke Test Report,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/ats_reports/simplelogger/testreport.xml,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/> |
|
800 |
</then></if> |
|
801 |
<if><and><equals arg1="${sf.spec.bccheck.enable}" arg2="true"/><equals arg1="${sf.spec.bccheck.enable.ha}" arg2="true"/></and><then> |
|
802 |
<echo message="report	Binary Compatibility Report (Headerfiles),http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/BC/headers_report.xml,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/> |
|
803 |
</then></if> |
|
804 |
<if><and><equals arg1="${sf.spec.bccheck.enable}" arg2="true"/><equals arg1="${sf.spec.bccheck.enable.la}" arg2="true"/></and><then> |
|
805 |
<echo message="report	Binary Compatibility Report (Libraries),http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/BC/libraries_report.xml,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/> |
|
806 |
</then></if> |
|
807 |
<if><equals arg1="${sf.spec.bccheck.enable.dynamic}" arg2="true"/><then> |
|
808 |
<echo message="report	Dynamic BC Test Reports,http://cdn.symbian.org/SF_builds/${sf.spec.job.name}/builds/${sf.spec.job.codeline}/${build.id}/ats_reports/index.html,report${line.separator}" file="${build.log.dir}/bitinfo.txt" append="true"/> |
|
809 |
</then></if> |
|
810 |
</target> |
|
811 |
||
812 |
<target name="sf-merge-brag"> |
|
813 |
<!-- Merge all our bits of XML together --> |
|
814 |
<exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml" logError="true"> |
|
815 |
<arg value="${sf.common.config.dir}/tools/mergeXML.pl"/> |
|
816 |
<arg value="--xsl=brag.xsl"/> |
|
817 |
<arg value="--merge=buildStatus,phase(name),step(name),failures(level)"/> |
|
818 |
<arg value="${build.log.dir}/summary/*?_BRAG.xml"/> |
|
819 |
</exec> |
|
820 |
</target> |
|
821 |
||
822 |
<target name="sf-brag-to-diamonds"> |
|
823 |
<!-- Run XSL transform to create file to send to diamonds --> |
|
824 |
<java jar="${sf.common.config.dir}/sysdefdowngrade/xalan-j_2_7_1/xalan.jar" fork="true"> |
|
825 |
<arg value="-IN"/> |
|
826 |
<arg value="${build.log.dir}/summary/_BRAG.xml"/> |
|
827 |
<arg value="-XSL"/> |
|
828 |
<arg value="${sf.common.config.dir}/tools/brag/bragForDiamonds.xsl"/> |
|
829 |
<arg value="-OUT"/> |
|
830 |
<arg value="${build.log.dir}/diamonds-status.xml"/> |
|
831 |
</java> |
|
832 |
<if> |
|
833 |
<istrue value="${sf.spec.publish.enable}"/> |
|
834 |
<then> |
|
835 |
<!-- Make sure that the summary directory is available to display the BRAG link --> |
|
836 |
<mkdir dir="${publish.dir}/summary/"/> |
|
837 |
<copy todir="${publish.dir}/summary/" preservelastmodified="true" failonerror="false"> |
|
838 |
<fileset dir="${build.log.dir}/summary/"><include name="*.*"/></fileset> |
|
839 |
</copy> |
|
840 |
||
841 |
<!-- Try to obtain the diamonds ID for this build --> |
|
842 |
<if> |
|
843 |
<not><isset property="diamonds.build.id"/></not> |
|
844 |
<then> |
|
845 |
<property file="${build.log.dir}/diamonds_build_id.properties"/> <!-- This will fail silently --> |
|
846 |
</then> |
|
847 |
</if> |
|
848 |
<if> |
|
849 |
<isset property="diamonds.build.id"/> |
|
850 |
<then> |
|
851 |
<!-- Send the data to the server --> |
|
852 |
<exec executable="python"> |
|
853 |
<arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
|
854 |
<arg value="-u"/> |
|
855 |
<arg value="http://${diamonds.host}${diamonds.build.id}"/> |
|
856 |
<arg value="-f"/> |
|
857 |
<arg value="${build.log.dir}/diamonds-status.xml"/> |
|
858 |
</exec> |
|
859 |
</then> |
|
860 |
<else> |
|
861 |
<echo message="diamonds.build.id is not known - unable to push any build specific information to diamonds server"/> |
|
862 |
</else> |
|
863 |
</if> |
|
864 |
</then> |
|
865 |
</if> |
|
866 |
</target> |
|
867 |
||
868 |
<target name="sf-check-utilities-dir"> |
|
869 |
<available property="sf-utilities-available" file="${build.drive}/utilities" type="dir"/> |
|
870 |
</target> |
|
871 |
||
872 |
<target name="sf-compare-to-baseline" depends="sf-check-utilities-dir" if="sf-utilities-available"> |
|
873 |
<property name="sf.releasenotes.wiki.txt" value="${build.log.dir}/releaseNotes.wiki.txt"/> |
|
874 |
<delete file="${sf.releasenotes.wiki.txt}"/> |
|
875 |
<!-- FCL Usage and Changesets --> |
|
876 |
<exec executable="perl" dir="${build.drive}" output="${sf.releasenotes.wiki.txt}"> |
|
877 |
<arg value="-I"/> |
|
878 |
<arg value="${sf.common.config.dir}/tools/lib"/> |
|
879 |
<arg value="${build.drive}/utilities/releaseAutomation/releaseNotes.pl"/> |
|
880 |
<arg value="--sources=${build.log.dir}/BOM/sources.csv"/> |
|
881 |
<arg value="--baseline=${sf.previous.pdk.tag}"/> |
|
882 |
</exec> |
|
883 |
<!-- Package Comparison and FCL Usage --> |
|
884 |
<exec executable="perl" dir="${sf.spec.sourcesync.sourcespecdir}" output="${sf.releasenotes.wiki.txt}" append="true"> |
|
885 |
<arg value="${build.drive}/utilities/releaseAutomation/packageComparison.pl"/> |
|
886 |
<arg value="--sources=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/> |
|
887 |
<arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model.xml"/> |
|
888 |
<arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model_os.xml"/> |
|
889 |
<arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model_s60.xml"/> |
|
890 |
<arg value="--baseline=${sf.previous.pdk.tag}"/> |
|
891 |
</exec> |
|
892 |
<!-- Mercurial comparison --> |
|
893 |
<echo file="${sf.releasenotes.wiki.txt}" append="true">== Mercurial Comparison ==${line.separator}${line.separator}</echo> |
|
894 |
<if> |
|
895 |
<isset property="sf.previous.pdk.tag"/> |
|
896 |
<then> |
|
897 |
<echo file="${sf.releasenotes.wiki.txt}" append="true">The Mercurial changes from Nokia were delivered as a bulk update based on '''XXXXXXXXXXXXXXXXXXXXXX'''.${line.separator}${line.separator}List of the Mercurial changes (files added/removed/modified) between ${sf.previous.pdk.tag} and PDK '''XXXXX''' - [[Media:XXXX.txt]].${line.separator}${line.separator}A short study of the results concentrating on the added and removed files has identified these significant package changes:${line.separator}${line.separator}</echo> |
|
898 |
<if> |
|
899 |
<istrue value="${sf.spec.sourcesync.archive}"/> |
|
900 |
<then> |
|
901 |
<echo file="${sf.releasenotes.wiki.txt}" append="true">'''Information cannot be derived as source was synced with archive option'''"${line.separator}${line.separator}</echo> |
|
902 |
</then> |
|
903 |
<else> |
|
904 |
<exec executable="perl" dir="${build.drive}/" output="${sf.releasenotes.wiki.txt}" append="true"> |
|
905 |
<arg value="${build.drive}/utilities/releaseAutomation/mercurialComparison.pl"/> |
|
906 |
<arg value="${build.log.dir}/BOM/build-info.xml"/> |
|
907 |
<arg value="${sf.previous.pdk.tag}"/> |
|
908 |
<arg value="${build.log.dir}/mercurialComparison.tsv"/> |
|
909 |
</exec> |
|
910 |
</else> |
|
911 |
</if> |
|
912 |
</then> |
|
913 |
<else> |
|
914 |
<echo file="${sf.releasenotes.wiki.txt}" append="true">'''Information cannot be provided as the tag for the previous PDK was not provided to the build'''"${line.separator}${line.separator}</echo> |
|
915 |
</else> |
|
916 |
</if> |
|
917 |
||
918 |
<!-- Code churn --> |
|
919 |
<!-- TODO? --> |
|
920 |
<fixcrlf file="${sf.releasenotes.wiki.txt}"/> |
|
921 |
</target> |
|
922 |
||
923 |
<!-- package all logs into zipfile for publishing --> |
|
924 |
<target name="sf-zip-logs" > |
|
1252
f2fbf395f696
Dont fail build in event that System Model copy fails.
Shabe Razvi <shaber@symbian.org>
parents:
1251
diff
changeset
|
925 |
<!-- Moved from generate-layers, for Package build only. --> |
f2fbf395f696
Dont fail build in event that System Model copy fails.
Shabe Razvi <shaber@symbian.org>
parents:
1251
diff
changeset
|
926 |
<copy overwrite="true" file="${build.drive}/output/build/canonical_system_definition_${sf.spec.sysdef.configurations.list}.xml" todir="${build.log.dir}/BOM/" failonerror="false"/> |
1251 | 927 |
<if> |
928 |
<istrue value="${sf.spec.logs.zip.enable}"/> |
|
929 |
<then> |
|
930 |
<mkdir dir="${build.output.dir}/zips/release"/> <!-- workaround for when there's no other releaseables, just the logs --> |
|
931 |
<zip destfile="${build.output.dir}/zips/release/build_logs.zip" basedir="${build.drive}"> |
|
932 |
<include name="output/logs/**"/> |
|
933 |
<exclude name="output/logs/BC/**"/> |
|
934 |
<exclude name="output/logs/BOM/**"/> |
|
935 |
<exclude name="output/logs/deliverables/**"/> |
|
936 |
<exclude name="output/logs/releaseables/**"/> |
|
937 |
</zip> |
|
938 |
<!-- workaround for the time when when 'sf-run-analysis-raptor' has not been run --> |
|
939 |
<mkdir dir="${build.drive}/output/logs/releaseables"/> |
|
940 |
<if> |
|
941 |
<available file="${build.drive}/output/logs/package_definitions" type="dir"/> |
|
942 |
<then> |
|
943 |
<zip destfile="${build.output.dir}/zips/release/build_BOM.zip"> |
|
944 |
<zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/> |
|
945 |
<zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/> |
|
946 |
<zipfileset dir="${build.drive}/output/logs" prefix="build_info/logs/BOM"> |
|
947 |
<include name="envinfo.txt"/> |
|
948 |
</zipfileset> |
|
949 |
<zipfileset dir="${build.drive}/output/logs/package_definitions" prefix="build_info/package_definitions"/> |
|
950 |
</zip> |
|
951 |
</then> |
|
952 |
<else> |
|
953 |
<zip destfile="${build.output.dir}/zips/release/build_BOM.zip"> |
|
954 |
<zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/> |
|
955 |
<zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/> |
|
956 |
<zipfileset dir="${build.drive}/output/logs" prefix="build_info/logs/BOM"> |
|
957 |
<include name="envinfo.txt"/> |
|
958 |
</zipfileset> |
|
959 |
</zip> |
|
960 |
</else> |
|
961 |
</if> |
|
962 |
<antcall target="sf-zip-content"> |
|
963 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
964 |
<param name="zip.target.name" value="info-just-metadata" /> |
|
965 |
</antcall> |
|
966 |
</then> |
|
967 |
</if> |
|
968 |
</target> |
|
969 |
||
970 |
<target name="sf-publish" depends="prep-publish"> |
|
971 |
<copy todir="${publish.dir}" preservelastmodified="true" failonerror="false"> |
|
972 |
<fileset dir="${build.output.dir}/zips/release/"><include name="build_*.zip"/></fileset> |
|
973 |
</copy> |
|
974 |
<mkdir dir="${publish.dir}/html"/> |
|
975 |
<copy todir="${publish.dir}/html" preservelastmodified="true" failonerror="false"> |
|
976 |
<fileset dir="${build.log.dir}/html"><include name="*.html"/></fileset> |
|
977 |
</copy> |
|
978 |
<mkdir dir="${publish.dir}/BC"/> |
|
979 |
<copy todir="${publish.dir}/BC" preservelastmodified="true" failonerror="false"> |
|
980 |
<fileset dir="${build.log.dir}/BC/"> |
|
981 |
<include name="BBCResults.xsl"/> |
|
982 |
<include name="headers_report.xml"/> |
|
983 |
<include name="libraries_report.xml"/> |
|
984 |
</fileset> |
|
985 |
</copy> |
|
986 |
<mkdir dir="${publish.dir}/ats_reports"/> |
|
987 |
<copy file="${sf.common.config.dir}/tools/ats/report_dummy.html" tofile="${publish.dir}/ats_reports/index.html" failonerror="false"/> |
|
988 |
</target> |
|
989 |
||
990 |
<!-- TODO: Make this work for package builds once we have sysmodel story worked out --> |
|
991 |
<target name="sf-run-analysis-missing-files" if="sf.spec.checkbuild"> |
|
992 |
<runtarget target="sf-check-missing-os-files"/> |
|
993 |
</target> |
|
994 |
||
995 |
<target name="sf-check-missing-os-files" depends="sf-compile-options"> |
|
996 |
<hlm:argSet id="sbs.check.tools.var"> |
|
997 |
<hlm:arg name="config" value="${sf.spec.sbs.tools.config}" /> |
|
998 |
<hlm:arg name="run-check" value="true" /> |
|
999 |
</hlm:argSet> |
|
1000 |
||
1001 |
<hlm:argSet id="sbs.check.main.var"> |
|
1002 |
<hlm:arg name="config" value="${sf.spec.sbs.config}" /> |
|
1003 |
<hlm:arg name="run-check" value="true" /> |
|
1004 |
</hlm:argSet> |
|
1005 |
<antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
|
1006 |
<param name="build.system" value="${sf.spec.build.system}" /> |
|
1007 |
<param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" /> |
|
1008 |
<param name="build.id" value ="sbs_check"/> |
|
1009 |
<reference refid="sbs.check.tools.var" torefid="sbs.var" /> |
|
1010 |
<reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" /> |
|
1011 |
<reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" /> |
|
1012 |
</antcall> |
|
1013 |
<if><istrue value="${sf.os.compile.iterate}"/> |
|
1014 |
<then> |
|
1015 |
<for list="${sf.spec.sbs.config}" delimiter="," param="sf.spec.check.splitconfig"> |
|
1016 |
<sequential> |
|
1017 |
<echo message="INFO [Iterative check] @{sf.spec.check.splitconfig}"/> |
|
1018 |
<hlm:argSet id="sbs.check.iterate.main.var"> |
|
1019 |
<hlm:arg name="config" value="@{sf.spec.check.splitconfig}" /> |
|
1020 |
<hlm:arg name="run-check" value="true" /> |
|
1021 |
</hlm:argSet> |
|
1022 |
||
1023 |
<antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
|
1024 |
<param name="build.system" value="${sf.spec.build.system}" /> |
|
1025 |
<param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" /> |
|
1026 |
<param name="build.id" value ="sbs_check"/> |
|
1027 |
<reference refid="sbs.check.iterate.main.var" torefid="sbs.var" /> |
|
1028 |
<reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
|
1029 |
<reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" /> |
|
1030 |
</antcall> |
|
1031 |
</sequential> |
|
1032 |
</for> |
|
1033 |
</then> |
|
1034 |
<else> |
|
1035 |
<antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
|
1036 |
<param name="build.system" value="${sf.spec.build.system}" /> |
|
1037 |
<param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" /> |
|
1038 |
<param name="build.id" value ="sbs_check"/> |
|
1039 |
<reference refid="sbs.check.main.var" torefid="sbs.var" /> |
|
1040 |
<reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
|
1041 |
<reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" /> |
|
1042 |
</antcall> |
|
1043 |
</else> |
|
1044 |
</if> |
|
1045 |
</target> |
|
1046 |
||
1047 |
<target name="sf-create-public-PDK" depends="sf-prebuild,sf-run-sfl-licence-munging" > |
|
1048 |
<if> |
|
1049 |
<istrue value="${sf.spec.md5.enable}"/> |
|
1050 |
<then> |
|
1051 |
<echo message="INFO Creating MD5s"/> |
|
1052 |
<runtarget target="sf-run-evalid"/> |
|
1053 |
</then> |
|
1054 |
</if> |
|
1055 |
||
1056 |
<!-- Package up the binaries we built --> |
|
1057 |
<if> |
|
1058 |
<istrue value="${sf.spec.package.bin.enable}"/> |
|
1059 |
<then> |
|
1060 |
<echo message="INFO Packaging Binaries"/> |
|
1061 |
<runtarget target="sf-package-binary"/> |
|
1062 |
||
1063 |
<echo message="INFO Validate Zip files"/> |
|
1064 |
<runtarget target="sf-package-validate"/> |
|
1065 |
</then> |
|
1066 |
</if> |
|
1067 |
<runtarget target="sf-merge-brag"/> |
|
1068 |
<runtarget target="sf-zip-logs"/> |
|
1069 |
||
1070 |
<if> |
|
1071 |
<istrue value="${sf.spec.publish.enable}" /> |
|
1072 |
<then> |
|
1073 |
<echo message="Send links to Diamonds"/> |
|
1074 |
<runtarget target="sf-links-to-diamonds"/> |
|
1075 |
<echo message="Send BRAG status information to Diamonds"/> |
|
1076 |
<runtarget target="sf-brag-to-diamonds"/> |
|
1077 |
||
1078 |
<echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/> |
|
1079 |
<runtarget target="sf-publish"/> |
|
1080 |
</then> |
|
1081 |
</if> |
|
1082 |
</target> |
|
1083 |
||
1084 |
<target name="sf-run-sfl-licence-munging" depends="sf-check-utilities-dir" if="sf-utilities-available"> |
|
1085 |
<echo message="Running SFL Licence Munging writing log to ${build.log.dir}"/> |
|
1086 |
<stopwatch name="munge" action="start"/> |
|
1087 |
<exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/postbuild_sfl-licence_munging_results.log"> |
|
1088 |
<arg value="${build.drive}/utilities/williamr/convert_to_eula.pl"/> |
|
1089 |
</exec> |
|
1090 |
<stopwatch name="munge" action="total"/> |
|
1091 |
</target> |
|
1092 |
||
1093 |
<target name="sf-copy-rom-logs"> |
|
1094 |
<property name="sf.rombuild.dir" value="${build.drive}/epoc32/rom/"/> |
|
1095 |
<!-- copy log files for each variant we have --> |
|
1096 |
<echo message="build.log.dir= ${build.log.dir}"/> |
|
1097 |
<echo message="sf.rombuild.dir= ${sf.rombuild.dir}"/> |
|
1098 |
<echo message="sf.spec.referenceroms.variant= ${sf.spec.referenceroms.variant}"/> |
|
1099 |
||
1100 |
<copy todir="${build.log.dir}" preservelastmodified="true" failonerror="false"> |
|
1101 |
<fileset dir="${sf.rombuild.dir}/${sf.spec.referenceroms.variant}/"><include name="*ROMBUILD.LOG"/></fileset> |
|
1102 |
</copy> |
|
1103 |
||
1104 |
<copy todir="${build.log.dir}" preservelastmodified="true" failonerror="false"> |
|
1105 |
<fileset dir="${sf.rombuild.dir}/${sf.spec.referenceroms.variant}/"><include name="*rom.oby"/></fileset> |
|
1106 |
</copy> |
|
1107 |
</target> |
|
1108 |
||
1109 |
<target name="sf-build-roms"> |
|
1110 |
<!-- find out if this is an arm build, if it is, then build roms --> |
|
1111 |
<propertyregex property="sf.is.arm.build" override="true" input="${sf.spec.sbs.config}" regexp="(arm.*)" replace="true" casesensitive="false"/> |
|
1112 |
||
1113 |
<if><isset property="sf.is.arm.build"/> |
|
1114 |
<then> |
|
1115 |
<mkdir dir="${roms.log.dir}"/> |
|
1116 |
<echo message="INFO Building Syborg MiniGUI stripped ROM"/> |
|
1117 |
<exec executable="cmd" dir="${build.drive}/epoc32/rom" failonerror="false"> |
|
1118 |
<arg value="/c"/> |
|
1119 |
<arg value="buildrom syborg minigui-stripped"/> |
|
1120 |
</exec> |
|
1121 |
<if> |
|
1122 |
<!-- is iMaker rom building enabled? --> |
|
1123 |
<istrue value="${sf.spec.referenceroms.createimages.enable}" /> |
|
1124 |
<then> |
|
1125 |
<echo message="INFO Building iMaker configurations"/> |
|
1126 |
<runtarget target="build-roms"/> |
|
1127 |
</then> |
|
1128 |
</if> |
|
1129 |
</then> |
|
1130 |
</if> |
|
1131 |
</target> |
|
1132 |
||
1133 |
</project> |