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