summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-11-18 09:01:51 +0100
committerLiang Qi <liang.qi@theqtcompany.com>2015-11-18 09:01:51 +0100
commitc7934f2489e2eb9a539206bab35f335b1943c5bd (patch)
treea27d0ed6c001fe9432e2a0f28fb935acf9e4c65f /configure
parentf40593b11199fbef886bfcb6b210a214d8c3adf3 (diff)
parent08f9a1bd6ab9b1777ee5ba163d75e5c848c39eb4 (diff)
Merge remote-tracking branch 'origin/5.6' into dev
Conflicts: src/corelib/io/qprocess.cpp src/corelib/io/qprocess_unix.cpp src/network/kernel/qnetworkinterface_winrt.cpp tools/configure/configureapp.cpp Change-Id: I47df00a01597d2e63b334b492b3b4221b29f58ea
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure41
1 files changed, 26 insertions, 15 deletions
diff --git a/configure b/configure
index 92850899d8..8e5bc2e32b 100755
--- a/configure
+++ b/configure
@@ -621,6 +621,7 @@ CFG_MYSQL_CONFIG=
CFG_PSQL_CONFIG=
CFG_DEBUG_RELEASE=no
CFG_FORCEDEBUGINFO=no
+CFG_RELEASE_TOOLS=no
CFG_SHARED=yes
CFG_SM=auto
CFG_XSHAPE=auto
@@ -658,7 +659,6 @@ CFG_BUILD_PARTS=""
CFG_NOBUILD_PARTS=""
CFG_SKIP_MODULES=""
CFG_COMPILE_EXAMPLES=yes
-CFG_RELEASE_QMAKE=no
CFG_AUDIO_BACKEND=auto
CFG_QML_DEBUG=yes
CFG_PKGCONFIG=auto
@@ -1460,13 +1460,6 @@ while [ "$#" -gt 0 ]; do
UNKNOWN_OPT=yes
fi
;;
- optimized-qmake)
- if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
- CFG_RELEASE_QMAKE="$VAL"
- else
- UNKNOWN_OPT=yes
- fi
- ;;
release)
if [ "$VAL" = "yes" ]; then
CFG_DEBUG=no
@@ -1482,6 +1475,13 @@ while [ "$#" -gt 0 ]; do
force-debug-info)
CFG_FORCEDEBUGINFO="$VAL"
;;
+ optimized-qmake|optimized-tools)
+ if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
+ CFG_RELEASE_TOOLS="$VAL"
+ else
+ UNKNOWN_OPT=yes
+ fi
+ ;;
developer-build)
CFG_DEV="yes"
;;
@@ -2444,6 +2444,9 @@ Configure options:
-developer-build ... Compile and link Qt with Qt developer options (including auto-tests exporting)
+ * -no-optimized-tools ... Do not build optimized host tools even in debug build.
+ -optimized-tools ...... Build optimized host tools even in debug build.
+
-opensource ........ Compile and link the Open-Source Edition of Qt.
-commercial ........ Compile and link the Commercial Edition of Qt.
@@ -2635,9 +2638,6 @@ Additional options:
-silent ............ Reduce the build output so that warnings and errors
can be seen more easily.
- * -no-optimized-qmake ... Do not build qmake optimized.
- -optimized-qmake ...... Build qmake optimized.
-
-no-nis ............ Do not compile NIS support.
* -nis ............... Compile NIS support.
@@ -3409,6 +3409,10 @@ if [ "$CFG_FORCEDEBUGINFO" = "yes" ]; then
QMAKE_CONFIG="$QMAKE_CONFIG force_debug_info"
fi
+if [ "$CFG_RELEASE_TOOLS" = "yes" ]; then
+ QT_CONFIG="$QT_CONFIG release_tools"
+fi
+
if [ "$XPLATFORM_MAC" = "yes" ]; then
[ "$CFG_PKGCONFIG" = "auto" ] && CFG_PKGCONFIG="no"
fi
@@ -4039,7 +4043,7 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
setBootstrapVariable QMAKE_LFLAGS
setBootstrapVariable QMAKE_LFLAGS_GCSECTIONS
- if [ "$CFG_RELEASE_QMAKE" = "yes" ]; then
+ if [ "$CFG_RELEASE_TOOLS" = "yes" ]; then
setBootstrapVariable QMAKE_CFLAGS_RELEASE
setBootstrapVariable QMAKE_CXXFLAGS_RELEASE
EXTRA_CFLAGS="$EXTRA_CFLAGS \$(QMAKE_CFLAGS_RELEASE)"
@@ -7334,10 +7338,12 @@ release="release"
[ "$CFG_FORCEDEBUGINFO" = "yes" ] && release="release (with debug info)"
[ "$CFG_DEBUG" = "yes" ] && build_mode="debug" || build_mode=$release
if [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
- echo " Mode ................... debug and $release; default link: $build_mode"
-else
- echo " Mode ................... $build_mode"
+ build_mode="debug and $release; default link: $build_mode"
fi
+if [ "$CFG_RELEASE_TOOLS" = "yes" ]; then
+ build_mode="$build_mode; optimized tools"
+fi
+echo " Mode ................... $build_mode"
unset build_mode release
echo " Using sanitizer(s)...... $CFG_SANITIZERS"
echo " Using C++ standard ..... $CFG_STDCXX"
@@ -7501,6 +7507,11 @@ if [ "$CFG_QREAL" = double ] && [ "$CFG_ARCH" = arm ]; then
echo "NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1."
echo "Configure with '-qreal float' to create a build that is binary compatible with 5.1."
fi
+if [ "$CFG_RELEASE_TOOLS" = "yes" -a \( "$CFG_DEBUG" = "no" -o "$CFG_DEBUG_RELEASE" = "yes" \) ]; then
+ echo
+ echo "NOTE: -optimized-tools is not useful in -release mode."
+ echo
+fi
exec 1>&3 3>&- # restore stdout
cat $outpath/config.summary # display config feedback to user