forked from qt-creator/qt-creator
Store the toolChain and includePaths in the .user file.
This commit is contained in:
@@ -74,9 +74,7 @@ void GenericProjectNode::refresh()
|
||||
|
||||
_files = convertToAbsoluteFiles(projectPath, projectInfo.value(QLatin1String("files")).toStringList());
|
||||
_generated = convertToAbsoluteFiles(projectPath, projectInfo.value(QLatin1String("generated")).toStringList());
|
||||
_includePaths = convertToAbsoluteFiles(projectPath, projectInfo.value(QLatin1String("includes")).toStringList());
|
||||
_defines = projectInfo.value(QLatin1String("defines")).toStringList();
|
||||
_toolChainId = projectInfo.value(QLatin1String("toolchain"), QLatin1String("gcc")).toString().toLower();
|
||||
|
||||
FileNode *projectFileNode = new FileNode(projectFilePath(), ProjectFileType,
|
||||
/* generated = */ false);
|
||||
@@ -230,12 +228,18 @@ QStringList GenericProjectNode::generated() const
|
||||
QStringList GenericProjectNode::includePaths() const
|
||||
{ return _includePaths; }
|
||||
|
||||
void GenericProjectNode::setIncludePaths(const QStringList &includePaths)
|
||||
{ _includePaths = convertToAbsoluteFiles(QDir(path()), includePaths); }
|
||||
|
||||
QStringList GenericProjectNode::defines() const
|
||||
{ return _defines; }
|
||||
|
||||
QString GenericProjectNode::toolChainId() const
|
||||
{ return _toolChainId; }
|
||||
|
||||
void GenericProjectNode::setToolChainId(const QString &toolChainId)
|
||||
{ _toolChainId = toolChainId; }
|
||||
|
||||
bool GenericProjectNode::hasTargets() const
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
Reference in New Issue
Block a user