forked from qt-creator/qt-creator
QmlDesigner: Add version number to puppet path
Task-number: QDS-7985 Change-Id: I584e2b4a56e441dba207ebffbca8bf0baca7fcb6 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include "qmldesignerplugin.h"
|
#include "qmldesignerplugin.h"
|
||||||
|
|
||||||
|
#include <app/app_version.h>
|
||||||
#include <edit3d/edit3dviewconfig.h>
|
#include <edit3d/edit3dviewconfig.h>
|
||||||
#include <itemlibraryimport.h>
|
#include <itemlibraryimport.h>
|
||||||
#include <projectexplorer/kit.h>
|
#include <projectexplorer/kit.h>
|
||||||
@@ -179,7 +180,9 @@ Utils::FilePath qmlPuppetWorkingDirectory(ProjectExplorer::Target *target,
|
|||||||
|
|
||||||
QString qmlPuppetExecutablePath(const Utils::FilePath &workingDirectory)
|
QString qmlPuppetExecutablePath(const Utils::FilePath &workingDirectory)
|
||||||
{
|
{
|
||||||
return workingDirectory.pathAppended("qml2puppet").withExecutableSuffix().toString();
|
return workingDirectory.pathAppended(QString{"qml2puppet-"} + Core::Constants::IDE_VERSION_LONG)
|
||||||
|
.withExecutableSuffix()
|
||||||
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isForcingFreeType(ProjectExplorer::Target *target)
|
bool isForcingFreeType(ProjectExplorer::Target *target)
|
||||||
|
@@ -117,6 +117,8 @@ add_qtc_executable(qml2puppet
|
|||||||
DESTINATION ${DESTDIR}
|
DESTINATION ${DESTDIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_target_properties(qml2puppet PROPERTIES OUTPUT_NAME qml2puppet-${IDE_VERSION})
|
||||||
|
|
||||||
extend_qtc_executable(qml2puppet
|
extend_qtc_executable(qml2puppet
|
||||||
CONDITION Qt5_VERSION VERSION_GREATER_EQUAL 6.0.0
|
CONDITION Qt5_VERSION VERSION_GREATER_EQUAL 6.0.0
|
||||||
SOURCES_PREFIX "${SRCDIR}/"
|
SOURCES_PREFIX "${SRCDIR}/"
|
||||||
|
Reference in New Issue
Block a user