qtbase/libexec
Alexandru Croitor 4b63662c45 CMake: Allow building all examples as standalone just like tests
Introduce a new libexec/qt-internal-configure-examples script that
allows to configure and build "standalone examples" just like
"standalone tests".

This is a prerequisite for using deployment api in examples for prefix
builds, otherwise deployment api gets confused not finding various
information that it expects from an installed qt.

Because the various conditions in the build system for standalone
examples are similar to standalone tests, introduce a new
QT_BUILD_STANDALONE_PARTS variable and use that in the conditions.
The variable should not be set by the user, and is instead set by the
build system whenever QT_BUILD_STANDALONE_TESTS/EXAMPLES is set.

Unfortunately due to no common file being available before the first
project() call, in qtbase builds, per-repo builds and top-level builds,
we need to duplicate the code for setting QT_BUILD_STANDALONE_PARTS for
all three cases.

Task-number: QTBUG-90820
Task-number: QTBUG-96232
Change-Id: Ia40d03a0e8f5142abe5c7cd4ff3000df4a5f7a8a
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit 62905163bf)
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
2024-03-20 09:57:11 +01:00
..
qt-internal-config.redo.bat.in CMake: Add a config.redo script similar to qt5's config.status 2023-09-20 21:20:13 +02:00
qt-internal-config.redo.in CMake: Add a config.redo script similar to qt5's config.status 2023-09-20 21:20:13 +02:00
qt-internal-configure-examples.bat.in CMake: Allow building all examples as standalone just like tests 2024-03-20 09:57:11 +01:00
qt-internal-configure-examples.in CMake: Allow building all examples as standalone just like tests 2024-03-20 09:57:11 +01:00
qt-internal-configure-tests.bat.in Pass native path in qt-internal-configure-tests 2023-04-17 23:32:34 +02:00
qt-internal-configure-tests.in CMake: Make qt-internal-configure-tests relocatable 2021-04-26 23:11:28 +02:00
qt-internal-ninja.bat.in CMake: Pass -v to ninja when using ctest --build-and-test 2022-04-04 15:41:20 +02:00
qt-internal-ninja.in CMake: Pass -v to ninja when using ctest --build-and-test 2022-04-04 15:41:20 +02:00
qt-internal-strip.bat.in CMake: Generate and use a wrapper script for stripping binaries 2022-03-24 21:50:50 +01:00
qt-internal-strip.in CMake: Generate and use a wrapper script for stripping binaries 2022-03-24 21:50:50 +01:00