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
|
/*
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef QMAKECONFIG_H
#define QMAKECONFIG_H
#include <QHash>
#include <QStringList>
namespace KDevelop {
class IProject;
class Path;
}
class QMakeConfig
{
public:
static QString 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
|