configure: fixed debug-and-release default for qpa on mac
debug/release is always supposed to default on for platforms where debug/release affects linkage (i.e. mac and windows). Previously, it did not correctly default on for qpa mac builds. Change-Id: I8d3c418f3fb787136ab120872fdd4d2ebf82c90e Reviewed-on: http://codereview.qt.nokia.com/2796 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
This commit is contained in:
parent
de9caf16fe
commit
81d15e059f
34
configure
vendored
34
configure
vendored
@ -2510,23 +2510,6 @@ if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" -o "$PLATFORM_QPA" = "ye
|
||||
echo
|
||||
fi
|
||||
|
||||
# detect build style
|
||||
if [ "$CFG_DEBUG" = "auto" ]; then
|
||||
if [ "$PLATFORM_MAC" = "yes" -o "$XPLATFORM_MINGW" = "yes" ]; then
|
||||
CFG_DEBUG_RELEASE=yes
|
||||
CFG_DEBUG=yes
|
||||
elif [ "$CFG_DEV" = "yes" ]; then
|
||||
CFG_DEBUG_RELEASE=no
|
||||
CFG_DEBUG=yes
|
||||
else
|
||||
CFG_DEBUG_RELEASE=no
|
||||
CFG_DEBUG=no
|
||||
fi
|
||||
fi
|
||||
if [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
|
||||
QMAKE_CONFIG="$QMAKE_CONFIG build_all"
|
||||
fi
|
||||
|
||||
if [ "$CFG_SILENT" = "yes" ]; then
|
||||
QMAKE_CONFIG="$QMAKE_CONFIG silent"
|
||||
fi
|
||||
@ -3243,6 +3226,23 @@ fi
|
||||
# tests that don't need qmake (must be run before displaying help)
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
# detect build style
|
||||
if [ "$CFG_DEBUG" = "auto" ]; then
|
||||
if [ "$CFG_ARCH" = "macosx" -o "$XPLATFORM_MINGW" = "yes" ]; then
|
||||
CFG_DEBUG_RELEASE=yes
|
||||
CFG_DEBUG=yes
|
||||
elif [ "$CFG_DEV" = "yes" ]; then
|
||||
CFG_DEBUG_RELEASE=no
|
||||
CFG_DEBUG=yes
|
||||
else
|
||||
CFG_DEBUG_RELEASE=no
|
||||
CFG_DEBUG=no
|
||||
fi
|
||||
fi
|
||||
if [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
|
||||
QMAKE_CONFIG="$QMAKE_CONFIG build_all"
|
||||
fi
|
||||
|
||||
if [ -z "$PKG_CONFIG" ]; then
|
||||
# See if PKG_CONFIG is set in the mkspec:
|
||||
PKG_CONFIG=`getQMakeConf "$XQMAKESPEC" | sed -n -e 's%PKG_CONFIG[^_].*=%%p' | tr '\n' ' '`
|
||||
|
Loading…
Reference in New Issue
Block a user