author | Zheng Shen <zheng.shen@nokia.com> |
Wed, 13 Oct 2010 16:27:55 +0800 | |
changeset 647 | 53d1ab72f5bc |
parent 628 | 7c4a911dc066 |
child 645 | b8d81fa19e7d |
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 |
|
628 | 49 |
@editable required |
587 | 50 |
@scope public |
51 |
--> |
|
52 |
||
628 | 53 |
<!--* @property internal.qmake.enabled |
54 |
To run qmake based targets if qmake.enabled set to true. |
|
55 |
@type boolean |
|
56 |
@scope private |
|
57 |
--> |
|
58 |
||
59 |
<!-- Check, is qmake is enabled --> |
|
60 |
<condition property="internal.qmake.enabled"> |
|
61 |
<istrue value="${qmake.enabled}"/> |
|
62 |
</condition> |
|
63 |
||
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
64 |
<!-- |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
65 |
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
|
66 |
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
|
67 |
--> |
628 | 68 |
<target name="run-qmake" if="internal.qmake.enabled"> |
69 |
<!-- Generating the build steps from the sysdef information --> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
70 |
<if> |
628 | 71 |
<istrue value="${sysdef3.enabled}" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
72 |
<then> |
587 | 73 |
<if> |
628 | 74 |
<isreference refid="sysdef.filters.${sysdef.configuration}" /> |
587 | 75 |
<then> |
628 | 76 |
<hlm:filterSysdef epocroot="${build.drive}/" srcfile="${canonical.sysdef.file}" |
77 |
destfile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml"> |
|
78 |
<filterSet refid="sysdef.filters.${sysdef.configuration}" /> |
|
79 |
</hlm:filterSysdef> |
|
80 |
</then> |
|
81 |
<else> |
|
82 |
<echo message="The sysdef.filters.${sysdef.configuration} sysdefFilterSet is not defined." /> |
|
83 |
<copy file="${canonical.sysdef.file}" |
|
84 |
tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml" /> |
|
85 |
</else> |
|
86 |
</if> |
|
87 |
</then> |
|
88 |
<else> |
|
89 |
<hlm:generate-layers /> |
|
90 |
</else> |
|
91 |
</if> |
|
92 |
<if> |
|
93 |
<or> |
|
94 |
<equals arg1="${build.system}" arg2="ec-helium" /> |
|
95 |
<equals arg1="${build.system}" arg2="sbs-ec" /> |
|
96 |
</or> |
|
97 |
<then> |
|
98 |
<fmpp sourceFile="${qt.qmake.makefile.template}" outputFile="${temp.build.dir}/run-qmake-${sysdef.configuration}.mk"> |
|
99 |
<data expandProperties="yes"> |
|
100 |
data: xml(${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml) |
|
101 |
ant: antProperties() |
|
102 |
</data> |
|
103 |
</fmpp> |
|
104 |
<hlm:assertFileExists file="${temp.build.dir}/run-qmake-${sysdef.configuration}.mk" /> |
|
105 |
<!-- Running the qmake steps --> |
|
106 |
<hlm:emakeMacro name="run-qmake-${sysdef.configuration}" makefile="${temp.build.dir}/run-qmake-${sysdef.configuration}.mk" |
|
587 | 107 |
target="all" dir="${build.drive}/" log="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" |
108 |
annodetail="basic,history,file,waiting" |
|
109 |
failonerror="false" |
|
110 |
phase="compile"/> |
|
628 | 111 |
<hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" /> |
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
112 |
</then> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
113 |
<else> |
628 | 114 |
<fmpp sourceFile="${qt.qmake.ant.template}" outputFile="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml"> |
115 |
<data expandProperties="yes"> |
|
116 |
data: xml(${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml) |
|
117 |
ant: antProperties() |
|
118 |
</data> |
|
119 |
</fmpp> |
|
120 |
<hlm:assertFileExists file="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml" /> |
|
121 |
||
122 |
<!-- Running the qmake steps --> |
|
123 |
<ant antfile="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml" dir="${build.drive}/" |
|
124 |
output="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log"/> |
|
125 |
<hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" /> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
126 |
</else> |
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
127 |
</if> |
628 | 128 |
<copy file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" tofile="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt"> |
129 |
<filterchain> |
|
130 |
<linecontainsregexp> |
|
131 |
<regexp pattern="Generating"/> |
|
132 |
</linecontainsregexp> |
|
133 |
</filterchain> |
|
134 |
</copy> |
|
135 |
<replaceregexp file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt" match="^\s*(?:\[exec\])?\s*Generating[^/\\]*." replace="" byline="true"/> |
|
136 |
<hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt"/> |
|
137 |
<hlm:metadatarecord database="${metadata.dbfile}"> |
|
138 |
<hlm:textmetadatainput> |
|
139 |
<fileset casesensitive="false" file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" /> |
|
140 |
<metadatafilterset refid="filterset.qmake" /> |
|
141 |
</hlm:textmetadatainput> |
|
142 |
</hlm:metadatarecord> |
|
143 |
<hlm:signalMacro logfile="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" |
|
144 |
signal.input="signalRunQMakeInput" phase="compile"/> |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
145 |
</target> |
587 | 146 |
|
1
be27ed110b50
Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff
changeset
|
147 |
</project> |