Remove QMAKE_MACOS_DEPLOYMENT_TARGET.
authorMorten Sorvig <morten.sorvig@nokia.com>
Thu, 19 May 2011 07:18:34 +0000 (09:18 +0200)
committerMorten Sorvig <morten.sorvig@nokia.com>
Thu, 19 May 2011 07:18:46 +0000 (09:18 +0200)
Not needed any more, 10.5 and up supports setting
the deployment target/minimum version on the
compiler command line.

configure
mkspecs/common/mac.conf
qmake/generators/unix/unixmake2.cpp
qmake/qmake.pri
src/tools/bootstrap/bootstrap.pro

index d337945..d599cb5 100755 (executable)
--- a/configure
+++ b/configure
@@ -6967,19 +6967,6 @@ fi
 [ "$XPLATFORM_MINGW" = "yes" ] && CFG_MAC_COCOA="no"
 [ "$XPLATFORM_SYMBIAN" = "yes" ] && CFG_MAC_COCOA="no"
 
-# set the global Mac deployment target. This is overridden on an arch-by-arch basis
-# in some cases, see code further down
-case "$PLATFORM,$CFG_MAC_COCOA" in
-    macx*,yes)
-       # Cocoa
-       QMakeVar set QMAKE_MACOSX_DEPLOYMENT_TARGET 10.5
-       ;;
-    macx*,no)
-       # gcc, Carbon
-       QMakeVar set QMAKE_MACOSX_DEPLOYMENT_TARGET 10.4
-       ;;
-esac
-
 # disable Qt 3 support on VxWorks and Symbian
 case "$XPLATFORM" in
     unsupported/vxworks*|symbian*)
@@ -7716,9 +7703,7 @@ if [ "$CFG_EXCEPTIONS" = "no" ]; then
 fi
 
 # On Mac, set the minimum deployment target for the different architechtures 
-# using the Xarch compiler option when supported (10.5 and up).  On 10.4 the
-# deployment version is set to 10.4 globally using the QMAKE_MACOSX_DEPLOYMENT_TARGET
-# env. variable. 
+# using the Xarch compiler option when supported (10.5 and up).
 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_XARCH" != "no" ] ; then
     if echo "$CFG_MAC_ARCHS" | grep '\<x86\>' > /dev/null 2>&1; then
         QMakeVar add QMAKE_CFLAGS "-Xarch_i386 -mmacosx-version-min=10.4"
index 96cd239..b22b852 100644 (file)
@@ -38,7 +38,6 @@ QMAKE_DEL_FILE                = rm -f
 QMAKE_DEL_DIR          = rmdir
 QMAKE_CHK_DIR_EXISTS   = test -d
 QMAKE_MKDIR            = mkdir -p
-QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4 # overridden to 10.5 for Cocoa on the compiler command line
 
 
 include(unix.conf)
index 82f2366..60e671f 100644 (file)
@@ -175,9 +175,6 @@ UnixMakefileGenerator::writeMakeParts(QTextStream &t)
     t << "MOVE          = " << var("QMAKE_MOVE") << endl;
     t << "CHK_DIR_EXISTS= " << var("QMAKE_CHK_DIR_EXISTS") << endl;
     t << "MKDIR         = " << var("QMAKE_MKDIR") << endl;
-    if(!project->isEmpty("QMAKE_MACOSX_DEPLOYMENT_TARGET"))
-        t << "export MACOSX_DEPLOYMENT_TARGET = " //exported to children processes
-          << project->first("QMAKE_MACOSX_DEPLOYMENT_TARGET") << endl;
 
     if (!project->isEmpty("QMAKE_SYMBIAN_SHLIB")) {
         t << "vpath %.dso " << project->values("QMAKE_LIBDIR").join(":") << endl;
index d6c5f09..548ac54 100644 (file)
@@ -134,7 +134,6 @@ bootstrap { #Qt code
         mac {
           SOURCES += qfilesystemengine_mac.cpp
           SOURCES += qcore_mac.cpp qsettings_mac.cpp
-          QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4 #enables weak linking for 10.4 (exported)
           LIBS += -framework ApplicationServices
         }
     } else:win32 {
index 6ff948c..11d35b7 100644 (file)
@@ -108,7 +108,6 @@ else:unix:SOURCES += ../../corelib/tools/qlocale_unix.cpp
 else:win32:SOURCES += ../../corelib/tools/qlocale_win.cpp
 
 macx: {
-   QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4 #enables weak linking for 10.4 (exported)
    SOURCES += ../../corelib/io/qfilesystemengine_mac.cpp
    SOURCES += ../../corelib/kernel/qcore_mac.cpp
    LIBS += -framework CoreServices