common/build.postbuild.xml
changeset 1037 3011d062ba36
parent 1036 1f465f774089
child 1041 705ebddb2efc
equal deleted inserted replaced
1036:1f465f774089 1037:3011d062ba36
   234                     <then>
   234                     <then>
   235                         <property name="sf.epoc32.exclusions.file" value="${sf.sdk.header.list.file}"/>
   235                         <property name="sf.epoc32.exclusions.file" value="${sf.sdk.header.list.file}"/>
   236                     </then>
   236                     </then>
   237                 </if>
   237                 </if>
   238                 <property name="sf.epoc32.exclusions.file" value="nul:"/>
   238                 <property name="sf.epoc32.exclusions.file" value="nul:"/>
   239                 <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
   239                 <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
   240                     <arg value="a"/>
   240                     <arg value="a"/>
   241                     <arg value="-t${sf.spec.package.zip.format}"/>
   241                     <arg value="-t${sf.spec.package.zip.format}"/>
   242                     <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> <!-- rnd content taken from internal hg repos -->
   242                     <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/> <!-- rnd content taken from internal hg repos -->
   243                     <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   243                     <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   244                     <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> <!-- merged list of prebuilt content such as binaries_prebuilt -->
   244                     <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/> <!-- merged list of prebuilt content such as binaries_prebuilt -->
   259             </sequential>
   259             </sequential>
   260             
   260             
   261             <if>
   261             <if>
   262                 <isset property="sf.sdk.header.list.file"/>
   262                 <isset property="sf.sdk.header.list.file"/>
   263                 <then>
   263                 <then>
   264                     <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_sdk.log">
   264                     <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_sdk.log">
   265                         <arg value="a"/>
   265                         <arg value="a"/>
   266                         <arg value="-t${sf.spec.package.zip.format}"/>
   266                         <arg value="-t${sf.spec.package.zip.format}"/>
   267                         <arg value="-i@${sf.sdk.header.list.file}"/>
   267                         <arg value="-i@${sf.sdk.header.list.file}"/>
   268                         <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   268                         <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   269                         <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   269                         <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   284                     </antcall>
   284                     </antcall>
   285                 </then>
   285                 </then>
   286             </if>
   286             </if>
   287             
   287             
   288             <!-- WinsCW binaries, by udeb/urel/lib -->
   288             <!-- WinsCW binaries, by udeb/urel/lib -->
   289             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw_udeb.log">
   289             <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_udeb.log">
   290                 <arg value="a"/>
   290                 <arg value="a"/>
   291                 <arg value="-t${sf.spec.package.zip.format}"/>
   291                 <arg value="-t${sf.spec.package.zip.format}"/>
   292                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   292                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   293                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   293                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   294                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   294                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   295                 <arg value="-xr!*.sym"/>
   295                 <arg value="-xr!*.sym"/>
   296                 <arg value="-xr!*.lib"/>
   296                 <arg value="-xr!*.lib"/>
   297                 <arg value="${build.drive}/output/zips/release/binaries_winscw_udeb.zip"/>
   297                 <arg value="${build.drive}/output/zips/release/binaries_winscw_udeb.zip"/>
   298                 <arg value="epoc32\release\winscw\udeb"/>
   298                 <arg value="epoc32\release\winscw\udeb"/>
   299             </exec>
   299             </exec>
   300             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw_urel.log">
   300             <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_urel.log">
   301                 <arg value="a"/>
   301                 <arg value="a"/>
   302                 <arg value="-t${sf.spec.package.zip.format}"/>
   302                 <arg value="-t${sf.spec.package.zip.format}"/>
   303                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   303                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   304                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   304                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   305                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   305                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   306                 <arg value="-xr!*.sym"/>
   306                 <arg value="-xr!*.sym"/>
   307                 <arg value="-xr!*.lib"/>
   307                 <arg value="-xr!*.lib"/>
   308                 <arg value="${build.drive}/output/zips/release/binaries_winscw_urel.zip"/>
   308                 <arg value="${build.drive}/output/zips/release/binaries_winscw_urel.zip"/>
   309                 <arg value="epoc32\release\winscw\urel"/>
   309                 <arg value="epoc32\release\winscw\urel"/>
   310             </exec>
   310             </exec>
   311             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_winscw_lib.log">
   311             <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_winscw_lib.log">
   312                 <arg value="a"/>
   312                 <arg value="a"/>
   313                 <arg value="-t${sf.spec.package.zip.format}"/>
   313                 <arg value="-t${sf.spec.package.zip.format}"/>
   314                 <arg value="-ir!epoc32/release/winscw/*.lib"/>
   314                 <arg value="-ir!epoc32/release/winscw/*.lib"/>
   315                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   315                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   316                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   316                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   317                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   317                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   318                 <arg value="${build.drive}/output/zips/release/binaries_winscw_lib.zip"/>
   318                 <arg value="${build.drive}/output/zips/release/binaries_winscw_lib.zip"/>
   319             </exec>
   319             </exec>
   320             
   320             
   321             <!-- ARMv5 binaries, by udeb/urel/lib -->
   321             <!-- ARMv5 binaries, by udeb/urel/lib -->
   322             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5_udeb.log">
   322             <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_udeb.log">
   323                 <arg value="a"/>
   323                 <arg value="a"/>
   324                 <arg value="-t${sf.spec.package.zip.format}"/>
   324                 <arg value="-t${sf.spec.package.zip.format}"/>
   325                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   325                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   326                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   326                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   327                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   327                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   328                 <arg value="-xr!*.sym"/>
   328                 <arg value="-xr!*.sym"/>
   329                 <arg value="${build.drive}/output/zips/release/binaries_armv5_udeb.zip"/>
   329                 <arg value="${build.drive}/output/zips/release/binaries_armv5_udeb.zip"/>
   330                 <arg value="epoc32\release\armv5\udeb"/>
   330                 <arg value="epoc32\release\armv5\udeb"/>
   331             </exec>
   331             </exec>
   332             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5_urel.log">
   332             <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_urel.log">
   333                 <arg value="a"/>
   333                 <arg value="a"/>
   334                 <arg value="-t${sf.spec.package.zip.format}"/>
   334                 <arg value="-t${sf.spec.package.zip.format}"/>
   335                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   335                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   336                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   336                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   337                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   337                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   338                 <arg value="-xr!*.sym"/>
   338                 <arg value="-xr!*.sym"/>
   339                 <arg value="${build.drive}/output/zips/release/binaries_armv5_urel.zip"/>
   339                 <arg value="${build.drive}/output/zips/release/binaries_armv5_urel.zip"/>
   340                 <arg value="epoc32\release\armv5\urel"/>
   340                 <arg value="epoc32\release\armv5\urel"/>
   341             </exec>
   341             </exec>
   342             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_armv5_lib.log">
   342             <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_binaries_armv5_lib.log">
   343                 <arg value="a"/>
   343                 <arg value="a"/>
   344                 <arg value="-t${sf.spec.package.zip.format}"/>
   344                 <arg value="-t${sf.spec.package.zip.format}"/>
   345                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   345                 <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   346                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   346                 <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   347                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   347                 <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   368             <param name="zip.target.name" value="rnd-postbuild" />
   368             <param name="zip.target.name" value="rnd-postbuild" />
   369         </antcall>
   369         </antcall>
   370     </target>
   370     </target>
   371 
   371 
   372     <target name="sf-package-tools" depends="sf-merge-manifest">
   372     <target name="sf-package-tools" depends="sf-merge-manifest">
   373         <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log">
   373         <exec executable="7za" dir="${build.drive}/" output="${build.log.dir}/zip_${build.id}_tools_epoc32.log">
   374             <arg value="a"/>
   374             <arg value="a"/>
   375             <arg value="-t${sf.spec.package.zip.format}"/>
   375             <arg value="-t${sf.spec.package.zip.format}"/>
   376             <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   376             <arg value="-x@${build.log.dir}/rnd_excludefile.txt"/>
   377             <arg value="-x@output/temp_build_files/manifest_excludelist.txt"/>
   377             <arg value="-x@/output/temp_build_files/manifest_excludelist.txt"/>
   378             <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   378             <arg value="-x@${sf.spec.prebuilt.excludelist}"/>
   379             <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/>
   379             <arg value="${build.drive}/output/zips/release/tools_epoc.zip"/>
   380             <arg value="epoc32/tools"/>
   380             <arg value="epoc32/tools"/>
   381             <arg value="epoc32/gcc"/>
   381             <arg value="epoc32/gcc"/>
   382             <arg value="epoc32/gcc_mingw"/>
   382             <arg value="epoc32/gcc_mingw"/>
   402 
   402 
   403     <!-- merge manifests for prebuilt stuff delivered at the start of build process -->
   403     <!-- merge manifests for prebuilt stuff delivered at the start of build process -->
   404     <target name="sf-merge-manifest">
   404     <target name="sf-merge-manifest">
   405       <echo message="INFO Build drive is ${build.drive} "/>
   405       <echo message="INFO Build drive is ${build.drive} "/>
   406       <concat destfile="${build.drive}\output\temp_build_files\manifest_excludelist.txt">
   406       <concat destfile="${build.drive}\output\temp_build_files\manifest_excludelist.txt">
   407         <fileset dir="${build.drive}" includes="*manifest*"/>
   407         <fileset dir="${build.drive}" includes="*manifest*" excludes="manifest_excludelist.txt"/>
   408       </concat>
   408       </concat>
   409        
   409        
   410        <!-- touch file to update/create it in the event that there are no manifest* files available 
   410        <!-- touch file to update/create it in the event that there are no manifest* files available 
   411             as 7z will not be happy being given a non-existent file -->  
   411             as 7z will not be happy being given a non-existent file -->  
   412       <touch file="${build.drive}\output\temp_build_files\manifest_excludelist.txt"/>
   412       <touch file="${build.drive}\output\temp_build_files\manifest_excludelist.txt"/>