Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.2.0 Beta3
-
None
-
4e70ab5ee (dev), 432083949 (tqtc/lts-6.2), abe3e465b (tqtc/lts-6.2), 72de1af9e (tqtc/lts-6.2), 15cfb9392 (dev), 4a71a001a (tqtc/lts-6.5), 68b2e1db0 (dev), 43d0c5ed6 (dev), 20bd9fad1 (dev), 31c5d50e8 (dev), c668dd404 (dev), cc537d927 (dev), 40fa36db2 (dev)
Description
Currently if Qt is configured as a prefix build, examples are built in-tree as part of the main Qt build, rather than as ExternalProjects.
We should figure out how to build examples as ExternalProjects in prefix builds so that we can use that in the CI (which uses prefix builds) so that we have more robust build testing of our examples without the pollution of the main Qt build (e.g already found Qt packages).
Some details at
From a quick 5 second brainstorming, we might not need to "make install" Qt before the example projects are configured as a big standalone project each spawning an ExternalProject, we might be able to use CMake's export(EXPORT) to create Config and Targets file referencing targets in the build tree, and set the ExternalProject CMAKE_PREFIX_PATH to the location containing those files.
Attachments
Issue Links
- blocks
-
QTBUG-101340 Use qt_generate_deploy_qml_app_script MACOS_BUNDLE_POST_BUILD in QML examples
- In Progress
- depends on
-
QTBUG-106431 qmlimportscanner doesn't find non-installed qtdeclarative qml modules in a prefix build
- Closed
- is required for
-
QTBUG-98787 Prefix builds of qtdeclarative with examples are faced with an empty default import path when building the examples
- Reported
-
QTBUG-102057 Use CMake deployment API in Qt examples once the API is out of TP
- In Progress
- relates to
-
QTBUG-94608 Nonsensical full path to examples
- Closed
-
QTBUG-98545 Provide CMake API for deployment support
- Closed
-
QTBUG-106021 Wrong install path for shared example project
- Reported
-
QTBUG-96358 ShaderTools package not found when building qtdeclarative examples in-tree in a prefix build (not as ExternalProjects)
- Closed
-
QTBUG-102879 Examples not linking to Qt::Core are installed in the wrong folder
- Closed
-
QTBUG-102056 Remove usage of INSTALL_EXAMPLESDIR and INSTALL_EXAMPLEDIR in examples
- Reported
-
QTBUG-124009 Support a way to easily set import paths for QML engine & tooling
- Closed
- resulted from
-
QTBUG-90820 Build examples as external projects within the main build
- In Progress
Gerrit Reviews
For Gerrit Dashboard: QTBUG-96232 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
394002,28 | CMake: Re-enable building external examples in prefix builds | dev | qt/qtbase | Status: NEW | -2 | -1 |
431085,18 | WIP: CMake: Test examples as external projects | dev | qt/qt5 | Status: NEW | -2 | 0 |