buildframework/helium/tests/minibuilds/compile/build.xml
author srilekhas <srilekhas@symbian.org>
Wed, 18 Aug 2010 11:18:38 +0100
changeset 627 cb3264f4c6e6
parent 587 85df38eb4012
child 628 7c4a911dc066
permissions -rw-r--r--
Merge : re-applies missing part of fix for Bug 2901,Add export for s60ibymacros.pm
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
-->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    23
<project name="minibuild.compile" default="mini-build" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium" basedir=".">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    24
	<property environment="env" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    25
    <import file="../site/${env.TEAM}.ant.xml" optional="true"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    26
	<dirname property="config.dir" file="${ant.file.minibuild.compile}" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    27
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    28
	<!-- Enable Helium internal assertion checking. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    29
	<property name="hlm.enable.asserts" value="1" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    30
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    31
	<property name="build.name" value="minibuild_compile" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    32
	<property name="build.family" value="test_minibuilds" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    33
	<property name="major.version" value="0" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    34
	<property name="minor.version" value="0" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    35
	<property name="publish.root.dir" location="${build.drive}/release" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    36
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    37
	<!-- For Grace upload-->
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    38
	<property name="hydra.service" value="Helium" />
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    39
	<property name="hydra.product" value="minibuild_compile" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    40
	<property name="release.label" value="${major.version}.${minor.version}" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    41
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    42
	<!-- build configuration -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    43
	<property name="sysdef.configurations.list" value="helium_minibuild_compile" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    44
	<path id="system.definition.files">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    45
		<fileset dir="." includes="*.sysdef.xml" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    46
	</path>
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
	<property name="build.system" value="ec-helium" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    49
	<property name="rvct.version" value="22_616" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    50
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    51
	<!-- Archiving configuration-->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    52
	<property name="zip.config.file" location="archive.cfg.xml" />
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    53
    <property name="zips.ee.spec.name" value="minibuild_archive" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    54
    <property name="zips.ee-empty.spec.name" value="empty_minibuild_archive" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    55
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    56
	<!-- Synergy is not configured -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    57
	<property name="skip.password.validation" value="1" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    58
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    59
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    60
	<import file="${helium.dir}/helium.ant.xml" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    61
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    62
	<!-- Run the full sequence of target for the minibuild. ,mini-build-prep,compile-main,zip-ee,mini-build-check-->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    63
	<target name="do-mini-build" depends="mini-build-cleanup,mini-build-install-new-imaker,mini-build-prep,
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    64
                compile-main,test-ec-history-option,integration-mmp-to-target,mini-build-archive,build-roms,
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    65
                minibuild-release,mini-build-check" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    66
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    67
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    68
	<target name="do-mini-build-subcon" depends="mini-build-cleanup,mini-build-install-new-imaker,mini-build-prep,
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    69
                compile-main,mini-build-archive,mini-build-check" />
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
	<!--ant code coverage for mini-builds-->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    72
	<target name="mini-build">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    73
    <antcall target="database">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    74
        <param name="home.files.only" value="false"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    75
    </antcall>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    76
		<mkdir dir="${helium.build.dir}/temp" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    77
		<hlm:coveragerecord name="${helium.build.dir}/temp/test_minibuild.xml" action="start" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    78
		<runtarget target="do-mini-build" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    79
		<hlm:coveragerecord name="${helium.build.dir}/temp/test_minibuild.xml" action="stop" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    80
		<fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.txt.ftl" outputfile="${helium.build.dir}/temp/test_minibuild.txt">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    81
			<data expandProperties="yes">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    82
                doc: xml(${helium.build.dir}/temp/test_minibuild.xml)
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    83
                database: xml(${database.file})
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    84
            </data>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    85
		</fmpp>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    86
		<loadfile srcfile="${helium.build.dir}/temp/test_minibuild.txt" property="ant.coverage.summary" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    87
		<echo>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    88
The summary of Ant code coverage:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    89
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    90
${ant.coverage.summary}</echo>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    91
		<fmpp sourcefile="${helium.dir}/tools/common/templates/coveragerecord.html.ftl" outputfile="${helium.build.dir}/temp/test_minibuild.html">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    92
			<data expandProperties="yes">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    93
                    doc: xml(${helium.build.dir}/temp/test_minibuild.xml)
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    94
                    database: xml(${database.file})
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    95
             </data>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    96
		</fmpp>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    97
	</target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    98
	
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    99
    <!-- Test ec history option is create for single node build and merge is for multinode build. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   100
    <target name="test-ec-history-option" if="build.system.ec-helium">
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   101
        <loadfile srcfile="${temp.build.dir}/${build.id}.${sysdef.configurations.list}_run_emake.bat" property="emake.bat.file"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   102
        <if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   103
            <equals arg1="${ec.maxagents}" arg2="1" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   104
            <then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   105
                <au:assertTrue>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   106
                    <contains string="${emake.bat.file}" substring="--emake-history=create"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   107
                </au:assertTrue>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   108
            </then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   109
            <else>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   110
                <au:assertTrue>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   111
                    <contains string="${emake.bat.file}" substring="--emake-history=merge"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   112
                </au:assertTrue>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   113
            </else>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   114
        </if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   115
        <echo message="ec.mode:${ec.mode}" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   116
        <echo message="ec.maxagents:${ec.maxagents}"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   117
        <echo message="ec.history.option:${ec.history.option}"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   118
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   119
    
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   120
	<!-- Prepare the minibuild. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   121
	<!--target name="mini-build-prep" depends="init-build-area,start-ant-log,diamonds,set-arm-version,prep-copy-symbiantools"/-->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   122
	<target name="mini-build-prep" depends="prep" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   123
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   124
	<!-- Stubbing few targets for easy testing with dragonfly ... -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   125
	<target name="prep-drive" depends="build-number" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   126
	<target name="dragonfly-prep-drive" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   127
	<target name="do-prep-work-area" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   128
	<target name="create-bom" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   129
	<target name="check-env-prep" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   130
	<target name="prep-copy" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   131
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   132
	<target name="minibuild-release">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   133
		<mkdir dir="${publish.release.dir}" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   134
		<copy todir="${publish.release.dir}">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   135
			<fileset dir="${build.output.dir}">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   136
				<include name="release_flash_images/**" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   137
			</fileset>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   138
		</copy>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   139
		<script language="jython" setbeans="false">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   140
			<![CDATA[
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   141
import os
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   142
import fileutils
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   143
import pathaddition.relative
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   144
result = []
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   145
rootdir = os.path.normpath(project.getProperty("publish.release.dir") + "/..")
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   146
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   147
def sortbydate(a, b):
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   148
    if os.stat(a)[9] == os.stat(b)[9]:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   149
	    return 0
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   150
    elif os.stat(a)[9] < os.stat(b)[9]:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   151
        return 1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   152
    return -1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   153
			
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   154
if os.path.exists(rootdir):
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   155
    for name in os.listdir(rootdir):
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   156
        path = os.path.join(rootdir, name)
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   157
        if os.path.isdir(path):
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   158
           result.append(os.path.normpath(path))
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   159
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   160
result.sort(sortbydate)
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   161
if len(result) > 2:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   162
    for name in result[2:]:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   163
        print "Deleting " + name
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   164
        fileutils.rmtree(name)
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   165
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   166
project.setProperty('fota.publish.root.dir', project.getProperty("publish.root.dir"))
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   167
old = pathaddition.relative.abs2rel(result[0], project.getProperty("publish.root.dir"))
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   168
new = pathaddition.relative.abs2rel(result[1], project.getProperty("publish.root.dir"))
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   169
project.setProperty('fota.old.publish.subdir', result[0])
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   170
project.setProperty('fota.new.publish.subdir', result[1])
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   171
print "Old subdir: %s" % old
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   172
print "New subdir: %s" % old
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   173
]]>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   174
		</script>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   175
	</target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   176
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   177
	<!-- Check that the XML data returned from Diamonds via the REST interface
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   178
    is the same as what is sent. 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   179
        
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   180
    Currently there are some differences between the formats so some edits to the
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   181
    XML content are made before using XMLUnit to compare the content.
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   182
    -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   183
	<target name="check-diamonds">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   184
		<loadfile srcfile="${build.log.dir}/${build.id}_diamonds-log-start.xml" property="diamonds.log.start">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   185
			<filterchain>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   186
				<tokenfilter>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   187
					<filetokenizer />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   188
					<hlm:prettyprintxml />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   189
				</tokenfilter>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   190
			</filterchain>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   191
		</loadfile>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   192
		<echo>Data sent to Diamonds:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   193
            
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   194
${diamonds.log.start}</echo>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   195
		<loadresource property="diamonds.log.start.output">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   196
			<url url="${diamonds.build.url}?fmt=xml" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   197
			<filterchain>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   198
				<tokenfilter>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   199
					<filetokenizer />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   200
					<hlm:prettyprintxml />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   201
				</tokenfilter>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   202
			</filterchain>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   203
		</loadresource>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   204
		<echo>Data returned from Diamonds:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   205
            
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   206
${diamonds.log.start.output}</echo>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   207
		<echo file="${helium.dir}/diamonds_build.xml">${diamonds.log.start}</echo>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   208
		<!--xmltask source="${helium.dir}/diamonds_build.xml" dest="${helium.dir}/diamonds_build_edit.xml">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   209
            
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   210
            <cut path="/diamonds-build/tool" buffer="toolElements"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   211
            <cut path="/diamonds-build/locations" buffer="temp"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   212
        </xmltask-->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   213
		<!--<loadfile srcfile="${helium.dir}/diamonds_build_edit.xml" property="diamonds.log.start.edited"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   214
        <echo>Data sent massaged to match what is received:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   215
            
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   216
${diamonds.log.start.edited}</echo>-->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   217
		<!-- TODO: make assertXmlEqual work with direct string input -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   218
		<string id="control.id" value="${diamonds.log.start}" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   219
		<string id="test.id" value="${diamonds.log.start.output}" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   220
		<hlm:assertXmlEqual control="control.id" test="test.id" failonerror="true" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   221
	</target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   222
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   223
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   224
	<target name="mini-build-archive" depends="mini-build-archive-ant,mini-build-archive-ec-full,mini-build-archive-ant-empty-config" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   225
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   226
	<!-- This target will copy a part of the tree structure to test policy.remover mapper. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   227
	<target name="prepare-archiving">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   228
        <delete dir="${build.drive}/test_policy" failonerror="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   229
        <mkdir dir="${build.drive}/test_policy/os" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   230
        <!-- Creating a policy file under the new s60 test root. -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   231
        <echo file="${build.drive}/test_policy/distribution.policy.s60">0</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   232
        <echo file="${build.drive}/test_policy/os/distribution.policy.s60">0</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   233
        <!-- Getting some Content -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   234
        <copy todir="${build.drive}/test_policy">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   235
            <fileset dir="${build.drive}/sf">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   236
                <include name="os/graphics/" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   237
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   238
        </copy>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   239
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   240
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   241
    <target name="mini-build-archive-ec-full">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   242
        <antcall target="do-mini-build-archive">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   243
            <param name="build.system" value="ec-helium" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   244
            <param name="archive.using.ec" value="true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   245
            <param name="zipping.type" value="ec" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   246
            <!-- Uses to set the target location -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   247
        </antcall>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   248
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   249
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   250
    <target name="mini-build-archive-ant">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   251
        <antcall target="do-mini-build-archive">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   252
            <param name="build.system" value="ebs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   253
            <param name="archive.using.ec" value="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   254
            <param name="zipping.type" value="ant" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   255
            <!-- Uses to set the target location -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   256
        </antcall>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   257
        
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   258
    </target>
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   259
 
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   260
    <target name="mini-build-archive-ant-empty-config">
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   261
        <hlm:zipContentMacro type="ee-empty" ec="false" file="${zip.config.file}" failonemptyconfig="false" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   262
        <au:expectfailure>
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   263
            <hlm:zipContentMacro type="ee-empty" ec="false" file="${zip.config.file}" failonemptyconfig="true" />
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   264
        </au:expectfailure>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   265
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   266
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   267
    <target name="do-mini-build-archive">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   268
        <runtarget target="prepare-archiving" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   269
        <runtarget target="zip-ee" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   270
        <!-- Checking the zip generation Ant -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   271
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/release_metadata.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   272
        <!--au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_app_organizer_clock_binary.zip" /-->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   273
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_app_organizer_clock.zip" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   274
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_0.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   275
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_1.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   276
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_3.zip" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   277
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_7.zip" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   278
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_mw_classicui_and_app_radio_1401.zip" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   279
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_0.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   280
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   281
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_2.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   282
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_3.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   283
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_7.zip" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   284
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1308.zip" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   285
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1422.zip" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   286
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1435.zip" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   287
        <au:assertFileExists file="${zips.build.dir}/${zipping.type}/sf_os_1436.zip" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   288
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   289
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   290
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   291
    <target name="mini-build-cleanup">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   292
        <delete verbose="true" includeemptydirs="true" failonerror="false">         
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   293
            <fileset dir="${build.drive}/" casesensitive="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   294
                <include name="makefile" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   295
                <include name="*.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   296
                <include name="*.make" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   297
                <include name="ecloud_tmp_*/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   298
                <include name="emake.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   299
                <include name="epoc32/build/**" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   300
                <include name="epoc32/rombuild/imaker_temp/**" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   301
                <include name="epoc32/rombuild/${product.name}/**" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   302
                <include name="epoc32/rom/config/*/**/foti*.*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   303
                <include name="output/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   304
                <include name="timestart.txt" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   305
                <include name="timestop.txt" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   306
                <exclude name="output/build_area/localised/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   307
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   308
        </delete>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   309
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   310
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   311
    <target name="mini-build-install-new-imaker">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   312
        <!-- Export custom image configuration file. -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   313
        <copy file="config/image_conf_naming.mk" tofile="${build.drive}/epoc32/rom/config/image_conf_naming.mk" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   314
        <property name="imaker.dir" value="${helium.dir}/../external/imaker" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   315
        <!--
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   316
        <delete dir="${build.drive}/imaker_rnd"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   317
        <copy todir="${build.drive}/imaker_rnd">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   318
            <fileset dir="${imaker.dir}"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   319
        </copy>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   320
        
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   321
        <hlm:bldmakeBldfilesMacro dir="${build.drive}/imaker_rnd/group"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   322
        <hlm:abldMacro dir="${build.drive}/imaker_rnd/group" command="cleanexport" platform=""/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   323
        <hlm:abldMacro dir="${build.drive}/imaker_rnd/group" command="export" platform=""/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   324
        -->
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   325
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   326
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   327
    <target name="mini-build-check">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   328
        <!-- Check if prep has set some prop correctly... -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   329
        <echo>'${arm.compiler.version}'</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   330
        <au:assertMatches string="${arm.compiler.version}" pattern="RVCT2\.2 \[Build 616\]" casesensitive="false" multiline="true" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   331
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   332
        <!-- Check if compile-main step did what expected... -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   333
        <au:assertFileExists file="${canonical.sysdef.file}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   334
        <!--<au:assertFileExists file="${build.drive}/Makefile"/>-->
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   335
        <if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   336
            <istrue value="${blocks.enabled}" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   337
            <then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   338
                <au:assertFileExists file="${blocks.config.dir}/roms.blocks_component.xml" />
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   339
            </then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   340
        </if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   341
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   342
        <if>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   343
            <isset property="build.system.ec-helium" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   344
            <then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   345
                <au:assertFileExists file="${build.drive}/emake.data" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   346
                <au:assertFileExists file="${temp.build.dir}/${build.id}.helium_minibuild_compile_run_emake.bat" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   347
            </then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   348
        </if>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   349
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   350
        <resourcecount property="fpsx.count">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   351
            <fileset dir="${build.output.dir}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   352
                <include name="**/*.core.fpsx" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   353
                <include name="**/*.rofs2.fpsx" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   354
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   355
        </resourcecount>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   356
        <echo>Number of images generated: ${fpsx.count}.</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   357
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   358
        <!-- Taking abld build failure because of deprecation into account. -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   359
        <if>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   360
            <or>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   361
                <contains string="${build.system}" substring="ebs" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   362
                <contains string="${build.system}" substring="ec-helium" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   363
            </or>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   364
            <then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   365
                <au:assertTrue message="Build should have a pending failure because abld is not supported anymore.">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   366
                    <hlm:hasDeferredFailure name="compileSignalInput" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   367
                </au:assertTrue>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   368
                <hlm:clearDeferredFailures/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   369
            </then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   370
        </if>        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   371
    </target>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   372
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   373
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   374
    <!-- Custom iMaker configuration - preparing for future dev. -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   375
    <property name="imaker.fmpp.makefile" location="${helium.dir}/tools/common/templates/imaker/build_imaker_roms_signing.mk.ftl" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   376
    <hlm:imakerconfigurationset id="imaker.rom.config">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   377
        <imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   378
            <makefileset>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   379
                <include name="**/image_conf_${product.name}.mk" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   380
            </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   381
            <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   382
                <include name="fota" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   383
            </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   384
        </imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   385
        <imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   386
            <makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   387
                <include name="**/${product.name}/*ui.mk"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   388
            </makefileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   389
            <targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   390
                <include name="core(?:-prd|-rnd|-subcon)?$" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   391
                <include name="^langpack_01$" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   392
                <exclude name=".*-image$" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   393
            </targetset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   394
            <variableset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   395
                <variable name="USE_FOTI" value="1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   396
                <variable name="USE_FOTA" value="1" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   397
                <variable name="TYPE" value="rnd" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   398
            </variableset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   399
        </imakerconfiguration>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   400
    </hlm:imakerconfigurationset>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   401
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   402
    <fileset dir="${build.drive}/" id="mmp.to.target.config">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   403
        <include name="s60/app/**/*.mmp" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents: 217
diff changeset
   404
    </fileset>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   405
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   406
    <import file="build.sbsinput.ant.xml" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   407
</project>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   408