forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.3'
Conflicts: src/shared/qbs Change-Id: I521ed7703298062d3860ddce3c82444bedd49e60
This commit is contained in:
@@ -247,8 +247,8 @@ bool QbsProject::ensureWriteableQbsFile(const QString &file)
|
||||
}
|
||||
|
||||
bool QbsProject::addFilesToProduct(const QStringList &filePaths,
|
||||
const qbs::ProductData &productData,
|
||||
const qbs::GroupData &groupData, QStringList *notAdded)
|
||||
const qbs::ProductData productData,
|
||||
const qbs::GroupData groupData, QStringList *notAdded)
|
||||
{
|
||||
QTC_ASSERT(m_qbsProject.isValid(), return false);
|
||||
QStringList allPaths = groupData.allFilePaths();
|
||||
@@ -272,8 +272,8 @@ bool QbsProject::addFilesToProduct(const QStringList &filePaths,
|
||||
}
|
||||
|
||||
bool QbsProject::removeFilesFromProduct(const QStringList &filePaths,
|
||||
const qbs::ProductData &productData,
|
||||
const qbs::GroupData &groupData,
|
||||
const qbs::ProductData productData,
|
||||
const qbs::GroupData groupData,
|
||||
QStringList *notRemoved)
|
||||
{
|
||||
QTC_ASSERT(m_qbsProject.isValid(), return false);
|
||||
@@ -300,8 +300,8 @@ bool QbsProject::removeFilesFromProduct(const QStringList &filePaths,
|
||||
}
|
||||
|
||||
bool QbsProject::renameFileInProduct(const QString &oldPath, const QString &newPath,
|
||||
const qbs::ProductData &productData,
|
||||
const qbs::GroupData &groupData)
|
||||
const qbs::ProductData productData,
|
||||
const qbs::GroupData groupData)
|
||||
{
|
||||
if (newPath.isEmpty())
|
||||
return false;
|
||||
|
||||
@@ -66,14 +66,19 @@ public:
|
||||
QStringList filesGeneratedFrom(const QString &sourceFile) const override;
|
||||
|
||||
bool isProjectEditable() const;
|
||||
bool addFilesToProduct(const QStringList &filePaths, const qbs::ProductData &productData,
|
||||
const qbs::GroupData &groupData, QStringList *notAdded);
|
||||
// qbs::ProductData and qbs::GroupData are held by the nodes in the project tree.
|
||||
// These methods change those trees and invalidate the lot, so pass in copies of
|
||||
// the data we are interested in!
|
||||
// The overhead is not as big as it seems at first glance: These all are handles
|
||||
// for shared data.
|
||||
bool addFilesToProduct(const QStringList &filePaths, const qbs::ProductData productData,
|
||||
const qbs::GroupData groupData, QStringList *notAdded);
|
||||
bool removeFilesFromProduct(const QStringList &filePaths,
|
||||
const qbs::ProductData &productData, const qbs::GroupData &groupData,
|
||||
const qbs::ProductData productData, const qbs::GroupData groupData,
|
||||
QStringList *notRemoved);
|
||||
bool renameFileInProduct(const QString &oldPath,
|
||||
const QString &newPath, const qbs::ProductData &productData,
|
||||
const qbs::GroupData &groupData);
|
||||
const QString &newPath, const qbs::ProductData productData,
|
||||
const qbs::GroupData groupData);
|
||||
|
||||
qbs::BuildJob *build(const qbs::BuildOptions &opts, QStringList products, QString &error);
|
||||
qbs::CleanJob *clean(const qbs::CleanOptions &opts, const QStringList &productNames,
|
||||
|
||||
Reference in New Issue
Block a user