PDK_Helium/config.xml
changeset 1 861b800d9c63
child 2 8f13da8c395b
equal deleted inserted replaced
0:3dcdf644f5be 1:861b800d9c63
       
     1 <?xml version='1.0' encoding='UTF-8'?>
       
     2 <project>
       
     3   <actions/>
       
     4   <description>&lt;h3&gt;Description&lt;/h3&gt;&#xd;
       
     5 &lt;li&gt;This project will rebuild the Symbian^2 and Symbian^3 Platform from source using a Bill Of Materials that can be downloaded from the &lt;a href=&quot;http://developer.symbian.org/main/tools_and_kits/&quot;&gt;kits page.&lt;/a&gt;&#xd;
       
     6 &lt;li&gt;It encapsulates the steps as defined in the &lt;a href=&quot;http://developer.symbian.org/wiki/index.php/How_to_perform_a_platform_build_of_PDK_3.0.b_using_helium&quot;/&gt;manual build process &lt;/a&gt;for Helium and is a simple way to start building using the Foundation Build Framework.&#xd;
       
     7 &lt;br&gt;&lt;br&gt;&#xd;
       
     8 The Foundation Build Framework (FBF) is an Apache ANT-like configuration that can be used with the Helium tool, delivered in the &lt;a href=&quot;https://developer.symbian.org/main/tools_and_kits/downloads/view.php?id=4&quot;/&gt;PDT&lt;/a&gt;.&#xd;
       
     9 &#xd;
       
    10 &lt;h3&gt;Prerequisites&lt;/h3&gt;&#xd;
       
    11 &lt;li&gt;Installation of mandatory &lt;a href=&quot;http://developer.symbian.org/wiki/index.php/How_to_perform_a_platform_build_of_PDK_3.0.b_using_helium#Installing_Build_Tools&quot;/&gt;build tools&lt;/a&gt;&#xd;
       
    12 &lt;li&gt;Download of required (and recommended) &lt;a href=&quot;&#xd;
       
    13 http://developer.symbian.org/wiki/index.php/How_to_perform_a_platform_build_of_PDK_3.0.b_using_helium#Getting_the_Baseline&quot;/&gt;zips &lt;/a&gt; from the &lt;a href=&quot;http://developer.symbian.org/main/tools_and_kits/&quot;&gt;kits page.&lt;/a&gt;&#xd;
       
    14 &#xd;
       
    15 &lt;h3&gt;Additional Information&lt;/h3&gt;&#xd;
       
    16 Source for the FBF can be downloaded from the following Mercurial Repositories -&#xd;
       
    17 &lt;br&gt;&#xd;
       
    18 &lt;li&gt;FBF Configuration - &lt;a href=&quot;https://developer.symbian.org/oss/FCL/interim/fbf/configs/default/&quot;/&gt;https://developer.symbian.org/oss/FCL/interim/fbf/configs/default/&lt;/a&gt;&#xd;
       
    19 &lt;li&gt;FBF Platform Project - &lt;a href=&quot;https://developer.symbian.org/oss/FCL/interim/fbf/projects/platforms&quot;/&gt;https://developer.symbian.org/oss/FCL/interim/fbf/projects/platforms&lt;/a&gt;&#xd;
       
    20 &lt;li&gt;FBF Bootstrap - &lt;a href=&quot;https://developer.symbian.org/oss/FCL/interim/fbf/bootstrap&quot;/&gt;https://developer.symbian.org/oss/FCL/interim/fbf/bootstrap&lt;/a&gt;&#xd;
       
    21 </description>
       
    22   <keepDependencies>false</keepDependencies>
       
    23   <properties>
       
    24     <hudson.model.ParametersDefinitionProperty>
       
    25       <parameterDefinitions>
       
    26         <hudson.model.StringParameterDefinition>
       
    27           <name>BUILD_DRIVE</name>
       
    28           <description>Physical Build Drive</description>
       
    29           <defaultValue>C:</defaultValue>
       
    30         </hudson.model.StringParameterDefinition>
       
    31         <hudson.model.StringParameterDefinition>
       
    32           <name>SUBST_DRIVE</name>
       
    33           <description>Subst&apos;d EPOC drive</description>
       
    34           <defaultValue>M:</defaultValue>
       
    35         </hudson.model.StringParameterDefinition>
       
    36         <hudson.model.StringParameterDefinition>
       
    37           <name>RELEASE_ZIP_LOCATION</name>
       
    38           <description>Location of &lt;a href=&quot;http://developer.symbian.org/main/tools_and_kits/&quot;&gt;release zipfiles&lt;/a&gt; e.g.
       
    39 &lt;li&gt;build_BOM.zip
       
    40 &lt;li&gt;tools_epoc.zip
       
    41 
       
    42 </description>
       
    43           <defaultValue></defaultValue>
       
    44         </hudson.model.StringParameterDefinition>
       
    45         <hudson.model.BooleanParameterDefinition>
       
    46           <name>REBUILD_TOOLS</name>
       
    47           <description>Tick this box if you want to rebuild &quot;tools&quot; as well (needs VC++ 6.0)</description>
       
    48           <defaultValue>false</defaultValue>
       
    49         </hudson.model.BooleanParameterDefinition>
       
    50         <hudson.model.BooleanParameterDefinition>
       
    51           <name>SPLIT_BUILD</name>
       
    52           <description>Untick this box if the build is not GT/S60 split (only PDK2.0.e is not split at the moment)</description>
       
    53           <defaultValue>true</defaultValue>
       
    54         </hudson.model.BooleanParameterDefinition>
       
    55         <hudson.model.ChoiceParameterDefinition>
       
    56           <name>SRC_LOCATION</name>
       
    57           <description>How to get src for building the Platform.
       
    58 &lt;li&gt;BOM - download source direct from &lt;a href=&quot;https://developer.symbian.org/oss&quot;&gt;web&lt;/a&gt; using downloaded Bill Of Materials 
       
    59 &lt;li&gt;ZIPFILES - unpack source zips such as src_oss_os.zip from specified location on disk</description>
       
    60           <choices class="java.util.Arrays$ArrayList">
       
    61             <a class="string-array">
       
    62               <string>BOM</string>
       
    63               <string>ZIPFILES</string>
       
    64             </a>
       
    65           </choices>
       
    66         </hudson.model.ChoiceParameterDefinition>
       
    67         <hudson.model.StringParameterDefinition>
       
    68           <name>HG_USERNAME</name>
       
    69           <description>Enter your symbian developer web username &lt;i&gt;(required for download of packages from BOM, not needed when using source zip packages)&lt;/i&gt;</description>
       
    70           <defaultValue></defaultValue>
       
    71         </hudson.model.StringParameterDefinition>
       
    72         <hudson.model.PasswordParameterDefinition>
       
    73           <name>HG_PASSWORD</name>
       
    74           <description>Enter your Mercurial symbian developer web password  &lt;i&gt;(required for download of packages from BOM, not needed when using source zip packages)&lt;/i&gt;</description>
       
    75           <defaultValue></defaultValue>
       
    76         </hudson.model.PasswordParameterDefinition>
       
    77         <hudson.model.ChoiceParameterDefinition>
       
    78           <name>PLATFORM</name>
       
    79           <description></description>
       
    80           <choices class="java.util.Arrays$ArrayList">
       
    81             <a class="string-array">
       
    82               <string>symbian3</string>
       
    83               <string>symbian2</string>
       
    84             </a>
       
    85           </choices>
       
    86         </hudson.model.ChoiceParameterDefinition>
       
    87         <hudson.model.StringParameterDefinition>
       
    88           <name>TARGET</name>
       
    89           <description>Comma separated list of target(s) to build. Building armv5 targets requires RVCT arm compiler installed.
       
    90 &lt;br&gt;&lt;br&gt;
       
    91 &lt;li&gt;winscw_udeb.whatlog
       
    92 &lt;li&gt;winscw_udeb.whatlog, armv5_urel.whatlog
       
    93 &lt;li&gt;armv5.whatlog,winscw.whatlog</description>
       
    94           <defaultValue>winscw_udeb.whatlog</defaultValue>
       
    95         </hudson.model.StringParameterDefinition>
       
    96         <hudson.model.ChoiceParameterDefinition>
       
    97           <name>FBF_REV</name>
       
    98           <description>The tagged version of the FBF (Helium) to use to build the Platform.
       
    99 &lt;li&gt;tip - is the latest revision from the web
       
   100 &lt;br&gt;&lt;br&gt;
       
   101 &lt;i&gt;Its recommended to use the revision that matches the build_BOM.zip downloaded&lt;/i&gt;
       
   102 </description>
       
   103           <choices class="java.util.Arrays$ArrayList">
       
   104             <a class="string-array">
       
   105               <string>tip</string>
       
   106               <string>PDK_3.0.b</string>
       
   107               <string>PDK_3.0.a</string>
       
   108               <string>PDK_2.0.0</string>
       
   109             </a>
       
   110           </choices>
       
   111         </hudson.model.ChoiceParameterDefinition>
       
   112       </parameterDefinitions>
       
   113     </hudson.model.ParametersDefinitionProperty>
       
   114   </properties>
       
   115   <scm class="hudson.scm.NullSCM"/>
       
   116   <canRoam>true</canRoam>
       
   117   <disabled>false</disabled>
       
   118   <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
       
   119   <triggers class="vector"/>
       
   120   <concurrentBuild>true</concurrentBuild>
       
   121   <builders>
       
   122     <hudson.tasks.BatchFile>
       
   123       <command>%BUILD_DRIVE%
       
   124 cd\
       
   125 rmdir /q/s sf-bootstrap
       
   126 mkdir sf-bootstrap
       
   127 cd sf-bootstrap
       
   128 hg clone http://developer.symbian.org/oss/FCL/interim/fbf/bootstrap
       
   129 cd bootstrap
       
   130 hlm -f bootstrap.xml -Dsf.project.repo=http://developer.symbian.org/oss/FCL/interim/fbf/projects/platforms -Dsf.config.repo=http://developer.symbian.org/oss/FCL/interim/fbf/configs/default -Dsf.target.dir=%BUILD_DRIVE%\maintools_%JOB_NAME%.%BUILD_NUMBER% -Dsf.config.rev=%FBF_REV% -Dsf.project.rev=%FBF_REV%</command>
       
   131     </hudson.tasks.BatchFile>
       
   132     <hudson.tasks.BatchFile>
       
   133       <command>%BUILD_DRIVE%
       
   134 cd\
       
   135 set PROJECT=single
       
   136 set TOOLS_BASELINE_ENABLE=true
       
   137 set TOOLS_CONFIG=tools_rel.whatlog,tools2_rel.whatlog
       
   138 IF %SPLIT_BUILD% == true set PROJECT=split
       
   139 IF %REBUILD_TOOLS% == true set TOOLS_BASELINE_ENABLE=false
       
   140 IF %REBUILD_TOOLS% == false set TOOLS_CONFIG=tools2_rel.whatlog
       
   141 cd %BUILD_DRIVE%\maintools_%JOB_NAME%.%BUILD_NUMBER%\sf-config
       
   142 hlm sf-prep -Dbuild.drive=%SUBST_DRIVE% -Dsf.spec.job.number=%JOB_NAME%.%BUILD_NUMBER% -Dsf.spec.job.codeline=&quot;%SRC_LOCATION%&quot; -Dsf.project.location=%BUILD_DRIVE%\maintools_%JOB_NAME%.%BUILD_NUMBER%\build\config\%PLATFORM%\%PROJECT% -Dsf.spec.splitbuild=%SPLIT_BUILD% -Dsf.spec.sbs.config=&quot;%TARGET%&quot; -Dsf.spec.baseline.enable=%TOOLS_BASELINE_ENABLE% -Dsf.spec.sbs.tools.config=&quot;%TOOLS_CONFIG%&quot; -Dsf.spec.job.rootdir=%BUILD_DRIVE% -Dsf.suppress.buildenv.check=true -Dsf.suppress.drive.space.check=true -Dsf.spec.logs.raptorfilter.enable=false</command>
       
   143     </hudson.tasks.BatchFile>
       
   144     <hudson.tasks.BatchFile>
       
   145       <command>%SUBST_DRIVE%
       
   146 cd\
       
   147 mkdir tmp
       
   148 copy %RELEASE_ZIP_LOCATION%\build_BOM.zip %SUBST_DRIVE%\tmp
       
   149 copy %RELEASE_ZIP_LOCATION%\binaries_epoc_additional.zip %SUBST_DRIVE%\tmp
       
   150 rem copy %RELEASE_ZIP_LOCATION%\binaries_bldmefirst.zip %SUBST_DRIVE%\tmp
       
   151 copy %RELEASE_ZIP_LOCATION%\*_rndonly*.zip %SUBST_DRIVE%\tmp
       
   152 copy %RELEASE_ZIP_LOCATION%\bin_redist*.zip %SUBST_DRIVE%\tmp
       
   153 IF %SRC_LOCATION% == BOM goto TOOLSZIP
       
   154 copy %RELEASE_ZIP_LOCATION%\src_*.zip %SUBST_DRIVE%\tmp
       
   155 :TOOLSZIP
       
   156 IF %REBUILD_TOOLS% == true goto UNZIP
       
   157 copy %RELEASE_ZIP_LOCATION%\binaries_epoc32_stlport.zip %SUBST_DRIVE%\tmp
       
   158 copy %RELEASE_ZIP_LOCATION%\tools_*.zip %SUBST_DRIVE%\tmp
       
   159 :UNZIP
       
   160 %SUBST_DRIVE%
       
   161 cd %SUBST_DRIVE%\tmp
       
   162 7z x *.zip -o.. -y
       
   163 cd..
       
   164 7z x *.zip -y
       
   165 del *.zip
       
   166 exit 0</command>
       
   167     </hudson.tasks.BatchFile>
       
   168     <hudson.tasks.BatchFile>
       
   169       <command>IF NOT %SRC_LOCATION% == BOM exit
       
   170 %SUBST_DRIVE%
       
   171 cd \
       
   172 @ECHO OFF
       
   173 IF NOT &quot;%HG_USERNAME%&quot; == &quot;&quot; GOTO USERNAME_OK
       
   174 echo &quot;You must enter a UserName and Password when using the BOM option&quot;
       
   175 exit 1
       
   176 :USERNAME_OK
       
   177 IF NOT &quot;%HG_PASSWORD%&quot; == &quot;&quot; GOTO HG_OK
       
   178 echo &quot;You must enter a UserName and Password when using the BOM option&quot;
       
   179 exit 1
       
   180 :HG_OK
       
   181 cd \tmp
       
   182 hg clone http://developer.symbian.org/oss/MCL/utilities
       
   183 cd\
       
   184 \tmp\utilities\clone_packages\clone_all_packages.pl -packagelist \build_info\logs\BOM\build-info.xml -username %HG_USERNAME% -password %HG_PASSWORD% -retries=7</command>
       
   185     </hudson.tasks.BatchFile>
       
   186     <hudson.tasks.BatchFile>
       
   187       <command>%BUILD_DRIVE%
       
   188 cd\
       
   189 set PROJECT=single
       
   190 set TOOLS_BASELINE_ENABLE=true
       
   191 set TOOLS_CONFIG=tools_rel.whatlog,tools2_rel.whatlog
       
   192 IF %SPLIT_BUILD% == true set PROJECT=split
       
   193 IF %REBUILD_TOOLS% == true set TOOLS_BASELINE_ENABLE=false
       
   194 IF %REBUILD_TOOLS% == false set TOOLS_CONFIG=tools2_rel.whatlog
       
   195 cd %BUILD_DRIVE%\maintools_%JOB_NAME%.%BUILD_NUMBER%\sf-config
       
   196 hlm sf-build-noprep -Dbuild.drive=%SUBST_DRIVE% -Dsf.spec.job.number=%JOB_NAME%.%BUILD_NUMBER% -Dsf.spec.job.codeline=&quot;%SRC_LOCATION%&quot; -Dsf.project.location=%BUILD_DRIVE%\maintools_%JOB_NAME%.%BUILD_NUMBER%\build\config\%PLATFORM%\%PROJECT% -Dsf.spec.splitbuild=%SPLIT_BUILD% -Dsf.spec.sbs.config=&quot;%TARGET%&quot; -Dsf.spec.baseline.enable=%TOOLS_BASELINE_ENABLE% -Dsf.spec.sbs.tools.config=&quot;%TOOLS_CONFIG%&quot; -Dsf.spec.job.rootdir=%BUILD_DRIVE% -Dsf.suppress.buildenv.check=true -Dsf.suppress.drive.space.check=true -Dsf.spec.logs.raptorfilter.enable=false -Dsf.spec.publish.enable=false -Dsf.spec.package.bin.enable=false -Dsf.spec.test.sendpkg.enable=false</command>
       
   197     </hudson.tasks.BatchFile>
       
   198   </builders>
       
   199   <publishers/>
       
   200   <buildWrappers/>
       
   201   <customWorkspace>D:\</customWorkspace>
       
   202 </project>