author | Shabe Razvi <shaber@symbian.org> |
Mon, 11 Oct 2010 16:04:35 +0100 | |
changeset 1300 | fe97a9594f6c |
parent 1277 | 06a4d69b725f |
child 1302 | 13e40df94492 |
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"/> |
|
1276
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
349 |
<arg value="-x!epoc32\rom"/> <!-- ROM images (etc) go into their own archive --> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
350 |
<arg value="-x!epoc32\rombuild"/> <!-- ROM images go into their own archive --> |
1251 | 351 |
<arg value="-x!epoc32\data\media"/> <!-- Files created when emulator is used to create comms database - not worth releasing--> |
352 |
<arg value="-x!epoc32\build"/> |
|
353 |
<arg value="-x!epoc32\release\armv5"/> |
|
1277
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
354 |
<arg value="-x!epoc32\release\armv5smp"/> |
1251 | 355 |
<arg value="-x!epoc32\release\winscw"/> |
356 |
<arg value="-xr!*.sym"/> |
|
1273
92bfe0d10c29
Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents:
1272
diff
changeset
|
357 |
<arg value="${build.drive}/output/zips/release/binaries_epoc.${sf.spec.package.zip.format}.zip"/> |
1251 | 358 |
<arg value="epoc32\"/> |
359 |
</exec> |
|
360 |
</sequential> |
|
361 |
||
362 |
<if> |
|
363 |
<isset property="sf.sdk.header.list.file"/> |
|
364 |
<then> |
|
365 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_sdk.log"> |
|
366 |
<arg value="a"/> |
|
367 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
368 |
<arg value="-i@${sf.sdk.header.list.file}"/> |
|
369 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
370 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
371 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
372 |
<arg value="-x!epoc32/include/featureuids.h"/> <!-- This needs to come from the tools zip instead --> |
|
1273
92bfe0d10c29
Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents:
1272
diff
changeset
|
373 |
<arg value="${build.drive}/output/zips/release/binaries_epoc_sdk.${sf.spec.package.zip.format}.zip"/> |
1251 | 374 |
</exec> |
375 |
<!-- Check that all the files we want in the SDK are zipped --> |
|
376 |
<antcall target="sf-log-to-brag"> |
|
377 |
<param name="sf.brag.id" value="SDK"/> |
|
378 |
<param name="sf.brag.log" value="${build.log.dir}/zip_${build.id}_binaries_sdk.log"/> |
|
379 |
<param name="sf.brag.phase" value="Postbuild"/> |
|
380 |
<param name="sf.brag.step" value="Package SDK"/> |
|
381 |
</antcall> |
|
382 |
<!-- Generate release_metadata entries for the SDK zip --> |
|
383 |
<antcall target="sf-zip-content"> |
|
384 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
385 |
<param name="zip.target.name" value="bin-sdk-just-metadata" /> |
|
386 |
</antcall> |
|
387 |
</then> |
|
388 |
</if> |
|
389 |
||
390 |
<!-- WinsCW binaries, by udeb/urel/lib --> |
|
391 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_udeb.log"> |
|
392 |
<arg value="a"/> |
|
393 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
394 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
395 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
396 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
397 |
<arg value="-xr!*.sym"/> |
|
398 |
<arg value="-xr!*.lib"/> |
|
1273
92bfe0d10c29
Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents:
1272
diff
changeset
|
399 |
<arg value="${build.drive}/output/zips/release/binaries_winscw_udeb.${sf.spec.package.zip.format}.zip"/> |
1251 | 400 |
<arg value="epoc32\release\winscw\udeb"/> |
401 |
</exec> |
|
402 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_urel.log"> |
|
403 |
<arg value="a"/> |
|
404 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
405 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
406 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
407 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
408 |
<arg value="-xr!*.sym"/> |
|
409 |
<arg value="-xr!*.lib"/> |
|
1273
92bfe0d10c29
Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents:
1272
diff
changeset
|
410 |
<arg value="${build.drive}/output/zips/release/binaries_winscw_urel.${sf.spec.package.zip.format}.zip"/> |
1251 | 411 |
<arg value="epoc32\release\winscw\urel"/> |
412 |
</exec> |
|
413 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_lib.log"> |
|
414 |
<arg value="a"/> |
|
415 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
416 |
<arg value="-ir!epoc32/release/winscw/*.lib"/> |
|
417 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
418 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
419 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
1273
92bfe0d10c29
Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents:
1272
diff
changeset
|
420 |
<arg value="${build.drive}/output/zips/release/binaries_winscw_lib.${sf.spec.package.zip.format}.zip"/> |
1251 | 421 |
</exec> |
422 |
||
423 |
<!-- ARMv5 binaries, by udeb/urel/lib --> |
|
424 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_udeb.log"> |
|
425 |
<arg value="a"/> |
|
426 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
427 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
428 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
429 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
430 |
<arg value="-xr!*.sym"/> |
|
1273
92bfe0d10c29
Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents:
1272
diff
changeset
|
431 |
<arg value="${build.drive}/output/zips/release/binaries_armv5_udeb.${sf.spec.package.zip.format}.zip"/> |
1251 | 432 |
<arg value="epoc32\release\armv5\udeb"/> |
433 |
</exec> |
|
434 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_urel.log"> |
|
435 |
<arg value="a"/> |
|
436 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
437 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
438 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
439 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
440 |
<arg value="-xr!*.sym"/> |
|
1273
92bfe0d10c29
Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents:
1272
diff
changeset
|
441 |
<arg value="${build.drive}/output/zips/release/binaries_armv5_urel.${sf.spec.package.zip.format}.zip"/> |
1251 | 442 |
<arg value="epoc32\release\armv5\urel"/> |
443 |
</exec> |
|
444 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_lib.log"> |
|
445 |
<arg value="a"/> |
|
446 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
447 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
448 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
|
449 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
450 |
<arg value="-xr!*.sym"/> |
|
451 |
<arg value="-ir!epoc32/release/armv5/_*.bin"/> <!-- include bootloaders in common lib zipfile --> |
|
1273
92bfe0d10c29
Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents:
1272
diff
changeset
|
452 |
<arg value="${build.drive}/output/zips/release/binaries_armv5_lib.${sf.spec.package.zip.format}.zip"/> |
1251 | 453 |
<arg value="epoc32\release\armv5\lib"/> |
454 |
</exec> |
|
1276
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
455 |
|
1277
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
456 |
<!-- ARMv5 SMP binaries, by udeb/urel/lib --> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
457 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5smp_udeb.log"> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
458 |
<arg value="a"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
459 |
<arg value="-t${sf.spec.package.zip.format}"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
460 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
461 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
462 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
463 |
<arg value="-xr!*.sym"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
464 |
<arg value="${build.drive}/output/zips/release/binaries_armv5smp_udeb.${sf.spec.package.zip.format}.zip"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
465 |
<arg value="epoc32\release\armv5smp\udeb"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
466 |
</exec> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
467 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5smp_urel.log"> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
468 |
<arg value="a"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
469 |
<arg value="-t${sf.spec.package.zip.format}"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
470 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
471 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
472 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
473 |
<arg value="-xr!*.sym"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
474 |
<arg value="${build.drive}/output/zips/release/binaries_armv5smp_urel.${sf.spec.package.zip.format}.zip"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
475 |
<arg value="epoc32\release\armv5smp\urel"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
476 |
</exec> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
477 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5smp_lib.log"> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
478 |
<arg value="a"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
479 |
<arg value="-t${sf.spec.package.zip.format}"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
480 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
481 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
482 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
483 |
<arg value="-xr!*.sym"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
484 |
<arg value="-ir!epoc32/release/armv5smp/_*.bin"/> <!-- include bootloaders in common lib zipfile --> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
485 |
<arg value="${build.drive}/output/zips/release/binaries_armv5smp_lib.${sf.spec.package.zip.format}.zip"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
486 |
<arg value="epoc32\release\armv5smp\lib"/> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
487 |
</exec> |
06a4d69b725f
Added entries to package armv5smp binaries in dedicated archives (when we start building them).
Simon Howkins <simonh@symbian.org>
parents:
1276
diff
changeset
|
488 |
|
1276
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
489 |
<!-- ROM images --> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
490 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_rom_images.log"> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
491 |
<arg value="a"/> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
492 |
<arg value="-t${sf.spec.package.zip.format}"/> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
493 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
494 |
<arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
495 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
496 |
<arg value="-x!epoc32\rom\include\feature.iby"/> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
497 |
<arg value="-x!epoc32\rom\include\featuredatabase.xml"/> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
498 |
<arg value="${build.drive}/output/zips/release/binaries_rom_images.${sf.spec.package.zip.format}.zip"/> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
499 |
<arg value="epoc32\rom"/> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
500 |
<arg value="epoc32\rombuild"/> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
501 |
</exec> |
1251 | 502 |
</parallel> |
503 |
||
504 |
<runtarget target="sf-package-tools"/> |
|
505 |
<runtarget target="sf-package-prebuilt"/> |
|
506 |
||
507 |
<!-- Generate release_metadata entries for the above zips --> |
|
508 |
<antcall target="sf-zip-content"> |
|
509 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
510 |
<param name="zip.target.name" value="bin-just-metadata" /> |
|
511 |
</antcall> |
|
512 |
</target> |
|
513 |
||
514 |
<target name="sf-package-postbuild-rnd" > |
|
515 |
<antcall target="sf-zip-content"> |
|
516 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
517 |
<param name="zip.target.name" value="rnd-postbuild" /> |
|
518 |
</antcall> |
|
519 |
</target> |
|
520 |
||
521 |
<target name="sf-package-tools" depends="sf-merge-manifest"> |
|
522 |
<exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log"> |
|
523 |
<arg value="a"/> |
|
524 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
525 |
<arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> |
|
526 |
<arg value="-x@/output/temp_build_files/manifest_excludelist.txt"/> |
|
527 |
<arg value="-x@${sf.spec.prebuilt.excludelist}"/> |
|
1273
92bfe0d10c29
Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents:
1272
diff
changeset
|
528 |
<arg value="${build.drive}/output/zips/release/tools_epoc.${sf.spec.package.zip.format}.zip"/> |
1251 | 529 |
<arg value="epoc32/tools"/> |
530 |
<arg value="epoc32/gcc"/> |
|
531 |
<arg value="epoc32/gcc_mingw"/> |
|
532 |
<arg value="epoc32/data/buildinfo.txt"/> |
|
533 |
<arg value="epoc32/data/config/features.dat"/> |
|
534 |
<arg value="epoc32/include/featureuids.h"/> |
|
535 |
<arg value="epoc32/rom/include/feature.iby"/> |
|
536 |
<arg value="epoc32/rom/include/featuredatabase.xml"/> |
|
537 |
</exec> |
|
538 |
<antcall target="sf-zip-content"> |
|
539 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
540 |
<param name="zip.target.name" value="tools" /> |
|
541 |
</antcall> |
|
542 |
</target> |
|
543 |
||
544 |
<target name="sf-package-validate"> |
|
545 |
<exec executable="7z" dir="${build.drive}/output/zips" failonerror="false" output="${build.drive}/output/zips/validate.log"> |
|
546 |
<arg value="t"/> |
|
547 |
<arg value="*.zip"/> |
|
548 |
</exec> |
|
549 |
<exec executable="7z" dir="${build.drive}/output/zips/release" failonerror="false" output="${build.drive}/output/zips/release/validate.log"> |
|
550 |
<arg value="t"/> |
|
551 |
<arg value="*.zip"/> |
|
552 |
</exec> |
|
553 |
</target> |
|
554 |
||
555 |
<!-- merge manifests for prebuilt stuff delivered at the start of build process --> |
|
556 |
<target name="sf-merge-manifest"> |
|
557 |
<echo message="INFO Build drive is ${build.drive} "/> |
|
558 |
<concat destfile="${build.drive}\output\temp_build_files\manifest_excludelist.txt"> |
|
559 |
<fileset dir="${build.drive}" includes="*manifest*" excludes="manifest_excludelist.txt"/> |
|
560 |
</concat> |
|
561 |
||
562 |
<!-- touch file to update/create it in the event that there are no manifest* files available |
|
563 |
as 7z will not be happy being given a non-existent file --> |
|
564 |
<touch file="${build.drive}\output\temp_build_files\manifest_excludelist.txt"/> |
|
565 |
</target> |
|
566 |
||
567 |
<target name="sf-package-prebuilt" depends="sf-merge-manifest"> |
|
568 |
<!-- for each prebuilt manifest* file, repackage --> |
|
569 |
||
570 |
<for param="manifest"> |
|
571 |
<path> |
|
572 |
<fileset dir="${build.drive}\"> |
|
573 |
<include name="manifest*.txt"/> |
|
574 |
<exclude name="manifest*restricted*.txt"/> <!-- dont repack restricted content such as testconfigfileparser --> |
|
575 |
</fileset> |
|
576 |
</path> |
|
577 |
<!-- strip manifest_ and .txt extension for matched file --> |
|
578 |
<sequential> |
|
579 |
<propertyregex property="manifest.shortname" override="true" input="@{manifest}" regexp="manifest_(\S+)(.txt)" select="\1" global="true" casesensitive="false"/> |
|
580 |
<propertyregex property="manifest.fullname" override="true" input="@{manifest}" regexp="(.*)" select="\1" global="true" casesensitive="false"/> |
|
581 |
<propertyregex property="manifest.pkgname" override="true" input="@{manifest}" regexp="manifest_binaries_(\S+)(.txt)" select="\1" global="true" casesensitive="false"/> |
|
582 |
||
583 |
<echo message="INFO Packaging ${manifest.fullname} into ${manifest.shortname}.zip"/> |
|
584 |
||
585 |
<exec executable="7za" dir="${build.drive}/" output="${build.drive}/zip_${manifest.shortname}.log"> |
|
586 |
<arg value="a"/> |
|
587 |
<arg value="-t${sf.spec.package.zip.format}"/> |
|
588 |
<arg value="-i@${manifest.fullname}"/> |
|
1273
92bfe0d10c29
Bug 3750: Use .7z extension for PDK zip files created with LZMA compression
Simon Howkins <simonh@symbian.org>
parents:
1272
diff
changeset
|
589 |
<arg value="${build.drive}/output/zips/release/${manifest.shortname}.${sf.spec.package.zip.format}.zip"/> |
1251 | 590 |
</exec> |
591 |
||
592 |
<!-- merge release metadata --> |
|
593 |
<antcall target="sf-zip-content"> |
|
594 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
595 |
<param name="zip.target.name" value="bin-${manifest.pkgname}-metadata" /> |
|
596 |
<param name="sf.spec.job.name" value="${manifest.pkgname}" /> |
|
597 |
</antcall> |
|
598 |
</sequential> |
|
599 |
</for> |
|
600 |
||
601 |
</target> |
|
602 |
<!-- runs analysis of missing bins and source --> |
|
603 |
<target name="sf-run-analysis"> |
|
604 |
<stopwatch name="sf-run-analysis"/> |
|
605 |
<mkdir dir="${build.log.dir}/analysis"/> |
|
606 |
<parallel> |
|
607 |
<runtarget target="sf-run-analysis-ant"/> |
|
1265
85e3fec18491
Remove duplicate analysis-ant call
Shabe Razvi <shaber@symbian.org>
parents:
1261
diff
changeset
|
608 |
|
1261
dd40521a5759
Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents:
1259
diff
changeset
|
609 |
<if><istrue value="${sf.spec.analysis.depends.enable}"/> |
dd40521a5759
Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents:
1259
diff
changeset
|
610 |
<then> |
dd40521a5759
Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents:
1259
diff
changeset
|
611 |
<runtarget target="sf-run-analysis-depends"/> |
dd40521a5759
Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents:
1259
diff
changeset
|
612 |
</then> |
dd40521a5759
Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents:
1259
diff
changeset
|
613 |
</if> |
dd40521a5759
Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents:
1259
diff
changeset
|
614 |
|
1251 | 615 |
<runtarget target="sf-run-analysis-raptor"/> |
616 |
<runtarget target="sf-run-analysis-yarp"/> |
|
617 |
<runtarget target="sf-run-analysis-whatlog-summary"/> |
|
618 |
<runtarget target="sf-run-analysis-missing-files"/> |
|
619 |
</parallel> |
|
620 |
<if> |
|
621 |
<istrue value="${sf.spec.publish.enable}"/> |
|
622 |
<then> |
|
623 |
<runtarget target="sf-run-analysis-diamonds"/> |
|
624 |
</then> |
|
625 |
</if> |
|
626 |
<stopwatch name="sf-run-analysis" action="elapsed"/> |
|
627 |
</target> |
|
628 |
||
629 |
<target name="sf-run-analysis-ant"> |
|
630 |
<echo message="Running source analysis of ANT output"/> |
|
631 |
<exec executable="perl" dir="${build.log.dir}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_scan_ant.log"> |
|
632 |
<arg value="${sf.common.config.dir}/tools/analysis/scan_antlogs.pl"/> |
|
633 |
<arg value="*ant*"/> |
|
634 |
<arg value="*stderr*"/> <!-- helium 7 splits output into stderr logs, so use them also --> |
|
635 |
<arg value="*sbs_error*"/> |
|
636 |
</exec> |
|
637 |
</target> |
|
638 |
||
639 |
<target name="sf-run-analysis-raptor"> |
|
640 |
<!-- Cook the processed raptor logs to produce something in the right format for the BRAG system --> |
|
641 |
<mkdir dir="${build.log.dir}/summary/"/> |
|
642 |
<!-- exec executable="perl" output="${build.log.dir}/summary/sbs_BRAG.xml" logError="yes" failonerror="false"> |
|
643 |
<arg value="${sf.common.config.dir}/tools/brag/sbsToBRAG.pl"/> |
|
644 |
<arg value="${build.log.dir}/analysis/*_compile_preprocessed.log"/> |
|
645 |
</exec --> |
|
646 |
||
647 |
<echo message="Running UH parser on *_compile.log files"/> |
|
648 |
<apply executable="perl" dir="${build.drive}/utilities/uh_parser" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" parallel="true"> |
|
649 |
<arg value="uh.pl"/> |
|
650 |
<arg value="-m"/> |
|
651 |
<arg value="--basedir=${build.log.dir}"/> |
|
652 |
<fileset dir="${build.log.dir}"> |
|
653 |
<include name="*_compile.log"/> |
|
654 |
<include name="*_export.log"/> <!-- for explicit export step --> |
|
655 |
<exclude name="*build_check_compile.log"/> |
|
656 |
</fileset> |
|
657 |
</apply> |
|
658 |
||
659 |
<!-- Now iterate through the generated TSVs to sort them and remove duplicates --> |
|
660 |
<for param="tsv"> |
|
661 |
<path> |
|
662 |
<fileset dir="${build.log.dir}"> |
|
663 |
<include name="releaseables/**/*.tsv"/> |
|
664 |
</fileset> |
|
665 |
</path> |
|
666 |
<sequential> |
|
667 |
<exec executable="perl" input="@{tsv}" output="@{tsv}"> |
|
668 |
<arg value="${sf.common.config.dir}/tools/sortUnique.pl"/> |
|
669 |
</exec> |
|
670 |
</sequential> |
|
671 |
</for> |
|
672 |
||
673 |
<!-- Cook the raptor analysis further to produce something in the right format for the BRAG system --> |
|
674 |
<exec executable="perl" output="${build.log.dir}/summary/Uh_BRAG.xml" logError="yes"> |
|
675 |
<arg value="${sf.common.config.dir}/tools/brag/uh2brag.pl"/> |
|
676 |
<arg value="--index"/> |
|
677 |
<arg value="${build.log.dir}/html/index.html"/> |
|
678 |
</exec> |
|
679 |
<!-- And copy the XSL so the output can be transformed by a browser --> |
|
680 |
<copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/> |
|
681 |
</target> |
|
682 |
||
683 |
<target name="sf-run-analysis-yarp"> |
|
684 |
<echo message="Running yarp over *_compile.log files"/> |
|
685 |
<for param="logfile"> |
|
686 |
<path> |
|
687 |
<fileset dir="${build.log.dir}"> |
|
688 |
<include name="*_compile.log"/> |
|
689 |
<exclude name="*build_check_compile.log"/> |
|
690 |
</fileset> |
|
691 |
</path> |
|
692 |
<sequential> |
|
693 |
<propertyregex override="yes" property="yarpfile" input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/> |
|
694 |
<propertyregex override="yes" property="yarpfile_short" input="${yarpfile}" regexp="[^_]*_[^_]*_[^_]*_(.+)_[^_]*_yarp\.csv" replace="YARP_\1"/> |
|
695 |
<echo message="Yarping @{logfile}..."/> |
|
696 |
<exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${yarpfile}.log" append="true"> |
|
697 |
<arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/> |
|
698 |
<arg value="@{logfile}"/> |
|
699 |
<arg value="${build.log.dir}/analysis/${yarpfile}"/> |
|
700 |
</exec> |
|
701 |
<exec executable="cmd" output="${build.drive}/output/logs/analysis/tmp_yarp_files.csv" append="true"> |
|
702 |
<arg value="/c"/> |
|
703 |
<arg value="echo"/> |
|
704 |
<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}"/> |
|
705 |
</exec> |
|
706 |
</sequential> |
|
707 |
</for> |
|
708 |
||
709 |
<!-- Cook the yarp analysis further to produce something in the right format for the BRAG system --> |
|
710 |
<mkdir dir="${build.log.dir}/summary/"/> |
|
711 |
<!-- exec executable="perl" output="${build.log.dir}/summary/Yarp_BRAG.xml" logError="yes"> |
|
712 |
<arg value="${sf.common.config.dir}/tools/brag/yarpToBRAG.pl"/> |
|
713 |
<arg value="${build.log.dir}/analysis/*_yarp.csv"/> |
|
714 |
</exec --> |
|
715 |
||
716 |
<exec executable="perl" dir="${build.drive}" failonerror="false" outputproperty="sf.job.totalyarperrors"> |
|
717 |
<arg value="${sf.common.config.dir}/tools/analysis/parse_yarp_files.pl"/> |
|
718 |
<arg value="${build.drive}/output/logs/analysis/tmp_yarp_files.csv"/> |
|
719 |
</exec> |
|
720 |
<echo message="Total yarp errors: ${sf.job.totalyarperrors}"/> |
|
721 |
</target> |
|
722 |
||
723 |
<target name="sf-run-analysis-whatlog-summary" > |
|
724 |
<sequential> |
|
725 |
<parallel> |
|
726 |
<runtarget target="sf-run-analysis-list"/> |
|
727 |
<runtarget target="sf-run-analysis-whatlog"/> |
|
728 |
</parallel> |
|
729 |
<runtarget target="sf-run-analysis-whatlog-merge" /> |
|
730 |
<parallel> |
|
731 |
<runtarget target="sf-run-analysis-whatlog-package"/> |
|
732 |
<runtarget target="sf-run-analysis-whatlog-collisons"/> |
|
733 |
</parallel> |
|
734 |
</sequential> |
|
735 |
</target> |
|
736 |
||
737 |
<target name="sf-run-analysis-list"> |
|
738 |
<echo message="Running list analysis"/> |
|
739 |
<exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_list_results.log"> |
|
740 |
<arg value="${sf.common.config.dir}/tools/analysis/parselistdirs.pl"/> |
|
741 |
<arg value="..\"/> |
|
742 |
</exec> |
|
743 |
</target> |
|
744 |
||
745 |
<target name="sf-run-analysis-whatlog"> |
|
746 |
<echo message="Running whatlog analysis"/> |
|
747 |
<exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_what_results.csv"> |
|
748 |
<arg value="${sf.common.config.dir}/tools/analysis/parsewhatlog.pl"/> |
|
749 |
<arg value="..\"/> |
|
750 |
</exec> |
|
751 |
</target> |
|
752 |
||
753 |
<target name="sf-run-analysis-whatlog-merge" > |
|
754 |
<echo message="Running summary analysis"/> |
|
755 |
<exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_summary.log"> |
|
756 |
<arg value="${sf.common.config.dir}/tools/analysis/merge_csv.pl"/> |
|
757 |
<arg value="${build.id}_what_results.csv"/> |
|
758 |
<arg value="${build.id}_list_results.log"/> |
|
759 |
<arg value="${build.drive}/output/zips/release/binaries_epoc_additional.zip"/> |
|
760 |
</exec> |
|
761 |
</target> |
|
762 |
||
763 |
<target name="sf-run-analysis-whatlog-package" > |
|
764 |
<exec executable="perl" dir="${build.log.dir}/analysis" failonerror="false" output="${build.log.dir}/analysis/${build.id}_analysecomponents.log"> |
|
765 |
<arg value="${sf.common.config.dir}/tools/analysis/analyse_components.pl"/> |
|
766 |
<arg value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/> |
|
767 |
<arg value="${build.id}_what_results.csv_results.csv"/> |
|
768 |
<arg value="${sf.project.location}/sysdefs/system_model_os.xml"/> |
|
769 |
<arg value="${sf.project.location}/sysdefs/system_model_s60.xml"/> |
|
770 |
</exec> |
|
771 |
</target> |
|
772 |
||
773 |
<target name="sf-run-analysis-whatlog-collisons" > |
|
774 |
<echo message="Running collision analysis"/> |
|
775 |
<exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log"> |
|
776 |
<arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/> |
|
777 |
<arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/> |
|
778 |
</exec> |
|
779 |
</target> |
|
780 |
||
781 |
<target name="sf-run-analysis-diamonds"> |
|
782 |
<if> |
|
783 |
<istrue value="${sf.spec.publish.enable}"/> |
|
784 |
<then> |
|
785 |
<echo>[SF-RUN-ANALYSIS-DIAMONDS]</echo> |
|
786 |
<echo message="Translate \output\logs\html\index.html into a Diamonds file"/> |
|
787 |
<exec executable="perl" dir="${build.drive}"> |
|
788 |
<arg value="${sf.common.config.dir}/tools/uh2diamonds.pl"/> |
|
789 |
</exec> |
|
790 |
<echo message="Send ${build.log.dir}/diamonds_uh.xml to Diamonds"/> |
|
791 |
<exec executable="python"> |
|
792 |
<arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
|
793 |
<arg value="-u"/> |
|
794 |
<arg value="http://${diamonds.host}${diamonds.build.id}"/> |
|
795 |
<arg value="-f"/> |
|
796 |
<arg value="${build.log.dir}/diamonds_uh.xml"/> |
|
797 |
</exec> |
|
798 |
</then> |
|
799 |
</if> |
|
800 |
</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
|
801 |
|
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
|
802 |
<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
|
803 |
|
1261
dd40521a5759
Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents:
1259
diff
changeset
|
804 |
<for param="binary" parallel="true" threadCount="${env.NUMBER_OF_PROCESSORS}"> |
1265
85e3fec18491
Remove duplicate analysis-ant call
Shabe Razvi <shaber@symbian.org>
parents:
1261
diff
changeset
|
805 |
<fileset dir="${build.drive}/epoc32/release/winscw/udeb" casesensitive="false"> |
85e3fec18491
Remove duplicate analysis-ant call
Shabe Razvi <shaber@symbian.org>
parents:
1261
diff
changeset
|
806 |
<include name="*.dll"/> |
85e3fec18491
Remove duplicate analysis-ant call
Shabe Razvi <shaber@symbian.org>
parents:
1261
diff
changeset
|
807 |
<include name="*.exe"/> |
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
|
808 |
</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
|
809 |
|
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
|
810 |
<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
|
811 |
|
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
|
812 |
<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
|
813 |
<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
|
814 |
|
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
|
815 |
<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
|
816 |
<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
|
817 |
<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
|
818 |
<arg value="depends.pl"/> |
1261
dd40521a5759
Make depends analysis tool conditional
Shabe Razvi <shaber@symbian.org>
parents:
1259
diff
changeset
|
819 |
<arg value="@{binary}"/> |
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
|
820 |
</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
|
821 |
|
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
|
822 |
</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
|
823 |
</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
|
824 |
|
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
|
825 |
<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
|
826 |
<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
|
827 |
</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
|
828 |
|
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
|
829 |
</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
|
830 |
|
1251 | 831 |
<target name="sf-links-to-diamonds"> |
832 |
<fmpp sourceFile="${sf.common.config.dir}/diamonds/linksForDiamonds.xml.ftl" outputFile="${build.log.dir}/linksForDiamonds.xml"> |
|
833 |
<data expandProperties="yes"> |
|
834 |
ant: antProperties() |
|
835 |
</data> |
|
836 |
</fmpp> |
|
837 |
<!-- Send the data to the server --> |
|
838 |
<exec executable="python"> |
|
839 |
<arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
|
840 |
<arg value="-u"/> |
|
841 |
<arg value="http://${diamonds.host}${diamonds.build.id}"/> |
|
842 |
<arg value="-f"/> |
|
843 |
<arg value="${build.log.dir}/linksForDiamonds.xml"/> |
|
844 |
</exec> |
|
845 |
||
846 |
<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"/> |
|
847 |
<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"/> |
|
848 |
<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"/> |
|
849 |
<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"/> |
|
850 |
<if><and><equals arg1="${sf.spec.smoketest.enable}" arg2="true"/><equals arg1="${sf.spec.ats.version}" arg2="ats3"/></and><then> |
|
851 |
<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"/> |
|
852 |
</then></if> |
|
853 |
<if><and><equals arg1="${sf.spec.smoketest.enable}" arg2="true"/><equals arg1="${sf.spec.ats.version}" arg2="ats4"/></and><then> |
|
854 |
<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"/> |
|
855 |
</then></if> |
|
856 |
<if><and><equals arg1="${sf.spec.bccheck.enable}" arg2="true"/><equals arg1="${sf.spec.bccheck.enable.ha}" arg2="true"/></and><then> |
|
857 |
<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"/> |
|
858 |
</then></if> |
|
859 |
<if><and><equals arg1="${sf.spec.bccheck.enable}" arg2="true"/><equals arg1="${sf.spec.bccheck.enable.la}" arg2="true"/></and><then> |
|
860 |
<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"/> |
|
861 |
</then></if> |
|
862 |
<if><equals arg1="${sf.spec.bccheck.enable.dynamic}" arg2="true"/><then> |
|
863 |
<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"/> |
|
864 |
</then></if> |
|
865 |
</target> |
|
866 |
||
867 |
<target name="sf-merge-brag"> |
|
868 |
<!-- Merge all our bits of XML together --> |
|
869 |
<exec executable="perl" output="${build.log.dir}/summary/_BRAG.xml" logError="true"> |
|
870 |
<arg value="${sf.common.config.dir}/tools/mergeXML.pl"/> |
|
871 |
<arg value="--xsl=brag.xsl"/> |
|
872 |
<arg value="--merge=buildStatus,phase(name),step(name),failures(level)"/> |
|
873 |
<arg value="${build.log.dir}/summary/*?_BRAG.xml"/> |
|
874 |
</exec> |
|
875 |
</target> |
|
876 |
||
877 |
<target name="sf-brag-to-diamonds"> |
|
878 |
<!-- Run XSL transform to create file to send to diamonds --> |
|
879 |
<java jar="${sf.common.config.dir}/sysdefdowngrade/xalan-j_2_7_1/xalan.jar" fork="true"> |
|
880 |
<arg value="-IN"/> |
|
881 |
<arg value="${build.log.dir}/summary/_BRAG.xml"/> |
|
882 |
<arg value="-XSL"/> |
|
883 |
<arg value="${sf.common.config.dir}/tools/brag/bragForDiamonds.xsl"/> |
|
884 |
<arg value="-OUT"/> |
|
885 |
<arg value="${build.log.dir}/diamonds-status.xml"/> |
|
886 |
</java> |
|
887 |
<if> |
|
888 |
<istrue value="${sf.spec.publish.enable}"/> |
|
889 |
<then> |
|
890 |
<!-- Make sure that the summary directory is available to display the BRAG link --> |
|
891 |
<mkdir dir="${publish.dir}/summary/"/> |
|
892 |
<copy todir="${publish.dir}/summary/" preservelastmodified="true" failonerror="false"> |
|
893 |
<fileset dir="${build.log.dir}/summary/"><include name="*.*"/></fileset> |
|
894 |
</copy> |
|
895 |
||
896 |
<!-- Try to obtain the diamonds ID for this build --> |
|
897 |
<if> |
|
898 |
<not><isset property="diamonds.build.id"/></not> |
|
899 |
<then> |
|
900 |
<property file="${build.log.dir}/diamonds_build_id.properties"/> <!-- This will fail silently --> |
|
901 |
</then> |
|
902 |
</if> |
|
903 |
<if> |
|
904 |
<isset property="diamonds.build.id"/> |
|
905 |
<then> |
|
906 |
<!-- Send the data to the server --> |
|
907 |
<exec executable="python"> |
|
908 |
<arg value="${sf.common.config.dir}/tools/brag/send_xml_to_diamonds.py"/> |
|
909 |
<arg value="-u"/> |
|
910 |
<arg value="http://${diamonds.host}${diamonds.build.id}"/> |
|
911 |
<arg value="-f"/> |
|
912 |
<arg value="${build.log.dir}/diamonds-status.xml"/> |
|
913 |
</exec> |
|
914 |
</then> |
|
915 |
<else> |
|
916 |
<echo message="diamonds.build.id is not known - unable to push any build specific information to diamonds server"/> |
|
917 |
</else> |
|
918 |
</if> |
|
919 |
</then> |
|
920 |
</if> |
|
921 |
</target> |
|
922 |
||
923 |
<target name="sf-check-utilities-dir"> |
|
924 |
<available property="sf-utilities-available" file="${build.drive}/utilities" type="dir"/> |
|
925 |
</target> |
|
926 |
||
927 |
<target name="sf-compare-to-baseline" depends="sf-check-utilities-dir" if="sf-utilities-available"> |
|
928 |
<property name="sf.releasenotes.wiki.txt" value="${build.log.dir}/releaseNotes.wiki.txt"/> |
|
929 |
<delete file="${sf.releasenotes.wiki.txt}"/> |
|
930 |
<!-- FCL Usage and Changesets --> |
|
931 |
<exec executable="perl" dir="${build.drive}" output="${sf.releasenotes.wiki.txt}"> |
|
932 |
<arg value="-I"/> |
|
933 |
<arg value="${sf.common.config.dir}/tools/lib"/> |
|
934 |
<arg value="${build.drive}/utilities/releaseAutomation/releaseNotes.pl"/> |
|
935 |
<arg value="--sources=${build.log.dir}/BOM/sources.csv"/> |
|
936 |
<arg value="--baseline=${sf.previous.pdk.tag}"/> |
|
937 |
</exec> |
|
938 |
<!-- Package Comparison and FCL Usage --> |
|
939 |
<exec executable="perl" dir="${sf.spec.sourcesync.sourcespecdir}" output="${sf.releasenotes.wiki.txt}" append="true"> |
|
940 |
<arg value="${build.drive}/utilities/releaseAutomation/packageComparison.pl"/> |
|
941 |
<arg value="--sources=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/> |
|
942 |
<arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model.xml"/> |
|
943 |
<arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model_os.xml"/> |
|
944 |
<arg value="--sysdef=${sf.spec.sourcesync.sourcespecdir}/sysdefs/system_model_s60.xml"/> |
|
945 |
<arg value="--baseline=${sf.previous.pdk.tag}"/> |
|
946 |
</exec> |
|
947 |
<!-- Mercurial comparison --> |
|
948 |
<echo file="${sf.releasenotes.wiki.txt}" append="true">== Mercurial Comparison ==${line.separator}${line.separator}</echo> |
|
949 |
<if> |
|
950 |
<isset property="sf.previous.pdk.tag"/> |
|
951 |
<then> |
|
952 |
<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> |
|
953 |
<if> |
|
954 |
<istrue value="${sf.spec.sourcesync.archive}"/> |
|
955 |
<then> |
|
956 |
<echo file="${sf.releasenotes.wiki.txt}" append="true">'''Information cannot be derived as source was synced with archive option'''"${line.separator}${line.separator}</echo> |
|
957 |
</then> |
|
958 |
<else> |
|
959 |
<exec executable="perl" dir="${build.drive}/" output="${sf.releasenotes.wiki.txt}" append="true"> |
|
960 |
<arg value="${build.drive}/utilities/releaseAutomation/mercurialComparison.pl"/> |
|
961 |
<arg value="${build.log.dir}/BOM/build-info.xml"/> |
|
962 |
<arg value="${sf.previous.pdk.tag}"/> |
|
963 |
<arg value="${build.log.dir}/mercurialComparison.tsv"/> |
|
964 |
</exec> |
|
965 |
</else> |
|
966 |
</if> |
|
967 |
</then> |
|
968 |
<else> |
|
969 |
<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> |
|
970 |
</else> |
|
971 |
</if> |
|
972 |
||
973 |
<!-- Code churn --> |
|
974 |
<!-- TODO? --> |
|
975 |
<fixcrlf file="${sf.releasenotes.wiki.txt}"/> |
|
976 |
</target> |
|
977 |
||
978 |
<!-- package all logs into zipfile for publishing --> |
|
979 |
<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
|
980 |
<!-- 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
|
981 |
<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 | 982 |
<if> |
983 |
<istrue value="${sf.spec.logs.zip.enable}"/> |
|
984 |
<then> |
|
985 |
<mkdir dir="${build.output.dir}/zips/release"/> <!-- workaround for when there's no other releaseables, just the logs --> |
|
986 |
<zip destfile="${build.output.dir}/zips/release/build_logs.zip" basedir="${build.drive}"> |
|
987 |
<include name="output/logs/**"/> |
|
988 |
<exclude name="output/logs/BC/**"/> |
|
989 |
<exclude name="output/logs/BOM/**"/> |
|
990 |
<exclude name="output/logs/deliverables/**"/> |
|
991 |
<exclude name="output/logs/releaseables/**"/> |
|
992 |
</zip> |
|
993 |
<!-- workaround for the time when when 'sf-run-analysis-raptor' has not been run --> |
|
994 |
<mkdir dir="${build.drive}/output/logs/releaseables"/> |
|
995 |
<if> |
|
996 |
<available file="${build.drive}/output/logs/package_definitions" type="dir"/> |
|
997 |
<then> |
|
998 |
<zip destfile="${build.output.dir}/zips/release/build_BOM.zip"> |
|
999 |
<zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/> |
|
1000 |
<zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/> |
|
1001 |
<zipfileset dir="${build.drive}/output/logs" prefix="build_info/logs/BOM"> |
|
1002 |
<include name="envinfo.txt"/> |
|
1003 |
</zipfileset> |
|
1004 |
<zipfileset dir="${build.drive}/output/logs/package_definitions" prefix="build_info/package_definitions"/> |
|
1005 |
</zip> |
|
1006 |
</then> |
|
1007 |
<else> |
|
1008 |
<zip destfile="${build.output.dir}/zips/release/build_BOM.zip"> |
|
1009 |
<zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/> |
|
1010 |
<zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/> |
|
1011 |
<zipfileset dir="${build.drive}/output/logs" prefix="build_info/logs/BOM"> |
|
1012 |
<include name="envinfo.txt"/> |
|
1013 |
</zipfileset> |
|
1014 |
</zip> |
|
1015 |
</else> |
|
1016 |
</if> |
|
1017 |
<antcall target="sf-zip-content"> |
|
1018 |
<param name="zip.config.file" value="${temp.build.dir}/zip.cfg.xml.ftl"/> |
|
1019 |
<param name="zip.target.name" value="info-just-metadata" /> |
|
1020 |
</antcall> |
|
1021 |
</then> |
|
1022 |
</if> |
|
1023 |
</target> |
|
1024 |
||
1025 |
<target name="sf-publish" depends="prep-publish"> |
|
1026 |
<copy todir="${publish.dir}" preservelastmodified="true" failonerror="false"> |
|
1027 |
<fileset dir="${build.output.dir}/zips/release/"><include name="build_*.zip"/></fileset> |
|
1028 |
</copy> |
|
1029 |
<mkdir dir="${publish.dir}/html"/> |
|
1030 |
<copy todir="${publish.dir}/html" preservelastmodified="true" failonerror="false"> |
|
1031 |
<fileset dir="${build.log.dir}/html"><include name="*.html"/></fileset> |
|
1032 |
</copy> |
|
1033 |
<mkdir dir="${publish.dir}/BC"/> |
|
1034 |
<copy todir="${publish.dir}/BC" preservelastmodified="true" failonerror="false"> |
|
1035 |
<fileset dir="${build.log.dir}/BC/"> |
|
1036 |
<include name="BBCResults.xsl"/> |
|
1037 |
<include name="headers_report.xml"/> |
|
1038 |
<include name="libraries_report.xml"/> |
|
1039 |
</fileset> |
|
1040 |
</copy> |
|
1041 |
<mkdir dir="${publish.dir}/ats_reports"/> |
|
1042 |
<copy file="${sf.common.config.dir}/tools/ats/report_dummy.html" tofile="${publish.dir}/ats_reports/index.html" failonerror="false"/> |
|
1268
b69afcf5d763
Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents:
1265
diff
changeset
|
1043 |
<if> |
b69afcf5d763
Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents:
1265
diff
changeset
|
1044 |
<istrue value="${sf.spec.publish.release.zips.enable}" /> |
b69afcf5d763
Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents:
1265
diff
changeset
|
1045 |
<then> |
b69afcf5d763
Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents:
1265
diff
changeset
|
1046 |
<mkdir dir="${sf.spec.publish.release.zips.location}/${build.id}"/> |
1276
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
1047 |
<copy todir="${sf.spec.publish.release.zips.location}/${build.id}" preservelastmodified="true" failonerror="false"> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
1048 |
<fileset dir="${build.output.dir}/zips/release/"><include name="*.*"/></fileset> |
fdcfee9c5b0d
Bug 3748: Please separate ROM images into a separate zip file
Simon Howkins <simonh@symbian.org>
parents:
1275
diff
changeset
|
1049 |
</copy> |
1268
b69afcf5d763
Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents:
1265
diff
changeset
|
1050 |
</then> |
b69afcf5d763
Adding provision of publishing release zips to 'Candidates' location.
Chetan Kapoor<chetank@symbian.org>
parents:
1265
diff
changeset
|
1051 |
</if> |
1251 | 1052 |
</target> |
1053 |
||
1054 |
<!-- TODO: Make this work for package builds once we have sysmodel story worked out --> |
|
1055 |
<target name="sf-run-analysis-missing-files" if="sf.spec.checkbuild"> |
|
1056 |
<runtarget target="sf-check-missing-os-files"/> |
|
1057 |
</target> |
|
1058 |
||
1059 |
<target name="sf-check-missing-os-files" depends="sf-compile-options"> |
|
1060 |
<hlm:argSet id="sbs.check.tools.var"> |
|
1061 |
<hlm:arg name="config" value="${sf.spec.sbs.tools.config}" /> |
|
1062 |
<hlm:arg name="run-check" value="true" /> |
|
1063 |
</hlm:argSet> |
|
1064 |
||
1065 |
<hlm:argSet id="sbs.check.main.var"> |
|
1066 |
<hlm:arg name="config" value="${sf.spec.sbs.config}" /> |
|
1067 |
<hlm:arg name="run-check" value="true" /> |
|
1068 |
</hlm:argSet> |
|
1069 |
<antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
|
1070 |
<param name="build.system" value="${sf.spec.build.system}" /> |
|
1071 |
<param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" /> |
|
1072 |
<param name="build.id" value ="sbs_check"/> |
|
1073 |
<reference refid="sbs.check.tools.var" torefid="sbs.var" /> |
|
1074 |
<reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" /> |
|
1075 |
<reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" /> |
|
1076 |
</antcall> |
|
1077 |
<if><istrue value="${sf.os.compile.iterate}"/> |
|
1078 |
<then> |
|
1079 |
<for list="${sf.spec.sbs.config}" delimiter="," param="sf.spec.check.splitconfig"> |
|
1080 |
<sequential> |
|
1081 |
<echo message="INFO [Iterative check] @{sf.spec.check.splitconfig}"/> |
|
1082 |
<hlm:argSet id="sbs.check.iterate.main.var"> |
|
1083 |
<hlm:arg name="config" value="@{sf.spec.check.splitconfig}" /> |
|
1084 |
<hlm:arg name="run-check" value="true" /> |
|
1085 |
</hlm:argSet> |
|
1086 |
||
1087 |
<antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
|
1088 |
<param name="build.system" value="${sf.spec.build.system}" /> |
|
1089 |
<param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" /> |
|
1090 |
<param name="build.id" value ="sbs_check"/> |
|
1091 |
<reference refid="sbs.check.iterate.main.var" torefid="sbs.var" /> |
|
1092 |
<reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
|
1093 |
<reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" /> |
|
1094 |
</antcall> |
|
1095 |
</sequential> |
|
1096 |
</for> |
|
1097 |
</then> |
|
1098 |
<else> |
|
1099 |
<antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
|
1100 |
<param name="build.system" value="${sf.spec.build.system}" /> |
|
1101 |
<param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" /> |
|
1102 |
<param name="build.id" value ="sbs_check"/> |
|
1103 |
<reference refid="sbs.check.main.var" torefid="sbs.var" /> |
|
1104 |
<reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
|
1105 |
<reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" /> |
|
1106 |
</antcall> |
|
1107 |
</else> |
|
1108 |
</if> |
|
1109 |
</target> |
|
1110 |
||
1111 |
<target name="sf-create-public-PDK" depends="sf-prebuild,sf-run-sfl-licence-munging" > |
|
1112 |
<if> |
|
1113 |
<istrue value="${sf.spec.md5.enable}"/> |
|
1114 |
<then> |
|
1115 |
<echo message="INFO Creating MD5s"/> |
|
1116 |
<runtarget target="sf-run-evalid"/> |
|
1117 |
</then> |
|
1118 |
</if> |
|
1119 |
||
1120 |
<!-- Package up the binaries we built --> |
|
1121 |
<if> |
|
1122 |
<istrue value="${sf.spec.package.bin.enable}"/> |
|
1123 |
<then> |
|
1124 |
<echo message="INFO Packaging Binaries"/> |
|
1125 |
<runtarget target="sf-package-binary"/> |
|
1126 |
||
1127 |
<echo message="INFO Validate Zip files"/> |
|
1128 |
<runtarget target="sf-package-validate"/> |
|
1129 |
</then> |
|
1130 |
</if> |
|
1131 |
<runtarget target="sf-merge-brag"/> |
|
1132 |
<runtarget target="sf-zip-logs"/> |
|
1133 |
||
1134 |
<if> |
|
1135 |
<istrue value="${sf.spec.publish.enable}" /> |
|
1136 |
<then> |
|
1137 |
<echo message="Send links to Diamonds"/> |
|
1138 |
<runtarget target="sf-links-to-diamonds"/> |
|
1139 |
<echo message="Send BRAG status information to Diamonds"/> |
|
1140 |
<runtarget target="sf-brag-to-diamonds"/> |
|
1141 |
||
1142 |
<echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/> |
|
1143 |
<runtarget target="sf-publish"/> |
|
1144 |
</then> |
|
1145 |
</if> |
|
1146 |
</target> |
|
1147 |
||
1148 |
<target name="sf-run-sfl-licence-munging" depends="sf-check-utilities-dir" if="sf-utilities-available"> |
|
1149 |
<echo message="Running SFL Licence Munging writing log to ${build.log.dir}"/> |
|
1150 |
<stopwatch name="munge" action="start"/> |
|
1151 |
<exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/postbuild_sfl-licence_munging_results.log"> |
|
1152 |
<arg value="${build.drive}/utilities/williamr/convert_to_eula.pl"/> |
|
1153 |
</exec> |
|
1154 |
<stopwatch name="munge" action="total"/> |
|
1155 |
</target> |
|
1156 |
||
1157 |
<target name="sf-copy-rom-logs"> |
|
1158 |
<property name="sf.rombuild.dir" value="${build.drive}/epoc32/rom/"/> |
|
1159 |
<!-- copy log files for each variant we have --> |
|
1160 |
<echo message="build.log.dir= ${build.log.dir}"/> |
|
1161 |
<echo message="sf.rombuild.dir= ${sf.rombuild.dir}"/> |
|
1162 |
<echo message="sf.spec.referenceroms.variant= ${sf.spec.referenceroms.variant}"/> |
|
1163 |
||
1164 |
<copy todir="${build.log.dir}" preservelastmodified="true" failonerror="false"> |
|
1165 |
<fileset dir="${sf.rombuild.dir}/${sf.spec.referenceroms.variant}/"><include name="*ROMBUILD.LOG"/></fileset> |
|
1166 |
</copy> |
|
1167 |
||
1168 |
<copy todir="${build.log.dir}" preservelastmodified="true" failonerror="false"> |
|
1169 |
<fileset dir="${sf.rombuild.dir}/${sf.spec.referenceroms.variant}/"><include name="*rom.oby"/></fileset> |
|
1170 |
</copy> |
|
1171 |
</target> |
|
1172 |
||
1173 |
<target name="sf-build-roms"> |
|
1174 |
<!-- find out if this is an arm build, if it is, then build roms --> |
|
1175 |
<propertyregex property="sf.is.arm.build" override="true" input="${sf.spec.sbs.config}" regexp="(arm.*)" replace="true" casesensitive="false"/> |
|
1176 |
||
1177 |
<if><isset property="sf.is.arm.build"/> |
|
1178 |
<then> |
|
1179 |
<mkdir dir="${roms.log.dir}"/> |
|
1180 |
<echo message="INFO Building Syborg MiniGUI stripped ROM"/> |
|
1181 |
<exec executable="cmd" dir="${build.drive}/epoc32/rom" failonerror="false"> |
|
1182 |
<arg value="/c"/> |
|
1183 |
<arg value="buildrom syborg minigui-stripped"/> |
|
1184 |
</exec> |
|
1185 |
<if> |
|
1186 |
<!-- is iMaker rom building enabled? --> |
|
1187 |
<istrue value="${sf.spec.referenceroms.createimages.enable}" /> |
|
1188 |
<then> |
|
1189 |
<echo message="INFO Building iMaker configurations"/> |
|
1190 |
<runtarget target="build-roms"/> |
|
1191 |
</then> |
|
1192 |
</if> |
|
1193 |
</then> |
|
1194 |
</if> |
|
1195 |
</target> |
|
1196 |
||
1197 |
</project> |