forked from qt-creator/qt-creator
Move most of the BuildConfiguration specific functions
Note: I didn't fix all the connects and there are a few missing things. This compiles, more work is coming.
This commit is contained in:
@@ -31,10 +31,14 @@
|
||||
#define QT4BUILDCONFIGURATION_H
|
||||
|
||||
#include <projectexplorer/buildconfiguration.h>
|
||||
#include <projectexplorer/toolchain.h>
|
||||
|
||||
namespace Qt4ProjectManager {
|
||||
|
||||
class Qt4Project;
|
||||
class QtVersion;
|
||||
class QMakeStep;
|
||||
class MakeStep;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
@@ -46,6 +50,53 @@ public:
|
||||
// copy ctor
|
||||
Qt4BuildConfiguration(Qt4BuildConfiguration *source);
|
||||
~Qt4BuildConfiguration();
|
||||
|
||||
ProjectExplorer::Environment environment() const;
|
||||
ProjectExplorer::Environment baseEnvironment() const;
|
||||
void setUserEnvironmentChanges(const QList<ProjectExplorer::EnvironmentItem> &diff);
|
||||
QList<ProjectExplorer::EnvironmentItem> userEnvironmentChanges() const;
|
||||
bool useSystemEnvironment() const;
|
||||
void setUseSystemEnvironment(bool b);
|
||||
|
||||
virtual QString buildDirectory() const;
|
||||
|
||||
// returns the qtdir (depends on the current QtVersion)
|
||||
QString qtDir() const;
|
||||
//returns the qtVersion, if the project is set to use the default qt version, then
|
||||
// that is returned
|
||||
// to check wheter the project uses the default qt version use qtVersionId
|
||||
QtVersion *qtVersion() const;
|
||||
|
||||
// returns the id of the qt version, if the project is using the default qt version
|
||||
// this function returns 0
|
||||
int qtVersionId() const;
|
||||
//returns the name of the qt version, might be QString::Null, which means default qt version
|
||||
// qtVersion is in general the better method to use
|
||||
QString qtVersionName() const;
|
||||
|
||||
void setQtVersion(int id);
|
||||
|
||||
ProjectExplorer::ToolChain *toolChain() const;
|
||||
void setToolChainType(ProjectExplorer::ToolChain::ToolChainType type);
|
||||
ProjectExplorer::ToolChain::ToolChainType toolChainType() const;
|
||||
|
||||
|
||||
// Those functions are used in a few places.
|
||||
// The drawback is that we shouldn't actually depend on them beeing always there
|
||||
// That is generally the stuff that is asked should normally be transfered to
|
||||
// Qt4Project *
|
||||
// So that we can later enable people to build qt4projects the way they would like
|
||||
QMakeStep *qmakeStep() const;
|
||||
MakeStep *makeStep() const;
|
||||
|
||||
QString makeCommand() const;
|
||||
QString defaultMakeTarget() const;
|
||||
|
||||
// TODO rename
|
||||
bool compareBuildConfigurationToImportFrom(const QString &workingDirectory);
|
||||
|
||||
signals:
|
||||
void qtVersionChanged();
|
||||
};
|
||||
|
||||
} // namespace Qt4ProjectManager
|
||||
|
||||
Reference in New Issue
Block a user