1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
/* KDevelop QMake Support
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
#ifndef QMAKECONFIG_H
#define QMAKECONFIG_H
#include <QHash>
#include <QStringList>
namespace KDevelop {
class IProject;
class Path;
}
class QMakeConfig
{
public:
static const char CONFIG_GROUP[];
static const char
QMAKE_EXECUTABLE[],
BUILD_FOLDER[],
INSTALL_PREFIX[],
EXTRA_ARGUMENTS[],
BUILD_TYPE[],
ALL_BUILDS[];
/**
* Returns true when the given project is sufficiently configured.
*/
static bool isConfigured(const KDevelop::IProject* project);
/**
* Returns the directory where srcDir will be built.
* srcDir must contain a *.pro file !
*/
static KDevelop::Path buildDirFromSrc(const KDevelop::IProject* project, const KDevelop::Path& srcDir);
/**
* Returns the QMake executable configured for the given @p project.
*/
static QString qmakeExecutable(const KDevelop::IProject* project);
/**
* Query QMake and return the thus obtained QMake variables.
*/
static QHash<QString, QString> queryQMake(const QString& qmakeExecutable, const QStringList& args = {});
/**
* Given the QMake variables, try to find a basic MkSpec.
*/
static QString findBasicMkSpec( const QHash<QString,QString>& qmakeVars );
};
#endif
|