buildframework/helium/tools/compile/qt/templates/run-qmake.ant.xml.ftl
changeset 587 85df38eb4012
parent 1 be27ed110b50
child 628 7c4a911dc066
equal deleted inserted replaced
217:0f5e3a7fb6af 587:85df38eb4012
       
     1 <#ftl ns_prefixes={"qt":"http://www.nokia.com/qt"}>  
     1 <#--
     2 <#--
     2 ============================================================================ 
     3 ============================================================================ 
     3 Name        : run-qmake.ant.xml.ftl 
     4 Name        : run-qmake.ant.xml.ftl 
     4 Part of     : Helium 
     5 Part of     : Helium 
     5 
     6 
    19 
    20 
    20 ============================================================================
    21 ============================================================================
    21 --> 
    22 --> 
    22 <?xml version="1.0"?>
    23 <?xml version="1.0"?>
    23 <project name="run-qmake-${ant['sysdef.configuration']}" default="all">
    24 <project name="run-qmake-${ant['sysdef.configuration']}" default="all">
    24 
    25     
    25     <target name="all">
    26     <target name="all">
    26         <parallel threadCount="${r'$'}{number.of.threads}">
    27         <parallel threadCount="${r'$'}{number.of.threads}">
    27     <#list data["//unit/@proFile/.."] as unit>
    28     <#list data["//unit/@proFile/.."] + data["//unit/@qt:proFile/.."] as unit>
       
    29         <#assign prefix="qt:" />
       
    30         <#if unit.@proFile[0]??>
       
    31             <#assign prefix="" />
       
    32         </#if>
    28             <sequential>
    33             <sequential>
    29                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
    34                 <echo>Running qmake for ${unit.@bldFile}/${unit['@${prefix}proFile'][0]?xml}</echo>
    30                 <if>
    35                 <if>
    31                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    36                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    32                     <then>
    37                     <then>
    33                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    38                         <exec executable="cmd" osfamily="windows" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    34                             <arg value="/C"/>
    39                             <arg value="/C"/>
    35                             <arg value="qmake"/>
    40                             <arg value="qmake"/>
    36                             <arg value="-listgen"/>
    41                             <arg value="-listgen"/>
    37                             <#if unit.@qmakeArgs[0]??>
    42                             <#if unit['@${prefix}qmakeArgs'][0]??>
    38                             <arg line="${unit.@qmakeArgs?xml}"/>
    43                             <arg line="${unit['@${prefix}qmakeArgs'][0]?xml}"/>
    39                             <#else>
    44                             <#else>
    40                             <arg line="${ant['qt.qmake.default.args']?xml}"/>
    45                             <arg line="${ant['qt.qmake.default.args']?xml}"/>
    41                             </#if>
    46                             </#if>
    42                             <arg value="${unit.@proFile?xml}"/>
    47                             <arg value="${unit['@${prefix}proFile'][0]?xml}"/>
       
    48                         </exec>
       
    49                         <exec osfamily="unix" executable="sh" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
       
    50                             <arg value="${ant['epocroot']}/epoc32/tools/qmake"/>
       
    51                             <arg value="-listgen"/>
       
    52                             <#if unit['@${prefix}qmakeArgs'][0]??>
       
    53                             <arg line="${unit['@${prefix}qmakeArgs'][0]?xml}"/>
       
    54                             <#else>
       
    55                             <arg line="${ant['qt.qmake.default.args']?xml}"/>
       
    56                             </#if>
       
    57                             <arg value="${unit['@${prefix}proFile'][0]?xml}"/>
    43                         </exec>
    58                         </exec>
    44                     </then>
    59                     </then>
    45                     <else>
    60                     <else>
    46                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    61                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    47                     </else>
    62                     </else>