Qt Base (Core, Gui, Widgets, Network, ...)
Go to file
Alexandru Croitor acfa25588b CMake: Allow no install + custom on-device prefix for desktop builds
Allow such a combination
- staging prefix (CMAKE_STAGING_PREFIX / -extprefix) set to the
  qtbase build dir
- install prefix (CMAKE_INSTALL_PREFIX / -prefix / on-device prefix) set
  to some custom location
even for non-cross builds.

An example would be
    configure -prefix    /usr \
              -extprefix ~/qt/qtbase_build_dir

CMake will put the Qt libraries in the qtbase build dir, ninja install
will not be required, but ultimately in order to run applications,
the Qt libraries are expected to be in /usr.

Support for this scenario was originally added for cross-builds in
062318feb2 , but not desktop builds.

Such a build is useful when you want to have install rpaths different
from where Qt is initially installed to (the staging prefix).

This case doesn't really happen often when targeting desktop
platforms, it's mostly used for cross-compilation (e.g yocto).

Being able to have the same setup with a desktop build is nevertheless
useful for faster iteration on build system issues in such a scenario.

Amends 062318feb2

Change-Id: I42be3628a30025f14eebaf0a79401b54e95cde26
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit f3483e6b96)
2022-05-23 12:11:50 +02:00
.github/workflows Github Actions: many minor updates 2021-01-22 18:48:54 +01:00
bin Provide a qtpaths wrapper script when cross-building Qt 2021-11-08 16:49:13 +00:00
cmake CMake: Allow no install + custom on-device prefix for desktop builds 2022-05-23 12:11:50 +02:00
coin Cherry-pick qt-testrunner.py from dev branch 2022-05-19 14:19:15 +02:00
config.tests CMake: Make sure the strip_for_binary project works with Makefiles 2022-04-04 19:13:35 +00:00
dist Add Qt 6.0.0 changes file 2020-11-16 10:02:08 +02:00
doc Doc: Add qdoc macro for tabbed content 2022-04-05 12:25:58 +00:00
examples Fix building the dbus examples in CI with qmake and MSVC 2022-05-19 14:19:03 +02:00
lib
libexec CMake: Pass -v to ninja when using ctest --build-and-test 2022-04-04 19:13:35 +00:00
mkspecs qmake: Add support for C++23 2022-04-05 16:56:05 +00:00
qmake qmake: Fix overlong command lines for static Qt builds on Windows 2022-02-21 11:37:29 +00:00
src CMake: Don't require system freetype 2022-05-23 10:11:20 +00:00
tests tst_QNetworkReply try stabilize autoDeleteReplies tests 2022-05-19 14:19:13 +02:00
util Cherry-pick qt-testrunner.py from dev branch 2022-05-19 14:19:15 +02:00
.cmake.conf Bump version to 6.2.5 2022-04-21 10:15:07 +00:00
.gitattributes Give batch files CRLF line endings 2020-11-04 15:02:29 +00:00
.gitignore Assume qhelpgenerator in libexec instead of bin 2022-03-23 01:28:53 +01:00
.lgtm.yml Skip LGTM analysis for the bootstrap library and tools 2020-07-16 01:04:34 +02:00
.qmake.conf Bump version to 6.2.5 2022-04-21 10:15:07 +00:00
.tag
CMakeLists.txt Use REALPATH based check for symbolic links on Windows 2022-01-07 18:59:47 +00:00
LICENSE.FDL
LICENSE.GPL2
LICENSE.GPL3
LICENSE.GPL3-EXCEPT
LICENSE.LGPL3
LICENSE.LGPLv3
LICENSE.QT-LICENSE-AGREEMENT Update LA 4.4.1 2022-03-25 15:14:36 +00:00
conanfile.py Conan: Resolve the 'qt_host_path' before assigning it to 'QT_HOST_PATH' env 2022-04-06 14:47:11 +00:00
config_help.txt configure: CMake: Add -no-prefix option 2022-02-28 16:08:35 +01:00
configure Remove unsupported, host-related options from configure shell script 2021-08-05 04:33:48 +00:00
configure.bat configure.bat: Fix call without arguments 2022-02-16 12:39:47 +00:00
configure.cmake CMake: Fix no_prefix feature to take into account the staging prefix 2022-05-23 12:11:48 +02:00
dependencies.yaml
qt_cmdline.cmake configure: CMake: Add -no-prefix option 2022-02-28 16:08:35 +01:00
sync.profile Implement propagation of object files to the end-point executable 2021-05-27 14:28:17 +02:00