source: trunk/qmake/generators/symbian/symmake_abld.cpp

Last change on this file was 847, checked in by Dmitry A. Kuminov, 14 years ago

qmake: Fixed the OS/2 build and the GNUMAKE generator.

  • Property svn:eol-style set to native
File size: 21.4 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
4** All rights reserved.
5** Contact: Nokia Corporation (qt-info@nokia.com)
6**
7** This file is part of the qmake application of the Qt Toolkit.
8**
9** $QT_BEGIN_LICENSE:LGPL$
10** Commercial Usage
11** Licensees holding valid Qt Commercial licenses may use this file in
12** accordance with the Qt Commercial License Agreement provided with the
13** Software or, alternatively, in accordance with the terms contained in
14** a written agreement between you and Nokia.
15**
16** GNU Lesser General Public License Usage
17** Alternatively, this file may be used under the terms of the GNU Lesser
18** General Public License version 2.1 as published by the Free Software
19** Foundation and appearing in the file LICENSE.LGPL included in the
20** packaging of this file. Please review the following information to
21** ensure the GNU Lesser General Public License version 2.1 requirements
22** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
23**
24** In addition, as a special exception, Nokia gives you certain additional
25** rights. These rights are described in the Nokia Qt LGPL Exception
26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
27**
28** GNU General Public License Usage
29** Alternatively, this file may be used under the terms of the GNU
30** General Public License version 3.0 as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL included in the
32** packaging of this file. Please review the following information to
33** ensure the GNU General Public License version 3.0 requirements will be
34** met: http://www.gnu.org/copyleft/gpl.html.
35**
36** If you have questions regarding the use of this file, please contact
37** Nokia at qt-info@nokia.com.
38** $QT_END_LICENSE$
39**
40****************************************************************************/
41
42#include "symmake_abld.h"
43#include "initprojectdeploy_symbian.h"
44
45#include <qstring.h>
46#include <qstringlist.h>
47#include <qdir.h>
48#include <qdatetime.h>
49#include <qdebug.h>
50
51// Included from tools/shared
52#include <symbian/epocroot_p.h>
53
54#define DO_NOTHING_TARGET "do_nothing"
55#define CREATE_TEMPS_TARGET "create_temps"
56#define EXTENSION_CLEAN "extension_clean"
57#define PRE_TARGETDEPS_TARGET "pre_targetdeps"
58#define COMPILER_CLEAN_TARGET "compiler_clean"
59#define FINALIZE_TARGET "finalize"
60#define GENERATED_SOURCES_TARGET "generated_sources"
61#define ALL_SOURCE_DEPS_TARGET "all_source_deps"
62#define DEPLOYMENT_TARGET "deployment"
63#define DEPLOYMENT_CLEAN_TARGET "deployment_clean"
64#define WINSCW_DEPLOYMENT_TARGET "winscw_deployment"
65#define WINSCW_DEPLOYMENT_CLEAN_TARGET "winscw_deployment_clean"
66#define STORE_BUILD_TARGET "store_build"
67
68SymbianAbldMakefileGenerator::SymbianAbldMakefileGenerator() : SymbianMakefileGenerator() { }
69SymbianAbldMakefileGenerator::~SymbianAbldMakefileGenerator() { }
70
71void SymbianAbldMakefileGenerator::writeMkFile(const QString& wrapperFileName, bool deploymentOnly)
72{
73 QFile ft(gnuMakefileName);
74 if (ft.open(QIODevice::WriteOnly)) {
75 generatedFiles << ft.fileName();
76 QTextStream t(&ft);
77
78 t << "# ==============================================================================" << endl;
79 t << "# Generated by qmake (" << qmake_version() << ") (Qt " << QT_VERSION_STR << ") on: ";
80 t << QDateTime::currentDateTime().toString() << endl;
81 t << "# This file is generated by qmake and should not be modified by the" << endl;
82 t << "# user." << endl;
83 t << "# Name : " << gnuMakefileName << endl;
84 t << "# Part of : " << project->values("TARGET").join(" ") << endl;
85 t << "# Description : This file is used to call necessary targets on wrapper makefile" << endl;
86 t << "# during normal Symbian build process." << endl;
87 t << "# Version : " << endl;
88 t << "#" << endl;
89 t << "# ==============================================================================" << "\n" << endl;
90
91 t << endl << endl;
92
93 t << "MAKE = make" << endl;
94 t << endl;
95
96 t << "VISUAL_CFG = RELEASE" << endl;
97 t << "ifeq \"$(CFG)\" \"UDEB\"" << endl;
98 t << "VISUAL_CFG = DEBUG" << endl;
99 t << "endif" << endl;
100 t << endl;
101
102 t << DO_NOTHING_TARGET " :" << endl;
103 t << "\t" << "@rem " DO_NOTHING_TARGET << endl << endl;
104
105 QString buildDeps;
106 QString cleanDeps;
107 QString finalDeps;
108 QString cleanDepsWinscw;
109 QString finalDepsWinscw;
110 QStringList wrapperTargets;
111 if (deploymentOnly) {
112 buildDeps.append(STORE_BUILD_TARGET);
113 cleanDeps.append(DEPLOYMENT_CLEAN_TARGET);
114 cleanDepsWinscw.append(WINSCW_DEPLOYMENT_CLEAN_TARGET " " DEPLOYMENT_CLEAN_TARGET);
115 finalDeps.append(DEPLOYMENT_TARGET);
116 finalDepsWinscw.append(WINSCW_DEPLOYMENT_TARGET " " DEPLOYMENT_TARGET);
117 wrapperTargets << WINSCW_DEPLOYMENT_TARGET
118 << WINSCW_DEPLOYMENT_CLEAN_TARGET
119 << DEPLOYMENT_TARGET
120 << DEPLOYMENT_CLEAN_TARGET
121 << STORE_BUILD_TARGET;
122 } else {
123 buildDeps.append(CREATE_TEMPS_TARGET " " PRE_TARGETDEPS_TARGET " " STORE_BUILD_TARGET);
124 cleanDeps.append(EXTENSION_CLEAN " " DEPLOYMENT_CLEAN_TARGET);
125 cleanDepsWinscw.append(EXTENSION_CLEAN " " WINSCW_DEPLOYMENT_CLEAN_TARGET " " DEPLOYMENT_CLEAN_TARGET);
126 finalDeps.append(FINALIZE_TARGET " " DEPLOYMENT_TARGET);
127 finalDepsWinscw.append(FINALIZE_TARGET " " WINSCW_DEPLOYMENT_TARGET " " DEPLOYMENT_TARGET);
128 wrapperTargets << PRE_TARGETDEPS_TARGET
129 << CREATE_TEMPS_TARGET
130 << EXTENSION_CLEAN
131 << FINALIZE_TARGET
132 << WINSCW_DEPLOYMENT_CLEAN_TARGET
133 << WINSCW_DEPLOYMENT_TARGET
134 << DEPLOYMENT_CLEAN_TARGET
135 << DEPLOYMENT_TARGET
136 << STORE_BUILD_TARGET;
137 }
138
139 t << "MAKMAKE: " << buildDeps << endl << endl;
140 t << "LIB: " << buildDeps << endl << endl;
141 t << "BLD: " << buildDeps << endl << endl;
142 t << "ifeq \"$(PLATFORM)\" \"WINSCW\"" << endl;
143 t << "CLEAN: " << cleanDepsWinscw << endl;
144 t << "else" << endl;
145 t << "CLEAN: " << cleanDeps << endl;
146 t << "endif" << endl << endl;
147 t << "CLEANLIB: " DO_NOTHING_TARGET << endl << endl;
148 t << "RESOURCE: " DO_NOTHING_TARGET << endl << endl;
149 t << "FREEZE: " DO_NOTHING_TARGET << endl << endl;
150 t << "SAVESPACE: " DO_NOTHING_TARGET << endl << endl;
151 t << "RELEASABLES: " DO_NOTHING_TARGET << endl << endl;
152 t << "ifeq \"$(PLATFORM)\" \"WINSCW\"" << endl;
153 t << "FINAL: " << finalDepsWinscw << endl;
154 t << "else" << endl;
155 t << "FINAL: " << finalDeps << endl;
156 t << "endif" << endl << endl;
157
158 QString makefile(Option::fixPathToTargetOS(fileInfo(wrapperFileName).canonicalFilePath()));
159 foreach(QString target, wrapperTargets) {
160 t << target << " : " << makefile << endl;
161 t << "\t-$(MAKE) -f \"" << makefile << "\" " << target << " QT_SIS_TARGET=$(VISUAL_CFG)-$(PLATFORM)" << endl << endl;
162 }
163
164 t << endl;
165 } // if(ft.open(QIODevice::WriteOnly))
166}
167
168void SymbianAbldMakefileGenerator::writeWrapperMakefile(QFile& wrapperFile, bool isPrimaryMakefile)
169{
170 QStringList allPlatforms;
171 foreach(QString platform, project->values("SYMBIAN_PLATFORMS")) {
172 allPlatforms << platform.toLower();
173 }
174
175 QStringList debugPlatforms = allPlatforms;
176 QStringList releasePlatforms = allPlatforms;
177 releasePlatforms.removeAll("winscw"); // No release for emulator
178
179 QString testClause;
180 if (project->isActiveConfig(SYMBIAN_TEST_CONFIG))
181 testClause = QLatin1String(" test");
182 else
183 testClause = QLatin1String("");
184
185 QTextStream t(&wrapperFile);
186
187 MakefileGenerator::writeHeader(t);
188
189 t << "MAKEFILE = " << fileInfo(wrapperFile.fileName()).fileName() << endl;
190 t << "QMAKE = " << var("QMAKE_QMAKE") << endl;
191 t << "DEL_FILE = " << var("QMAKE_DEL_FILE") << endl;
192 t << "DEL_DIR = " << var("QMAKE_DEL_DIR") << endl;
193 t << "MOVE = " << var("QMAKE_MOVE") << endl;
194 t << "CHK_DIR_EXISTS = " << var("QMAKE_CHK_DIR_EXISTS") << endl;
195 t << "MKDIR = " << var("QMAKE_MKDIR") << endl;
196#ifdef Q_OS_WIN32
197 t << "XCOPY = xcopy /d /f /h /r /y /i" << endl;
198 t << "ABLD = ABLD.BAT" << endl;
199#elif defined(Q_OS_MAC)
200 t << "XCOPY = cp -R -v" << endl;
201 t << "ABLD = abld" << endl;
202#else
203 t << "XCOPY = cp -R -u -v" << endl;
204 t << "ABLD = abld" << endl;
205#endif
206 t << "DEBUG_PLATFORMS = " << debugPlatforms.join(" ") << endl;
207 t << "RELEASE_PLATFORMS = " << releasePlatforms.join(" ") << endl;
208 t << "MAKE = make" << endl;
209 t << endl;
210 t << "ifeq (WINS,$(findstring WINS, $(PLATFORM)))" << endl;
211 t << "ZDIR=$(EPOCROOT)" << QDir::toNativeSeparators("epoc32/release/$(PLATFORM)/$(CFG)/z") << endl;
212 t << "else" << endl;
213 t << "ZDIR=$(EPOCROOT)" << QDir::toNativeSeparators("epoc32/data/z") << endl;
214 t << "endif" << endl;
215 t << endl;
216 t << "DEFINES" << '\t' << " = "
217 << varGlue("PRL_EXPORT_DEFINES","-D"," -D"," ")
218 << varGlue("QMAKE_COMPILER_DEFINES", "-D", "-D", " ")
219 << varGlue("DEFINES","-D"," -D","") << endl;
220
221 t << "INCPATH" << '\t' << " = ";
222
223 for (QMap<QString, QStringList>::iterator it = systeminclude.begin(); it != systeminclude.end(); ++it) {
224 QStringList values = it.value();
225 for (int i = 0; i < values.size(); ++i) {
226 t << " -I\"" << values.at(i) << "\"";
227 }
228 }
229 t << endl;
230 t << "first: default" << endl;
231 if (debugPlatforms.contains("winscw"))
232 t << "default: debug-winscw";
233 else if (debugPlatforms.contains("armv5"))
234 t << "default: debug-armv5";
235 else if (debugPlatforms.size())
236 t << "default: debug-" << debugPlatforms.first();
237 else
238 t << "default: all";
239
240 t << endl;
241 if (!isPrimaryMakefile) {
242 t << "all:" << endl;
243 } else {
244 t << "all: debug release" << endl;
245 t << endl;
246
247 QString qmakeCmd = "\t$(QMAKE) \"" + project->projectFile() + "\" " + buildArgs();
248
249 t << "qmake:" << endl;
250 t << qmakeCmd << endl;
251 t << endl;
252
253 t << BLD_INF_FILENAME ": " << project->projectFile() << endl;
254 t << qmakeCmd << endl;
255 t << endl;
256
257 t << "$(ABLD): " BLD_INF_FILENAME << endl;
258 t << "\tbldmake bldfiles" << endl;
259 t << endl;
260
261 QString locFileDep = generateLocFileTarget(t, qmakeCmd);
262
263 t << "debug: " << locFileDep << "$(ABLD)" << endl;
264 foreach(QString item, debugPlatforms) {
265 t << "\t$(ABLD)" << testClause << " build " << item << " udeb" << endl;
266 }
267 t << endl;
268 t << "release: " << locFileDep << "$(ABLD)" << endl;
269 foreach(QString item, releasePlatforms) {
270 t << "\t$(ABLD)" << testClause << " build " << item << " urel" << endl;
271 }
272 t << endl;
273
274 // For more specific builds, targets are in this form: build-platform, e.g. release-armv5
275 foreach(QString item, debugPlatforms) {
276 t << "debug-" << item << ": " << locFileDep << "$(ABLD)" << endl;
277 t << "\t$(ABLD)" << testClause << " build " << item << " udeb" << endl;
278 }
279
280 foreach(QString item, releasePlatforms) {
281 t << "release-" << item << ": " << locFileDep << "$(ABLD)" << endl;
282 t << "\t$(ABLD)" << testClause << " build " << item << " urel" << endl;
283 }
284
285 t << endl;
286 t << "export: $(ABLD)" << endl;
287 t << "\t$(ABLD)" << testClause << " export" << endl;
288 t << endl;
289
290 t << "cleanexport: $(ABLD)" << endl;
291 t << "\t$(ABLD)" << testClause << " cleanexport" << endl;
292 t << endl;
293
294 }
295
296 // pre_targetdeps target depends on:
297 // - all targets specified in PRE_TARGETDEPS
298 // - the GENERATED_SOURCES sources (so that they get generated)
299 // - all dependencies of sources targeted for compilation
300 // (mainly to ensure that any included UNUSED_SOURCES that need to be generated get generated)
301 //
302 // Unfortunately, Symbian build chain doesn't support linking generated objects to target,
303 // so supporting generating sources is the best we can do. This is enough for mocs.
304
305 if (targetType != TypeSubdirs) {
306 writeExtraTargets(t);
307 writeExtraCompilerTargets(t);
308
309 t << CREATE_TEMPS_TARGET ":" << endl;
310 // generate command lines like this ...
311 // -@ if NOT EXIST ".\somedir" mkdir ".\somedir"
312 QStringList dirsToClean;
313 QString dirExists = var("QMAKE_CHK_DIR_EXISTS");
314 QString mkdir = var("QMAKE_MKDIR");
315 for (QMap<QString, QStringList>::iterator it = systeminclude.begin(); it != systeminclude.end(); ++it) {
316 QStringList values = it.value();
317 for (int i = 0; i < values.size(); ++i) {
318 if (values.at(i).endsWith("/" QT_EXTRA_INCLUDE_DIR)) {
319 QString fixedValue(QDir::toNativeSeparators(values.at(i)));
320 dirsToClean << fixedValue;
321 t << "\t-@ " << dirExists << " \"" << fixedValue << "\" "
322 << (isDosLikeShell() ? "" : "|| ")
323 << mkdir << " \"" << fixedValue << "\"" << endl;
324 }
325 }
326 }
327 t << endl;
328
329 // Note: EXTENSION_CLEAN will get called many times when doing reallyclean
330 // This is why the "2> NUL" gets appended to generated clean targets in makefile.cpp.
331 t << EXTENSION_CLEAN ": " COMPILER_CLEAN_TARGET << endl;
332 generateCleanCommands(t, dirsToClean, var("QMAKE_DEL_TREE"), "", "", "");
333 t << endl;
334
335 t << PRE_TARGETDEPS_TARGET ":"
336 << MAKEFILE_DEPENDENCY_SEPARATOR GENERATED_SOURCES_TARGET
337 << MAKEFILE_DEPENDENCY_SEPARATOR ALL_SOURCE_DEPS_TARGET;
338 if (project->values("PRE_TARGETDEPS").size())
339 t << MAKEFILE_DEPENDENCY_SEPARATOR << project->values("PRE_TARGETDEPS").join(MAKEFILE_DEPENDENCY_SEPARATOR);
340 t << endl << endl;
341 t << GENERATED_SOURCES_TARGET ":";
342 if (project->values("GENERATED_SOURCES").size())
343 t << MAKEFILE_DEPENDENCY_SEPARATOR << project->values("GENERATED_SOURCES").join(MAKEFILE_DEPENDENCY_SEPARATOR);
344 t << endl << endl;
345 t << ALL_SOURCE_DEPS_TARGET ":";
346
347 QStringList allDeps;
348 for (QMap<QString, QStringList>::iterator it = sources.begin(); it != sources.end(); ++it) {
349 QString currentSourcePath = it.key();
350 QStringList values = it.value();
351 for (int i = 0; i < values.size(); ++i) {
352 // we need additional check
353 QString sourceFile = currentSourcePath + "/" + values.at(i);
354 QStringList deps = findDependencies(QDir::toNativeSeparators(sourceFile));
355 appendIfnotExist(allDeps, deps);
356 }
357 }
358
359 foreach(QString item, allDeps) {
360 t << MAKEFILE_DEPENDENCY_SEPARATOR << item;
361 }
362 t << endl << endl;
363
364 // Post link operations
365 t << FINALIZE_TARGET ":" << endl;
366 if (!project->isEmpty("QMAKE_POST_LINK")) {
367 t << '\t' << var("QMAKE_POST_LINK");
368 t << endl;
369 }
370 t << endl;
371 } else {
372 QList<MakefileGenerator::SubTarget*> subtargets = findSubDirsSubTargets();
373 writeSubTargets(t, subtargets, SubTargetSkipDefaultVariables | SubTargetSkipDefaultTargets);
374 qDeleteAll(subtargets);
375 }
376
377 // Deploymend targets for both emulator and rom deployment
378 writeDeploymentTargets(t, false);
379 writeDeploymentTargets(t, true);
380
381 generateDistcleanTargets(t);
382
383 t << "clean: $(ABLD)" << endl;
384 t << "\t-$(ABLD)" << testClause << " reallyclean" << endl;
385 t << "\t-bldmake clean" << endl;
386 t << endl;
387
388 t << "clean-debug: $(ABLD)" << endl;
389 foreach(QString item, debugPlatforms) {
390 t << "\t$(ABLD)" << testClause << " reallyclean " << item << " udeb" << endl;
391 }
392 t << endl;
393 t << "clean-release: $(ABLD)" << endl;
394 foreach(QString item, releasePlatforms) {
395 t << "\t$(ABLD)" << testClause << " reallyclean " << item << " urel" << endl;
396 }
397 t << endl;
398
399 // For more specific builds, targets are in this form: clean-build-platform, e.g. clean-release-armv5
400 foreach(QString item, debugPlatforms) {
401 t << "clean-debug-" << item << ": $(ABLD)" << endl;
402 t << "\t$(ABLD)" << testClause << " reallyclean " << item << " udeb" << endl;
403 }
404 foreach(QString item, releasePlatforms) {
405 t << "clean-release-" << item << ": $(ABLD)" << endl;
406 t << "\t$(ABLD)" << testClause << " reallyclean " << item << " urel" << endl;
407 }
408 t << endl;
409
410 t << "freeze: $(ABLD)" << endl;
411 t << "\t$(ABLD)" << testClause << " freeze" << endl;
412 t << endl;
413
414 // Abld toolchain doesn't differentiate between freezing release or debug
415 t << "freeze-debug: freeze" << endl << endl;
416 t << "freeze-release: freeze" << endl << endl;
417
418 // For more specific builds, targets are in this form: freeze-build-platform, e.g. freeze-release-armv5,
419 // though note that debug and release targets of each platform are identical in symbian-abld.
420 foreach(QString item, debugPlatforms) {
421 t << "freeze-debug-" << item << ": $(ABLD)" << endl;
422 t << "\t$(ABLD)" << testClause << " freeze " << item << endl;
423 }
424 foreach(QString item, releasePlatforms) {
425 t << "freeze-release-" << item << ": $(ABLD)" << endl;
426 t << "\t$(ABLD)" << testClause << " freeze " << item << endl;
427 }
428
429 t << endl;
430}
431
432void SymbianAbldMakefileGenerator::writeBldInfExtensionRulesPart(QTextStream& t, const QString &iconTargetFile)
433{
434 // We don't use extensions for anything in abld
435 Q_UNUSED(t);
436 Q_UNUSED(iconTargetFile);
437}
438
439bool SymbianAbldMakefileGenerator::writeDeploymentTargets(QTextStream &t, bool isRom)
440{
441 if (isRom)
442 t << DEPLOYMENT_TARGET ":" << endl;
443 else
444 t << WINSCW_DEPLOYMENT_TARGET ":" << endl;
445
446 QString remoteTestPath = qt_epocRoot()
447 + QDir::toNativeSeparators(QLatin1String(isRom ? "epoc32/data/z/private/"
448 : "epoc32/winscw/c/private/"))
449 + privateDirUid;
450 DeploymentList depList;
451
452 initProjectDeploySymbian(project, depList, remoteTestPath, false, true,
453 QLatin1String(isRom ? ROM_DEPLOYMENT_PLATFORM : EMULATOR_DEPLOYMENT_PLATFORM),
454 QString(), generatedDirs, generatedFiles);
455
456 if (depList.size())
457 t << "\t-echo Deploying changed files..." << endl;
458
459 for (int i = 0; i < depList.size(); ++i) {
460#ifdef Q_OS_WIN32
461 // Xcopy prompts for selecting file or directory if target doesn't exist,
462 // and doesn't provide switch to force file selection. It does provide dir forcing, though,
463 // so strip the last part of the destination.
464 t << "\t-$(XCOPY) \"" << depList.at(i).from << "\" \""
465 << depList.at(i).to.left(depList.at(i).to.lastIndexOf("\\") + 1) << "\"" << endl;
466#else
467 QString dirExists = var("QMAKE_CHK_DIR_EXISTS");
468 QString mkdir = var("QMAKE_MKDIR");
469 QString dir = QFileInfo(depList.at(i).to).dir().path();
470 t << "\t-@ " << dirExists << " \"" << dir << "\" || "
471 << mkdir << " \"" << dir << "\"" << endl;
472 t << "\t-$(XCOPY) \"" << QDir::toNativeSeparators(depList.at(i).from) << "\" \""
473 << QDir::toNativeSeparators(depList.at(i).to) << "\"" << endl;
474#endif
475 }
476
477 t << endl;
478
479 if (isRom)
480 t << DEPLOYMENT_CLEAN_TARGET ":" << endl;
481 else
482 t << WINSCW_DEPLOYMENT_CLEAN_TARGET ":" << endl;
483
484 QStringList cleanList;
485 for (int i = 0; i < depList.size(); ++i) {
486 cleanList.append(QDir::toNativeSeparators(depList.at(i).to));
487 }
488 generateCleanCommands(t, cleanList, "$(DEL_FILE)", "", "", "");
489
490 // Note: If deployment creates any directories, they will not get deleted after cleanup.
491 // To do this in robust fashion could be quite complex.
492
493 t << endl;
494
495 return true;
496}
497
498void SymbianAbldMakefileGenerator::writeBldInfMkFilePart(QTextStream& t, bool addDeploymentExtension)
499{
500 // Normally emulator deployment gets done via regular makefile, but since subdirs
501 // do not get that, special deployment only makefile is generated for them if needed.
502 if (targetType != TypeSubdirs || addDeploymentExtension) {
503 gnuMakefileName = QLatin1String("Makefile_") + fileInfo(mmpFileName).completeBaseName()
504 + QLatin1String(".mk");
505 t << "gnumakefile " << gnuMakefileName << endl;
506 }
507}
508
509void SymbianAbldMakefileGenerator::appendAbldTempDirs(QStringList& sysincspaths, QString includepath)
510{
511 // As a workaround for Symbian toolchain insistence to treat include
512 // statements as relative to source file rather than the file they appear in,
513 // we generate extra temporary include directories to make
514 // relative include paths used in various headers to work properly.
515 // Note that this is not a fix-all solution; it's just a stop-gap measure
516 // to make Qt itself build until toolchain can support relative includes in
517 // a way that Qt expects.
518 QString epocPath("epoc32");
519 if (!includepath.contains(epocPath)) // No temp dirs for epoc includes
520 appendIfnotExist(sysincspaths, includepath + QString("/" QT_EXTRA_INCLUDE_DIR));
521}
Note: See TracBrowser for help on using the repository browser.