qmake/generators/symbian/symmake.h
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
child 5 d3bac044e0f0
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     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"
    84     void removeSpecialCharacters(QString& str);
    85     void removeSpecialCharacters(QString& str);
    85     QString fixPathForMmp(const QString& origPath, const QDir& parentDir);
    86     QString fixPathForMmp(const QString& origPath, const QDir& parentDir);
    86     QString canonizePath(const QString& origPath);
    87     QString canonizePath(const QString& origPath);
    87 
    88 
    88     virtual bool writeMakefile(QTextStream &t);
    89     virtual bool writeMakefile(QTextStream &t);
    89     void generatePkgFile(const QString &iconFile);
    90     void generatePkgFile(const QString &iconFile, DeploymentList &depList);
    90     bool containsStartWithItem(const QChar &c, const QStringList& src);
    91     bool containsStartWithItem(const QChar &c, const QStringList& src);
    91 
    92 
    92     virtual void init();
    93     virtual void init();
    93 
    94 
    94     QString getTargetExtension();
    95     QString getTargetExtension();
   104     void appendKeywordIfMatchFound(QStringList &list,
   105     void appendKeywordIfMatchFound(QStringList &list,
   105                                    const QStringList &keywordList,
   106                                    const QStringList &keywordList,
   106                                    QString &checkString);
   107                                    QString &checkString);
   107 
   108 
   108     void writeHeader(QTextStream &t);
   109     void writeHeader(QTextStream &t);
   109     void writeBldInfContent(QTextStream& t, bool addDeploymentExtension, const QString &iconFile);
       
   110     void writeExportPart(QTextStream &t);
   110     void writeExportPart(QTextStream &t);
       
   111     void writeBldInfContent(QTextStream& t, bool addDeploymentExtension, const QString &iconFile, DeploymentList &depList);
   111 
   112 
   112     static bool removeDuplicatedStrings(QStringList& stringList);
   113     static bool removeDuplicatedStrings(QStringList& stringList);
   113 
   114 
   114     void writeMmpFileHeader(QTextStream &t);
   115     void writeMmpFileHeader(QTextStream &t);
   115     void writeMmpFile(QString &filename, QStringList &symbianLangCodes);
   116     void writeMmpFile(QString &filename, QStringList &symbianLangCodes);
   149                                const QString& itemPrefix,
   150                                const QString& itemPrefix,
   150                                const QString& itemSuffix);
   151                                const QString& itemSuffix);
   151 
   152 
   152     void writeSisTargets(QTextStream &t);
   153     void writeSisTargets(QTextStream &t);
   153     void generateDistcleanTargets(QTextStream& t);
   154     void generateDistcleanTargets(QTextStream& t);
       
   155     void generateExecutionTargets(QTextStream& t, const QStringList& platforms);
   154 
   156 
   155     // Subclass implements
   157     // Subclass implements
   156     virtual void writeBldInfExtensionRulesPart(QTextStream& t, const QString &iconTargetFile) = 0;
   158     virtual void writeBldInfExtensionRulesPart(QTextStream& t, const QString &iconTargetFile) = 0;
   157     virtual void writeBldInfMkFilePart(QTextStream& t, bool addDeploymentExtension) = 0;
   159     virtual void writeBldInfMkFilePart(QTextStream& t, bool addDeploymentExtension) = 0;
   158     virtual void writeMkFile(const QString& wrapperFileName, bool deploymentOnly) = 0;
   160     virtual void writeMkFile(const QString& wrapperFileName, bool deploymentOnly) = 0;