equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the qmake application of the Qt Toolkit. |
7 ** This file is part of the qmake application of the Qt Toolkit. |
8 ** |
8 ** |
40 ****************************************************************************/ |
40 ****************************************************************************/ |
41 |
41 |
42 #ifndef SYMMAKEFILE_H |
42 #ifndef SYMMAKEFILE_H |
43 #define SYMMAKEFILE_H |
43 #define SYMMAKEFILE_H |
44 |
44 |
|
45 #include "initprojectdeploy_symbian.h" |
45 #include <makefile.h> |
46 #include <makefile.h> |
46 |
47 |
47 QT_BEGIN_NAMESPACE |
48 QT_BEGIN_NAMESPACE |
48 |
49 |
49 #define BLD_INF_FILENAME "bld.inf" |
50 #define BLD_INF_FILENAME "bld.inf" |
78 QStringList generatedFiles; |
79 QStringList generatedFiles; |
79 QStringList generatedDirs; |
80 QStringList generatedDirs; |
80 QHash<QString, QString> qt2S60LangMapTable; |
81 QHash<QString, QString> qt2S60LangMapTable; |
81 |
82 |
82 QString fixedTarget; |
83 QString fixedTarget; |
83 |
84 QString translationFileName; |
|
85 |
84 void removeSpecialCharacters(QString& str); |
86 void removeSpecialCharacters(QString& str); |
85 QString fixPathForMmp(const QString& origPath, const QDir& parentDir); |
87 QString fixPathForMmp(const QString& origPath, const QDir& parentDir); |
86 QString canonizePath(const QString& origPath); |
88 QString absolutizePath(const QString& origPath); |
87 |
89 |
88 virtual bool writeMakefile(QTextStream &t); |
90 virtual bool writeMakefile(QTextStream &t); |
89 void generatePkgFile(const QString &iconFile); |
91 void generatePkgFile(const QString &iconFile, DeploymentList &depList); |
90 bool containsStartWithItem(const QChar &c, const QStringList& src); |
92 bool containsStartWithItem(const QChar &c, const QStringList& src); |
91 |
93 |
92 virtual void init(); |
94 virtual void init(); |
93 |
95 |
94 QString getTargetExtension(); |
96 QString getTargetExtension(); |
104 void appendKeywordIfMatchFound(QStringList &list, |
106 void appendKeywordIfMatchFound(QStringList &list, |
105 const QStringList &keywordList, |
107 const QStringList &keywordList, |
106 QString &checkString); |
108 QString &checkString); |
107 |
109 |
108 void writeHeader(QTextStream &t); |
110 void writeHeader(QTextStream &t); |
109 void writeBldInfContent(QTextStream& t, bool addDeploymentExtension, const QString &iconFile); |
|
110 void writeExportPart(QTextStream &t); |
111 void writeExportPart(QTextStream &t); |
|
112 void writeBldInfContent(QTextStream& t, bool addDeploymentExtension, const QString &iconFile, DeploymentList &depList); |
111 |
113 |
112 static bool removeDuplicatedStrings(QStringList& stringList); |
114 static bool removeDuplicatedStrings(QStringList& stringList); |
113 |
115 |
114 void writeMmpFileHeader(QTextStream &t); |
116 void writeMmpFileHeader(QTextStream &t); |
115 void writeMmpFile(QString &filename, QStringList &symbianLangCodes); |
117 void writeMmpFile(QString &filename, QStringList &symbianLangCodes); |
149 const QString& itemPrefix, |
151 const QString& itemPrefix, |
150 const QString& itemSuffix); |
152 const QString& itemSuffix); |
151 |
153 |
152 void writeSisTargets(QTextStream &t); |
154 void writeSisTargets(QTextStream &t); |
153 void generateDistcleanTargets(QTextStream& t); |
155 void generateDistcleanTargets(QTextStream& t); |
|
156 void generateExecutionTargets(QTextStream& t, const QStringList& platforms); |
154 |
157 |
155 // Subclass implements |
158 // Subclass implements |
156 virtual void writeBldInfExtensionRulesPart(QTextStream& t, const QString &iconTargetFile) = 0; |
159 virtual void writeBldInfExtensionRulesPart(QTextStream& t, const QString &iconTargetFile) = 0; |
157 virtual void writeBldInfMkFilePart(QTextStream& t, bool addDeploymentExtension) = 0; |
160 virtual void writeBldInfMkFilePart(QTextStream& t, bool addDeploymentExtension) = 0; |
158 virtual void writeMkFile(const QString& wrapperFileName, bool deploymentOnly) = 0; |
161 virtual void writeMkFile(const QString& wrapperFileName, bool deploymentOnly) = 0; |