2013-01-30 18:19:31 +01:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
|
|
|
|
** Contact: http://www.qt-project.org/legal
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and Digia. For licensing terms and
|
|
|
|
|
** conditions see http://qt.digia.com/licensing. For further information
|
|
|
|
|
** use the contact form at http://qt.digia.com/contact-us.
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
|
|
|
** General Public License version 2.1 as published by the Free Software
|
|
|
|
|
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
|
|
|
** packaging of this file. Please review the following information to
|
|
|
|
|
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
|
|
|
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
|
|
|
**
|
|
|
|
|
** In addition, as a special exception, Digia gives you certain additional
|
|
|
|
|
** rights. These rights are described in the Digia Qt LGPL Exception
|
|
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "qbsproject.h"
|
|
|
|
|
|
|
|
|
|
#include "qbsbuildconfiguration.h"
|
2013-02-06 11:28:33 +01:00
|
|
|
#include "qbslogsink.h"
|
2013-01-30 18:19:31 +01:00
|
|
|
#include "qbsprojectfile.h"
|
|
|
|
|
#include "qbsprojectmanagerconstants.h"
|
|
|
|
|
#include "qbsnodes.h"
|
|
|
|
|
|
|
|
|
|
#include <coreplugin/documentmanager.h>
|
|
|
|
|
#include <utils/qtcassert.h>
|
|
|
|
|
|
|
|
|
|
#include <coreplugin/icontext.h>
|
|
|
|
|
#include <coreplugin/icore.h>
|
|
|
|
|
#include <coreplugin/id.h>
|
|
|
|
|
#include <coreplugin/progressmanager/progressmanager.h>
|
|
|
|
|
#include <coreplugin/mimedatabase.h>
|
|
|
|
|
#include <cpptools/cppmodelmanager.h>
|
|
|
|
|
#include <projectexplorer/buildenvironmentwidget.h>
|
2013-09-02 10:12:37 +02:00
|
|
|
#include <projectexplorer/buildtargetinfo.h>
|
|
|
|
|
#include <projectexplorer/deploymentdata.h>
|
2013-01-30 18:19:31 +01:00
|
|
|
#include <projectexplorer/kit.h>
|
|
|
|
|
#include <projectexplorer/kitinformation.h>
|
|
|
|
|
#include <projectexplorer/projectexplorer.h>
|
|
|
|
|
#include <projectexplorer/projectexplorerconstants.h>
|
|
|
|
|
#include <projectexplorer/target.h>
|
|
|
|
|
#include <projectexplorer/taskhub.h>
|
2013-03-26 15:06:51 +01:00
|
|
|
#include <projectexplorer/toolchain.h>
|
2013-03-27 09:15:01 +01:00
|
|
|
#include <projectexplorer/headerpath.h>
|
2013-01-30 18:19:31 +01:00
|
|
|
#include <qtsupport/qtkitinformation.h>
|
2013-08-07 12:29:52 +02:00
|
|
|
#include <qtsupport/uicodemodelsupport.h>
|
2012-12-06 17:20:58 +01:00
|
|
|
#include <qmljstools/qmljsmodelmanager.h>
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
|
#include <qmljs/qmljsmodelmanagerinterface.h>
|
|
|
|
|
|
|
|
|
|
#include <qbs.h>
|
|
|
|
|
|
|
|
|
|
#include <QFileInfo>
|
|
|
|
|
|
2013-08-29 17:56:28 +02:00
|
|
|
using namespace Core;
|
2013-08-29 18:25:59 +02:00
|
|
|
using namespace ProjectExplorer;
|
|
|
|
|
using namespace Utils;
|
2013-08-29 17:56:28 +02:00
|
|
|
|
|
|
|
|
namespace QbsProjectManager {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2013-01-30 18:19:31 +01:00
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
// Constants:
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
|
2013-02-20 17:40:52 +01:00
|
|
|
static const char CONFIG_CPP_MODULE[] = "cpp";
|
|
|
|
|
static const char CONFIG_CXXFLAGS[] = "cxxflags";
|
2013-04-28 17:18:50 +04:00
|
|
|
static const char CONFIG_CFLAGS[] = "cflags";
|
2013-02-20 17:40:52 +01:00
|
|
|
static const char CONFIG_DEFINES[] = "defines";
|
|
|
|
|
static const char CONFIG_INCLUDEPATHS[] = "includePaths";
|
|
|
|
|
static const char CONFIG_FRAMEWORKPATHS[] = "frameworkPaths";
|
|
|
|
|
static const char CONFIG_PRECOMPILEDHEADER[] = "precompiledHeader";
|
2013-01-30 18:19:31 +01:00
|
|
|
static const char CONFIGURATION_PATH[] = "<configuration>";
|
|
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
// QbsProject:
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
QbsProject::QbsProject(QbsManager *manager, const QString &fileName) :
|
2013-05-16 16:20:06 +02:00
|
|
|
m_manager(manager),
|
|
|
|
|
m_projectName(QFileInfo(fileName).completeBaseName()),
|
|
|
|
|
m_fileName(fileName),
|
2013-05-16 16:24:37 +02:00
|
|
|
m_rootProjectNode(0),
|
2013-01-30 18:19:31 +01:00
|
|
|
m_qbsSetupProjectJob(0),
|
|
|
|
|
m_qbsUpdateFutureInterface(0),
|
2013-06-11 18:10:42 +02:00
|
|
|
m_currentProgressBase(0),
|
|
|
|
|
m_forceParsing(false),
|
2013-01-30 18:19:31 +01:00
|
|
|
m_currentBc(0)
|
|
|
|
|
{
|
2013-06-11 18:10:42 +02:00
|
|
|
m_parsingDelay.setInterval(1000); // delay parsing by 1s.
|
2013-06-06 18:45:53 +02:00
|
|
|
|
2013-08-29 17:56:28 +02:00
|
|
|
setProjectContext(Context(Constants::PROJECT_ID));
|
|
|
|
|
setProjectLanguages(Context(ProjectExplorer::Constants::LANG_CXX));
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
|
connect(this, SIGNAL(activeTargetChanged(ProjectExplorer::Target*)),
|
|
|
|
|
this, SLOT(changeActiveTarget(ProjectExplorer::Target*)));
|
|
|
|
|
connect(this, SIGNAL(addedTarget(ProjectExplorer::Target*)),
|
|
|
|
|
this, SLOT(targetWasAdded(ProjectExplorer::Target*)));
|
2013-06-06 18:45:53 +02:00
|
|
|
connect(this, SIGNAL(environmentChanged()), this, SLOT(delayParsing()));
|
|
|
|
|
|
|
|
|
|
connect(&m_parsingDelay, SIGNAL(timeout()), this, SLOT(parseCurrentBuildConfiguration()));
|
2013-01-30 18:19:31 +01:00
|
|
|
|
2013-06-18 15:52:29 +02:00
|
|
|
updateDocuments(QSet<QString>() << fileName);
|
2013-05-16 16:24:37 +02:00
|
|
|
m_rootProjectNode = new QbsProjectNode(this); // needs documents to be initialized!
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QbsProject::~QbsProject()
|
|
|
|
|
{
|
|
|
|
|
m_codeModelFuture.cancel();
|
2013-09-03 15:43:25 +02:00
|
|
|
if (m_qbsSetupProjectJob) {
|
|
|
|
|
m_qbsSetupProjectJob->disconnect(this);
|
|
|
|
|
m_qbsSetupProjectJob->cancel();
|
|
|
|
|
delete m_qbsSetupProjectJob;
|
|
|
|
|
}
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString QbsProject::displayName() const
|
|
|
|
|
{
|
|
|
|
|
return m_projectName;
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-29 17:56:28 +02:00
|
|
|
Id QbsProject::id() const
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
2013-08-29 17:56:28 +02:00
|
|
|
return Constants::PROJECT_ID;
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
2013-08-29 17:56:28 +02:00
|
|
|
IDocument *QbsProject::document() const
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
2013-08-29 17:56:28 +02:00
|
|
|
foreach (IDocument *doc, m_qbsDocuments) {
|
2013-07-04 13:30:26 +02:00
|
|
|
if (doc->filePath() == m_fileName)
|
2013-01-30 18:19:31 +01:00
|
|
|
return doc;
|
|
|
|
|
}
|
|
|
|
|
QTC_ASSERT(false, return 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QbsManager *QbsProject::projectManager() const
|
|
|
|
|
{
|
|
|
|
|
return m_manager;
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
ProjectNode *QbsProject::rootProjectNode() const
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
|
|
|
|
return m_rootProjectNode;
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
QStringList QbsProject::files(Project::FilesMode fileMode) const
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
|
|
|
|
Q_UNUSED(fileMode);
|
2013-03-05 11:23:00 +01:00
|
|
|
QSet<QString> result;
|
2013-06-21 15:09:01 +02:00
|
|
|
if (m_rootProjectNode && m_rootProjectNode->qbsProjectData().isValid()) {
|
|
|
|
|
foreach (const qbs::ProductData &prd, m_rootProjectNode->qbsProjectData().allProducts()) {
|
2013-03-05 11:23:00 +01:00
|
|
|
foreach (const qbs::GroupData &grp, prd.groups()) {
|
|
|
|
|
foreach (const QString &file, grp.allFilePaths())
|
|
|
|
|
result.insert(file);
|
2013-05-24 16:20:10 +02:00
|
|
|
result.insert(grp.location().fileName());
|
2013-03-05 11:23:00 +01:00
|
|
|
}
|
2013-05-24 16:20:10 +02:00
|
|
|
result.insert(prd.location().fileName());
|
2013-03-05 11:23:00 +01:00
|
|
|
}
|
2013-06-21 15:09:01 +02:00
|
|
|
result.insert(m_rootProjectNode->qbsProjectData().location().fileName());
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
2013-03-05 11:23:00 +01:00
|
|
|
return result.toList();
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QbsProject::invalidate()
|
|
|
|
|
{
|
|
|
|
|
prepareForParsing();
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-10 15:40:18 +02:00
|
|
|
qbs::BuildJob *QbsProject::build(const qbs::BuildOptions &opts, QStringList productNames)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
2013-09-06 18:02:46 +02:00
|
|
|
if (!qbsProject().isValid() || isParsing())
|
2013-01-30 18:19:31 +01:00
|
|
|
return 0;
|
2013-06-10 15:40:18 +02:00
|
|
|
if (productNames.isEmpty()) {
|
2013-09-06 18:02:46 +02:00
|
|
|
return qbsProject().buildAllProducts(opts);
|
2013-06-10 15:40:18 +02:00
|
|
|
} else {
|
|
|
|
|
QList<qbs::ProductData> products;
|
|
|
|
|
foreach (const QString &productName, productNames) {
|
|
|
|
|
bool found = false;
|
2013-06-21 15:09:01 +02:00
|
|
|
foreach (const qbs::ProductData &data, qbsProjectData().allProducts()) {
|
2013-06-10 15:40:18 +02:00
|
|
|
if (data.name() == productName) {
|
|
|
|
|
found = true;
|
|
|
|
|
products.append(data);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!found)
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-06 18:02:46 +02:00
|
|
|
return qbsProject().buildSomeProducts(products, opts);
|
2013-06-10 15:40:18 +02:00
|
|
|
}
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
2013-02-28 13:06:15 +01:00
|
|
|
qbs::CleanJob *QbsProject::clean(const qbs::CleanOptions &opts)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
2013-09-06 18:02:46 +02:00
|
|
|
if (!qbsProject().isValid())
|
2013-01-30 18:19:31 +01:00
|
|
|
return 0;
|
2013-09-06 18:02:46 +02:00
|
|
|
return qbsProject().cleanAllProducts(opts);
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
2013-04-12 16:19:52 +02:00
|
|
|
qbs::InstallJob *QbsProject::install(const qbs::InstallOptions &opts)
|
|
|
|
|
{
|
2013-09-06 18:02:46 +02:00
|
|
|
if (!qbsProject().isValid())
|
2013-04-12 16:19:52 +02:00
|
|
|
return 0;
|
2013-09-06 18:02:46 +02:00
|
|
|
return qbsProject().installAllProducts(opts);
|
2013-04-12 16:19:52 +02:00
|
|
|
}
|
|
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
QString QbsProject::profileForTarget(const Target *t) const
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
|
|
|
|
return m_manager->profileForKit(t->kit());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool QbsProject::isParsing() const
|
|
|
|
|
{
|
|
|
|
|
return m_qbsUpdateFutureInterface;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool QbsProject::hasParseResult() const
|
|
|
|
|
{
|
2013-09-06 18:02:46 +02:00
|
|
|
return qbsProject().isValid();
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
FileName QbsProject::defaultBuildDirectory() const
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
2013-07-22 15:53:57 +02:00
|
|
|
return defaultBuildDirectory(m_fileName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Utils::FileName QbsProject::defaultBuildDirectory(const QString &path)
|
|
|
|
|
{
|
|
|
|
|
QFileInfo fi(path);
|
2013-01-30 18:19:31 +01:00
|
|
|
const QString buildDir = QDir(fi.canonicalPath()).absoluteFilePath(QString::fromLatin1("../%1-build").arg(fi.baseName()));
|
2013-08-29 18:25:59 +02:00
|
|
|
return FileName::fromString(buildDir);
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
2013-09-06 18:02:46 +02:00
|
|
|
qbs::Project QbsProject::qbsProject() const
|
2013-04-16 13:14:07 +02:00
|
|
|
{
|
|
|
|
|
if (!m_rootProjectNode)
|
2013-09-06 18:02:46 +02:00
|
|
|
return qbs::Project();
|
2013-05-16 16:20:06 +02:00
|
|
|
return m_rootProjectNode->qbsProject();
|
2013-04-16 13:14:07 +02:00
|
|
|
}
|
|
|
|
|
|
2013-06-21 15:09:01 +02:00
|
|
|
const qbs::ProjectData QbsProject::qbsProjectData() const
|
2013-04-16 13:14:07 +02:00
|
|
|
{
|
|
|
|
|
if (!m_rootProjectNode)
|
2013-06-21 15:09:01 +02:00
|
|
|
return qbs::ProjectData();
|
2013-05-16 16:20:06 +02:00
|
|
|
return m_rootProjectNode->qbsProjectData();
|
2013-04-16 13:14:07 +02:00
|
|
|
}
|
|
|
|
|
|
2013-05-06 11:16:41 +02:00
|
|
|
bool QbsProject::needsSpecialDeployment() const
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-30 18:19:31 +01:00
|
|
|
void QbsProject::handleQbsParsingDone(bool success)
|
|
|
|
|
{
|
|
|
|
|
QTC_ASSERT(m_qbsSetupProjectJob, return);
|
|
|
|
|
QTC_ASSERT(m_qbsUpdateFutureInterface, return);
|
|
|
|
|
|
2013-09-06 18:02:46 +02:00
|
|
|
qbs::Project project;
|
2013-01-30 18:19:31 +01:00
|
|
|
if (success) {
|
2013-09-06 18:02:46 +02:00
|
|
|
project = m_qbsSetupProjectJob->project();
|
2013-01-30 18:19:31 +01:00
|
|
|
} else {
|
|
|
|
|
generateErrors(m_qbsSetupProjectJob->error());
|
|
|
|
|
m_qbsUpdateFutureInterface->reportCanceled();
|
|
|
|
|
}
|
|
|
|
|
m_qbsSetupProjectJob->deleteLater();
|
|
|
|
|
m_qbsSetupProjectJob = 0;
|
|
|
|
|
|
|
|
|
|
m_qbsUpdateFutureInterface->reportFinished();
|
|
|
|
|
delete m_qbsUpdateFutureInterface;
|
|
|
|
|
m_qbsUpdateFutureInterface = 0;
|
|
|
|
|
|
|
|
|
|
m_rootProjectNode->update(project);
|
|
|
|
|
|
2013-09-06 18:02:46 +02:00
|
|
|
updateDocuments(project.isValid() ? project.buildSystemFiles() : QSet<QString>() << m_fileName);
|
2013-01-30 18:19:31 +01:00
|
|
|
|
2013-05-16 16:20:06 +02:00
|
|
|
updateCppCodeModel(m_rootProjectNode->qbsProjectData());
|
|
|
|
|
updateQmlJsCodeModel(m_rootProjectNode->qbsProjectData());
|
2013-09-02 10:12:37 +02:00
|
|
|
updateApplicationTargets(m_rootProjectNode->qbsProjectData());
|
|
|
|
|
updateDeploymentInfo(m_rootProjectNode->qbsProject());
|
2013-01-30 18:19:31 +01:00
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
foreach (Target *t, targets())
|
2013-05-15 13:39:00 +02:00
|
|
|
t->updateDefaultRunConfigurations();
|
|
|
|
|
|
2013-06-12 12:16:24 +02:00
|
|
|
emit fileListChanged();
|
2013-01-30 18:19:31 +01:00
|
|
|
emit projectParsingDone(success);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QbsProject::handleQbsParsingProgress(int progress)
|
|
|
|
|
{
|
|
|
|
|
if (m_qbsUpdateFutureInterface)
|
|
|
|
|
m_qbsUpdateFutureInterface->setProgressValue(m_currentProgressBase + progress);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QbsProject::handleQbsParsingTaskSetup(const QString &description, int maximumProgressValue)
|
|
|
|
|
{
|
|
|
|
|
Q_UNUSED(description);
|
|
|
|
|
if (m_qbsUpdateFutureInterface) {
|
|
|
|
|
m_currentProgressBase = m_qbsUpdateFutureInterface->progressValue();
|
|
|
|
|
m_qbsUpdateFutureInterface->setProgressRange(0, m_currentProgressBase + maximumProgressValue);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
void QbsProject::targetWasAdded(Target *t)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
|
|
|
|
connect(t, SIGNAL(activeBuildConfigurationChanged(ProjectExplorer::BuildConfiguration*)),
|
2013-06-11 18:10:42 +02:00
|
|
|
this, SLOT(delayForcedParsing()));
|
|
|
|
|
connect(t, SIGNAL(buildDirectoryChanged()), this, SLOT(delayForcedParsing()));
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
void QbsProject::changeActiveTarget(Target *t)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
2013-08-29 18:25:59 +02:00
|
|
|
BuildConfiguration *bc = 0;
|
2013-01-30 18:19:31 +01:00
|
|
|
if (t && t->kit())
|
|
|
|
|
bc = t->activeBuildConfiguration();
|
|
|
|
|
buildConfigurationChanged(bc);
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
void QbsProject::buildConfigurationChanged(BuildConfiguration *bc)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
|
|
|
|
if (m_currentBc)
|
2013-06-06 18:45:53 +02:00
|
|
|
disconnect(m_currentBc, SIGNAL(qbsConfigurationChanged()), this, SLOT(delayParsing()));
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
|
m_currentBc = qobject_cast<QbsBuildConfiguration *>(bc);
|
|
|
|
|
if (m_currentBc) {
|
2013-06-06 18:45:53 +02:00
|
|
|
connect(m_currentBc, SIGNAL(qbsConfigurationChanged()), this, SLOT(delayParsing()));
|
|
|
|
|
delayParsing();
|
2013-01-30 18:19:31 +01:00
|
|
|
} else {
|
|
|
|
|
invalidate();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-06 18:45:53 +02:00
|
|
|
void QbsProject::delayParsing()
|
|
|
|
|
{
|
|
|
|
|
m_parsingDelay.start();
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-11 18:10:42 +02:00
|
|
|
void QbsProject::delayForcedParsing()
|
|
|
|
|
{
|
|
|
|
|
m_forceParsing = true;
|
|
|
|
|
delayParsing();
|
|
|
|
|
}
|
|
|
|
|
|
2013-01-30 18:19:31 +01:00
|
|
|
void QbsProject::parseCurrentBuildConfiguration()
|
|
|
|
|
{
|
2013-06-06 18:45:53 +02:00
|
|
|
m_parsingDelay.stop();
|
|
|
|
|
|
2013-01-30 18:19:31 +01:00
|
|
|
if (!activeTarget())
|
|
|
|
|
return;
|
|
|
|
|
QbsBuildConfiguration *bc = qobject_cast<QbsBuildConfiguration *>(activeTarget()->activeBuildConfiguration());
|
|
|
|
|
if (!bc)
|
|
|
|
|
return;
|
2013-08-16 17:45:16 +02:00
|
|
|
parse(bc->qbsConfiguration(), bc->environment(), bc->buildDirectory().toString());
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool QbsProject::fromMap(const QVariantMap &map)
|
|
|
|
|
{
|
|
|
|
|
if (!Project::fromMap(map))
|
|
|
|
|
return false;
|
|
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
Kit *defaultKit = KitManager::defaultKit();
|
2013-08-21 12:48:46 +02:00
|
|
|
if (!activeTarget() && defaultKit) {
|
2013-08-29 18:25:59 +02:00
|
|
|
Target *t = new Target(this, defaultKit);
|
2013-01-30 18:19:31 +01:00
|
|
|
t->updateDefaultBuildConfigurations();
|
|
|
|
|
t->updateDefaultDeployConfigurations();
|
|
|
|
|
t->updateDefaultRunConfigurations();
|
|
|
|
|
addTarget(t);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-18 12:06:11 +02:00
|
|
|
void QbsProject::generateErrors(const qbs::ErrorInfo &e)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
2013-06-18 12:06:11 +02:00
|
|
|
foreach (const qbs::ErrorItem &item, e.items())
|
2013-08-29 18:25:59 +02:00
|
|
|
TaskHub::addTask(Task::Error, item.description(),
|
|
|
|
|
ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM,
|
|
|
|
|
FileName::fromString(item.codeLocation().fileName()),
|
|
|
|
|
item.codeLocation().line());
|
|
|
|
|
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
void QbsProject::parse(const QVariantMap &config, const Environment &env, const QString &dir)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
|
|
|
|
QTC_ASSERT(!dir.isNull(), return);
|
2013-06-06 18:29:58 +02:00
|
|
|
|
2013-02-01 13:41:29 +01:00
|
|
|
qbs::SetupProjectParameters params;
|
2013-06-06 18:29:58 +02:00
|
|
|
params.setBuildConfiguration(config);
|
2013-06-18 12:06:11 +02:00
|
|
|
qbs::ErrorInfo err = params.expandBuildConfiguration(m_manager->settings());
|
2013-06-18 12:52:30 +02:00
|
|
|
if (err.hasError()) {
|
2013-06-11 18:10:42 +02:00
|
|
|
generateErrors(err);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Avoid useless reparsing:
|
2013-09-06 18:02:46 +02:00
|
|
|
const qbs::Project ¤tProject = qbsProject();
|
2013-06-11 18:10:42 +02:00
|
|
|
if (!m_forceParsing
|
2013-09-06 18:02:46 +02:00
|
|
|
&& currentProject.isValid()
|
|
|
|
|
&& currentProject.projectConfiguration() == params.buildConfiguration()) {
|
|
|
|
|
QHash<QString, QString> usedEnv = currentProject.usedEnvironment();
|
2013-06-11 18:10:42 +02:00
|
|
|
bool canSkip = true;
|
|
|
|
|
for (QHash<QString, QString>::const_iterator i = usedEnv.constBegin();
|
|
|
|
|
i != usedEnv.constEnd(); ++i) {
|
|
|
|
|
if (env.value(i.key()) != i.value()) {
|
|
|
|
|
canSkip = false;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (canSkip)
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-06 18:29:58 +02:00
|
|
|
params.setBuildRoot(dir);
|
2013-05-23 17:15:52 +02:00
|
|
|
params.setProjectFilePath(m_fileName);
|
|
|
|
|
params.setIgnoreDifferentProjectFilePath(false);
|
2013-06-06 18:30:17 +02:00
|
|
|
params.setEnvironment(env.toProcessEnvironment());
|
2013-02-15 13:29:52 +01:00
|
|
|
qbs::Preferences *prefs = QbsManager::preferences();
|
2013-09-06 14:39:11 +02:00
|
|
|
const QString qbsDir = qbsDirectory();
|
|
|
|
|
params.setSearchPaths(prefs->searchPaths(qbsDir));
|
|
|
|
|
params.setPluginPaths(prefs->pluginPaths(qbsDir));
|
2013-02-01 13:41:29 +01:00
|
|
|
|
2013-06-11 18:10:42 +02:00
|
|
|
// Do the parsing:
|
|
|
|
|
prepareForParsing();
|
|
|
|
|
QTC_ASSERT(!m_qbsSetupProjectJob, return);
|
|
|
|
|
|
2013-01-30 18:19:31 +01:00
|
|
|
m_qbsSetupProjectJob
|
2013-06-11 18:10:42 +02:00
|
|
|
= qbs::Project::setupProject(params, m_manager->logSink(), 0);
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
|
connect(m_qbsSetupProjectJob, SIGNAL(finished(bool,qbs::AbstractJob*)),
|
|
|
|
|
this, SLOT(handleQbsParsingDone(bool)));
|
|
|
|
|
connect(m_qbsSetupProjectJob, SIGNAL(taskStarted(QString,int,qbs::AbstractJob*)),
|
|
|
|
|
this, SLOT(handleQbsParsingTaskSetup(QString,int)));
|
|
|
|
|
connect(m_qbsSetupProjectJob, SIGNAL(taskProgress(int,qbs::AbstractJob*)),
|
|
|
|
|
this, SLOT(handleQbsParsingProgress(int)));
|
2013-05-30 14:14:42 +02:00
|
|
|
|
|
|
|
|
emit projectParsingStarted();
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QbsProject::prepareForParsing()
|
|
|
|
|
{
|
2013-06-11 18:10:42 +02:00
|
|
|
m_forceParsing = false;
|
|
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
TaskHub::clearTasks(ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM);
|
2013-01-30 18:19:31 +01:00
|
|
|
if (m_qbsUpdateFutureInterface)
|
|
|
|
|
m_qbsUpdateFutureInterface->reportCanceled();
|
|
|
|
|
delete m_qbsUpdateFutureInterface;
|
|
|
|
|
m_qbsUpdateFutureInterface = 0;
|
|
|
|
|
|
2013-09-03 15:43:25 +02:00
|
|
|
if (m_qbsSetupProjectJob) {
|
|
|
|
|
m_qbsSetupProjectJob->disconnect(this);
|
|
|
|
|
m_qbsSetupProjectJob->cancel();
|
|
|
|
|
m_qbsSetupProjectJob->deleteLater();
|
|
|
|
|
m_qbsSetupProjectJob = 0;
|
|
|
|
|
}
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
|
m_currentProgressBase = 0;
|
|
|
|
|
m_qbsUpdateFutureInterface = new QFutureInterface<void>();
|
|
|
|
|
m_qbsUpdateFutureInterface->setProgressRange(0, 0);
|
2013-09-03 15:18:37 +02:00
|
|
|
ProgressManager::addTask(m_qbsUpdateFutureInterface->future(),
|
|
|
|
|
tr("Evaluating"), "Qbs.QbsEvaluate");
|
2013-01-30 18:19:31 +01:00
|
|
|
m_qbsUpdateFutureInterface->reportStarted();
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-18 15:52:29 +02:00
|
|
|
void QbsProject::updateDocuments(const QSet<QString> &files)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
|
|
|
|
// Update documents:
|
2013-06-18 15:52:29 +02:00
|
|
|
QSet<QString> newFiles = files;
|
|
|
|
|
QTC_ASSERT(!newFiles.isEmpty(), newFiles << m_fileName);
|
2013-01-30 18:19:31 +01:00
|
|
|
QSet<QString> oldFiles;
|
2013-08-29 17:56:28 +02:00
|
|
|
foreach (IDocument *doc, m_qbsDocuments)
|
2013-07-04 13:30:26 +02:00
|
|
|
oldFiles.insert(doc->filePath());
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
|
QSet<QString> filesToAdd = newFiles;
|
|
|
|
|
filesToAdd.subtract(oldFiles);
|
|
|
|
|
QSet<QString> filesToRemove = oldFiles;
|
|
|
|
|
filesToRemove.subtract(newFiles);
|
|
|
|
|
|
2013-08-29 17:56:28 +02:00
|
|
|
QSet<IDocument *> currentDocuments = m_qbsDocuments;
|
|
|
|
|
foreach (IDocument *doc, currentDocuments) {
|
2013-07-04 13:30:26 +02:00
|
|
|
if (filesToRemove.contains(doc->filePath())) {
|
2013-01-30 18:19:31 +01:00
|
|
|
m_qbsDocuments.remove(doc);
|
|
|
|
|
delete doc;
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-08-29 17:56:28 +02:00
|
|
|
QSet<IDocument *> toAdd;
|
2013-01-30 18:19:31 +01:00
|
|
|
foreach (const QString &f, filesToAdd)
|
|
|
|
|
toAdd.insert(new QbsProjectFile(this, f));
|
|
|
|
|
|
2013-08-29 17:56:28 +02:00
|
|
|
DocumentManager::addDocuments(toAdd.toList());
|
2013-01-30 18:19:31 +01:00
|
|
|
m_qbsDocuments.unite(toAdd);
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-21 15:09:01 +02:00
|
|
|
void QbsProject::updateCppCodeModel(const qbs::ProjectData &prj)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
2013-06-21 15:09:01 +02:00
|
|
|
if (!prj.isValid())
|
2013-01-30 18:19:31 +01:00
|
|
|
return;
|
|
|
|
|
|
2013-08-29 18:25:59 +02:00
|
|
|
Kit *k = 0;
|
2013-01-30 18:19:31 +01:00
|
|
|
QtSupport::BaseQtVersion *qtVersion = 0;
|
2013-08-29 18:25:59 +02:00
|
|
|
if (Target *target = activeTarget())
|
2013-01-30 18:19:31 +01:00
|
|
|
k = target->kit();
|
|
|
|
|
else
|
2013-08-29 18:25:59 +02:00
|
|
|
k = KitManager::defaultKit();
|
2013-01-30 18:19:31 +01:00
|
|
|
qtVersion = QtSupport::QtKitInformation::qtVersion(k);
|
|
|
|
|
|
2013-04-02 11:28:11 +02:00
|
|
|
CppTools::CppModelManagerInterface *modelmanager =
|
|
|
|
|
CppTools::CppModelManagerInterface::instance();
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
|
if (!modelmanager)
|
|
|
|
|
return;
|
|
|
|
|
|
2013-04-02 11:28:11 +02:00
|
|
|
CppTools::CppModelManagerInterface::ProjectInfo pinfo = modelmanager->projectInfo(this);
|
2013-01-30 18:19:31 +01:00
|
|
|
pinfo.clearProjectParts();
|
2013-04-02 11:28:11 +02:00
|
|
|
CppTools::ProjectPart::QtVersion qtVersionForPart
|
|
|
|
|
= CppTools::ProjectPart::NoQt;
|
2013-01-30 18:19:31 +01:00
|
|
|
if (qtVersion) {
|
|
|
|
|
if (qtVersion->qtVersion() < QtSupport::QtVersionNumber(5,0,0))
|
2013-04-02 11:28:11 +02:00
|
|
|
qtVersionForPart = CppTools::ProjectPart::Qt4;
|
2013-01-30 18:19:31 +01:00
|
|
|
else
|
2013-04-02 11:28:11 +02:00
|
|
|
qtVersionForPart = CppTools::ProjectPart::Qt5;
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
2013-08-07 12:29:52 +02:00
|
|
|
QHash<QString, QString> uiFiles;
|
2013-01-30 18:19:31 +01:00
|
|
|
QStringList allFiles;
|
2013-06-21 15:09:01 +02:00
|
|
|
foreach (const qbs::ProductData &prd, prj.allProducts()) {
|
2013-01-30 18:19:31 +01:00
|
|
|
foreach (const qbs::GroupData &grp, prd.groups()) {
|
2013-02-20 17:40:52 +01:00
|
|
|
const qbs::PropertyMap &props = grp.properties();
|
2013-01-30 18:19:31 +01:00
|
|
|
|
2013-02-20 17:40:52 +01:00
|
|
|
const QStringList cxxFlags = props.getModulePropertiesAsStringList(
|
|
|
|
|
QLatin1String(CONFIG_CPP_MODULE),
|
|
|
|
|
QLatin1String(CONFIG_CXXFLAGS));
|
2013-01-30 18:19:31 +01:00
|
|
|
|
2013-04-28 17:18:50 +04:00
|
|
|
const QStringList cFlags = props.getModulePropertiesAsStringList(
|
|
|
|
|
QLatin1String(CONFIG_CPP_MODULE),
|
|
|
|
|
QLatin1String(CONFIG_CFLAGS));
|
|
|
|
|
|
2013-02-20 17:40:52 +01:00
|
|
|
QStringList list = props.getModulePropertiesAsStringList(
|
|
|
|
|
QLatin1String(CONFIG_CPP_MODULE),
|
|
|
|
|
QLatin1String(CONFIG_DEFINES));
|
2013-04-28 17:15:51 +04:00
|
|
|
QByteArray grpDefines;
|
2013-03-21 13:17:51 +01:00
|
|
|
foreach (const QString &def, list) {
|
|
|
|
|
QByteArray data = def.toUtf8();
|
|
|
|
|
int pos = data.indexOf('=');
|
|
|
|
|
if (pos >= 0)
|
|
|
|
|
data[pos] = ' ';
|
|
|
|
|
grpDefines += (QByteArray("#define ") + data + '\n');
|
|
|
|
|
}
|
2013-01-30 18:19:31 +01:00
|
|
|
|
2013-02-20 17:40:52 +01:00
|
|
|
list = props.getModulePropertiesAsStringList(QLatin1String(CONFIG_CPP_MODULE),
|
|
|
|
|
QLatin1String(CONFIG_INCLUDEPATHS));
|
2013-04-28 17:15:51 +04:00
|
|
|
QStringList grpIncludePaths;
|
2013-01-30 18:19:31 +01:00
|
|
|
foreach (const QString &p, list) {
|
2013-08-29 18:25:59 +02:00
|
|
|
const QString cp = FileName::fromUserInput(p).toString();
|
2013-01-30 18:19:31 +01:00
|
|
|
grpIncludePaths.append(cp);
|
|
|
|
|
}
|
|
|
|
|
|
2013-02-20 17:40:52 +01:00
|
|
|
list = props.getModulePropertiesAsStringList(QLatin1String(CONFIG_CPP_MODULE),
|
|
|
|
|
QLatin1String(CONFIG_FRAMEWORKPATHS));
|
2013-04-28 17:15:51 +04:00
|
|
|
QStringList grpFrameworkPaths;
|
2013-01-30 18:19:31 +01:00
|
|
|
foreach (const QString &p, list) {
|
2013-08-29 18:25:59 +02:00
|
|
|
const QString cp = FileName::fromUserInput(p).toString();
|
2013-01-30 18:19:31 +01:00
|
|
|
grpFrameworkPaths.append(cp);
|
|
|
|
|
}
|
|
|
|
|
|
2013-02-20 17:40:52 +01:00
|
|
|
const QString pch = props.getModuleProperty(QLatin1String(CONFIG_CPP_MODULE),
|
|
|
|
|
QLatin1String(CONFIG_PRECOMPILEDHEADER)).toString();
|
2013-01-30 18:19:31 +01:00
|
|
|
|
2013-04-02 11:28:11 +02:00
|
|
|
CppTools::ProjectPart::Ptr part(new CppTools::ProjectPart);
|
2013-08-29 18:25:59 +02:00
|
|
|
part->evaluateToolchain(ToolChainKitInformation::toolChain(k),
|
2013-04-28 17:15:51 +04:00
|
|
|
cxxFlags,
|
2013-04-28 17:18:50 +04:00
|
|
|
cFlags,
|
2013-08-29 18:25:59 +02:00
|
|
|
SysRootKitInformation::sysRoot(k));
|
2013-04-28 17:15:51 +04:00
|
|
|
|
2013-04-02 11:28:11 +02:00
|
|
|
CppTools::ProjectFileAdder adder(part->files);
|
2013-08-07 12:29:52 +02:00
|
|
|
foreach (const QString &file, grp.allFilePaths()) {
|
|
|
|
|
if (file.endsWith(QLatin1String(".ui"))) {
|
|
|
|
|
QStringList generated = m_rootProjectNode->qbsProject()
|
2013-09-06 18:02:46 +02:00
|
|
|
.generatedFiles(prd, file, QStringList(QLatin1String("hpp")));
|
2013-08-07 12:29:52 +02:00
|
|
|
if (generated.count() == 1)
|
|
|
|
|
uiFiles.insert(file, generated.at(0));
|
|
|
|
|
}
|
2013-03-04 01:30:46 +04:00
|
|
|
if (adder.maybeAdd(file))
|
|
|
|
|
allFiles.append(file);
|
2013-08-07 12:29:52 +02:00
|
|
|
}
|
2013-04-02 11:28:11 +02:00
|
|
|
part->files << CppTools::ProjectFile(QLatin1String(CONFIGURATION_PATH),
|
|
|
|
|
CppTools::ProjectFile::CXXHeader);
|
2013-03-04 01:30:46 +04:00
|
|
|
|
|
|
|
|
part->qtVersion = qtVersionForPart;
|
2013-04-28 17:15:51 +04:00
|
|
|
part->includePaths += grpIncludePaths;
|
|
|
|
|
part->frameworkPaths += grpFrameworkPaths;
|
2013-03-04 01:30:46 +04:00
|
|
|
part->precompiledHeaders = QStringList(pch);
|
2013-04-28 17:15:51 +04:00
|
|
|
part->defines += grpDefines;
|
2013-03-04 01:30:46 +04:00
|
|
|
pinfo.appendProjectPart(part);
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-04-10 14:45:47 +02:00
|
|
|
setProjectLanguage(ProjectExplorer::Constants::LANG_CXX, !allFiles.isEmpty());
|
|
|
|
|
|
2013-01-30 18:19:31 +01:00
|
|
|
if (pinfo.projectParts().isEmpty())
|
|
|
|
|
return;
|
|
|
|
|
|
2013-08-07 12:29:52 +02:00
|
|
|
QtSupport::UiCodeModelManager::update(this, uiFiles);
|
|
|
|
|
|
2013-01-30 18:19:31 +01:00
|
|
|
// Register update the code model:
|
2013-07-16 12:08:39 +02:00
|
|
|
m_codeModelFuture = modelmanager->updateProjectInfo(pinfo);
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
2013-06-21 15:09:01 +02:00
|
|
|
void QbsProject::updateQmlJsCodeModel(const qbs::ProjectData &prj)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
|
|
|
|
Q_UNUSED(prj);
|
2013-02-22 11:20:33 +01:00
|
|
|
QmlJS::ModelManagerInterface *modelManager = QmlJS::ModelManagerInterface::instance();
|
|
|
|
|
if (!modelManager)
|
|
|
|
|
return;
|
|
|
|
|
|
2012-12-06 17:20:58 +01:00
|
|
|
QmlJS::ModelManagerInterface::ProjectInfo projectInfo =
|
|
|
|
|
QmlJSTools::defaultProjectInfoForProject(this);
|
2013-04-10 14:45:47 +02:00
|
|
|
|
|
|
|
|
setProjectLanguage(ProjectExplorer::Constants::LANG_QMLJS, !projectInfo.sourceFiles.isEmpty());
|
2013-01-30 18:19:31 +01:00
|
|
|
modelManager->updateProjectInfo(projectInfo);
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-02 10:12:37 +02:00
|
|
|
void QbsProject::updateApplicationTargets(const qbs::ProjectData &projectData)
|
|
|
|
|
{
|
|
|
|
|
ProjectExplorer::BuildTargetInfoList applications;
|
|
|
|
|
foreach (const qbs::ProductData &productData, projectData.allProducts()) {
|
|
|
|
|
foreach (const qbs::TargetArtifact &ta, productData.targetArtifacts()) {
|
|
|
|
|
QTC_ASSERT(ta.isValid(), continue);
|
|
|
|
|
if (!ta.isExecutable())
|
|
|
|
|
continue;
|
|
|
|
|
applications.list << ProjectExplorer::BuildTargetInfo(Utils::FileName::fromString(ta.filePath()),
|
|
|
|
|
Utils::FileName::fromString(productData.location().fileName()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
activeTarget()->setApplicationTargets(applications);
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-06 18:02:46 +02:00
|
|
|
void QbsProject::updateDeploymentInfo(const qbs::Project &project)
|
2013-09-02 10:12:37 +02:00
|
|
|
{
|
|
|
|
|
ProjectExplorer::DeploymentData deploymentData;
|
2013-09-06 18:02:46 +02:00
|
|
|
if (project.isValid()) {
|
2013-09-02 10:12:37 +02:00
|
|
|
qbs::InstallOptions installOptions;
|
|
|
|
|
installOptions.setInstallRoot(QLatin1String("/"));
|
|
|
|
|
foreach (const qbs::InstallableFile &f,
|
2013-09-06 18:02:46 +02:00
|
|
|
project.installableFilesForProject(project.projectData(), installOptions)) {
|
2013-09-02 10:12:37 +02:00
|
|
|
deploymentData.addFile(f.sourceFilePath(), f.targetDirectory(), f.isExecutable()
|
|
|
|
|
? ProjectExplorer::DeployableFile::TypeExecutable
|
|
|
|
|
: ProjectExplorer::DeployableFile::TypeNormal);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
activeTarget()->setDeploymentData(deploymentData);
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-06 14:39:11 +02:00
|
|
|
QString QbsProject::qbsDirectory() const
|
2013-02-21 16:21:27 +01:00
|
|
|
{
|
2013-09-06 14:39:11 +02:00
|
|
|
const QString qbsInstallDir = QLatin1String(QBS_INSTALL_DIR);
|
|
|
|
|
if (!qbsInstallDir.isEmpty())
|
|
|
|
|
return qbsInstallDir;
|
|
|
|
|
return ICore::resourcePath() + QLatin1String("/qbs");
|
2013-02-21 16:21:27 +01:00
|
|
|
}
|
|
|
|
|
|
2013-01-30 18:19:31 +01:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace QbsProjectManager
|