Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.3.0
-
None
-
a6bd1dc3e (dev), 442665fd9 (6.7), f267ed7b1 (dev), cde9cfb96 (dev), 1a74168c8 (6.7), e59ac7556 (6.7)
Description
We should use qt_generate_deploy_qml_app_script's MACOS_BUNDLE_POST_BUILD option in our QML examples to simplify their code and ensure that the examples run from inside a macOS app bundle in the build dir.
We should include a comment above each usage of the option telling why it's needed and shouldn't be removed.
Here are some examples that currently handle all the bundle-specific magic manually
https://github.com/qt/qtdeclarative/blob/6e8f6f446ac8854fd23cb3cbf0fc1f3646299ca6/examples/quick/text/CMakeLists.txt#L67
https://github.com/qt/qtdeclarative/blob/6e8f6f446ac8854fd23cb3cbf0fc1f3646299ca6/examples/quick/shared/CMakeLists.txt#L38
https://github.com/qt/qtdeclarative/blob/6e8f6f446ac8854fd23cb3cbf0fc1f3646299ca6/examples/quick/shared/QtBundleQmlModuleForMacOS.cmake
Proposed here
https://git.qt.io/alcroito/qt6-cmake-api-review/-/blob/master/api_review_qt_6_3_deploy.md#L284
Split from QTBUG-100925
Attachments
Issue Links
- is blocked by
-
QTBUG-96232 Figure out how to build examples as ExternalProjects in a prefix build setup so it can be used in the CI
- In Progress
-
QTBUG-90820 Build examples as external projects within the main build
- In Progress
- relates to
-
QTBUG-102057 Use CMake deployment API in Qt examples once the API is out of TP
- In Progress
-
QTBUG-97741 Add App.app/Contents/PlugIns/qml as a default qml import path for macOS apps
- Closed
- resulted from
-
QTBUG-100925 Address review of qt_generate_deploy_qml_app_script for 6.3
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-101340 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
551412,2 | WIP: CMake: Add deployment API to documentviewer | dev | qt/qtdoc | Status: NEW | -2 | 0 |