e5b203dbc7
this way QMAKE_LIBS{,_PRIVATE} can be treated the same as in all other generators, which allows us to: - make the windows generators' findLibraries() be more like the unix version - dispose of QMAKE_INTERNAL_PRL_LIBS handling while reading prl files (because the output always goes to QMAKE_LIBS) - as a side effect, QMAKE_LIBS_PRIVATE are not subjected to prl file resolution any more, which is again consistent with unix - the correctness of that needs to be assessed separately. Change-Id: Ie9bc04d117eff6a7cde846677f98acf3c64aa6ee Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
86 lines
2.6 KiB
C++
86 lines
2.6 KiB
C++
/****************************************************************************
|
|
**
|
|
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
|
** Contact: http://www.qt-project.org/
|
|
**
|
|
** This file is part of the qmake application of the Qt Toolkit.
|
|
**
|
|
** $QT_BEGIN_LICENSE:LGPL$
|
|
** GNU Lesser General Public License Usage
|
|
** This file may be used under the terms of the GNU Lesser General Public
|
|
** License version 2.1 as published by the Free Software Foundation and
|
|
** appearing in the file LICENSE.LGPL included in the packaging of this
|
|
** file. Please review the following information to ensure the GNU Lesser
|
|
** General Public License version 2.1 requirements will be met:
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
**
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
**
|
|
** GNU General Public License Usage
|
|
** Alternatively, this file may be used under the terms of the GNU General
|
|
** Public License version 3.0 as published by the Free Software Foundation
|
|
** and appearing in the file LICENSE.GPL included in the packaging of this
|
|
** file. Please review the following information to ensure the GNU General
|
|
** Public License version 3.0 requirements will be met:
|
|
** http://www.gnu.org/copyleft/gpl.html.
|
|
**
|
|
** Other Usage
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
**
|
|
**
|
|
**
|
|
**
|
|
**
|
|
**
|
|
** $QT_END_LICENSE$
|
|
**
|
|
****************************************************************************/
|
|
|
|
#ifndef MINGW_MAKE_H
|
|
#define MINGW_MAKE_H
|
|
|
|
#include "winmakefile.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class MingwMakefileGenerator : public Win32MakefileGenerator
|
|
{
|
|
public:
|
|
MingwMakefileGenerator();
|
|
~MingwMakefileGenerator();
|
|
protected:
|
|
QString escapeDependencyPath(const QString &path) const;
|
|
QString getLibTarget();
|
|
bool writeMakefile(QTextStream &);
|
|
void init();
|
|
private:
|
|
void writeMingwParts(QTextStream &);
|
|
void writeIncPart(QTextStream &t);
|
|
void writeLibsPart(QTextStream &t);
|
|
void writeLibDirPart(QTextStream &t);
|
|
void writeObjectsPart(QTextStream &t);
|
|
void writeBuildRulesPart(QTextStream &t);
|
|
void writeRcFilePart(QTextStream &t);
|
|
|
|
QStringList &findDependencies(const QString &file);
|
|
|
|
QString preCompHeaderOut;
|
|
|
|
virtual bool findLibraries();
|
|
void fixTargetExt();
|
|
|
|
bool init_flag;
|
|
QString objectsLinkLine;
|
|
QString quote;
|
|
};
|
|
|
|
inline MingwMakefileGenerator::~MingwMakefileGenerator()
|
|
{ }
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // MINGW_MAKE_H
|