forked from qt-creator/qt-creator
QmlProject: Add support for setting the environment
This allows setting arbitrary environment variables in the .qmlproject. This is required for example qtquickcontrols2.conf and QT_AUTO_SCREEN_SCALE_FACTOR. Task-number: QTCREATORBUG-19513 Change-Id: I8421a9fc7f85d24b3564f1b60f383be3838f2af4 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
|
||||
#include <projectexplorer/project.h>
|
||||
|
||||
#include <utils/environment.h>
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
namespace ProjectExplorer { class RunConfiguration; }
|
||||
@@ -65,6 +67,8 @@ public:
|
||||
Utils::FileName targetDirectory(const ProjectExplorer::Target *target) const;
|
||||
Utils::FileName targetFile(const Utils::FileName &sourceFile,
|
||||
const ProjectExplorer::Target *target) const;
|
||||
|
||||
QList<Utils::EnvironmentItem> environment() const;
|
||||
QStringList customImportPaths() const;
|
||||
|
||||
bool addFiles(const QStringList &filePaths);
|
||||
|
||||
Reference in New Issue
Block a user