Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 5.61 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. commit dbf36eab217ffab51cdb74660dae76b552dae307
  2. Author: Tor Arne Vestbø <torarnv@gmail.com>
  3. Date:   Fri Feb 17 14:32:18 2012 +0100
  4.  
  5.     Don't unconditionally enable debug_and_release for Qt modules
  6.    
  7.     If CONFIG is missing either debug or release we should not assume that
  8.     doing a debug_and_release-build with build_all is the appropriate
  9.     default.
  10.  
  11. diff --git a/mkspecs/features/qt_module_config.prf b/mkspecs/features/qt_module_config.prf
  12. index 4da1666..bdfc0fb 100644
  13. --- a/mkspecs/features/qt_module_config.prf
  14. +++ b/mkspecs/features/qt_module_config.prf
  15. @@ -40,7 +40,7 @@ win32:!wince*:DLLDESTDIR = $$[QT_INSTALL_PREFIX]/bin
  16.  CONFIG          += qt warn_on depend_includepath
  17.  CONFIG          += qmake_cache target_qt
  18.  CONFIG          -= fix_output_dirs
  19. -win32|mac:!macx-xcode:CONFIG += debug_and_release
  20. +win32|mac:!macx-xcode:debug:release:CONFIG += debug_and_release
  21.  linux*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
  22.  
  23.  CONFIG += create_cmake
  24.  
  25. commit fbfd986128baf25cbdcdd2622526ce0a7a29917a
  26. Author: Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
  27. Date:   Mon Feb 13 15:36:36 2012 +0100
  28.  
  29.     Fix configure archs
  30.  
  31. diff --git a/configure b/configure
  32. index 111ac86..dbba4a8 100755
  33. --- a/configure
  34. +++ b/configure
  35. @@ -771,7 +771,6 @@ CFG_GETIFADDRS=auto
  36.  CFG_INOTIFY=auto
  37.  CFG_RPATH=yes
  38.  CFG_FRAMEWORK=auto
  39. -CFG_MAC_ARCHS=
  40.  MAC_CONFIG_TEST_COMMANDLINE=  # used to make the configure tests run with the correct arch's and SDK settings
  41.  CFG_MAC_DWARF2=auto
  42.  CFG_MAC_XARCH=auto
  43. @@ -1371,13 +1370,7 @@ while [ "$#" -gt 0 ]; do
  44.          fi
  45.         ;;
  46.      arch)
  47. -        # if this is a Mac then "windows" probably means
  48. -        # we are cross-compiling for MinGW
  49. -        if [ "$BUILD_ON_MAC" = "yes" ] && [ "$VAL" != "windows" ]; then
  50. -            CFG_MAC_ARCHS="$CFG_MAC_ARCHS $VAL"
  51. -        else
  52. -            CFG_ARCH=$VAL
  53. -        fi
  54. +        CFG_ARCH=$VAL
  55.          ;;
  56.      host-arch)
  57.          CFG_HOST_ARCH=$VAL
  58. @@ -2951,7 +2944,7 @@ if [ "$PLATFORM" != "$XPLATFORM" -a "$CFG_EMBEDDED" != "no" ]; then
  59.      esac
  60.  elif [ "$XPLATFORM_MINGW" = "yes" ]; then
  61.      [ -z "$CFG_ARCH" ] && CFG_ARCH="windows"
  62. -elif [ "$PLATFORM_MAC" = "yes" ] || [ -z "$CFG_ARCH" ]; then
  63. +elif [ -z "$CFG_ARCH" ]; then
  64.      CFG_ARCH=$CFG_HOST_ARCH
  65.  fi
  66.  
  67. @@ -3546,6 +3539,9 @@ fi
  68.  
  69.                           See the README file for a list of supported
  70.                           operating systems and compilers.
  71. +
  72. +    -arch <arch> ....... Build Qt for <arch>. Only one arch value can be specified.
  73. +
  74.  EOF
  75.  
  76.  if [ "${PLATFORM_QWS}" != "yes" -a "${PLATFORM_QPA}" != "yes" ]; then
  77. @@ -3906,9 +3902,6 @@ Qt/Mac only:
  78.   *  -dwarf2 ............ Enable dwarf2 debugging symbols.
  79.      -no-dwarf2 ......... Disable dwarf2 debugging symbols.
  80.  
  81. -    -arch <arch> ....... Build Qt for <arch>. Supported arch values: x86 x86_64.
  82. -                         Only one arch value can be specified.
  83. -
  84.      -sdk <sdk> ......... Build Qt using Apple provided SDK <sdk>. This option requires gcc 4.
  85.                           To use a different SDK with gcc 3.3, set the SDKROOT environment variable.
  86.  
  87. @@ -3939,6 +3932,7 @@ if [ "$PLATFORM_QWS" = "yes" -o "$PLATFORM_QPA" = "yes" ]; then
  88.      cat << EOF
  89.  
  90.      -xplatform target ... The target platform when cross-compiling.
  91. +    -host-arch <arch> ... The host architecture when cross-compiling.
  92.  
  93.      -no-feature-<feature> Do not compile in <feature>.
  94.      -feature-<feature> .. Compile in <feature>. The available features
  95. @@ -6316,13 +6310,6 @@ if [ "$CFG_MAC_DWARF2" = "yes" ]; then
  96.      QT_CONFIG="$QT_CONFIG dwarf2"
  97.  fi
  98.  
  99. -# Set the default arch if there are no "-arch" arguments on the configure line
  100. -if [ "$PLATFORM_MAC" = "yes" ]  && [ "$CFG_MAC_ARCHS" = "" ]; then
  101. -    source "$mactests/defaultarch.test" "$TEST_COMPILER" "$OPT_VERBOSE" "$mactests"
  102. -    CFG_MAC_ARCHS=" $QT_MAC_DEFAULT_ARCH"
  103. -    [ "$OPT_VERBOSE" = "yes" ] && echo "Setting Mac architechture to$CFG_MAC_ARCHS."
  104. -fi
  105. -
  106.  # ### Vestige
  107.  if [ "$CFG_PHONON_BACKEND" = "yes" ]; then
  108.      QT_CONFIG="$QT_CONFIG phonon-backend"
  109. @@ -6464,7 +6451,7 @@ fi
  110.  [ "$CFG_AVX" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG avx"
  111.  [ "$CFG_IWMMXT" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG iwmmxt"
  112.  [ "$CFG_NEON" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG neon"
  113. -[ "$PLATFORM_MAC" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG $CFG_MAC_ARCHS"
  114. +[ "$BUILD_ON_MAC" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG $CFG_ARCH"
  115.  if [ "$CFG_CLOCK_GETTIME" = "yes" ]; then
  116.      QT_CONFIG="$QT_CONFIG clock-gettime"
  117.  fi
  118. @@ -7276,17 +7263,13 @@ else
  119.      QTCONFIG_CONFIG="$QTCONFIG_CONFIG qt_framework"
  120.  fi
  121.  if [ "$BUILD_ON_MAC" = "yes" ]; then
  122. -    QT_CONFIG="$QT_CONFIG $CFG_MAC_ARCHS"
  123. +    QT_CONFIG="$QT_CONFIG $CFG_ARCH"
  124.  fi
  125.  if [ "$CFG_DEV" = "yes" ]; then
  126.      QT_CONFIG="$QT_CONFIG private_tests"
  127.  fi
  128.  
  129. -# Make the application arch follow the Qt arch for single arch builds.
  130. -# (for multiple-arch builds, set CONFIG manually in the application .pro file)
  131. -if [ `echo "$CFG_MAC_ARCHS" | wc -w` -eq 1 ]; then
  132. -    QTCONFIG_CONFIG="$QTCONFIG_CONFIG $CFG_MAC_ARCHS"
  133. -fi
  134. +QTCONFIG_CONFIG="$QTCONFIG_CONFIG $CFG_ARCH"
  135.  
  136.  cat >>"$QTCONFIG.tmp" <<EOF
  137.  #configuration
  138. @@ -7502,20 +7485,10 @@ esac
  139.  
  140.  echo
  141.  if [ "$XPLATFORM" = "$PLATFORM" ]; then
  142. -    echo "Build type:    $PLATFORM"
  143. -else
  144. -    echo "Building on:   $PLATFORM"
  145. -    echo "Building for:  $XPLATFORM"
  146. -fi
  147. -
  148. -if [ ! -z "$CFG_MAC_ARCHS" ]; then
  149. -    echo "Architecture:  $CFG_ARCH ($CFG_MAC_ARCHS )"
  150. +    echo "Build type:    $PLATFORM ($CFG_ARCH)"
  151.  else
  152. -    echo "Architecture:  $CFG_ARCH"
  153. -fi
  154. -
  155. -if [ "$PLATFORM_QWS" = "yes" -o "$PLATFORM_QPA" = "yes" ]; then
  156. -    echo "Host architecture: $CFG_HOST_ARCH"
  157. +    echo "Building on:   $PLATFORM ($CFG_HOST_ARCH)"
  158. +    echo "Building for:  $XPLATFORM ($CFG_ARCH)"
  159.  fi
  160.  
  161.  if [ -n "$PLATFORM_NOTES" ]; then