common/templates/run-qmake.ant.xml.ftl
author Simon Howkins <simonh@symbian.org>
Fri, 14 May 2010 15:26:42 +0100
changeset 1031 6660c0312c89
parent 1025 a370015021c1
child 1047 ee03efed9e3c
permissions -rw-r--r--
Bug 2670: binaries_epoc.zip contains megabytes of useless Emulator files Exclude files in \epoc32\data\media from release zip.
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"?>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     2
<project name="run-qmake-${ant['sysdef.configuration']}" default="all">
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
ebfa9f019473 Build qmake in .ftl, prior to running on all .pro files
Shabe Razvi <shaber@symbian.org>
parents: 1022
diff changeset
     6
	        <sequential>
ebfa9f019473 Build qmake in .ftl, prior to running on all .pro files
Shabe Razvi <shaber@symbian.org>
parents: 1022
diff changeset
     7
ebfa9f019473 Build qmake in .ftl, prior to running on all .pro files
Shabe Razvi <shaber@symbian.org>
parents: 1022
diff changeset
     8
	<#list data["//unit/@bldFile/.."] as unit>
1024
70ffcd2e5da9 Correct location of Qt deviceconfiguration
Shabe Razvi <shaber@symbian.org>
parents: 1023
diff changeset
     9
          <#if (unit.@bldFile=="/sf/mw/qt/src/s60installs/deviceconfiguration")>
1025
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    10
                <echo>INFO: Building and configuring qmake for ${unit.@bldFile}</echo>
1022
b89c1ad56824 Run qmake on Qt package before Orbit
Shabe Razvi <shaber@symbian.org>
parents: 1018
diff changeset
    11
                <if>
1024
70ffcd2e5da9 Correct location of Qt deviceconfiguration
Shabe Razvi <shaber@symbian.org>
parents: 1023
diff changeset
    12
                    <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
1022
b89c1ad56824 Run qmake on Qt package before Orbit
Shabe Razvi <shaber@symbian.org>
parents: 1018
diff changeset
    13
                    <then>
1024
70ffcd2e5da9 Correct location of Qt deviceconfiguration
Shabe Razvi <shaber@symbian.org>
parents: 1023
diff changeset
    14
                        <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
1022
b89c1ad56824 Run qmake on Qt package before Orbit
Shabe Razvi <shaber@symbian.org>
parents: 1018
diff changeset
    15
                            <arg value="/C"/>
1023
ebfa9f019473 Build qmake in .ftl, prior to running on all .pro files
Shabe Razvi <shaber@symbian.org>
parents: 1022
diff changeset
    16
                            <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qmake.log"/>
1022
b89c1ad56824 Run qmake on Qt package before Orbit
Shabe Razvi <shaber@symbian.org>
parents: 1018
diff changeset
    17
                        </exec>
b89c1ad56824 Run qmake on Qt package before Orbit
Shabe Razvi <shaber@symbian.org>
parents: 1018
diff changeset
    18
                    </then>
b89c1ad56824 Run qmake on Qt package before Orbit
Shabe Razvi <shaber@symbian.org>
parents: 1018
diff changeset
    19
                    <else>
1024
70ffcd2e5da9 Correct location of Qt deviceconfiguration
Shabe Razvi <shaber@symbian.org>
parents: 1023
diff changeset
    20
                       <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
70ffcd2e5da9 Correct location of Qt deviceconfiguration
Shabe Razvi <shaber@symbian.org>
parents: 1023
diff changeset
    21
                       <fail message="Unit /sf/mw/qt/src/s60installs/deviceconfiguration is in the model, but not present on disk. Cannot build qmake!"/>
1022
b89c1ad56824 Run qmake on Qt package before Orbit
Shabe Razvi <shaber@symbian.org>
parents: 1018
diff changeset
    22
                    </else>
b89c1ad56824 Run qmake on Qt package before Orbit
Shabe Razvi <shaber@symbian.org>
parents: 1018
diff changeset
    23
                </if>          
1023
ebfa9f019473 Build qmake in .ftl, prior to running on all .pro files
Shabe Razvi <shaber@symbian.org>
parents: 1022
diff changeset
    24
	      </#if>
ebfa9f019473 Build qmake in .ftl, prior to running on all .pro files
Shabe Razvi <shaber@symbian.org>
parents: 1022
diff changeset
    25
    </#list>			
ebfa9f019473 Build qmake in .ftl, prior to running on all .pro files
Shabe Razvi <shaber@symbian.org>
parents: 1022
diff changeset
    26
			</sequential>
1025
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    27
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    28
	        <sequential>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    29
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    30
	<#list data["//unit/@bldFile/.."] as unit>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    31
          <#if (unit.@bldFile=="/sf/mw/qtextensions/group")>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    32
                <echo>INFO: Configuring qtextensions for ${unit.@bldFile}</echo>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    33
                <if>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    34
                    <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    35
                    <then>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    36
                        <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    37
                            <arg value="/C"/>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    38
                            <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qtextensions.log"/>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    39
                        </exec>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    40
                    </then>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    41
                    <else>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    42
                       <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    43
                    </else>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    44
                </if>          
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    45
	      </#if>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    46
    </#list>			
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    47
			</sequential>
a370015021c1 Add explicit qtextensions configuration step
Shabe Razvi <shaber@symbian.org>
parents: 1024
diff changeset
    48
			
1022
b89c1ad56824 Run qmake on Qt package before Orbit
Shabe Razvi <shaber@symbian.org>
parents: 1018
diff changeset
    49
            <sequential>
b89c1ad56824 Run qmake on Qt package before Orbit
Shabe Razvi <shaber@symbian.org>
parents: 1018
diff changeset
    50
    <#list data["//unit/@proFile/.."] as unit>
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
    51
          <#if (unit.@proFile=="hb.pro")>
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
    52
                <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
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
    53
                <if>
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
    54
                    <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
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
    55
                    <then>
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
    56
                        <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
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
    57
                            <arg value="/C"/>
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
    58
                            <arg value="python"/>
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
    59
                            <arg line ="configure.py --qmake-bin=\epoc32\tools\qmake.bat --qmake-spec=symbian-sbsv2 --platform=symbian --qmake-options=MMP_RULES+=EXPORTUNFROZEN"/>
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
    60
                        </exec>
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
    61
                    </then>
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
    62
                    <else>
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
    63
                       <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
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
    64
                    </else>
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
    65
                </if>
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
    66
                <echo>INFO: Exporting Orbit mkspecs to epoc32\tools for ${unit.@bldFile}/${unit.@proFile}</echo>
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
    67
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
    68
                <copy file="${r'$'}{build.drive}/${unit.@bldFile}/hb_install.prf" todir="${r'$'}{build.drive}/epoc32/tools/qt/mkspecs/features" overwrite="true"/>
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
    69
                <copy file="${r'$'}{build.drive}/${unit.@bldFile}/hb.prf"         todir="${r'$'}{build.drive}/epoc32/tools/qt/mkspecs/features" overwrite="true"/>
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
    70
	  </#if>
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
    71
    </#list>
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
    72
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
    73
            </sequential>
979
6c90564578a6 Update qmake template to run Orbit's configure.py tool
Shabe Razvi <shaber@symbian.org>
parents: 971
diff changeset
    74
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    75
        <parallel threadCount="${r'$'}{number.of.threads}">
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    76
    <#list data["//unit/@proFile/.."] as unit>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    77
            <sequential>
979
6c90564578a6 Update qmake template to run Orbit's configure.py tool
Shabe Razvi <shaber@symbian.org>
parents: 971
diff changeset
    78
6c90564578a6 Update qmake template to run Orbit's configure.py tool
Shabe Razvi <shaber@symbian.org>
parents: 971
diff changeset
    79
          <#if (unit.@proFile!="hb.pro")>
6c90564578a6 Update qmake template to run Orbit's configure.py tool
Shabe Razvi <shaber@symbian.org>
parents: 971
diff changeset
    80
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    81
                <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
    82
                <if>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    83
                    <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
    84
                    <then>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    85
                        <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
    86
                            <arg value="/C"/>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    87
                            <arg value="qmake"/>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    88
                            <!-- arg value="-listgen"/ -->
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    89
                            <#if unit.@qmakeArgs[0]??>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    90
                            <arg line="${unit.@qmakeArgs?xml}"/>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    91
                            <#else>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    92
                            <arg line="${ant['qt.qmake.default.args']?xml}"/>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    93
                            </#if>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    94
                            <arg value="${unit.@proFile?xml}"/>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    95
                        </exec>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    96
                    </then>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    97
                    <else>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    98
                       <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
    99
                    </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
   100
                </if>          
979
6c90564578a6 Update qmake template to run Orbit's configure.py tool
Shabe Razvi <shaber@symbian.org>
parents: 971
diff changeset
   101
	  </#if>
6c90564578a6 Update qmake template to run Orbit's configure.py tool
Shabe Razvi <shaber@symbian.org>
parents: 971
diff changeset
   102
6c90564578a6 Update qmake template to run Orbit's configure.py tool
Shabe Razvi <shaber@symbian.org>
parents: 971
diff changeset
   103
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   104
            </sequential>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   105
    </#list>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   106
        </parallel>
979
6c90564578a6 Update qmake template to run Orbit's configure.py tool
Shabe Razvi <shaber@symbian.org>
parents: 971
diff changeset
   107
971
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   108
    </target>
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   109
    
35d8126bcf87 Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   110
</project>