aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlpreview
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-09-20 15:25:27 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-10-07 18:02:44 +0200
commit3e2a85384b1f5454e51a27827114e49746f8837a (patch)
treed5abc9a4c3ac65f860e0232412d015e31e549d21 /tools/qmlpreview
parent9e23d109f3b01364a8b846f467983647ec798fc3 (diff)
Turn qml, qmlscene and qmlpreview into apps
Before, they were tools, which means they are not built when cross-compiling. However, all these tools are likely to be desired on a target to run QML-only projects. The earlier way to build these apps for a cross target was to set QT_BUILD_TOOLS_WHEN_CROSSCOMPILING to ON. That seems like overkill. Pick-to: 6.2 Task-number: QTBUG-96454 Change-Id: Ibbdc4e4599b0c798ddbd96804a0bbb821f546415 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tools/qmlpreview')
-rw-r--r--tools/qmlpreview/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/qmlpreview/CMakeLists.txt b/tools/qmlpreview/CMakeLists.txt
index 4c347a404e..792e1ec3f4 100644
--- a/tools/qmlpreview/CMakeLists.txt
+++ b/tools/qmlpreview/CMakeLists.txt
@@ -1,13 +1,11 @@
# Generated from qmlpreview.pro.
#####################################################################
-## qmlpreview Tool:
+## qmlpreview App:
#####################################################################
-qt_get_tool_target_name(target_name qmlpreview)
-qt_internal_add_tool(${target_name}
+qt_internal_add_app(qmlpreview
TARGET_DESCRIPTION "QML Preview"
- TOOLS_TARGET Qml # special case
SOURCES
main.cpp
qmlpreviewapplication.cpp qmlpreviewapplication.h
@@ -17,5 +15,7 @@ qt_internal_add_tool(${target_name}
Qt::QmlDebugPrivate
)
+set_target_properties(qmlpreview PROPERTIES WIN32_EXECUTABLE FALSE)
+
#### Keys ignored in scope 1:.:.:qmlpreview.pro:<TRUE>:
# QMAKE_TARGET_DESCRIPTION = "QML" "Preview"