author | marvin shi <marvin.shi@nokia.com> |
Wed, 17 Nov 2010 16:47:55 +0800 | |
changeset 696 | 30aa553e9465 |
parent 645 | b8d81fa19e7d |
permissions | -rw-r--r-- |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
2 |
<!-- |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
3 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
4 |
Name : |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
5 |
Part of : Helium |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
6 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
7 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
8 |
All rights reserved. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
9 |
This component and the accompanying materials are made available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
10 |
under the terms of the License "Eclipse Public License v1.0" |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
11 |
which accompanies this distribution, and is available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
12 |
at the URL "http://www.eclipse.org/legal/epl-v10.html". |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
13 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
14 |
Initial Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
15 |
Nokia Corporation - initial contribution. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
16 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
17 |
Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
18 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
19 |
Description: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
20 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
21 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
22 |
--> |
628 | 23 |
<project name="minibuild.ido" default="minibuild" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium"> |
588 | 24 |
<property environment="env" /> |
25 |
<import file="../site/${env.TEAM}.ant.xml" /> |
|
26 |
<dirname property="config.dir" file="${ant.file.minibuild.ido}" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
27 |
|
588 | 28 |
<property name="data.drive.letter" value="E" /> |
29 |
<!-- Enable Helium internal assertion checking. --> |
|
30 |
<property name="hlm.enable.asserts" value="1" /> |
|
628 | 31 |
<property name="cmt.enabled" value="true" /> |
588 | 32 |
<property name="build.name" value="minibuild_ido" /> |
33 |
<property name="build.family" value="test_minibuild_ido" /> |
|
34 |
<property name="major.version" value="0" /> |
|
35 |
<property name="minor.version" value="0" /> |
|
628 | 36 |
<!-- Compatibility analyser enabling flag, causes binary check to be run --> |
37 |
<property name="ca.enabled" value="true" /> |
|
645 | 38 |
<property name="bc.prep.ca.file" location="${helium.dir}/tools/quality/compatibility_analyser/ca.cfg.xml" /> |
588 | 39 |
|
40 |
<condition property="ccm.project.wa_path" value="${data.drive.letter}:\Build_${data.drive.letter}\${env.USERNAME}\ido_wa\${build.name}" else="${build.name}\wa" > |
|
41 |
<os family="windows"/> |
|
42 |
</condition> |
|
43 |
<property name="ccm.enabled" value="true" /> |
|
628 | 44 |
<property name="iad.pkg.validation.enabled" value="true" /> |
588 | 45 |
|
46 |
<!--property name="ido.name" value="test_cmt" /--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
47 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
48 |
|
588 | 49 |
<!-- build configuration --> |
50 |
<property name="sysdef.configurations.list" value="helium_minibuild_ido" /> |
|
645 | 51 |
<property name="sysdef3.enabled" value="true" /> |
52 |
<property name="qmake.enabled" value="true" /> |
|
53 |
<condition property="sysdef3.system.definition.files.id" value="system.definition.files.new" else="system.definition.files.old"> |
|
54 |
<istrue value="${sysdef3.enabled}" /> |
|
55 |
</condition> |
|
56 |
<!--property name="ido.name" value="test_cmt" /--> |
|
57 |
<path id="system.definition.files.old"> |
|
588 | 58 |
<fileset dir="${config.dir}" includes="sysdefs/*.sysdef.xml" /> |
59 |
<fileset dir="${ccm.project.wa_path}" includes="*/*/*/layers.sysdef.xml" /> |
|
60 |
</path> |
|
645 | 61 |
|
62 |
<path id="system.definition.files.new"> |
|
63 |
<fileset dir="${ccm.project.wa_path}" includes="*/*/*/package_definition.xml"/> |
|
64 |
</path> |
|
65 |
||
66 |
||
67 |
<path id="system.definition.files"> |
|
68 |
<path refid="${sysdef3.system.definition.files.id}" /> |
|
69 |
</path> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
70 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
71 |
|
588 | 72 |
<!-- Configuring the build system --> |
645 | 73 |
<property name="build.system" value="sbs" /> |
588 | 74 |
<property name="rvct.version" value="22_686" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
75 |
|
588 | 76 |
<!-- Configuring get latest env. --> |
645 | 77 |
<property name="s60.grace.service" value="s60_devices_sw" /> |
78 |
<property name="s60.grace.product" value="DFS7x.92" /> |
|
79 |
<property name="s60.grace.release" value="92_\d{6}_hw79" /> |
|
587 | 80 |
|
588 | 81 |
<!-- matching mcl_200948_hw79 --> |
82 |
<condition property="prep.root.dir" value="${data.drive.letter}:\Build_${data.drive.letter}\${env.USERNAME}\ido_ba\${build.name}" else="${build.name}\ido_ba" > |
|
587 | 83 |
<os family="windows"/> |
84 |
</condition> |
|
588 | 85 |
<!-- Synergy configuration --> |
86 |
<property name="ccm.database" value="tr1ido" /> |
|
587 | 87 |
<property name="ccm.project" value="MinibuildDomain-50_200832:project:tr1test1#1" /> |
588 | 88 |
<property name="prep.delivery.file" location="config/delivery.xml" /> |
89 |
<property name="publish.ccm.folder" value="tr1ido#2311" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
90 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
91 |
|
588 | 92 |
<!-- Synergy is not configured --> |
93 |
<property name="skip.password.validation" value="1" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
94 |
|
588 | 95 |
<!-- IDO robot configuration --> |
628 | 96 |
<property name="robot.release.enabled" value="true" /> |
588 | 97 |
<tstamp> |
98 |
<format property="ido.robot.tstamp" pattern="yyyyMMddhhmmss" /> |
|
99 |
</tstamp> |
|
100 |
<property name="s60.build.robot.path" location="${build.drive}/shared_drive/s60robot/${build.name}/${ido.robot.tstamp}" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
101 |
|
588 | 102 |
<import file="hack-test.ant.xml" /> |
103 |
<import file="${helium.dir}/helium.ant.xml" /> |
|
587 | 104 |
<import file="config/stages_config.ant.xml" /> |
645 | 105 |
<import file="config/build.sbsinput.ant.xml" /> |
106 |
||
628 | 107 |
<!-- Run the full sequence of target for the minibuild. ,minibuild-prep,compile-main,zip-ee,minibuild-check--> |
108 |
<target name="do-minibuild" depends="ido-update-build-area, |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
109 |
flag-ba-for-deletion, |
628 | 110 |
minibuild-cleanup, |
588 | 111 |
ido-build, |
112 |
check-diamonds, |
|
628 | 113 |
minibuild-check, |
114 |
run-hack, |
|
115 |
blocks-create-bundles, |
|
116 |
final" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
117 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
118 |
|
628 | 119 |
<!--ant code coverage for minibuilds--> |
120 |
<target name="minibuild"> |
|
121 |
<antcall target="database"> |
|
122 |
<param name="home.files.only" value="false"/> |
|
123 |
</antcall> |
|
588 | 124 |
<mkdir dir="${helium.build.dir}/temp" /> |
125 |
<property name="config.temp.build.dir" location="${config.dir}/build" /> |
|
126 |
<hlm:coveragerecord name="${helium.build.dir}/temp/test.minibuild-ido.xml" action="start" /> |
|
628 | 127 |
<runtarget target="do-minibuild" /> |
588 | 128 |
<hlm:coveragerecord name="${helium.build.dir}/temp/test.minibuild-ido.xml" action="stop" /> |
129 |
<fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.txt.ftl" outputfile="${helium.build.dir}/temp/test_minibuild.txt"> |
|
130 |
<data expandProperties="yes"> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
131 |
doc: xml(${helium.build.dir}/temp/test.minibuild-ido.xml) |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
132 |
database: xml(${database.file}) |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
133 |
</data> |
588 | 134 |
</fmpp> |
135 |
<loadfile srcfile="${helium.build.dir}/temp/test_minibuild.txt" property="ant.coverage.summary" /> |
|
136 |
<echo> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
137 |
The summary of Ant code coverage: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
138 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
139 |
${ant.coverage.summary}</echo> |
588 | 140 |
<fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.html.ftl" outputfile="${helium.build.dir}/temp/test_minibuild.html"> |
141 |
<data expandProperties="yes"> |
|
142 |
doc: xml(${helium.build.dir}/temp/test.minibuild-ido.xml) |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
143 |
database: xml(${database.file}) |
588 | 144 |
</data> |
145 |
</fmpp> |
|
146 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
147 |
|
179 | 148 |
|
588 | 149 |
<!-- Preparing the content on top of the env --> |
628 | 150 |
<target name="ido-50-build" depends="ido-build-prep,compile-main,build-log-summary,render-internal-exports, |
151 |
update-policy-src-reference,render-validate-policy,check-sf-source-header, |
|
152 |
ido-codescanner,iad-check-pkg-version,ats-test,publish-tasks-to-folder, |
|
153 |
ido-sources-to-s60-build-robot" /> |
|
154 |
<target name="ido-build-prep" depends="ido-configure-prep,init,log-build-env,set-arm-version,check-free-space, |
|
155 |
diamonds,do-prep-work-area,ido-prep-clean,ido-prep-copy,create-bom" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
156 |
|
588 | 157 |
<!-- needed to defined skip.prep-drive --> |
158 |
<target name="ido-configure-prep"> |
|
159 |
<property name="skip.prep-drive" value="true" /> |
|
160 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
161 |
|
588 | 162 |
<!-- real IDO use this to switch branch target. --> |
163 |
<target name="ido-build"> |
|
164 |
<runtarget target="ido-50-build" /> |
|
165 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
166 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
167 |
|
588 | 168 |
<target name="check-diamonds"> |
169 |
<!--loadfile srcfile="${build.log.dir}/diamonds-start.log.xml" property="diamonds.log.start" /> |
|
170 |
<echo>${diamonds.log.start}</echo--> |
|
171 |
<!--loadresource property="diamonds.log.start.output"> |
|
172 |
<url url="${diamonds.build.url}?fmt=xml" /> |
|
173 |
</loadresource--> |
|
174 |
<!--echo>${diamonds.log.start.output}</echo--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
175 |
<xmlvalidate lenient="yes"> |
588 | 176 |
<fileset dir="${build.log.dir}"> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
177 |
<include name="diamonds-finish.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
178 |
<include name="diamonds-full-results.xml"/> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
179 |
<include name="diamonds-start.log.xml"/> |
588 | 180 |
<include name="check-tool-dependencies.xml"/> |
181 |
<include name="compile-main.xml"/> |
|
182 |
<include name="create-bom.xml"/> |
|
183 |
<include name="build-time.xml"/> |
|
184 |
</fileset> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
185 |
</xmlvalidate> |
588 | 186 |
</target> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
187 |
|
628 | 188 |
<target name="minibuild-cleanup"> |
588 | 189 |
<delete verbose="true" includeemptydirs="true" failonerror="false"> |
190 |
<fileset dir="${build.drive}/" casesensitive="false"> |
|
191 |
<include name="makefile" /> |
|
192 |
<include name="*.mk" /> |
|
193 |
<include name="ecloud_tmp_*/**" /> |
|
194 |
<include name="emake.*" /> |
|
195 |
<include name="epoc32/build/**" /> |
|
196 |
<include name="epoc32/rombuild/*/**" /> |
|
197 |
<include name="output/**" /> |
|
198 |
<include name="timestart.txt" /> |
|
199 |
<include name="timestop.txt" /> |
|
200 |
</fileset> |
|
201 |
</delete> |
|
202 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
203 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
204 |
|
628 | 205 |
<target name="minibuild-check"> |
588 | 206 |
<!-- Check if prep has set some prop correctly... --> |
207 |
<!-- remember to update the selection by the environment variable in hlm.bat when switching to other compiler version --> |
|
208 |
<echo>'${arm.compiler.version}'</echo> |
|
209 |
<au:assertMatches string="${arm.compiler.version}" pattern="RVCT2\.2 \[Build 686\]" casesensitive="false" multiline="true" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
210 |
|
588 | 211 |
<!-- Check if compile-main step did what expected... --> |
212 |
<au:assertFileExists file="${canonical.sysdef.file}" /> |
|
213 |
<if> |
|
214 |
<or> |
|
215 |
<isset property="build.system.ec-helium" /> |
|
216 |
<isset property="build.system.ec" /> |
|
217 |
</or> |
|
218 |
<then> |
|
219 |
<au:assertFileExists file="${build.drive}/helium_minibuild_ido.make" /> |
|
220 |
<au:assertFileExists file="${build.drive}/helium_minibuild_ido_clean.make" /> |
|
221 |
<au:assertFileExists file="${build.drive}/emake.data" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
222 |
|
588 | 223 |
<au:assertFileExists file="${temp.build.dir}/${build.id}.helium_minibuild_ido_run_emake.bat" /> |
224 |
<au:assertFileExists file="${temp.build.dir}/${build.id}.helium_minibuild_ido_clean_run_emake.bat" /> |
|
225 |
</then> |
|
226 |
</if> |
|
227 |
||
228 |
<!-- Check if stagelogging step did what expected... --> |
|
229 |
<au:assertFileExists file="${build.log.dir}/${build.id}_ido_prep.ant.log" /> |
|
230 |
<au:assertFileExists file="${build.log.dir}/${build.id}_compile.ant.log" /> |
|
231 |
<au:assertFileExists file="${build.log.dir}/${build.id}_test.ant.log" /> |
|
232 |
</target> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
233 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
234 |
|
645 | 235 |
<target name="update-policy-src-reference"> |
236 |
<property name="policy.src.mapping.file" location="${build.output.dir}/build/ado_mapping_policy_src.ini" /> |
|
237 |
<hlm:createAdoMappingMacro adoMapFile="${policy.src.mapping.file}" /> |
|
238 |
<hlm:iniKeys2Path ini="${policy.src.mapping.file}" pathid="reference.policy.path.list"/> |
|
588 | 239 |
</target> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
240 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
241 |
</project> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
242 |