Store the toolChain and includePaths in the .user file.

This commit is contained in:
Roberto Raggi
2009-03-12 12:26:32 +01:00
parent 3eafefd2e0
commit 90e12652b4
3 changed files with 32 additions and 11 deletions

View File

@@ -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;