common/templates/run-qmake.ant.xml.ftl
author Simon Howkins <simonh@symbian.org>
Mon, 02 Aug 2010 17:40:29 +0100
changeset 1200 17aa569095fc
parent 1186 8174fb206005
child 1201 7ff3bbb2e9d9
permissions -rw-r--r--
Regularised whitespace.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     1
<?xml version="1.0"?>
1120
794ddd7e666a Modified run-qmake template to make it work in the context of smoketest exec
brendand@symbian.org
parents: 1052
diff changeset
     2
<project name="run-qmake" default="all">
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     3
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     4
    <target name="all">
1023
ebfa9f019473 Build qmake in .ftl, prior to running on all .pro files
Shabe Razvi <shaber@symbian.org>
parents: 1022
diff changeset
     5
1106
232bce64d370 Build Qmake only if Qt package is being built
Shabe Razvi <shaber@symbian.org>
parents: 1052
diff changeset
     6
    <!-- Qmake needs to have been built in this environment, to generate bld.infs to built Qt itself.  
232bce64d370 Build Qmake only if Qt package is being built
Shabe Razvi <shaber@symbian.org>
parents: 1052
diff changeset
     7
         Qmake.exe only exists in the source tree if its been built  -->
232bce64d370 Build Qmake only if Qt package is being built
Shabe Razvi <shaber@symbian.org>
parents: 1052
diff changeset
     8
1200
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
     9
        <if><not><available file="${r'$'}{build.drive}/sf/mw/qt/bin/qmake.exe" type="file"/></not>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    10
            <then>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    11
                <sequential>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    12
  <#list data["//unit/@bldFile/.."] as unit>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    13
      <#if (unit.@bldFile=="/sf/mw/qt/src/s60installs/deviceconfiguration")>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    14
                    <echo>INFO: Building and configuring qmake for ${unit.@bldFile}</echo>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    15
                    <if>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    16
                        <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    17
                        <then>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    18
                            <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    19
                                <arg value="/C"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    20
                                <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qmake.log"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    21
                            </exec>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    22
                        </then>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    23
                        <else>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    24
                           <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    25
                           <fail message="Unit /sf/mw/qt/src/s60installs/deviceconfiguration is in the model, but not present on disk. Cannot build qmake!"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    26
                        </else>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    27
                    </if>          
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    28
      </#if>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    29
  </#list>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    30
                </sequential>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    31
            </then>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    32
        </if>
1025
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    33
1200
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    34
        <sequential>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    35
  <#list data["//unit/@bldFile/.."] as unit>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    36
      <#if (unit.@bldFile=="/sf/mw/qtextensions/group")>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    37
            <echo>INFO: Configuring qtextensions for ${unit.@bldFile}</echo>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    38
            <if>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    39
                <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    40
                <then>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    41
                    <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    42
                        <arg value="/C"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    43
                        <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qtextensions.log"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    44
                    </exec>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    45
                </then>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    46
                <else>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    47
                    <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    48
                </else>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    49
            </if>          
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    50
      </#if>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    51
  </#list>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    52
        </sequential>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    53
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    54
        <sequential>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    55
  <#list data["//unit/@proFile/.."] as unit>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    56
      <#if (unit.@proFile=="hb.pro")>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    57
            <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    58
            <if>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    59
                <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    60
                <then>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    61
                    <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_hb_configure.log">
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    62
                        <arg value="/C"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    63
                        <arg value="python"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    64
                        <arg line ="configure.py --qmake-spec=symbian-sbsv2 --platform=symbian --qmake-options=MMP_RULES+=EXPORTUNFROZEN CONFIG+=sgimagelite_support DEFINES+=HB_EFFECTS_OPENVG DEFINES+=HB_FILTER_EFFECTS"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    65
                    </exec>
1052
401ecaf0a844 Update run-qmake template to add make install step to configure Orbit
Shabe Razvi <shaber@symbian.org>
parents: 1049
diff changeset
    66
                        
1200
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    67
                    <echo>INFO: Exporting Orbit mkspecs to epoc32\tools for ${unit.@bldFile}/${unit.@proFile}</echo>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    68
                    <echo>INFO: Running Orbit theme installer, make install step</echo>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    69
                    <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_install_hb_configure.log">
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    70
                        <arg value="/C"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    71
                        <arg value="make install"/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    72
                    </exec>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    73
                </then>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    74
                <else>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    75
                    <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    76
                </else>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    77
            </if>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    78
      </#if>
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    79
  </#list>
1018
334e3f2f79e5 Update run-qmake template to run Orbit configure.py first, followed by mkspec export. This should allow hb SYSTEMINCLUDEs for subsequently processed .pro files.
Shabe Razvi <shaber@symbian.org>
parents: 1016
diff changeset
    80
1200
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    81
        </sequential>
979
6c90564578a6 Update qmake template to run Orbit's configure.py tool
Shabe Razvi <shaber@symbian.org>
parents: 971
diff changeset
    82
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    83
        <parallel threadCount="${r'$'}{number.of.threads}">
1200
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    84
  <#list data["//unit/@proFile/.."] as unit>
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    85
            <sequential>
1200
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    86
      <#if (unit.@proFile!="hb.pro")>
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    87
                <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    88
                <if>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    89
                    <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    90
                    <then>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    91
                        <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    92
                            <arg value="/C"/>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    93
                            <arg value="qmake"/>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    94
                            <!-- arg value="-listgen"/ -->
1200
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    95
          <#if unit.@qmakeArgs[0]??>
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    96
                            <arg line="${unit.@qmakeArgs?xml}"/>
1200
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    97
          <#else>
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    98
                            <arg line="${ant['qt.qmake.default.args']?xml}"/>
1200
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
    99
          </#if>
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   100
                            <arg value="${unit.@proFile?xml}"/>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   101
                        </exec>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   102
                    </then>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   103
                    <else>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   104
                       <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   105
                    </else>
1018
334e3f2f79e5 Update run-qmake template to run Orbit configure.py first, followed by mkspec export. This should allow hb SYSTEMINCLUDEs for subsequently processed .pro files.
Shabe Razvi <shaber@symbian.org>
parents: 1016
diff changeset
   106
                </if>          
1200
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
   107
      </#if>
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   108
            </sequential>
1200
17aa569095fc Regularised whitespace.
Simon Howkins <simonh@symbian.org>
parents: 1186
diff changeset
   109
  </#list>
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   110
        </parallel>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   111
    </target>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   112
    
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   113
</project>