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