Initial drop of FBF Helium configuration
authorDario Sestito <dario.sestito@symbian.com>
Mon, 02 Mar 2009 17:22:29 +0000
changeset 0 571f289c60b8
child 1 5ed4e1aba7ef
Initial drop of FBF Helium configuration
build.xml
common/build.xml
common/hlm.bat
common/properties.default.ant.xml
common/sysdef.config.ant.xml
common/templates/hg-prep.ant.xml.ftl
common/templates/hg-tag.ant.xml.ftl
hlm.bat
sf-package/build.xml
sf-package/hlm.bat
sf-package/package.properties
sf-platform/build.xml
sf-platform/hlm.bat
sf-platform/platform.properties
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build.xml	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="SF-CONFIG">
+  <!-- location of this config -->
+  <dirname property="sf.config.dir" file="${ant.file.SF-CONFIG}"/>
+  
+  <!--
+  * Property defaults
+   -->
+     
+  <!-- load build type from config/ -->
+  <import file="${sf.config.dir}/../build/config/pfconfig.xml" />
+     
+  <import file="sf-${sf.build.type}/build.xml" />
+  
+  
+</project>
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/build.xml	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="SF-COMMON-CONFIG">
+	<dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/>
+
+        <!-- import default properties file config -->
+        <import file="${sf.common.config.dir}/properties.default.ant.xml"/>        
+
+	<!-- import all core HELIUM targets -->
+	<import file="${helium.dir}/helium.ant.xml" />
+        
+        <!-- import sysdef file location config -->
+        <import file="${sf.common.config.dir}/sysdef.config.ant.xml"/>
+        
+        <!--
+        ** TARGET DEFINITIONS
+        -->
+        
+        <target name="sf-build" depends="sf-prep,sf-prebuild,sf-build-run,sf-postbuild">            
+            <echo>[SF-BUILD]</echo>
+        </target>
+        
+        <target name="sf-build-noprep">            
+            <echo>[SF-BUILD-NO-PREP]</echo>
+        </target>
+        
+        <target name="sf-prep" depends="check-tool-dependencies, prep-drive,init-build-area,create-bom,log-build-env">
+            <echo>[SF-PREP]</echo>   
+            <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
+            
+            <!-- new implementation that only rely on Ant -->
+            <fmpp sourceFile="${sf.common.config.dir}/templates/hg-prep.ant.xml.ftl"
+                         outputFile="${prep.dynamic.config}">
+                   <data expandProperties="yes">
+                        ant: antProperties()
+                        data: csv(${sf.common.config.dir}/../../build/${hg.config}, {separator:','})
+                    </data>
+            </fmpp>
+            <ant antfile="${prep.dynamic.config}"/>
+        </target>
+        
+        <target name="sf-prebuild" depends="preparation-getenv"> 
+        
+            <echo>[SF-PREBUILD]</echo>                                    
+            
+        </target>
+        
+        <!-- <target name="sf-preparation-getenv">        
+            <antcall target="preparation-getenv">            
+                                
+            </antcall>        
+        </target>
+        
+        -->
+        
+        <target name="sf-postbuild">            
+            <echo>[SF-POSTBUILD]</echo>                        
+        </target>        
+        
+        <target name="sf-build-run">            
+            <echo>[SF-BUILD-RUN]</echo>
+        </target>
+
+        
+</project>
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/hlm.bat	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,7 @@
+@echo off
+setlocal
+if not defined HELIUM_HOME set HELIUM_HOME=%~dp0..\..\..\..\helium
+echo %HELIUM_HOME%
+call ..\..\build\env.bat
+call %HELIUM_HOME%\hlm.bat %*
+endlocal     
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/properties.default.ant.xml	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="SF-PROPERTIES-DEFAULT">
+    
+        <property environment="env"/> <!-- make environment variables available via env -->
+        <property name="build.system"      value="sbs"/>
+        <property name="prep.root.dir"     value=""/>
+        
+        <!-- Compile configuration -->
+        <property name="sysdef.configurations.list" value="s60_build,s60_bldmelast"/>
+
+        <!-- Template for the WA location, each branch got a different location -->
+        <property name="ccm.project.wa_path" location="${data.drive.letter}:\Build_${data.drive.letter}\${env.USERNAME}\ido_wa\${build.name}"/>
+
+        <!-- defaults to get source/bin release for package/platform -->
+        <property name="release.getsource" value="1"/>
+        <property name="release.getbin"    value="1"/>
+        
+        <property name="email.from"        value="shabe.razvi@nokia.com"/>
+        
+        <property name="local.free.space"      value="10"/>
+        <property name="network.free.space"    value="10"/>
+        <property name="network.drive"         value="\\builds01\devbuilds\GRACE"/>
+        <property name="publish.root.dir"      value="\\builds01\devbuilds\GRACE"/>
+        
+        <property name="base_release.path"     value="\\fasrrm01.europe.nokia.com\GRACE\s60_devices_sw\S60_5_1\S60.MCL_200904_S60.51"/>
+        <!--<property name="base_release.path"     value="\\lonfiler02\nokbuilds\from_nokia\DFS70_91_91\S60.e_200906_hw79"/> -->
+        
+        <property name="base_release.getenv_options"     value=""/>
+       
+        <property name="hg.tag"      value="1"/>
+            
+</project>
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/sysdef.config.ant.xml	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="SF-SYSDEF-CONFIG">
+
+    <path id="system.definition.files">
+        <fileset dir="${package.branch.config.dir}/sysdefs" includes="*.sysdef.xml"/>
+        <fileset dir="${package.config.dir}/sysdefs"        includes="*.sysdef.xml"/>
+        <fileset dir="${package.common.config.dir}/sysdefs" includes="*.sysdef.xml"/>
+        <fileset dir="${ccm.project.wa_path}"               includes="*/*/*/layers.sysdef.xml"/>
+        <fileset dir="${ccm.project.wa_path}"               includes="*/*/adaptation/stubs/*/layers.sysdef.xml"/>		 
+    </path>
+            
+</project>
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/templates/hg-prep.ant.xml.ftl	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<project name="hg-prep" default="all" xmlns:hlm="http://www.nokia.com/helium">
+    <property environment="env"/>
+
+    <taskdef name="scm" classname="com.nokia.helium.scm.ant.taskdefs.ScmTask" uri="http://www.nokia.com/helium" />
+    <typedef name="latestTag" classname="com.nokia.helium.scm.ant.types.LatestTag" uri="http://www.nokia.com/helium" />
+    <typedef name="tagSet" classname="com.nokia.helium.scm.ant.types.TagSet" uri="http://www.nokia.com/helium" />
+
+
+    <target name="all">
+    
+    <parallel threadCount="${ant['threads']}">
+    <#assign refid=0/>
+<#list data as d>
+        <sequential>
+            <delete dir="${ant['build.drive']}${d.dst}" failonerror="false"/>
+            <mkdir dir="${ant['build.drive']}${d.dst}"/>
+            <hlm:scm verbose="true" scmUrl="scm:hg:${d.source}">
+                <hlm:checkout basedir="${ant['build.drive']}${d.dst}"/>
+        
+                <hlm:tags basedir="${ant['build.drive']}${d.dst}" reference="hg.tags.id${refid}"/>
+        
+                <hlm:update basedir="${ant['build.drive']}${d.dst}">
+                    <hlm:latestTag pattern="${d.tag}">
+                        <hlm:tagSet refid="hg.tags.id${refid}" />
+                    </hlm:latestTag>
+                </hlm:update>
+            </hlm:scm>
+        </sequential>
+        <#assign refid=refid + 1/>
+</#list>
+    </parallel>
+    </target>
+    
+    <import file="${ant['helium.dir']}/helium.ant.xml"/>   
+</project>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/templates/hg-tag.ant.xml.ftl	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<project name="hg-prep" default="all" xmlns:hlm="http://www.nokia.com/helium">
+    <property environment="env"/>
+
+    <taskdef name="scm" classname="com.nokia.helium.scm.ant.taskdefs.ScmTask" uri="http://www.nokia.com/helium" />
+    <typedef name="latestTag" classname="com.nokia.helium.scm.ant.types.LatestTag" uri="http://www.nokia.com/helium" />
+    <typedef name="tagSet" classname="com.nokia.helium.scm.ant.types.TagSet" uri="http://www.nokia.com/helium" />
+
+
+    <target name="all">
+    
+    <parallel threadCount="${ant['threads']}">
+    <#assign refid=0/>
+<#list data as d>
+        <sequential>
+            <hlm:scm verbose="true" scmUrl="scm:hg:${ant['build.drive']}${d.dst}">
+                <hlm:tag basedir="${ant['build.drive']}${d.dst}" name="${ant['build.id']}"/>
+            </hlm:scm>
+        </sequential>
+        <#assign refid=refid + 1/>
+</#list>
+    </parallel>
+    </target>
+    
+    <import file="${ant['helium.dir']}/helium.ant.xml"/>   
+</project>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hlm.bat	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,7 @@
+@echo off
+setlocal
+call %~dp0common\hlm.bat %*
+endlocal
+
+
+        
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sf-package/build.xml	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="SF-PACKAGE-CONFIG">
+  <!-- location of this config -->
+  <dirname property="sf.package.config.dir" file="${ant.file.SF-PACKAGE-CONFIG}"/>
+  
+  <!--
+  * Property defaults
+   -->
+
+  <!--
+  
+  * Load package specific properties. Mandatory that this file exists otherwise
+  * the target will fail.
+  
+   -->
+  <loadproperties srcFile="${sf.package.config.dir}/package.properties"/>
+  
+  
+  
+  
+  
+  
+  <!-- import sf-common-config -->
+  <import file="../common/build.xml" />
+  
+</project>
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sf-package/hlm.bat	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,4 @@
+@echo off
+setlocal
+call %~dp0..\common\hlm.bat %*
+endlocal     
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sf-package/package.properties	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,1 @@
+base_release.getenv_options=emu
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sf-platform/build.xml	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="SF-PLATFORM-CONFIG">
+  <!-- location of this config -->
+  <dirname property="sf.platform.config.dir" file="${ant.file.SF-PLATFORM-CONFIG}"/>
+  
+  <!--
+  * Property defaults
+   -->
+
+  <!--
+  
+  * Load platform specific properties. Mandatory that this file exists otherwise
+  * the target will fail.
+  
+   -->
+  <loadproperties srcFile="${sf.platform.config.dir}/platform.properties"/>
+  
+  <!-- import sf-common-config -->
+  <import file="../common/build.xml" />
+  
+</project>
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sf-platform/hlm.bat	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,7 @@
+@echo off
+setlocal
+call %~dp0..\common\hlm.bat %*
+endlocal
+
+
+        
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sf-platform/platform.properties	Mon Mar 02 17:22:29 2009 +0000
@@ -0,0 +1,3 @@
+base_release.getenv_options=emu
+hg.config=config/full-list.csv
+threads=1
\ No newline at end of file