1 <?xml version="1.0"?> |
1 <?xml version="1.0"?> |
2 <project name="run-qmake-${ant['sysdef.configuration']}" default="all"> |
2 <project name="run-qmake-${ant['sysdef.configuration']}" default="all"> |
3 |
3 |
4 <target name="all"> |
4 <target name="all"> |
5 <if><available file="${r'$'}{build.drive}/epoc32/tools/qmake.bat" type="file"/> |
5 |
6 <then> |
6 <sequential> |
|
7 |
|
8 <#list data["//unit/@bldFile/.."] as unit> |
|
9 <#if (unit.@bldFile=="/sf/mw/qt/src/s60installs/deviceconfiguration")> |
|
10 <echo>INFO: Building and configuring qmake for ${unit.@bldFile}</echo> |
|
11 <if> |
|
12 <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/> |
|
13 <then> |
|
14 <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false"> |
|
15 <arg value="/C"/> |
|
16 <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qmake.log"/> |
|
17 </exec> |
|
18 </then> |
|
19 <else> |
|
20 <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/> |
|
21 <fail message="Unit /sf/mw/qt/src/s60installs/deviceconfiguration is in the model, but not present on disk. Cannot build qmake!"/> |
|
22 </else> |
|
23 </if> |
|
24 </#if> |
|
25 </#list> |
|
26 </sequential> |
|
27 |
|
28 <sequential> |
|
29 |
|
30 <#list data["//unit/@bldFile/.."] as unit> |
|
31 <#if (unit.@bldFile=="/sf/mw/qtextensions/group")> |
|
32 <echo>INFO: Configuring qtextensions for ${unit.@bldFile}</echo> |
|
33 <if> |
|
34 <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/> |
|
35 <then> |
|
36 <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false"> |
|
37 <arg value="/C"/> |
|
38 <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qtextensions.log"/> |
|
39 </exec> |
|
40 </then> |
|
41 <else> |
|
42 <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/> |
|
43 </else> |
|
44 </if> |
|
45 </#if> |
|
46 </#list> |
|
47 </sequential> |
|
48 |
|
49 <sequential> |
|
50 <#list data["//unit/@proFile/.."] as unit> |
|
51 <#if (unit.@proFile=="hb.pro")> |
|
52 <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo> |
|
53 <if> |
|
54 <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/> |
|
55 <then> |
|
56 <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false"> |
|
57 <arg value="/C"/> |
|
58 <arg value="python"/> |
|
59 <arg line ="configure.py --qmake-bin=\epoc32\tools\qmake.bat --qmake-spec=symbian-sbsv2 --platform=symbian --qmake-options=MMP_RULES+=EXPORTUNFROZEN"/> |
|
60 </exec> |
|
61 </then> |
|
62 <else> |
|
63 <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/> |
|
64 </else> |
|
65 </if> |
|
66 <echo>INFO: Exporting Orbit mkspecs to epoc32\tools for ${unit.@bldFile}/${unit.@proFile}</echo> |
|
67 |
|
68 <copy file="${r'$'}{build.drive}/${unit.@bldFile}/hb_install.prf" todir="${r'$'}{build.drive}/epoc32/tools/qt/mkspecs/features" overwrite="true"/> |
|
69 <copy file="${r'$'}{build.drive}/${unit.@bldFile}/hb.prf" todir="${r'$'}{build.drive}/epoc32/tools/qt/mkspecs/features" overwrite="true"/> |
|
70 </#if> |
|
71 </#list> |
|
72 |
|
73 </sequential> |
7 |
74 |
8 <parallel threadCount="${r'$'}{number.of.threads}"> |
75 <parallel threadCount="${r'$'}{number.of.threads}"> |
9 <#list data["//unit/@proFile/.."] as unit> |
76 <#list data["//unit/@proFile/.."] as unit> |
10 <sequential> |
77 <sequential> |
11 |
78 |