common/templates/truclean.ant.xml.ftl
author Brendan Donegan <brendand@symbian.org>
Mon, 21 Jun 2010 11:55:21 +0100
changeset 1130 d8f6c4df6e0a
parent 1054 ce815f03e964
permissions -rw-r--r--
Try different approach to qmake
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
240
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     1
<?xml version="1.0"?>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     2
<project name="SF-TRUCLEAN" default="all" xmlns:hlm="http://www.nokia.com/helium">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     3
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     4
<#assign target_depends=""/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     5
<#assign count=0/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     6
<#assign dollar="$"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     7
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
     8
<#list data as pkg_detail>
370
6a77c1534c7f Truclean should not be performed if the sources.csv line doesn't have a sysdef field
Dario Sestito <darios@symbian.org>
parents: 242
diff changeset
     9
  <#if pkg_detail.sysdef != "">
6a77c1534c7f Truclean should not be performed if the sources.csv line doesn't have a sysdef field
Dario Sestito <darios@symbian.org>
parents: 242
diff changeset
    10
  
240
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    11
<target name="sf-truclean-${count}">
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    12
  <sequential>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    13
    <propertyregex override="yes" property="package"  input="${pkg_detail.dst}" regexp=".*sf[\\\/]([^\\^\/]+)[\\\/]([^\\^\/]+)" replace="\1/\2"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    14
    <echo message="Calling truclean script for package ${dollar}{package}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    15
      <exec executable="perl" dir="${ant['build.drive']}/" failonerror="false" output="${ant['build.log.dir']}/truclean.log">
1054
ce815f03e964 Pick correct truclean.pl from the myriad of available ones
Shabe Razvi <shaber@symbian.org>
parents: 1053
diff changeset
    16
        <arg value="${ant['build.drive']}/utilities/uh_parser/truclean.pl"/>
240
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    17
        <arg value="--packageexpr=${dollar}{package}"/>
242
51e429810aba Modularized Raptor parser scripts
Dario Sestito <darios@symbian.org>
parents: 240
diff changeset
    18
        <arg value="--releaseablesdir=${ant['build.drive']}/build_info/logs/releaseables"/>
240
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    19
      </exec>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    20
  </sequential>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    21
</target>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    22
  
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    23
  <#if (count==0)>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    24
    <#assign target_depends="${target_depends}"+"sf-truclean-${count}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    25
  </#if>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    26
  <#if (count>0)>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    27
    <#assign target_depends="${target_depends}"+","+"sf-truclean-${count}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    28
  </#if>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    29
  <#assign count=count+1/>
370
6a77c1534c7f Truclean should not be performed if the sources.csv line doesn't have a sysdef field
Dario Sestito <darios@symbian.org>
parents: 242
diff changeset
    30
6a77c1534c7f Truclean should not be performed if the sources.csv line doesn't have a sysdef field
Dario Sestito <darios@symbian.org>
parents: 242
diff changeset
    31
  </#if>
240
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    32
</#list>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    33
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    34
<target name="all" depends="${target_depends}"/>
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    35
5705f5c8f10d Adding truclean step to the package build
Dario Sestito <darios@symbian.org>
parents:
diff changeset
    36
</project>