forked from qt-creator/qt-creator
qds: use QtQuickEffectMaker app bundle path
Change-Id: Id267d50007766b2849b71d7ff9393d6de6f9e3c0 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> (cherry picked from commit da1ccc2a9adf8244d30f478b566f5f1ceb00b569) Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -1650,7 +1650,11 @@ void openEffectMaker(const QString &filePath)
|
|||||||
|
|
||||||
const QtSupport::QtVersion *baseQtVersion = QtSupport::QtKitAspect::qtVersion(target->kit());
|
const QtSupport::QtVersion *baseQtVersion = QtSupport::QtKitAspect::qtVersion(target->kit());
|
||||||
if (baseQtVersion) {
|
if (baseQtVersion) {
|
||||||
|
Utils::Environment env = Utils::Environment::systemEnvironment();
|
||||||
|
|
||||||
auto effectMakerPath = baseQtVersion->binPath().pathAppended("qqem").withExecutableSuffix();
|
auto effectMakerPath = baseQtVersion->binPath().pathAppended("qqem").withExecutableSuffix();
|
||||||
|
if (!effectMakerPath.exists() && env.osType() == Utils::OsTypeMac)
|
||||||
|
effectMakerPath = baseQtVersion->binPath().pathAppended("qqem.app/Contents/MacOS/qqem");
|
||||||
if (!effectMakerPath.exists()) {
|
if (!effectMakerPath.exists()) {
|
||||||
qWarning() << __FUNCTION__ << "Cannot find EffectMaker app";
|
qWarning() << __FUNCTION__ << "Cannot find EffectMaker app";
|
||||||
return;
|
return;
|
||||||
@@ -1663,7 +1667,6 @@ void openEffectMaker(const QString &filePath)
|
|||||||
arguments << "--create";
|
arguments << "--create";
|
||||||
arguments << "--exportpath" << effectResPath.toString();
|
arguments << "--exportpath" << effectResPath.toString();
|
||||||
|
|
||||||
Utils::Environment env = Utils::Environment::systemEnvironment();
|
|
||||||
if (env.osType() == Utils::OsTypeMac)
|
if (env.osType() == Utils::OsTypeMac)
|
||||||
env.appendOrSet("QSG_RHI_BACKEND", "metal");
|
env.appendOrSet("QSG_RHI_BACKEND", "metal");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user