sf-platform/build.xml
changeset 60 9edae8fe1416
parent 59 c7be4c65f97e
child 61 54444a2ae2db
equal deleted inserted replaced
59:c7be4c65f97e 60:9edae8fe1416
    77        <echo message="raptor-filters:raptor_${sysdef.configuration}"/>
    77        <echo message="raptor-filters:raptor_${sysdef.configuration}"/>
    78 
    78 
    79 	   <!-- split builds currently generate layer sysdef from original -->
    79 	   <!-- split builds currently generate layer sysdef from original -->
    80 	   <if><istrue value="${sf.spec.splitbuild}"/>
    80 	   <if><istrue value="${sf.spec.splitbuild}"/>
    81        <then>
    81        <then>
    82            <hlm:compileGenxmlFilterMacro xmlns:hlm="http://www.nokia.com/helium" input="${canonical.sysdef.file}" filter="raptor_${sysdef.configuration}" output="${build.output.dir}/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/ >
    82            <hlm:compileGenxmlFilterMacro xmlns:hlm="http://www.nokia.com/helium" input="${canonical.sysdef.file}" filter="raptor_${sysdef.configuration}" output="${build.output.dir}/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
    83 	   </then>
    83 	   </then>
    84 	   <else>
    84 	   <else>
    85 	       <!-- but all we want is a sysdef with the config name appended, so just copy it -->
    85 	       <!-- but all we want is a sysdef with the config name appended, so just copy it -->
    86            <echo message="INFO: skip genxml and copy sysdef to sysdef+config name"/>
    86            <echo message="INFO: skip genxml and copy sysdef to sysdef+config name"/>
    87            <copy file="${canonical.sysdef.file}" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
    87            <copy file="${canonical.sysdef.file}" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
   177         </hlm:argSet>
   177         </hlm:argSet>
   178 
   178 
   179         <hlm:sbsMakeOptions engine="gmake" id="sbs.toolsbuild.options" />
   179         <hlm:sbsMakeOptions engine="gmake" id="sbs.toolsbuild.options" />
   180         <hlm:sbsMakeOptions engine="gmake" id="sbs.fullbuild.options" />
   180         <hlm:sbsMakeOptions engine="gmake" id="sbs.fullbuild.options" />
   181 
   181 
   182 		<!-- OS clean tools2 build first>
   182 		<!-- generate baseline dir list to allow delta creation -->
       
   183 		<antcall target="sf-list-dir" inheritAll="false">
       
   184 			<param name="sf.list.name" value="baseline"/>
       
   185 		</antcall>
       
   186 
       
   187 		<!-- OS clean main build -->
   183         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   188         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   184                 <param name="build.system" value="${sf.spec.build.system}" />
   189                 <param name="build.system" value="${sf.spec.build.system}" />
   185                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   190                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   186                 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   191                 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   187                 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   192                 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   188                 <reference refid="sbs.tools2.clean.var" torefid="sbs.var" />
   193                 <reference refid="sbs.main.clean.sbs.var" torefid="sbs.var" />
   189                 <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
   194                 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   190                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   195                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   191         </antcall-->
   196         </antcall>
   192 
   197 		
       
   198 		<antcall target="sf-list-dir" inheritAll="false">
       
   199 			<param name="sf.list.name" value="post-clean"/>
       
   200 		</antcall>
       
   201 		
   193         <!-- OS tools2 build first-->
   202         <!-- OS tools2 build first-->
   194         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   203         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   195                 <param name="build.system" value="${sf.spec.build.system}" />
   204                 <param name="build.system" value="${sf.spec.build.system}" />
   196                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   205                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   197                 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   206                 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   199                 <reference refid="sbs.tools2.var" torefid="sbs.var" />
   208                 <reference refid="sbs.tools2.var" torefid="sbs.var" />
   200                 <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
   209                 <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
   201                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   210                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   202         </antcall>
   211         </antcall>
   203 
   212 
   204 		<!-- OS clean tools build after tools2>
   213 		<antcall target="sf-list-dir" inheritAll="false">
   205         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   214 			<param name="sf.list.name" value="post-build-tools2"/>
   206                 <param name="build.system" value="${sf.spec.build.system}" />
   215 		</antcall>
   207                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
       
   208                 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
       
   209                 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
       
   210                 <reference refid="sbs.tools.clean.var" torefid="sbs.var" />
       
   211                 <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
   212                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
       
   213         </antcall-->
       
   214 
   216 
   215         <!-- OS tools build after tools2 -->
   217         <!-- OS tools build after tools2 -->
   216         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   218         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   217                 <param name="build.system" value="${sf.spec.build.system}" />
   219                 <param name="build.system" value="${sf.spec.build.system}" />
   218                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   220                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   221                 <reference refid="sbs.tools.var" torefid="sbs.var" />
   223                 <reference refid="sbs.tools.var" torefid="sbs.var" />
   222                 <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
   224                 <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
   223                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   225                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   224         </antcall>
   226         </antcall>
   225 
   227 
   226 		<!-- OS clean main build -->
   228 		<antcall target="sf-list-dir" inheritAll="false">
   227         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   229 			<param name="sf.list.name" value="post-build-tools"/>
   228                 <param name="build.system" value="${sf.spec.build.system}" />
   230 		</antcall>
   229                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   231 		
   230                 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
       
   231                 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
       
   232                 <reference refid="sbs.main.clean.sbs.var" torefid="sbs.var" />
       
   233                 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
       
   234                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
       
   235         </antcall>
       
   236 
       
   237         <!-- OS main build -->
   232         <!-- OS main build -->
   238         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   233         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   239                 <param name="build.system" value="${sf.spec.build.system}" />
   234                 <param name="build.system" value="${sf.spec.build.system}" />
   240                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   235                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   241                 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   236                 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   242                 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   237                 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   243                 <reference refid="sbs.main.sbs.var" torefid="sbs.var" />
   238                 <reference refid="sbs.main.sbs.var" torefid="sbs.var" />
   244                 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   239                 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   245                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   240                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   246         </antcall>
   241         </antcall>
       
   242 		
       
   243 		<antcall target="sf-list-dir" inheritAll="false">
       
   244 			<param name="sf.list.name" value="post-build-main"/>
       
   245 		</antcall>
   247   </target>
   246   </target>
   248 
   247 
   249   <!--
   248   <!--
   250     == Name: SF-S60-COMPILE
   249     == Name: SF-S60-COMPILE
   251     ==
   250     ==
   281     		</hlm:argSet>
   280     		</hlm:argSet>
   282 
   281 
   283     		<hlm:sbsMakeOptions engine="gmake" id="sbs.toolsbuild.options" />
   282     		<hlm:sbsMakeOptions engine="gmake" id="sbs.toolsbuild.options" />
   284     		<hlm:sbsMakeOptions engine="gmake" id="sbs.fullbuild.options" />
   283     		<hlm:sbsMakeOptions engine="gmake" id="sbs.fullbuild.options" />
   285 
   284 
   286             <!-- s60 clean tools build>
   285 		<antcall target="sf-list-dir" inheritAll="false">
   287     		<antcall target="compile-main" inheritAll="false" inheritRefs="true">
   286 			<param name="sf.list.name" value="pre-s60-clean"/>
   288           			<param name="build.system" value="${sf.spec.build.system}" />
   287 		</antcall>	        
   289           			<param name="sysdef.configurations.list" value="${sf.spec.s60.sysdef.clean.configurations.list}" />
   288 		
   290                     <param name="sf.spec.sysdef.version" value ="${sf.spec.s60.sysdef.version}"/>
   289 			<!-- s60 clean main build -->
   291           			<reference refid="sbs.tools.clean.var" torefid="sbs.var" />
       
   292           			<reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
   293           			<reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" />
       
   294     		</antcall-->
       
   295 
       
   296             <!-- s60  tools build -->
       
   297     		<antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
   298           			<param name="build.system" value="${sf.spec.build.system}" />
       
   299           			<param name="sysdef.configurations.list" value="${sf.spec.s60.sysdef.clean.configurations.list}" />
       
   300                 <param name="sf.spec.sysdef.version" value ="${sf.spec.s60.sysdef.version}"/>
       
   301           			<reference refid="sbs.tools.var" torefid="sbs.var" />
       
   302           			<reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
   303           			<reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" />
       
   304     		</antcall>
       
   305 
       
   306 	        <!-- s60 clean main build -->
       
   307     		<antcall target="compile-main" inheritAll="false" inheritRefs="true">
   290     		<antcall target="compile-main" inheritAll="false" inheritRefs="true">
   308           			<param name="build.system" value="${sf.spec.build.system}" />
   291           			<param name="build.system" value="${sf.spec.build.system}" />
   309           			<param name="sysdef.configurations.list" value="${sf.spec.s60.sysdef.clean.configurations.list}" />
   292           			<param name="sysdef.configurations.list" value="${sf.spec.s60.sysdef.clean.configurations.list}" />
   310                     <param name="sf.spec.sysdef.version" value="${sf.spec.s60.sysdef.version}"/>
   293                     <param name="sf.spec.sysdef.version" value="${sf.spec.s60.sysdef.version}"/>
   311           			<reference refid="sbs.main.clean.sbs.var" torefid="sbs.var" />
   294           			<reference refid="sbs.main.clean.sbs.var" torefid="sbs.var" />
   312           			<reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   295           			<reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   313           			<reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" />
   296           			<reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" />
   314     		</antcall>
   297     		</antcall>
       
   298 
       
   299 			<antcall target="sf-list-dir" inheritAll="false">
       
   300 				<param name="sf.list.name" value="post-s60-clean"/>
       
   301 			</antcall>
       
   302 
       
   303             <!-- s60  tools build -->
       
   304     		<antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
   305           			<param name="build.system" value="${sf.spec.build.system}" />
       
   306           			<param name="sysdef.configurations.list" value="${sf.spec.s60.sysdef.clean.configurations.list}" />
       
   307 					<param name="sf.spec.sysdef.version" value ="${sf.spec.s60.sysdef.version}"/>
       
   308           			<reference refid="sbs.tools.var" torefid="sbs.var" />
       
   309           			<reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
   310           			<reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" />
       
   311     		</antcall>
       
   312 
       
   313 			<antcall target="sf-list-dir" inheritAll="false">
       
   314 				<param name="sf.list.name" value="post-s60-build-tools"/>
       
   315 			</antcall>
   315 
   316 
   316     		<!-- s60 main build -->
   317     		<!-- s60 main build -->
   317     		<antcall target="compile-main" inheritAll="false" inheritRefs="true">
   318     		<antcall target="compile-main" inheritAll="false" inheritRefs="true">
   318           			<param name="build.system" value="${sf.spec.build.system}" />
   319           			<param name="build.system" value="${sf.spec.build.system}" />
   319           			<param name="sysdef.configurations.list" value="${sf.spec.s60.sysdef.clean.configurations.list}" />
   320           			<param name="sysdef.configurations.list" value="${sf.spec.s60.sysdef.clean.configurations.list}" />
   320                     <param name="sf.spec.sysdef.version" value="${sf.spec.s60.sysdef.version}"/>
   321                     <param name="sf.spec.sysdef.version" value="${sf.spec.s60.sysdef.version}"/>
   321           			<reference refid="sbs.main.sbs.var" torefid="sbs.var" />
   322           			<reference refid="sbs.main.sbs.var" torefid="sbs.var" />
   322           			<reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   323           			<reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   323           			<reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" />
   324           			<reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" />
   324     		</antcall>
   325     		</antcall>
   325 
   326 			
       
   327 			<antcall target="sf-list-dir" inheritAll="false">
       
   328 				<param name="sf.list.name" value="post-s60-build-main"/>
       
   329 			</antcall>
       
   330 
       
   331 			
   326     		<!-- s60 postbuild bldmelast using ebs -->
   332     		<!-- s60 postbuild bldmelast using ebs -->
   327     		<antcall target="compile-main" inheritAll="false">
   333     		<antcall target="compile-main" inheritAll="false">
   328           			<param name="build.system" value="ebs" />
   334           			<param name="build.system" value="ebs" />
   329           			<param name="sysdef.configurations.list" value="S60_bldmelast" />
   335           			<param name="sysdef.configurations.list" value="S60_bldmelast" />
   330           			<reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" />
   336           			<reference refid="sf.spec.s60.system.definition.files" torefid="system.definition.files" />
   331     		</antcall>
   337     		</antcall>
   332 
   338 
       
   339 			<antcall target="sf-list-dir" inheritAll="false">
       
   340 				<param name="sf.list.name" value="post-s60-bldmelast"/>
       
   341 			</antcall>
       
   342 
   333 	</target>
   343 	</target>
   334 
   344 
   335   <!-- import sf-common-config -->
   345   <!-- import sf-common-config -->
   336   <import file="../common/build.xml" />
   346   <import file="../common/build.xml" />
   337 
   347