buildframework/helium/tests/minibuilds/imaker/build.xml
changeset 1 be27ed110b50
child 179 d8ac696cc51f
equal deleted inserted replaced
0:044383f39525 1:be27ed110b50
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <!-- 
       
     3 ============================================================================ 
       
     4 Name        : 
       
     5 Part of     : Helium 
       
     6 
       
     7 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     8 All rights reserved.
       
     9 This component and the accompanying materials are made available
       
    10 under the terms of the License "Eclipse Public License v1.0"
       
    11 which accompanies this distribution, and is available
       
    12 at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    13 
       
    14 Initial Contributors:
       
    15 Nokia Corporation - initial contribution.
       
    16 
       
    17 Contributors:
       
    18 
       
    19 Description:
       
    20 
       
    21 ============================================================================
       
    22 -->
       
    23 <project name="minibuild.ido" default="help" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
       
    24     <property environment="env"/>
       
    25     <import file="../site/${env.TEAM}.ant.xml" />
       
    26 	<dirname property="config.dir" file="${ant.file.minibuild.ido}"/>
       
    27 	
       
    28     <!-- Enable Helium internal assertion checking. -->
       
    29     <property name="hlm.enable.asserts" value="1" />
       
    30 
       
    31     <property name="build.name" value="minibuild_imaker" />
       
    32     <property name="build.family" value="minibuild_imaker" />
       
    33     <property name="major.version" value="0" />
       
    34     <property name="minor.version" value="0" />
       
    35 	<property name="ccm.enabled" value="true"/>
       
    36 
       
    37 	<!-- Configuring the build system -->
       
    38     <property name="build.system" value="ec-helium" />
       
    39     
       
    40     <property name="ec.cluster.manager" value="fawec001"/>
       
    41     <property name="ec.build.class" value="ISISBR"/>
       
    42     
       
    43     <property name="rvct.version" value="22_616"/>
       
    44 
       
    45     <!-- Configuring get latest env. -->
       
    46 	<property name="s60.grace.service" value="s60_devices_sw" />
       
    47 	<property name="s60.grace.product" value="DFS70.91.91" />
       
    48 	<property name="s60.grace.release" value="S60.91_\d{6}_hw70" />
       
    49 	<property name="prep.root.dir" value="E:\Build_E\${env.USERNAME}\ido_ba\${build.name}" />
       
    50 
       
    51 
       
    52     <import file="${helium.dir}/helium.ant.xml"/>
       
    53 
       
    54     <!-- Need to define custom preparation steps. -->
       
    55 	<target name="ido-prep" depends="prep-drive,preparation-getenv"/>
       
    56 
       
    57     <!-- Run the full sequence of target for the minibuild. ,mini-build-prep,compile-main,zip-ee,mini-build-check-->
       
    58     <target name="do-mini-build" depends="ido-update-build-area,
       
    59     										mini-build-cleanup,
       
    60                                             mini-build-install-new-imaker,
       
    61     										imaker-build,
       
    62     	                                    mini-build-check"/>
       
    63     
       
    64     
       
    65     <!--ant code coverage for mini-builds-->
       
    66     <target name="mini-build">
       
    67         <antcall target="database">
       
    68             <param name="home.files.only" value="false"/>
       
    69         </antcall>
       
    70         <mkdir dir="${helium.build.dir}/temp"/>
       
    71         <property name="config.temp.build.dir" location="${config.dir}/build"/>
       
    72         <hlm:coveragerecord name="${helium.build.dir}/temp/test.minibuild-ido.xml" action="start"/>
       
    73         <runtarget target="do-mini-build"/>
       
    74         <hlm:coveragerecord name="${helium.build.dir}/temp/test.minibuild-ido.xml" action="stop"/>
       
    75         <fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.txt.ftl"
       
    76             outputfile="${helium.build.dir}/temp/test_minibuild.txt">
       
    77             <data expandProperties="yes">
       
    78                 doc: xml(${helium.build.dir}/temp/test.minibuild-ido.xml)
       
    79                 database: xml(${database.file})
       
    80             </data>
       
    81         </fmpp>
       
    82         <loadfile srcfile="${helium.build.dir}/temp/test_minibuild.txt" property="ant.coverage.summary"/>
       
    83         <echo>
       
    84 The summary of Ant code coverage:
       
    85 
       
    86 ${ant.coverage.summary}</echo>
       
    87 		<fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.html.ftl"
       
    88 			  outputfile="${helium.build.dir}/temp/test_minibuild.html">
       
    89 			<data expandProperties="yes">
       
    90             	doc: xml(${helium.build.dir}/temp/test.minibuild-ido.xml)
       
    91                 database: xml(${database.file})
       
    92 			</data>
       
    93 		</fmpp>
       
    94     </target>
       
    95 
       
    96     <target name="mini-build-install-new-imaker">
       
    97         <!-- Export custom image configuration file. -->
       
    98         <copy file="config/image_conf_naming.mk" tofile="${build.drive}/epoc32/rom/config/image_conf_naming.mk"/>
       
    99         <!--hlm:bldmakeBldfilesMacro dir="${build.drive}/imaker_rnd/group"/>
       
   100         <hlm:abldMacro dir="${build.drive}/imaker_rnd/group" command="cleanexport" platform=""/>
       
   101         <hlm:abldMacro dir="${build.drive}/imaker_rnd/group" command="export" platform=""/-->
       
   102     </target>
       
   103 	
       
   104 	<target name="minibuild-build-roms" depends="build-roms,imaker-merge-rom-xml"/>
       
   105 	
       
   106     <target name="build-roms-ec">
       
   107         <antcall target="minibuild-build-roms">
       
   108             <reference refid="imaker.rom.config" torefid="imaker.rom.config"/>
       
   109             <param name="build.system" value="ec-helium"/>
       
   110         	<param name="release.images.dir" value="${build.output.dir}/imaker_ec"/>        	
       
   111        </antcall>
       
   112     </target>
       
   113 	
       
   114     <target name="build-roms-ebs">
       
   115         <antcall target="minibuild-build-roms">
       
   116             <reference refid="imaker.rom.config" torefid="imaker.rom.config"/>
       
   117             <param name="build.system" value="ebs"/>
       
   118             <param name="release.images.dir" value="${build.output.dir}/imaker_ebs"/>         
       
   119        </antcall>
       
   120     </target>
       
   121 	
       
   122 	<!-- test target. -->
       
   123 	<target name="imaker-build" depends="build-roms-ec,build-roms-ebs">
       
   124 	</target>
       
   125 
       
   126     
       
   127     <target name="check-diamonds">
       
   128 		<loadfile srcfile="${build.log.dir}/${build.id}_diamonds-log-start.xml" property="diamonds.log.start"/>
       
   129         <echo>${diamonds.log.start}</echo>
       
   130         <loadresource property="diamonds.log.start.output">
       
   131             <url url="${diamonds.build.url}?fmt=xml"/>
       
   132         </loadresource>
       
   133         <echo>${diamonds.log.start.output}</echo>
       
   134 	</target>
       
   135     
       
   136     <target name="mini-build-cleanup">
       
   137         <delete verbose="true" includeemptydirs="true">
       
   138             <fileset dir="${build.drive}/" casesensitive="false">
       
   139                 <include name="makefile"/>
       
   140                 <include name="*.mk"/>
       
   141             	<include name="ecloud_tmp_*/**"/>
       
   142             	<include name="emake.*"/>            	
       
   143                 <include name="epoc32/build/**"/>
       
   144                 <include name="epoc32/rombuild/*/**"/>
       
   145                 <include name="output/**"/>
       
   146                 <include name="timestart.txt"/>
       
   147                 <include name="timestop.txt"/>
       
   148             </fileset>
       
   149         </delete>
       
   150     	<mkdir dir="${build.drive}/output/logs"/>
       
   151     </target>
       
   152     
       
   153     
       
   154     <target name="mini-build-check">
       
   155     </target>
       
   156 	
       
   157 	<!-- Rom configuration -->
       
   158     <hlm:imakerconfigurationset id="imaker.rom.config">
       
   159         <imakerconfiguration>
       
   160             <makefileset>
       
   161                 <include name="**/${product.name}*/*ui.mk"/>
       
   162             </makefileset>
       
   163             <targetset>
       
   164                 <include name="^core$"/>
       
   165                 <include name="^langpack_01.*$"/>
       
   166                 <include name="^langpack_02.*$"/><!---->
       
   167                 <include name="^custvariant_.*$"/>
       
   168             </targetset>
       
   169             <variableset>
       
   170                 <variable name="USE_FOTI" value="0"/>
       
   171                 <variable name="USE_FOTA" value="1"/>
       
   172                 <variable name="TYPE" value="rnd"/>
       
   173             </variableset>
       
   174         </imakerconfiguration>
       
   175                 <imakerconfiguration>
       
   176             <makefileset>
       
   177                 <include name="**/${product.name}*/*ui.mk"/>
       
   178             </makefileset>
       
   179             <targetset>
       
   180                 <include name="^core$"/>
       
   181                 <include name="^langpack_01.*$"/>
       
   182                 <include name="^langpack_02.*$"/><!---->
       
   183                 <include name="^custvariant_.*$"/>
       
   184             </targetset>
       
   185             <variableset>
       
   186                 <variable name="USE_FOTI" value="0"/>
       
   187                 <variable name="USE_FOTA" value="1"/>
       
   188                 <variable name="TYPE" value="prd"/>
       
   189             </variableset>
       
   190         </imakerconfiguration>
       
   191     </hlm:imakerconfigurationset>	
       
   192 </project>
       
   193 
       
   194