author | Bob Rosenberg <bob.rosenberg@nokia.com> |
Fri, 27 Aug 2010 14:50:55 +0100 | |
changeset 638 | 024a31e39848 |
parent 587 | 85df38eb4012 |
child 628 | 7c4a911dc066 |
permissions | -rw-r--r-- |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
1 |
<?xml version="1.0"?> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
2 |
<!-- |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
3 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
4 |
Name : qt.ant.xml |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
5 |
Part of : Helium |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
6 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
7 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
8 |
All rights reserved. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
9 |
This component and the accompanying materials are made available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
10 |
under the terms of the License "Eclipse Public License v1.0" |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
11 |
which accompanies this distribution, and is available |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
12 |
at the URL "http://www.eclipse.org/legal/epl-v10.html". |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
13 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
14 |
Initial Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
15 |
Nokia Corporation - initial contribution. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
16 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
17 |
Contributors: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
18 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
19 |
Description: |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
20 |
|
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
21 |
============================================================================ |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
22 |
--> |
217 | 23 |
<!--* @package compile --> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
24 |
<project name="qt" xmlns:hlm="http://www.nokia.com/helium"> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
25 |
<description> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
26 |
Qt build support. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
27 |
</description> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
28 |
|
217 | 29 |
<!-- The location of the ant template to run qmake commands. |
30 |
@type string |
|
31 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
32 |
<property name="qt.qmake.ant.template" location="${helium.dir}/tools/compile/qt/templates/run-qmake.ant.xml.ftl" /> |
217 | 33 |
<!-- The location of the makefile template to run qmake commands. |
34 |
@type string |
|
35 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
36 |
<property name="qt.qmake.makefile.template" location="${helium.dir}/tools/compile/qt/templates/run-qmake.mk.ftl" /> |
217 | 37 |
<!-- The command lines argument passed to the configure tool. |
38 |
@type string |
|
39 |
--> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
40 |
<property name="qt.configure.args" value="-platform win32-mwc -xplatform symbian-abld -confirm-license"/> |
217 | 41 |
<!-- Setting default arguments to qMake command line, if the qmakeArgs is defined from the system definition file then those arguments are discarded. |
42 |
@type string |
|
43 |
--> |
|
179 | 44 |
<property name="qt.qmake.default.args" value="-r"/> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
45 |
|
587 | 46 |
<!--* @property qmake.enabled |
47 |
Enables the run of qMake over a build configuration so bld.inf and mmps are generated for the build. |
|
48 |
@type boolean |
|
49 |
@scope public |
|
50 |
--> |
|
51 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
52 |
<!-- |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
53 |
Executing qmake on all Qt components defined under the system definition file. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
54 |
It must use schema v1.5.0+, and Qt unit must define a proFile attibute. |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
55 |
--> |
587 | 56 |
<target name="run-qmake"> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
57 |
<if> |
587 | 58 |
<istrue value="${qmake.enabled}" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
59 |
<then> |
587 | 60 |
<!-- Generating the build steps from the sysdef information --> |
61 |
<hlm:generate-layers /> |
|
62 |
<if> |
|
63 |
<or> |
|
64 |
<equals arg1="${build.system}" arg2="ec-helium" /> |
|
65 |
<equals arg1="${build.system}" arg2="sbs-ec" /> |
|
66 |
</or> |
|
67 |
<then> |
|
68 |
<fmpp sourceFile="${qt.qmake.makefile.template}" |
|
69 |
outputFile="${temp.build.dir}/run-qmake-${sysdef.configuration}.mk"> |
|
70 |
<data expandProperties="yes"> |
|
71 |
data: xml(${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml) |
|
72 |
ant: antProperties() |
|
73 |
</data> |
|
74 |
</fmpp> |
|
75 |
<hlm:assertFileExists file="${temp.build.dir}/run-qmake-${sysdef.configuration}.mk" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
76 |
|
587 | 77 |
<!-- Running the qmake steps --> |
78 |
<hlm:emakeMacro name="run-qmake-${sysdef.configuration}" makefile="${temp.build.dir}/run-qmake-${sysdef.configuration}.mk" |
|
79 |
target="all" dir="${build.drive}/" log="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" |
|
80 |
annodetail="basic,history,file,waiting" |
|
81 |
failonerror="false" |
|
82 |
phase="compile"/> |
|
83 |
<hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" /> |
|
84 |
</then> |
|
85 |
<else> |
|
86 |
<fmpp sourceFile="${qt.qmake.ant.template}" |
|
87 |
outputFile="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml"> |
|
88 |
<data expandProperties="yes"> |
|
89 |
data: xml(${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml) |
|
90 |
ant: antProperties() |
|
91 |
</data> |
|
92 |
</fmpp> |
|
93 |
<hlm:assertFileExists file="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml" /> |
|
94 |
||
95 |
<!-- Running the qmake steps --> |
|
96 |
<ant antfile="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml" dir="${build.drive}/" |
|
97 |
output="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log"/> |
|
98 |
<hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" /> |
|
99 |
</else> |
|
100 |
</if> |
|
101 |
<copy file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" tofile="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt"> |
|
102 |
<filterchain> |
|
103 |
<linecontainsregexp> |
|
104 |
<regexp pattern="Generating"/> |
|
105 |
</linecontainsregexp> |
|
106 |
</filterchain> |
|
107 |
</copy> |
|
108 |
<replaceregexp file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt" match="^\s*(?:\[exec\])?\s*Generating[^/\\]*." replace="" byline="true"/> |
|
109 |
<hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt"/> |
|
110 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
|
111 |
<hlm:textmetadatainput> |
|
112 |
<fileset casesensitive="false" file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" /> |
|
113 |
<metadatafilterset refid="filterset.qmake" /> |
|
114 |
</hlm:textmetadatainput> |
|
115 |
</hlm:metadatarecord> |
|
116 |
<hlm:signalMacro logfile="${build.id}_${sysdef.configuration}.qmake.log" |
|
117 |
signal.input="signalRunQMakeInput" phase="compile"/> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
118 |
</then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
119 |
<else> |
587 | 120 |
<echo>Skipping qmake step, because qmake.enabled is not set to true.</echo> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
121 |
</else> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
122 |
</if> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
123 |
</target> |
587 | 124 |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
125 |
</project> |