author | Shabe Razvi <shaber@symbian.org> |
Thu, 15 Apr 2010 16:54:31 +0100 | |
changeset 971 | 35d8126bcf87 |
child 979 | 6c90564578a6 |
permissions | -rw-r--r-- |
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"> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
5 |
<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
|
6 |
<#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
|
7 |
<sequential> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
8 |
<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
|
9 |
<if> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
10 |
<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
|
11 |
<then> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
12 |
<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
|
13 |
<arg value="/C"/> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
14 |
<arg value="qmake"/> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
15 |
<!-- arg value="-listgen"/ --> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
16 |
<#if unit.@qmakeArgs[0]??> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
17 |
<arg line="${unit.@qmakeArgs?xml}"/> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
18 |
<#else> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
19 |
<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
|
20 |
</#if> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
21 |
<arg value="${unit.@proFile?xml}"/> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
22 |
</exec> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
23 |
</then> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
24 |
<else> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
25 |
<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
|
26 |
</else> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
27 |
</if> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
28 |
</sequential> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
29 |
</#list> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
30 |
</parallel> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
31 |
</target> |
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
32 |
|
35d8126bcf87
Use qt.qmake.ant.template property for custom qmake template
Shabe Razvi <shaber@symbian.org>
parents:
diff
changeset
|
33 |
</project> |