qt5base-lts/qmake
Alexey Edelev 43ba45151a Follow the generic logic of QLibraryInfo when computing QT_HOST_PREFIX
After the discussion we concluded that QT_HOST_PREFIX should not
completely replicate the QT_INSTALL_PREFIX behavior.

So this patch implements the following logic if qt.conf is provided:
  1. Prefix is not set
    a. If HostPrefix is not specified, then QT_HOST_PREFIX will be set
       to the folder containing qt.conf.
    b. If HostPrefix is specified and is relative, then QT_HOST_PREFIX
       will be relative to the folder containing qt.conf.
  2. Prefix is set
    a. If HostPrefix is not specified, then QT_HOST_PREFIX will have
       the Prefix value.
    b. If HostPrefix is specified and is relative, then QT_HOST_PREFIX
       will be relative to the folder containing the qt.conf.

The logic might change in a future commit to use the current application
directory instead of qt.conf path, since the use of qt.conf is dictated
by the bootstrap library and this is no longer the case.

Fixes: QTBUG-93707
Change-Id: I5460c97c45924bb8e0c95493afdb9585994c5f28
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2021-05-18 20:57:25 +02:00
..
doc doc: Mention qmake6 as name of qmake executable on Linux 2021-05-05 20:31:26 +02:00
generators Explicitly set input files for qtpreprocess 2021-04-12 11:36:32 +02:00
library Fix "qmake -spec foo" call for cross builds 2021-04-26 10:59:32 +02:00
cachekeys.h qmake: Clear caches before exiting 2021-05-06 23:49:20 +02:00
CMakeLists.txt Add a way to install versioned hard-links for tools 2021-03-25 16:31:39 +01:00
configure.cmake Add the 'FEATURE_qmake' feature 2021-03-04 09:49:44 +01:00
main.cpp Unify QLibraryInfo settings 2021-03-17 11:57:11 +01:00
meta.cpp qmake: Remove dead code 2019-04-05 07:48:34 +00:00
meta.h qmake: Remove dead code 2019-04-05 07:48:34 +00:00
option.cpp Fix "qmake -spec foo" call for cross builds 2021-04-26 10:59:32 +02:00
option.h Move the common qmake sources into a object library 2021-03-11 15:46:34 +01:00
project.cpp qmake: Clear caches before exiting 2021-05-06 23:49:20 +02:00
project.h Port qmake from QStringRef to QStringView 2020-06-05 09:07:14 +02:00
property.cpp Add support for various output formats for QMakeProperty 2021-03-12 13:20:00 +01:00
property.h Add support for various output formats for QMakeProperty 2021-03-12 13:20:00 +01:00
propertyprinter.cpp Add support for various output formats for QMakeProperty 2021-03-12 13:20:00 +01:00
propertyprinter.h Add support for various output formats for QMakeProperty 2021-03-12 13:20:00 +01:00
qmake_pch.h Move QRegExp and its remaining mentions out of QtCore 2020-07-13 10:53:23 +02:00
qmakelibraryinfo.cpp Follow the generic logic of QLibraryInfo when computing QT_HOST_PREFIX 2021-05-18 20:57:25 +02:00
qmakelibraryinfo.h Unify QLibraryInfo settings 2021-03-17 11:57:11 +01:00