move emission of final messages to qmake-based configure
now qmake is the last command called by the unix configure script. as it happens, this was already the case in the windows script, but only because it didn't print these messages at all, which it implicitly does now. another effect of this is that repositories outside qtbase will now also get the installation note in modular builds, which makes sense. Change-Id: I567146936b216185a8e0f61e445222215608bf13 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
20e0bca834
commit
cfba3fff05
97
configure
vendored
97
configure
vendored
@ -539,8 +539,8 @@ fi
|
|||||||
# platform detection
|
# platform detection
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
PLATFORM_NOTES=
|
||||||
if [ -z "$PLATFORM" ]; then
|
if [ -z "$PLATFORM" ]; then
|
||||||
PLATFORM_NOTES=
|
|
||||||
case "$UNAME_SYSTEM:$UNAME_RELEASE" in
|
case "$UNAME_SYSTEM:$UNAME_RELEASE" in
|
||||||
Darwin:*)
|
Darwin:*)
|
||||||
PLATFORM=macx-clang
|
PLATFORM=macx-clang
|
||||||
@ -550,9 +550,7 @@ if [ -z "$PLATFORM" ]; then
|
|||||||
#PLATFORM=aix-g++-64
|
#PLATFORM=aix-g++-64
|
||||||
PLATFORM=aix-xlc
|
PLATFORM=aix-xlc
|
||||||
#PLATFORM=aix-xlc-64
|
#PLATFORM=aix-xlc-64
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="AIX: aix-g++ aix-g++-64 aix-xlc-64"
|
||||||
- Also available for AIX: aix-g++ aix-g++-64 aix-xlc-64
|
|
||||||
"
|
|
||||||
;;
|
;;
|
||||||
GNU:*)
|
GNU:*)
|
||||||
PLATFORM=hurd-g++
|
PLATFORM=hurd-g++
|
||||||
@ -569,14 +567,10 @@ if [ -z "$PLATFORM" ]; then
|
|||||||
FreeBSD:*)
|
FreeBSD:*)
|
||||||
if [ "$(uname -r | cut -d. -f1)" -ge 10 ]; then
|
if [ "$(uname -r | cut -d. -f1)" -ge 10 ]; then
|
||||||
PLATFORM=freebsd-clang
|
PLATFORM=freebsd-clang
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="FreeBSD: freebsd-g++"
|
||||||
- Also available for FreeBSD: freebsd-g++
|
|
||||||
"
|
|
||||||
else
|
else
|
||||||
PLATFORM=freebsd-g++
|
PLATFORM=freebsd-g++
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="FreeBSD: freebsd-clang"
|
||||||
- Also available for FreeBSD: freebsd-clang
|
|
||||||
"
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
OpenBSD:*)
|
OpenBSD:*)
|
||||||
@ -592,18 +586,14 @@ if [ -z "$PLATFORM" ]; then
|
|||||||
#PLATFORM=irix-g++
|
#PLATFORM=irix-g++
|
||||||
PLATFORM=irix-cc
|
PLATFORM=irix-cc
|
||||||
#PLATFORM=irix-cc-64
|
#PLATFORM=irix-cc-64
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="IRIX: irix-g++ irix-cc-64"
|
||||||
- Also available for IRIX: irix-g++ irix-cc-64
|
|
||||||
"
|
|
||||||
;;
|
;;
|
||||||
HP-UX:*)
|
HP-UX:*)
|
||||||
case "$UNAME_MACHINE" in
|
case "$UNAME_MACHINE" in
|
||||||
ia64)
|
ia64)
|
||||||
#PLATFORM=hpuxi-acc-32
|
#PLATFORM=hpuxi-acc-32
|
||||||
PLATFORM=hpuxi-acc-64
|
PLATFORM=hpuxi-acc-64
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="HP-UXi: hpuxi-acc-32"
|
||||||
- Also available for HP-UXi: hpuxi-acc-32
|
|
||||||
"
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
#PLATFORM=hpux-g++
|
#PLATFORM=hpux-g++
|
||||||
@ -611,39 +601,29 @@ if [ -z "$PLATFORM" ]; then
|
|||||||
#PLATFORM=hpux-acc-64
|
#PLATFORM=hpux-acc-64
|
||||||
#PLATFORM=hpux-cc
|
#PLATFORM=hpux-cc
|
||||||
#PLATFORM=hpux-acc-o64
|
#PLATFORM=hpux-acc-o64
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="HP-UX: hpux-g++ hpux-acc-64 hpux-acc-o64"
|
||||||
- Also available for HP-UX: hpux-g++ hpux-acc-64 hpux-acc-o64
|
|
||||||
"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
OSF1:*)
|
OSF1:*)
|
||||||
#PLATFORM=tru64-g++
|
#PLATFORM=tru64-g++
|
||||||
PLATFORM=tru64-cxx
|
PLATFORM=tru64-cxx
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="Tru64: tru64-g++"
|
||||||
- Also available for Tru64: tru64-g++
|
|
||||||
"
|
|
||||||
;;
|
;;
|
||||||
Linux:*)
|
Linux:*)
|
||||||
PLATFORM=linux-g++
|
PLATFORM=linux-g++
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="Linux: linux-clang linux-kcc linux-icc linux-cxx"
|
||||||
- Also available for Linux: linux-clang linux-kcc linux-icc linux-cxx
|
|
||||||
"
|
|
||||||
;;
|
;;
|
||||||
SunOS:5*)
|
SunOS:5*)
|
||||||
#PLATFORM=solaris-g++
|
#PLATFORM=solaris-g++
|
||||||
PLATFORM=solaris-cc
|
PLATFORM=solaris-cc
|
||||||
#PLATFORM=solaris-cc64
|
#PLATFORM=solaris-cc64
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="Solaris: solaris-g++ solaris-cc-64"
|
||||||
- Also available for Solaris: solaris-g++ solaris-cc-64
|
|
||||||
"
|
|
||||||
;;
|
;;
|
||||||
ReliantUNIX-*:*|SINIX-*:*)
|
ReliantUNIX-*:*|SINIX-*:*)
|
||||||
PLATFORM=reliant-cds
|
PLATFORM=reliant-cds
|
||||||
#PLATFORM=reliant-cds-64
|
#PLATFORM=reliant-cds-64
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="Reliant UNIX: reliant-cds-64"
|
||||||
- Also available for Reliant UNIX: reliant-cds-64
|
|
||||||
"
|
|
||||||
;;
|
;;
|
||||||
CYGWIN*:*)
|
CYGWIN*:*)
|
||||||
PLATFORM=cygwin-g++
|
PLATFORM=cygwin-g++
|
||||||
@ -654,23 +634,17 @@ if [ -z "$PLATFORM" ]; then
|
|||||||
OpenUNIX:*)
|
OpenUNIX:*)
|
||||||
#PLATFORM=unixware-g++
|
#PLATFORM=unixware-g++
|
||||||
PLATFORM=unixware-cc
|
PLATFORM=unixware-cc
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="OpenUNIX: unixware-g++"
|
||||||
- Also available for OpenUNIX: unixware-g++
|
|
||||||
"
|
|
||||||
;;
|
;;
|
||||||
UnixWare:*)
|
UnixWare:*)
|
||||||
#PLATFORM=unixware-g++
|
#PLATFORM=unixware-g++
|
||||||
PLATFORM=unixware-cc
|
PLATFORM=unixware-cc
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="UnixWare: unixware-g++"
|
||||||
- Also available for UnixWare: unixware-g++
|
|
||||||
"
|
|
||||||
;;
|
;;
|
||||||
SCO_SV:*)
|
SCO_SV:*)
|
||||||
#PLATFORM=sco-g++
|
#PLATFORM=sco-g++
|
||||||
PLATFORM=sco-cc
|
PLATFORM=sco-cc
|
||||||
PLATFORM_NOTES="
|
PLATFORM_NOTES="SCO OpenServer: sco-g++"
|
||||||
- Also available for SCO OpenServer: sco-g++
|
|
||||||
"
|
|
||||||
;;
|
;;
|
||||||
UNIX_SV:*)
|
UNIX_SV:*)
|
||||||
PLATFORM=unixware-g++
|
PLATFORM=unixware-g++
|
||||||
@ -688,6 +662,7 @@ if [ -z "$PLATFORM" ]; then
|
|||||||
exit 2
|
exit 2
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
echo "$PLATFORM_NOTES" > "${outpathPrefix}.config.notes"
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# command line and environment validation
|
# command line and environment validation
|
||||||
@ -905,13 +880,13 @@ Prefix=$relpath
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# configure and build top-level makefile
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
[ -z "$CFG_HOST_QT_TOOLS_PATH" ] && CFG_HOST_QT_TOOLS_PATH="$outpath/bin"
|
[ -z "$CFG_HOST_QT_TOOLS_PATH" ] && CFG_HOST_QT_TOOLS_PATH="$outpath/bin"
|
||||||
CFG_QMAKE_PATH="$CFG_HOST_QT_TOOLS_PATH/qmake"
|
CFG_QMAKE_PATH="$CFG_HOST_QT_TOOLS_PATH/qmake"
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# run configure tests
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
# recreate command line for qmake
|
# recreate command line for qmake
|
||||||
set -f
|
set -f
|
||||||
SAVED_IFS=$IFS
|
SAVED_IFS=$IFS
|
||||||
@ -923,40 +898,8 @@ done
|
|||||||
set +f
|
set +f
|
||||||
IFS=$SAVED_IFS
|
IFS=$SAVED_IFS
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# configure and build top-level makefile
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
if [ -n "$CFG_TOPLEVEL" ]; then
|
if [ -n "$CFG_TOPLEVEL" ]; then
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"$CFG_QMAKE_PATH" -qtconf "$QTCONFFILE" "$relpathMangled" -- "$@" || exit
|
"$CFG_QMAKE_PATH" -qtconf "$QTCONFFILE" "$relpathMangled" -- "$@"
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# final notes for the user
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
if [ -n "$PLATFORM_NOTES" ]; then
|
|
||||||
echo
|
|
||||||
echo "Platform notes:"
|
|
||||||
echo "$PLATFORM_NOTES"
|
|
||||||
else
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
|
|
||||||
QT_INSTALL_PREFIX=`sed -ne 's/^Prefix=//p' < "$outpath/qmake/builtin-qt.conf"`
|
|
||||||
MAKE=`basename "$MAKE"`
|
|
||||||
echo
|
|
||||||
echo Qt is now configured for building. Just run \'$MAKE\'.
|
|
||||||
if [ "$outpath" = "$QT_INSTALL_PREFIX" ]; then
|
|
||||||
echo Once everything is built, Qt is installed.
|
|
||||||
echo You should not run \'$MAKE install\'.
|
|
||||||
else
|
|
||||||
echo Once everything is built, you must run \'$MAKE install\'.
|
|
||||||
echo Qt will be installed into $QT_INSTALL_PREFIX
|
|
||||||
fi
|
|
||||||
echo
|
|
||||||
echo Prior to reconfiguration, make sure you remove any leftovers from
|
|
||||||
echo the previous build.
|
|
||||||
echo
|
|
||||||
|
@ -458,6 +458,10 @@ defineTest(qtConfOutput_prepareSpec) {
|
|||||||
QMAKESPEC = $$[QT_HOST_DATA/src]/mkspecs/$$XSPEC
|
QMAKESPEC = $$[QT_HOST_DATA/src]/mkspecs/$$XSPEC
|
||||||
export(QMAKESPEC)
|
export(QMAKESPEC)
|
||||||
|
|
||||||
|
notes = $$cat($$OUT_PWD/.config.notes, lines)
|
||||||
|
!isEmpty(notes): \
|
||||||
|
qtConfAddNote("Also available for $$notes")
|
||||||
|
|
||||||
# deviceOptions() below contains conditionals coming form the spec,
|
# deviceOptions() below contains conditionals coming form the spec,
|
||||||
# so this cannot be delayed for a batch reload.
|
# so this cannot be delayed for a batch reload.
|
||||||
reloadSpec()
|
reloadSpec()
|
||||||
|
@ -19,6 +19,7 @@ QMAKE_MAKE = $$(MAKE)
|
|||||||
} else {
|
} else {
|
||||||
error("Configure tests are not supported with the $$MAKEFILE_GENERATOR Makefile generator.")
|
error("Configure tests are not supported with the $$MAKEFILE_GENERATOR Makefile generator.")
|
||||||
}
|
}
|
||||||
|
QMAKE_MAKE_NAME = $$basename(QMAKE_MAKE)
|
||||||
# Make sure we don't inherit MAKEFLAGS - -i in particular is fatal.
|
# Make sure we don't inherit MAKEFLAGS - -i in particular is fatal.
|
||||||
QMAKE_MAKE = "$${SETENV_PFX}MAKEFLAGS=$$SETENV_SFX $$QMAKE_MAKE"
|
QMAKE_MAKE = "$${SETENV_PFX}MAKEFLAGS=$$SETENV_SFX $$QMAKE_MAKE"
|
||||||
|
|
||||||
|
@ -1851,3 +1851,19 @@ for (p, QMAKE_POST_CONFIGURE): \
|
|||||||
logn("Configure summary:")
|
logn("Configure summary:")
|
||||||
logn()
|
logn()
|
||||||
qtConfPrintReport()
|
qtConfPrintReport()
|
||||||
|
|
||||||
|
# final notes for the user
|
||||||
|
logn()
|
||||||
|
logn("Qt is now configured for building. Just run '$$QMAKE_MAKE_NAME'.")
|
||||||
|
pfx = $$[QT_INSTALL_PREFIX]
|
||||||
|
equals(pfx, $$[QT_INSTALL_PREFIX/get]) {
|
||||||
|
logn("Once everything is built, Qt is installed.")
|
||||||
|
logn("You should NOT run '$$QMAKE_MAKE_NAME install'.")
|
||||||
|
} else {
|
||||||
|
logn("Once everything is built, you must run '$$QMAKE_MAKE_NAME install'.")
|
||||||
|
logn("Qt will be installed into '$$system_path($$pfx)'.")
|
||||||
|
}
|
||||||
|
logn()
|
||||||
|
logn("Prior to reconfiguration, make sure you remove any leftovers from")
|
||||||
|
logn("the previous build.")
|
||||||
|
logn()
|
||||||
|
Loading…
Reference in New Issue
Block a user