changeset 33 | 3e2da88830cd |
parent 30 | 5dc02b23752f |
child 37 | 758a864f9613 |
30:5dc02b23752f | 33:3e2da88830cd |
---|---|
726 CFG_DBUS=auto |
726 CFG_DBUS=auto |
727 CFG_GLIB=auto |
727 CFG_GLIB=auto |
728 CFG_GSTREAMER=auto |
728 CFG_GSTREAMER=auto |
729 CFG_QGTKSTYLE=auto |
729 CFG_QGTKSTYLE=auto |
730 CFG_QS60STYLE=auto |
730 CFG_QS60STYLE=auto |
731 CFG_LARGEFILE=yes |
731 CFG_LARGEFILE=auto |
732 CFG_OPENSSL=auto |
732 CFG_OPENSSL=auto |
733 CFG_PTMALLOC=no |
733 CFG_PTMALLOC=no |
734 CFG_STL=auto |
734 CFG_STL=auto |
735 CFG_PRECOMPILE=auto |
735 CFG_PRECOMPILE=auto |
736 CFG_SEPARATE_DEBUG_INFO=auto |
736 CFG_SEPARATE_DEBUG_INFO=no |
737 CFG_SEPARATE_DEBUG_INFO_NOCOPY=no |
737 CFG_SEPARATE_DEBUG_INFO_NOCOPY=no |
738 CFG_REDUCE_EXPORTS=auto |
738 CFG_REDUCE_EXPORTS=auto |
739 CFG_MMX=auto |
739 CFG_MMX=auto |
740 CFG_3DNOW=auto |
740 CFG_3DNOW=auto |
741 CFG_SSE=auto |
741 CFG_SSE=auto |
742 CFG_SSE2=auto |
742 CFG_SSE2=auto |
743 CFG_SSE3=auto |
|
744 CFG_SSSE3=auto |
|
745 CFG_SSE4_1=auto |
|
746 CFG_SSE4_2=auto |
|
747 CFG_AVX=auto |
|
743 CFG_REDUCE_RELOCATIONS=no |
748 CFG_REDUCE_RELOCATIONS=no |
744 CFG_IPV6=auto |
749 CFG_IPV6=auto |
745 CFG_NAS=no |
750 CFG_NAS=no |
746 CFG_QWS_DEPTHS=all |
751 CFG_QWS_DEPTHS=all |
747 CFG_USER_BUILD_KEY= |
752 CFG_USER_BUILD_KEY= |
777 L_FLAGS= |
782 L_FLAGS= |
778 RPATH_FLAGS= |
783 RPATH_FLAGS= |
779 l_FLAGS= |
784 l_FLAGS= |
780 QCONFIG_FLAGS= |
785 QCONFIG_FLAGS= |
781 XPLATFORM= # This seems to be the QMAKESPEC, like "linux-g++" or "symbian/linux-gcce" |
786 XPLATFORM= # This seems to be the QMAKESPEC, like "linux-g++" or "symbian/linux-gcce" |
787 XPLATFORM_MINGW=no # Whether target platform is MinGW (win32-g++*) |
|
782 PLATFORM=$QMAKESPEC |
788 PLATFORM=$QMAKESPEC |
783 QT_CROSS_COMPILE=no |
789 QT_CROSS_COMPILE=no |
784 OPT_CONFIRM_LICENSE=no |
790 OPT_CONFIRM_LICENSE=no |
785 OPT_SHADOW=maybe |
791 OPT_SHADOW=maybe |
786 OPT_FAST=auto |
792 OPT_FAST=auto |
790 CFG_GRAPHICS_SYSTEM=default |
796 CFG_GRAPHICS_SYSTEM=default |
791 CFG_ALSA=auto |
797 CFG_ALSA=auto |
792 CFG_PULSEAUDIO=auto |
798 CFG_PULSEAUDIO=auto |
793 CFG_COREWLAN=auto |
799 CFG_COREWLAN=auto |
794 CFG_ICD=auto |
800 CFG_ICD=auto |
801 CFG_NOPROCESS=no |
|
795 |
802 |
796 # initalize variables used for installation |
803 # initalize variables used for installation |
797 QT_INSTALL_PREFIX= |
804 QT_INSTALL_PREFIX= |
798 QT_INSTALL_DOCS= |
805 QT_INSTALL_DOCS= |
799 QT_INSTALL_HEADERS= |
806 QT_INSTALL_HEADERS= |
1324 else |
1331 else |
1325 UNKNOWN_OPT=yes |
1332 UNKNOWN_OPT=yes |
1326 fi |
1333 fi |
1327 ;; |
1334 ;; |
1328 arch) |
1335 arch) |
1329 if [ "$PLATFORM_MAC" = "yes" ]; then |
1336 # if this is a Mac then "windows" probably means |
1337 # we are cross-compiling for MinGW |
|
1338 if [ "$PLATFORM_MAC" = "yes" ] && [ "$VAL" != "windows" ]; then |
|
1330 CFG_MAC_ARCHS="$CFG_MAC_ARCHS $VAL" |
1339 CFG_MAC_ARCHS="$CFG_MAC_ARCHS $VAL" |
1331 else |
1340 else |
1332 CFG_ARCH=$VAL |
1341 CFG_ARCH=$VAL |
1333 fi |
1342 fi |
1334 ;; |
1343 ;; |
1442 ;; |
1451 ;; |
1443 esac |
1452 esac |
1444 ;; |
1453 ;; |
1445 xplatform) |
1454 xplatform) |
1446 XPLATFORM="$VAL" |
1455 XPLATFORM="$VAL" |
1456 case `basename "$XPLATFORM"` in win32-g++*) XPLATFORM_MINGW=yes;; esac |
|
1447 ;; |
1457 ;; |
1448 debug-and-release) |
1458 debug-and-release) |
1449 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then |
1459 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then |
1450 CFG_DEBUG_RELEASE="$VAL" |
1460 CFG_DEBUG_RELEASE="$VAL" |
1451 else |
1461 else |
1520 else |
1530 else |
1521 UNKNOWN_OPT=yes |
1531 UNKNOWN_OPT=yes |
1522 fi |
1532 fi |
1523 ;; |
1533 ;; |
1524 gif) |
1534 gif) |
1525 [ "$VAL" = "qt" ] && VAL=yes |
1535 [ "$VAL" = "qt" ] && VAL=auto |
1526 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then |
1536 if [ "$VAL" = "auto" ] || [ "$VAL" = "no" ]; then |
1527 CFG_GIF="$VAL" |
1537 CFG_GIF="$VAL" |
1528 else |
1538 else |
1529 UNKNOWN_OPT=yes |
1539 UNKNOWN_OPT=yes |
1530 fi |
1540 fi |
1531 ;; |
1541 ;; |
1632 fi |
1642 fi |
1633 ;; |
1643 ;; |
1634 sse2) |
1644 sse2) |
1635 if [ "$VAL" = "no" ]; then |
1645 if [ "$VAL" = "no" ]; then |
1636 CFG_SSE2="$VAL" |
1646 CFG_SSE2="$VAL" |
1647 else |
|
1648 UNKNOWN_OPT=yes |
|
1649 fi |
|
1650 ;; |
|
1651 sse3) |
|
1652 if [ "$VAL" = "no" ]; then |
|
1653 CFG_SSE3="$VAL" |
|
1654 else |
|
1655 UNKNOWN_OPT=yes |
|
1656 fi |
|
1657 ;; |
|
1658 ssse3) |
|
1659 if [ "$VAL" = "no" ]; then |
|
1660 CFG_SSSE3="$VAL" |
|
1661 else |
|
1662 UNKNOWN_OPT=yes |
|
1663 fi |
|
1664 ;; |
|
1665 sse4.1) |
|
1666 if [ "$VAL" = "no" ]; then |
|
1667 CFG_SSE4_1="$VAL" |
|
1668 else |
|
1669 UNKNOWN_OPT=yes |
|
1670 fi |
|
1671 ;; |
|
1672 sse4.2) |
|
1673 if [ "$VAL" = "no" ]; then |
|
1674 CFG_SSE4_2="$VAL" |
|
1675 else |
|
1676 UNKNOWN_OPT=yes |
|
1677 fi |
|
1678 ;; |
|
1679 avx) |
|
1680 if [ "$VAL" = "no" ]; then |
|
1681 CFG_AVX="$VAL" |
|
1637 else |
1682 else |
1638 UNKNOWN_OPT=yes |
1683 UNKNOWN_OPT=yes |
1639 fi |
1684 fi |
1640 ;; |
1685 ;; |
1641 iwmmxt) |
1686 iwmmxt) |
2161 CFG_MULTIMEDIA="$VAL" |
2206 CFG_MULTIMEDIA="$VAL" |
2162 else |
2207 else |
2163 UNKNOWN_OPT=yes |
2208 UNKNOWN_OPT=yes |
2164 fi |
2209 fi |
2165 ;; |
2210 ;; |
2211 dont-process) |
|
2212 CFG_NOPROCESS=yes |
|
2213 ;; |
|
2214 process) |
|
2215 CFG_NOPROCESS=no |
|
2216 ;; |
|
2166 audio-backend) |
2217 audio-backend) |
2167 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then |
2218 if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then |
2168 CFG_AUDIO_BACKEND="$VAL" |
2219 CFG_AUDIO_BACKEND="$VAL" |
2169 else |
2220 else |
2170 UNKNOWN_OPT=yes |
2221 UNKNOWN_OPT=yes |
2199 [ "$CFG_QCONFIG" = $c ] && break |
2250 [ "$CFG_QCONFIG" = $c ] && break |
2200 done |
2251 done |
2201 ;; |
2252 ;; |
2202 *) |
2253 *) |
2203 # not known to be sufficient for anything |
2254 # not known to be sufficient for anything |
2204 if [ '!' -f "$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h" ]; then |
2255 if [ '!' -f "$relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h" ] && [ '!' -f `"$relpath/config.tests/unix/makeabs" "${CFG_QCONFIG}"` ]; then |
2205 echo >&2 "Error: configuration file not found:" |
2256 echo >&2 "Error: configuration file not found:" |
2206 echo >&2 " $relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h" |
2257 echo >&2 " $relpath/src/corelib/global/qconfig-${CFG_QCONFIG}.h" |
2258 echo >&2 " or" |
|
2259 echo >&2 " `"$relpath/config.tests/unix/makeabs" "${CFG_QCONFIG}"`" |
|
2207 OPT_HELP=yes |
2260 OPT_HELP=yes |
2208 fi |
2261 fi |
2209 esac |
2262 esac |
2210 |
2263 |
2211 #------------------------------------------------------------------------------- |
2264 #------------------------------------------------------------------------------- |
2259 fi |
2312 fi |
2260 |
2313 |
2261 if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ] && [ "$CFG_DEBUG_RELEASE" = "yes" ]; then |
2314 if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ] && [ "$CFG_DEBUG_RELEASE" = "yes" ]; then |
2262 echo |
2315 echo |
2263 echo "WARNING: -debug-and-release is not supported anymore on Qt/X11 and Qt for Embedded Linux" |
2316 echo "WARNING: -debug-and-release is not supported anymore on Qt/X11 and Qt for Embedded Linux" |
2264 echo "By default, Qt is built in release mode with separate debug information, so" |
2317 echo "Qt can be built in release mode with separate debug information, so" |
2265 echo "-debug-and-release is not necessary anymore" |
2318 echo "-debug-and-release is not necessary anymore" |
2266 echo |
2319 echo |
2267 fi |
2320 fi |
2268 |
2321 |
2269 # detect build style |
2322 # detect build style |
2332 echo "QTDIR=\"$relpath\"; export QTDIR" >>"$outpath/bin/syncqt" |
2385 echo "QTDIR=\"$relpath\"; export QTDIR" >>"$outpath/bin/syncqt" |
2333 echo "perl \"$relpath/bin/syncqt\" -outdir \"$outpath\" \"\$@\"" >>"$outpath/bin/syncqt" |
2386 echo "perl \"$relpath/bin/syncqt\" -outdir \"$outpath\" \"\$@\"" >>"$outpath/bin/syncqt" |
2334 chmod 755 "$outpath/bin/syncqt" |
2387 chmod 755 "$outpath/bin/syncqt" |
2335 fi |
2388 fi |
2336 |
2389 |
2337 for i in createpackage patch_capabilities; do |
2390 for i in elf2e32_qtwrapper createpackage patch_capabilities; do |
2338 rm -f "$outpath/bin/$i" |
2391 rm -f "$outpath/bin/$i" |
2339 if [ -x "$relpath/bin/$i" ]; then |
2392 if [ -x "$relpath/bin/$i" ]; then |
2340 mkdir -p "$outpath/bin" |
2393 mkdir -p "$outpath/bin" |
2341 echo "#!/bin/sh" >"$outpath/bin/$i" |
2394 echo "#!/bin/sh" >"$outpath/bin/$i" |
2342 echo "QTDIR=\"$relpath\"; export QTDIR" >>"$outpath/bin/$i" |
2395 echo "QTDIR=\"$relpath\"; export QTDIR" >>"$outpath/bin/$i" |
2574 PLATFORM_NOTES=" |
2627 PLATFORM_NOTES=" |
2575 - Also available for Linux: linux-kcc linux-icc linux-cxx |
2628 - Also available for Linux: linux-kcc linux-icc linux-cxx |
2576 " |
2629 " |
2577 ;; |
2630 ;; |
2578 SunOS:5*) |
2631 SunOS:5*) |
2579 #PLATFORM=solaris-g++ |
2632 if [ "$XPLATFORM_MINGW" = "yes" ]; then |
2580 PLATFORM=solaris-cc |
2633 PLATFORM="solaris-g++" |
2581 #PLATFORM=solaris-cc64 |
2634 else |
2635 #PLATFORM=solaris-g++ |
|
2636 PLATFORM=solaris-cc |
|
2637 #PLATFORM=solaris-cc64 |
|
2638 fi |
|
2582 PLATFORM_NOTES=" |
2639 PLATFORM_NOTES=" |
2583 - Also available for Solaris: solaris-g++ solaris-cc-64 |
2640 - Also available for Solaris: solaris-g++ solaris-cc-64 |
2584 " |
2641 " |
2585 ;; |
2642 ;; |
2586 ReliantUNIX-*:*|SINIX-*:*) |
2643 ReliantUNIX-*:*|SINIX-*:*) |
2646 else |
2703 else |
2647 PLATFORMS=`find "$relpath/mkspecs/" -type f | grep -v qws | sed "s,$relpath/mkspecs/qws/,,"` |
2704 PLATFORMS=`find "$relpath/mkspecs/" -type f | grep -v qws | sed "s,$relpath/mkspecs/qws/,,"` |
2648 fi |
2705 fi |
2649 |
2706 |
2650 [ -z "$XPLATFORM" ] && XPLATFORM="$PLATFORM" |
2707 [ -z "$XPLATFORM" ] && XPLATFORM="$PLATFORM" |
2708 |
|
2709 case `basename "$XPLATFORM"` in win32-g++*) XPLATFORM_MINGW=yes;; esac |
|
2710 |
|
2651 if [ -d "$PLATFORM" ]; then |
2711 if [ -d "$PLATFORM" ]; then |
2652 QMAKESPEC="$PLATFORM" |
2712 QMAKESPEC="$PLATFORM" |
2653 else |
2713 else |
2654 QMAKESPEC="$relpath/mkspecs/${PLATFORM}" |
2714 QMAKESPEC="$relpath/mkspecs/${PLATFORM}" |
2655 fi |
2715 fi |
2753 esac |
2813 esac |
2754 fi |
2814 fi |
2755 |
2815 |
2756 if [ -z "${CFG_HOST_ARCH}" ]; then |
2816 if [ -z "${CFG_HOST_ARCH}" ]; then |
2757 case "$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_MACHINE" in |
2817 case "$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_MACHINE" in |
2818 GNU:*:*) |
|
2819 CFG_HOST_ARCH=`echo ${UNAME_MACHINE} | sed -e 's,[-/].*$,,'` |
|
2820 case "$CFG_HOST_ARCH" in |
|
2821 i?86) |
|
2822 CFG_HOST_ARCH=i386 |
|
2823 ;; |
|
2824 esac |
|
2825 if [ "$OPT_VERBOSE" = "yes" ]; then |
|
2826 echo " GNU/Hurd ($CFG_HOST_ARCH)" |
|
2827 fi |
|
2828 ;; |
|
2758 IRIX*:*:*) |
2829 IRIX*:*:*) |
2759 CFG_HOST_ARCH=`uname -p` |
2830 CFG_HOST_ARCH=`uname -p` |
2760 if [ "$OPT_VERBOSE" = "yes" ]; then |
2831 if [ "$OPT_VERBOSE" = "yes" ]; then |
2761 echo " SGI ($CFG_HOST_ARCH)" |
2832 echo " SGI ($CFG_HOST_ARCH)" |
2762 fi |
2833 fi |
2815 ;; |
2886 ;; |
2816 *:*:i?86) |
2887 *:*:i?86) |
2817 if [ "$OPT_VERBOSE" = "yes" ]; then |
2888 if [ "$OPT_VERBOSE" = "yes" ]; then |
2818 echo " 32-bit Intel 80x86 (i386)" |
2889 echo " 32-bit Intel 80x86 (i386)" |
2819 fi |
2890 fi |
2820 CFG_HOST_ARCH=i386 |
2891 if echo "$XPLATFORM" | grep "symbian" > /dev/null 2>&1 ; then |
2892 CFG_ARCH=symbian |
|
2893 fi |
|
2894 #else |
|
2895 CFG_HOST_ARCH=i386 |
|
2896 #fi |
|
2821 ;; |
2897 ;; |
2822 *:*:x86_64|*:*:amd64) |
2898 *:*:x86_64|*:*:amd64) |
2823 if [ "$PLATFORM" = "linux-g++-32" -o "$PLATFORM" = "linux-icc-32" ]; then |
2899 if [ "$PLATFORM" = "linux-g++-32" -o "$PLATFORM" = "linux-icc-32" ]; then |
2824 if [ "$OPT_VERBOSE" = "yes" ]; then |
2900 if [ "$OPT_VERBOSE" = "yes" ]; then |
2825 echo " 32 bit on 64-bit AMD 80x86 (i386)" |
2901 echo " 32 bit on 64-bit AMD 80x86 (i386)" |
2826 fi |
2902 fi |
2827 CFG_HOST_ARCH=i386 |
2903 if echo "$XPLATFORM" | grep "symbian" > /dev/null 2>&1 ; then |
2904 CFG_ARCH=symbian |
|
2905 fi #else |
|
2906 CFG_HOST_ARCH=i386 |
|
2907 #fi |
|
2828 else |
2908 else |
2829 if [ "$OPT_VERBOSE" = "yes" ]; then |
2909 if [ "$OPT_VERBOSE" = "yes" ]; then |
2830 echo " 64-bit AMD 80x86 (x86_64)" |
2910 echo " 64-bit AMD 80x86 (x86_64)" |
2831 fi |
2911 fi |
2832 CFG_HOST_ARCH=x86_64 |
2912 if echo "$XPLATFORM" | grep "symbian" > /dev/null 2>&1 ; then |
2913 CFG_ARCH=symbian |
|
2914 fi #else |
|
2915 CFG_HOST_ARCH=x86_64 |
|
2916 #fi |
|
2833 fi |
2917 fi |
2834 ;; |
2918 ;; |
2835 *:*:ppc) |
2919 *:*:ppc) |
2836 if [ "$OPT_VERBOSE" = "yes" ]; then |
2920 if [ "$OPT_VERBOSE" = "yes" ]; then |
2837 echo " 32-bit PowerPC (powerpc)" |
2921 echo " 32-bit PowerPC (powerpc)" |
2907 ;; |
2991 ;; |
2908 *) |
2992 *) |
2909 CFG_ARCH="$CFG_EMBEDDED" |
2993 CFG_ARCH="$CFG_EMBEDDED" |
2910 ;; |
2994 ;; |
2911 esac |
2995 esac |
2996 elif [ "$XPLATFORM_MINGW" = "yes" ]; then |
|
2997 [ -z "$CFG_ARCH" ] && CFG_ARCH="windows" |
|
2998 elif echo "$XPLATFORM" | grep symbian > /dev/null; then |
|
2999 CFG_ARCH=symbian |
|
2912 elif [ "$PLATFORM_MAC" = "yes" ] || [ -z "$CFG_ARCH" ]; then |
3000 elif [ "$PLATFORM_MAC" = "yes" ] || [ -z "$CFG_ARCH" ]; then |
2913 CFG_ARCH=$CFG_HOST_ARCH |
3001 CFG_ARCH=$CFG_HOST_ARCH |
2914 fi |
3002 fi |
2915 |
3003 |
2916 if [ -d "$relpath/src/corelib/arch/$CFG_ARCH" ]; then |
3004 if [ -d "$relpath/src/corelib/arch/$CFG_ARCH" ]; then |
3031 CFG_FRAMEWORK=no |
3119 CFG_FRAMEWORK=no |
3032 fi |
3120 fi |
3033 |
3121 |
3034 QMAKE_CONF_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]" | sed "s,.* *= *\(.*\)$,\1," | tail -1` |
3122 QMAKE_CONF_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]" | sed "s,.* *= *\(.*\)$,\1," | tail -1` |
3035 TEST_COMPILER="$CXX" |
3123 TEST_COMPILER="$CXX" |
3124 |
|
3036 [ -z "$TEST_COMPILER" ] && TEST_COMPILER=$QMAKE_CONF_COMPILER |
3125 [ -z "$TEST_COMPILER" ] && TEST_COMPILER=$QMAKE_CONF_COMPILER |
3037 if [ -z "$TEST_COMPILER" ]; then |
3126 if [ "$XPLATFORM" != "symbian-sbsv2" ]; then |
3038 echo "ERROR: Cannot set the compiler for the configuration tests" |
3127 #for Symbian we don't need this checking |
3039 exit 1 |
3128 if [ -z "$TEST_COMPILER" ]; then |
3040 fi |
3129 echo "ERROR: Cannot set the compiler for the configuration tests" |
3130 exit 1 |
|
3131 fi |
|
3132 fi |
|
3133 |
|
3041 |
3134 |
3042 # auto-detect precompiled header support |
3135 # auto-detect precompiled header support |
3043 if [ "$CFG_PRECOMPILE" = "auto" ]; then |
3136 if [ "$CFG_PRECOMPILE" = "auto" ]; then |
3044 if [ `echo "$CFG_MAC_ARCHS" | wc -w` -gt 1 ]; then |
3137 if [ `echo "$CFG_MAC_ARCHS" | wc -w` -gt 1 ]; then |
3045 CFG_PRECOMPILE=no |
3138 CFG_PRECOMPILE=no |
3189 #------------------------------------------------------------------------------- |
3282 #------------------------------------------------------------------------------- |
3190 |
3283 |
3191 #prefix |
3284 #prefix |
3192 if [ -z "$QT_INSTALL_PREFIX" ]; then |
3285 if [ -z "$QT_INSTALL_PREFIX" ]; then |
3193 if [ "$CFG_DEV" = "yes" ]; then |
3286 if [ "$CFG_DEV" = "yes" ]; then |
3194 QT_INSTALL_PREFIX="$outpath" # In Development, we use sandboxed builds by default |
3287 QT_INSTALL_PREFIX="$outpath" # In Development, we use sandboxed builds by default |
3195 elif [ "$PLATFORM_QWS" = "yes" ]; then |
3288 elif [ "$PLATFORM_QWS" = "yes" ]; then |
3196 QT_INSTALL_PREFIX="/usr/local/Trolltech/QtEmbedded-${QT_VERSION}" |
3289 QT_INSTALL_PREFIX="/usr/local/Trolltech/QtEmbedded-${QT_VERSION}" |
3197 if [ "$PLATFORM" != "$XPLATFORM" ]; then |
3290 if [ "$PLATFORM" != "$XPLATFORM" ]; then |
3198 QT_INSTALL_PREFIX="${QT_INSTALL_PREFIX}-${CFG_ARCH}" |
3291 QT_INSTALL_PREFIX="${QT_INSTALL_PREFIX}-${CFG_ARCH}" |
3199 fi |
3292 fi |
3293 elif [ -d "$EPOCROOT" ]; then |
|
3294 case "$XPLATFORM" in *symbian*) |
|
3295 QT_INSTALL_PREFIX="$EPOCROOT/epoc32/" |
|
3296 QT_INSTALL_LIBS="$EPOCROOT/epoc32/release/armv5/lib/" |
|
3297 ;; |
|
3298 esac |
|
3200 else |
3299 else |
3201 QT_INSTALL_PREFIX="/usr/local/Trolltech/Qt-${QT_VERSION}" # the default install prefix is /usr/local/Trolltech/Qt-$QT_VERSION |
3300 QT_INSTALL_PREFIX="/usr/local/Trolltech/Qt-${QT_VERSION}" # the default install prefix is /usr/local/Trolltech/Qt-$QT_VERSION |
3202 fi |
3301 fi |
3203 fi |
3302 fi |
3204 QT_INSTALL_PREFIX=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_PREFIX"` |
3303 QT_INSTALL_PREFIX=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_PREFIX"` |
3205 |
3304 |
3206 #docs |
3305 if echo $XPLATFORM | grep symbian > /dev/null; then |
3207 if [ -z "$QT_INSTALL_DOCS" ]; then #default |
3306 [ -z "$QT_HOST_PREFIX" ] && QT_HOST_PREFIX="$QT_INSTALL_PREFIX" |
3208 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3307 [ -z "$QT_INSTALL_DOCS" ] && QT_INSTALL_DOCS= |
3209 if [ "$PLATFORM_MAC" = "yes" ]; then |
3308 [ -z "$QT_INSTALL_HEADERS" ] && QT_INSTALL_HEADERS= |
3210 QT_INSTALL_DOCS="/Developer/Documentation/Qt" |
3309 [ -z "$QT_INSTALL_LIBS" ] && QT_INSTALL_LIBS= |
3211 fi |
3310 [ -z "$QT_INSTALL_BINS" ] && QT_INSTALL_BINS= |
3212 fi |
3311 [ -z "$QT_INSTALL_PLUGINS" ] && QT_INSTALL_PLUGINS="\\\\resource\\\\qt$QT_LIBINFIX\\\\plugins" |
3213 [ -z "$QT_INSTALL_DOCS" ] && QT_INSTALL_DOCS="$QT_INSTALL_PREFIX/doc" #fallback |
3312 [ -z "$QT_INSTALL_IMPORTS" ] && QT_INSTALL_IMPORTS="\\\\resource\\\\qt$QT_LIBINFIX\\\\imports" |
3214 |
3313 [ -z "$QT_INSTALL_DATA" ] && QT_INSTALL_DATA= |
3215 fi |
3314 [ -z "$QT_INSTALL_TRANSLATIONS" ] && QT_INSTALL_TRANSLATIONS="\\\\resource\\\\qt$QT_LIBINFIX\\\\translations" |
3216 QT_INSTALL_DOCS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DOCS"` |
3315 [ -z "$QT_INSTALL_SETTINGS" ] && QT_INSTALL_SETTINGS= |
3217 |
3316 [ -z "$QT_INSTALL_EXAMPLES" ] && QT_INSTALL_EXAMPLES= |
3218 #headers |
3317 [ -z "$QT_INSTALL_DEMOS" ] && QT_INSTALL_DEMOS= |
3219 if [ -z "$QT_INSTALL_HEADERS" ]; then #default |
3318 else |
3220 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3319 #docs |
3221 if [ "$PLATFORM_MAC" = "yes" ]; then |
3320 if [ -z "$QT_INSTALL_DOCS" ]; then #default |
3222 if [ "$CFG_FRAMEWORK" = "yes" ]; then |
3321 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3223 QT_INSTALL_HEADERS= |
3322 if [ "$PLATFORM_MAC" = "yes" ]; then |
3323 QT_INSTALL_DOCS="/Developer/Documentation/Qt" |
|
3224 fi |
3324 fi |
3225 fi |
3325 fi |
3226 fi |
3326 [ -z "$QT_INSTALL_DOCS" ] && QT_INSTALL_DOCS="$QT_INSTALL_PREFIX/doc" #fallback |
3227 [ -z "$QT_INSTALL_HEADERS" ] && QT_INSTALL_HEADERS="$QT_INSTALL_PREFIX/include" |
3327 |
3228 |
3328 fi |
3229 fi |
3329 QT_INSTALL_DOCS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DOCS"` |
3230 QT_INSTALL_HEADERS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_HEADERS"` |
3330 |
3231 |
3331 #headers |
3232 #libs |
3332 if [ -z "$QT_INSTALL_HEADERS" ]; then #default |
3233 if [ -z "$QT_INSTALL_LIBS" ]; then #default |
3333 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3234 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3334 if [ "$PLATFORM_MAC" = "yes" ]; then |
3235 if [ "$PLATFORM_MAC" = "yes" ]; then |
3335 if [ "$CFG_FRAMEWORK" = "yes" ]; then |
3236 if [ "$CFG_FRAMEWORK" = "yes" ]; then |
3336 QT_INSTALL_HEADERS= |
3237 QT_INSTALL_LIBS="/Libraries/Frameworks" |
3337 fi |
3238 fi |
3338 fi |
3239 fi |
3339 fi |
3240 fi |
3340 [ -z "$QT_INSTALL_HEADERS" ] && QT_INSTALL_HEADERS="$QT_INSTALL_PREFIX/include" |
3241 [ -z "$QT_INSTALL_LIBS" ] && QT_INSTALL_LIBS="$QT_INSTALL_PREFIX/lib" #fallback |
3341 |
3242 fi |
3342 fi |
3243 QT_INSTALL_LIBS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_LIBS"` |
3343 QT_INSTALL_HEADERS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_HEADERS"` |
3244 |
3344 |
3245 #bins |
3345 #libs |
3246 if [ -z "$QT_INSTALL_BINS" ]; then #default |
3346 if [ -z "$QT_INSTALL_LIBS" ]; then #default |
3247 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3347 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3248 if [ "$PLATFORM_MAC" = "yes" ]; then |
3348 if [ "$PLATFORM_MAC" = "yes" ]; then |
3249 QT_INSTALL_BINS="/Developer/Applications/Qt" |
3349 if [ "$CFG_FRAMEWORK" = "yes" ]; then |
3250 fi |
3350 QT_INSTALL_LIBS="/Libraries/Frameworks" |
3251 fi |
3351 fi |
3252 [ -z "$QT_INSTALL_BINS" ] && QT_INSTALL_BINS="$QT_INSTALL_PREFIX/bin" #fallback |
3352 fi |
3253 |
3353 fi |
3254 fi |
3354 [ -z "$QT_INSTALL_LIBS" ] && QT_INSTALL_LIBS="$QT_INSTALL_PREFIX/lib" #fallback |
3255 QT_INSTALL_BINS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_BINS"` |
3355 fi |
3256 |
3356 QT_INSTALL_LIBS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_LIBS"` |
3257 #plugins |
3357 |
3258 if [ -z "$QT_INSTALL_PLUGINS" ]; then #default |
3358 #bins |
3259 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3359 if [ -z "$QT_INSTALL_BINS" ]; then #default |
3260 if [ "$PLATFORM_MAC" = "yes" ]; then |
3360 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3261 QT_INSTALL_PLUGINS="/Developer/Applications/Qt/plugins" |
3361 if [ "$PLATFORM_MAC" = "yes" ]; then |
3262 fi |
3362 QT_INSTALL_BINS="/Developer/Applications/Qt" |
3263 fi |
3363 fi |
3264 [ -z "$QT_INSTALL_PLUGINS" ] && QT_INSTALL_PLUGINS="$QT_INSTALL_PREFIX/plugins" #fallback |
3364 fi |
3265 fi |
3365 [ -z "$QT_INSTALL_BINS" ] && QT_INSTALL_BINS="$QT_INSTALL_PREFIX/bin" #fallback |
3266 QT_INSTALL_PLUGINS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_PLUGINS"` |
3366 |
3267 |
3367 fi |
3268 #imports |
3368 QT_INSTALL_BINS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_BINS"` |
3269 if [ -z "$QT_INSTALL_IMPORTS" ]; then #default |
3369 |
3270 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3370 #plugins |
3271 if [ "$PLATFORM_MAC" = "yes" ]; then |
3371 if [ -z "$QT_INSTALL_PLUGINS" ]; then #default |
3272 QT_INSTALL_IMPORTS="/Developer/Applications/Qt/imports" |
3372 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3273 fi |
3373 if [ "$PLATFORM_MAC" = "yes" ]; then |
3274 fi |
3374 QT_INSTALL_PLUGINS="/Developer/Applications/Qt/plugins" |
3275 [ -z "$QT_INSTALL_IMPORTS" ] && QT_INSTALL_IMPORTS="$QT_INSTALL_PREFIX/imports" #fallback |
3375 fi |
3276 fi |
3376 fi |
3277 QT_INSTALL_IMPORTS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_IMPORTS"` |
3377 [ -z "$QT_INSTALL_PLUGINS" ] && QT_INSTALL_PLUGINS="$QT_INSTALL_PREFIX/plugins" #fallback |
3278 |
3378 fi |
3279 #data |
3379 QT_INSTALL_PLUGINS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_PLUGINS"` |
3280 if [ -z "$QT_INSTALL_DATA" ]; then #default |
3380 |
3281 QT_INSTALL_DATA="$QT_INSTALL_PREFIX" |
3381 #imports |
3282 fi |
3382 if [ -z "$QT_INSTALL_IMPORTS" ]; then #default |
3283 QT_INSTALL_DATA=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DATA"` |
3383 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3284 |
3384 if [ "$PLATFORM_MAC" = "yes" ]; then |
3285 #translations |
3385 QT_INSTALL_IMPORTS="/Developer/Applications/Qt/imports" |
3286 if [ -z "$QT_INSTALL_TRANSLATIONS" ]; then #default |
3386 fi |
3287 QT_INSTALL_TRANSLATIONS="$QT_INSTALL_PREFIX/translations" |
3387 fi |
3288 fi |
3388 [ -z "$QT_INSTALL_IMPORTS" ] && QT_INSTALL_IMPORTS="$QT_INSTALL_PREFIX/imports" #fallback |
3289 QT_INSTALL_TRANSLATIONS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_TRANSLATIONS"` |
3389 fi |
3290 |
3390 QT_INSTALL_IMPORTS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_IMPORTS"` |
3291 #settings |
3391 |
3292 if [ -z "$QT_INSTALL_SETTINGS" ]; then #default |
3392 #data |
3293 if [ "$PLATFORM_MAC" = "yes" ]; then |
3393 if [ -z "$QT_INSTALL_DATA" ]; then #default |
3294 QT_INSTALL_SETTINGS=/Library/Preferences/Qt |
3394 QT_INSTALL_DATA="$QT_INSTALL_PREFIX" |
3295 else |
3395 fi |
3296 QT_INSTALL_SETTINGS=/etc/xdg |
3396 QT_INSTALL_DATA=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DATA"` |
3297 fi |
3397 |
3298 fi |
3398 #translations |
3299 QT_INSTALL_SETTINGS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_SETTINGS"` |
3399 if [ -z "$QT_INSTALL_TRANSLATIONS" ]; then #default |
3300 |
3400 QT_INSTALL_TRANSLATIONS="$QT_INSTALL_PREFIX/translations" |
3301 #examples |
3401 fi |
3302 if [ -z "$QT_INSTALL_EXAMPLES" ]; then #default |
3402 QT_INSTALL_TRANSLATIONS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_TRANSLATIONS"` |
3303 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3403 |
3304 if [ "$PLATFORM_MAC" = "yes" ]; then |
3404 #settings |
3305 QT_INSTALL_EXAMPLES="/Developer/Examples/Qt" |
3405 if [ -z "$QT_INSTALL_SETTINGS" ]; then #default |
3306 fi |
3406 if [ "$PLATFORM_MAC" = "yes" ]; then |
3307 fi |
3407 QT_INSTALL_SETTINGS=/Library/Preferences/Qt |
3308 [ -z "$QT_INSTALL_EXAMPLES" ] && QT_INSTALL_EXAMPLES="$QT_INSTALL_PREFIX/examples" #fallback |
3408 else |
3309 fi |
3409 QT_INSTALL_SETTINGS=/etc/xdg |
3310 QT_INSTALL_EXAMPLES=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_EXAMPLES"` |
3410 fi |
3311 |
3411 fi |
3312 #demos |
3412 QT_INSTALL_SETTINGS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_SETTINGS"` |
3313 if [ -z "$QT_INSTALL_DEMOS" ]; then #default |
3413 |
3314 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3414 #examples |
3315 if [ "$PLATFORM_MAC" = "yes" ]; then |
3415 if [ -z "$QT_INSTALL_EXAMPLES" ]; then #default |
3316 QT_INSTALL_DEMOS="/Developer/Examples/Qt/Demos" |
3416 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
3317 fi |
3417 if [ "$PLATFORM_MAC" = "yes" ]; then |
3318 fi |
3418 QT_INSTALL_EXAMPLES="/Developer/Examples/Qt" |
3319 [ -z "$QT_INSTALL_DEMOS" ] && QT_INSTALL_DEMOS="$QT_INSTALL_PREFIX/demos" |
3419 fi |
3320 fi |
3420 fi |
3321 QT_INSTALL_DEMOS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DEMOS"` |
3421 [ -z "$QT_INSTALL_EXAMPLES" ] && QT_INSTALL_EXAMPLES="$QT_INSTALL_PREFIX/examples" #fallback |
3422 fi |
|
3423 QT_INSTALL_EXAMPLES=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_EXAMPLES"` |
|
3424 |
|
3425 #demos |
|
3426 if [ -z "$QT_INSTALL_DEMOS" ]; then #default |
|
3427 if [ "$CFG_PREFIX_INSTALL" = "no" ]; then |
|
3428 if [ "$PLATFORM_MAC" = "yes" ]; then |
|
3429 QT_INSTALL_DEMOS="/Developer/Examples/Qt/Demos" |
|
3430 fi |
|
3431 fi |
|
3432 [ -z "$QT_INSTALL_DEMOS" ] && QT_INSTALL_DEMOS="$QT_INSTALL_PREFIX/demos" |
|
3433 fi |
|
3434 QT_INSTALL_DEMOS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DEMOS"` |
|
3435 fi |
|
3322 |
3436 |
3323 #------------------------------------------------------------------------------- |
3437 #------------------------------------------------------------------------------- |
3324 # help - interactive parts of the script _after_ this section please |
3438 # help - interactive parts of the script _after_ this section please |
3325 #------------------------------------------------------------------------------- |
3439 #------------------------------------------------------------------------------- |
3326 |
3440 |
3389 [-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] [-make <part>] |
3503 [-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] [-make <part>] |
3390 [-nomake <part>] [-R <string>] [-l <string>] [-no-rpath] [-rpath] [-continue] |
3504 [-nomake <part>] [-R <string>] [-l <string>] [-no-rpath] [-rpath] [-continue] |
3391 [-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups] [-no-iconv] |
3505 [-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups] [-no-iconv] |
3392 [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked] [-no-gui] |
3506 [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked] [-no-gui] |
3393 [-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2] |
3507 [-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2] |
3508 [-no-sse3] [-no-ssse3] [-no-sse4.1] [-no-sse4.2] [-no-avx] |
|
3394 [-qtnamespace <namespace>] [-qtlibinfix <infix>] [-separate-debug-info] [-armfpa] |
3509 [-qtnamespace <namespace>] [-qtlibinfix <infix>] [-separate-debug-info] [-armfpa] |
3395 [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns] |
3510 [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns] |
3396 [-no-multimedia] [-multimedia] [-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend] |
3511 [-no-multimedia] [-multimedia] [-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend] |
3397 [-no-media-backend] [-media-backend] [-no-audio-backend] [-audio-backend] |
3512 [-no-media-backend] [-media-backend] [-no-audio-backend] [-audio-backend] |
3398 [-no-openssl] [-openssl] [-openssl-linked] |
3513 [-no-openssl] [-openssl] [-openssl-linked] |
3580 |
3695 |
3581 -no-mmx ............ Do not compile with use of MMX instructions. |
3696 -no-mmx ............ Do not compile with use of MMX instructions. |
3582 -no-3dnow .......... Do not compile with use of 3DNOW instructions. |
3697 -no-3dnow .......... Do not compile with use of 3DNOW instructions. |
3583 -no-sse ............ Do not compile with use of SSE instructions. |
3698 -no-sse ............ Do not compile with use of SSE instructions. |
3584 -no-sse2 ........... Do not compile with use of SSE2 instructions. |
3699 -no-sse2 ........... Do not compile with use of SSE2 instructions. |
3700 -no-sse3 ........... Do not compile with use of SSE3 instructions. |
|
3701 -no-ssse3 .......... Do not compile with use of SSSE3 instructions. |
|
3702 -no-sse4.1.......... Do not compile with use of SSE4.1 instructions. |
|
3703 -no-sse4.2.......... Do not compile with use of SSE4.2 instructions. |
|
3704 -no-avx ............ Do not compile with use of AVX instructions. |
|
3585 |
3705 |
3586 -qtnamespace <name> Wraps all Qt library code in 'namespace <name> {...}'. |
3706 -qtnamespace <name> Wraps all Qt library code in 'namespace <name> {...}'. |
3587 -qtlibinfix <infix> Renames all libQt*.so to libQt*<infix>.so. |
3707 -qtlibinfix <infix> Renames all libQt*.so to libQt*<infix>.so. |
3588 |
3708 |
3589 -D <string> ........ Add an explicit define to the preprocessor. |
3709 -D <string> ........ Add an explicit define to the preprocessor. |
3596 |
3716 |
3597 -qt-zlib ........... Use the zlib bundled with Qt. |
3717 -qt-zlib ........... Use the zlib bundled with Qt. |
3598 + -system-zlib ....... Use zlib from the operating system. |
3718 + -system-zlib ....... Use zlib from the operating system. |
3599 See http://www.gzip.org/zlib |
3719 See http://www.gzip.org/zlib |
3600 |
3720 |
3601 -no-gif ............ Do not compile the plugin for GIF reading support. |
3721 -no-gif ............ Do not compile GIF reading support. |
3602 * -qt-gif ............ Compile the plugin for GIF reading support. |
3722 * -qt-gif ............ Compile GIF reading support. |
3603 See also src/plugins/imageformats/gif/qgifhandler.h |
3723 See also src/gui/image/qgifhandler_p.h |
3604 |
3724 |
3605 -no-libtiff ........ Do not compile the plugin for TIFF support. |
3725 -no-libtiff ........ Do not compile TIFF support. |
3606 -qt-libtiff ........ Use the libtiff bundled with Qt. |
3726 -qt-libtiff ........ Use the libtiff bundled with Qt. |
3607 + -system-libtiff .... Use libtiff from the operating system. |
3727 + -system-libtiff .... Use libtiff from the operating system. |
3608 See http://www.libtiff.org |
3728 See http://www.libtiff.org |
3609 |
3729 |
3610 -no-libpng ......... Do not compile in PNG support. |
3730 -no-libpng ......... Do not compile PNG support. |
3611 -qt-libpng ......... Use the libpng bundled with Qt. |
3731 -qt-libpng ......... Use the libpng bundled with Qt. |
3612 + -system-libpng ..... Use libpng from the operating system. |
3732 + -system-libpng ..... Use libpng from the operating system. |
3613 See http://www.libpng.org/pub/png |
3733 See http://www.libpng.org/pub/png |
3614 |
3734 |
3615 -no-libmng ......... Do not compile the plugin for MNG support. |
3735 -no-libmng ......... Do not compile MNG support. |
3616 -qt-libmng ......... Use the libmng bundled with Qt. |
3736 -qt-libmng ......... Use the libmng bundled with Qt. |
3617 + -system-libmng ..... Use libmng from the operating system. |
3737 + -system-libmng ..... Use libmng from the operating system. |
3618 See http://www.libmng.com |
3738 See http://www.libmng.com |
3619 |
3739 |
3620 -no-libjpeg ........ Do not compile the plugin for JPEG support. |
3740 -no-libjpeg ........ Do not compile JPEG support. |
3621 -qt-libjpeg ........ Use the libjpeg bundled with Qt. |
3741 -qt-libjpeg ........ Use the libjpeg bundled with Qt. |
3622 + -system-libjpeg .... Use libjpeg from the operating system. |
3742 + -system-libjpeg .... Use libjpeg from the operating system. |
3623 See http://www.ijg.org |
3743 See http://www.ijg.org |
3624 |
3744 |
3625 -no-openssl ........ Do not compile support for OpenSSL. |
3745 -no-openssl ........ Do not compile support for OpenSSL. |
4062 Platform="Qt for Embedded Linux" |
4182 Platform="Qt for Embedded Linux" |
4063 elif [ "$PLATFORM_MAC" = "yes" ]; then |
4183 elif [ "$PLATFORM_MAC" = "yes" ]; then |
4064 Platform="Qt for Mac OS X" |
4184 Platform="Qt for Mac OS X" |
4065 elif echo "$XPLATFORM" | grep "symbian" > /dev/null ; then |
4185 elif echo "$XPLATFORM" | grep "symbian" > /dev/null ; then |
4066 Platform="Qt for Symbian" |
4186 Platform="Qt for Symbian" |
4187 elif [ "$XPLATFORM_MINGW" = "yes" ]; then |
|
4188 Platform="Qt for Windows" |
|
4067 elif [ '!' -z "`getQMakeConf \"$XQMAKESPEC\" | grep QMAKE_LIBS_X11 | awk '{print $3;}'`" ]; then |
4189 elif [ '!' -z "`getQMakeConf \"$XQMAKESPEC\" | grep QMAKE_LIBS_X11 | awk '{print $3;}'`" ]; then |
4068 PLATFORM_X11=yes |
4190 PLATFORM_X11=yes |
4069 Platform="Qt for Linux/X11" |
4191 Platform="Qt for Linux/X11" |
4070 fi |
4192 fi |
4071 |
4193 |
4442 echo "/* All features enabled while building qmake */" >"$QMAKE_QCONFIG_H" |
4564 echo "/* All features enabled while building qmake */" >"$QMAKE_QCONFIG_H" |
4443 fi |
4565 fi |
4444 |
4566 |
4445 mv -f "$QMAKE_QCONFIG_H" "$QCONFIG_H" |
4567 mv -f "$QMAKE_QCONFIG_H" "$QCONFIG_H" |
4446 for conf in "$outpath/include/QtCore/qconfig.h" "$outpath/include/Qt/qconfig.h"; do |
4568 for conf in "$outpath/include/QtCore/qconfig.h" "$outpath/include/Qt/qconfig.h"; do |
4447 if [ '!' -f "$conf" ]; then |
4569 if echo "$XPLATFORM" | grep "symbian" > /dev/null ; then |
4448 ln -s "$QCONFIG_H" "$conf" |
4570 #Link is not supported for Symbian build system |
4571 [ -e "$conf" ] && rm -rf "$conf" |
|
4572 cp -a "$QCONFIG_H" "$conf" |
|
4573 else |
|
4574 if [ '!' -f "$conf" ]; then |
|
4575 ln -s "$QCONFIG_H" "$conf" |
|
4576 fi |
|
4449 fi |
4577 fi |
4450 done |
4578 done |
4451 |
4579 |
4452 #mkspecs/default is used as a (gasp!) default mkspec so QMAKESPEC needn't be set once configured |
4580 #mkspecs/default is used as a (gasp!) default mkspec so QMAKESPEC needn't be set once configured |
4453 rm -f mkspecs/default |
4581 rm -rf mkspecs/default |
4454 ln -s `echo $XQMAKESPEC | sed "s,^${relpath}/mkspecs/,,"` mkspecs/default |
4582 if echo "$XPLATFORM" | grep "symbian-sbsv2" > /dev/null ; then |
4583 #Link is not supported for Symbian build system |
|
4584 cp -a mkspecs/`echo $XQMAKESPEC | sed "s,^${relpath}/mkspecs/,,"` mkspecs/default |
|
4585 else |
|
4586 ln -s `echo $XQMAKESPEC | sed "s,^${relpath}/mkspecs/,,"` mkspecs/default |
|
4587 fi |
|
4455 # fix makefiles |
4588 # fix makefiles |
4456 for mkfile in GNUmakefile Makefile; do |
4589 for mkfile in GNUmakefile Makefile; do |
4457 EXTRA_LFLAGS= |
4590 EXTRA_LFLAGS= |
4458 EXTRA_CFLAGS= |
4591 EXTRA_CFLAGS= |
4459 in_mkfile="${mkfile}.in" |
4592 in_mkfile="${mkfile}.in" |
4632 else |
4765 else |
4633 CFG_SSE2=no |
4766 CFG_SSE2=no |
4634 fi |
4767 fi |
4635 fi |
4768 fi |
4636 |
4769 |
4770 # detect sse3 support |
|
4771 if [ "${CFG_SSE3}" = "auto" ]; then |
|
4772 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/sse3 "sse3" $L_FLAGS $I_FLAGS $l_FLAGS "-msse3"; then |
|
4773 CFG_SSE3=yes |
|
4774 else |
|
4775 CFG_SSE3=no |
|
4776 fi |
|
4777 fi |
|
4778 |
|
4779 # detect ssse3 support |
|
4780 if [ "${CFG_SSSE3}" = "auto" ]; then |
|
4781 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/ssse3 "ssse3" $L_FLAGS $I_FLAGS $l_FLAGS "-mssse3"; then |
|
4782 CFG_SSSE3=yes |
|
4783 else |
|
4784 CFG_SSSE3=no |
|
4785 fi |
|
4786 fi |
|
4787 |
|
4788 # detect sse4.1 support |
|
4789 if [ "${CFG_SSE4_1}" = "auto" ]; then |
|
4790 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/sse4_1 "sse4_1" $L_FLAGS $I_FLAGS $l_FLAGS "-msse4.1"; then |
|
4791 CFG_SSE4_1=yes |
|
4792 else |
|
4793 CFG_SSE4_1=no |
|
4794 fi |
|
4795 fi |
|
4796 |
|
4797 # detect sse4.2 support |
|
4798 if [ "${CFG_SSE4_2}" = "auto" ]; then |
|
4799 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/sse4_2 "sse4_2" $L_FLAGS $I_FLAGS $l_FLAGS "-msse4.2"; then |
|
4800 CFG_SSE4_2=yes |
|
4801 else |
|
4802 CFG_SSE4_2=no |
|
4803 fi |
|
4804 fi |
|
4805 |
|
4806 # detect avx support |
|
4807 if [ "${CFG_AVX}" = "auto" ]; then |
|
4808 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/avx "avx" $L_FLAGS $I_FLAGS $l_FLAGS "-mavx"; then |
|
4809 CFG_AVX=yes |
|
4810 else |
|
4811 CFG_AVX=no |
|
4812 fi |
|
4813 fi |
|
4814 |
|
4637 # check iWMMXt support |
4815 # check iWMMXt support |
4638 if [ "$CFG_IWMMXT" = "yes" ]; then |
4816 if [ "$CFG_IWMMXT" = "yes" ]; then |
4639 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/iwmmxt "iwmmxt" $L_FLAGS $I_FLAGS $l_FLAGS "-mcpu=iwmmxt" |
4817 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/iwmmxt "iwmmxt" $L_FLAGS $I_FLAGS $l_FLAGS "-mcpu=iwmmxt" |
4640 if [ $? != "0" ]; then |
4818 if [ $? != "0" ]; then |
4641 echo "The iWMMXt functionality test failed!" |
4819 echo "The iWMMXt functionality test failed!" |
4643 exit 1 |
4821 exit 1 |
4644 fi |
4822 fi |
4645 fi |
4823 fi |
4646 |
4824 |
4647 # detect neon support |
4825 # detect neon support |
4648 if ([ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]) && [ "${CFG_NEON}" = "auto" ]; then |
4826 if ( [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ] ) && [ "${CFG_NEON}" = "auto" ]; then |
4649 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/neon "neon" $L_FLAGS $I_FLAGS $l_FLAGS "-mfpu=neon"; then |
4827 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/neon "neon" $L_FLAGS $I_FLAGS $l_FLAGS "-mfpu=neon"; then |
4650 CFG_NEON=yes |
4828 CFG_NEON=yes |
4651 else |
4829 else |
4652 CFG_NEON=no |
4830 CFG_NEON=no |
4653 fi |
4831 fi |
4673 else |
4851 else |
4674 CFG_ZLIB=yes |
4852 CFG_ZLIB=yes |
4675 fi |
4853 fi |
4676 fi |
4854 fi |
4677 |
4855 |
4856 [ "$XPLATFORM_MINGW" = "yes" ] && QMakeVar add styles "windowsxp windowsvista" |
|
4857 |
|
4678 case "$XPLATFORM" in *symbian*) |
4858 case "$XPLATFORM" in *symbian*) |
4679 QMakeVar set styles "windows s60" #overwrite previous default |
4859 QMakeVar set styles "windows s60" #overwrite previous default |
4860 QMakeVar add imageformat-plugins "gif tiff jpeg" |
|
4680 CFG_LIBFREETYPE=no |
4861 CFG_LIBFREETYPE=no |
4862 |
|
4863 if [ "$CFG_LARGEFILE" = auto ]; then |
|
4864 CFG_LARGEFILE=no |
|
4865 fi |
|
4866 #Phonom should be enabled by default |
|
4867 if [ "$CFG_PHONON" = "auto" ]; then |
|
4868 CFG_PHONON=yes |
|
4869 fi |
|
4681 |
4870 |
4682 if test -z "$EPOCROOT"; then |
4871 if test -z "$EPOCROOT"; then |
4683 echo "Please export EPOCROOT. It should point to the sdk install dir" |
4872 echo "Please export EPOCROOT. It should point to the sdk install dir" |
4684 exit 1 |
4873 exit 1 |
4685 fi |
4874 fi |
4701 exit 1; |
4890 exit 1; |
4702 fi |
4891 fi |
4703 ) |
4892 ) |
4704 |
4893 |
4705 # compile a simple main that uses printf |
4894 # compile a simple main that uses printf |
4706 if ! "$symbiantests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/symbian/simple "simple" $L_FLAGS $I_FLAGS $l_FLAGS |
4895 if ! echo $XPLATFORM | grep symbian-sbsv2 > /dev/null; then |
4707 then |
4896 # Raptor does not support configure tests. |
4708 echo "Testing your compiler failed. Could not compile a simple application." |
4897 if ! "$symbiantests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/symbian/simple "simple" $L_FLAGS $I_FLAGS $l_FLAGS |
4709 echo "Fatal error; Rerun configure with -verbose to get more details." |
4898 then |
4710 exit 1; |
4899 echo "Testing your compiler failed. Could not compile a simple application." |
4900 echo "Fatal error; Rerun configure with -verbose to get more details." |
|
4901 exit 1; |
|
4902 fi |
|
4711 fi |
4903 fi |
4712 ;; |
4904 ;; |
4713 esac |
4905 esac |
4906 |
|
4907 if [ "$CFG_LARGEFILE" = "auto" ]; then |
|
4908 #Large files should be enabled for all Linux systems |
|
4909 CFG_LARGEFILE=yes |
|
4910 fi |
|
4911 |
|
4714 |
4912 |
4715 if [ "$CFG_S60" = "auto" ]; then |
4913 if [ "$CFG_S60" = "auto" ]; then |
4716 if echo "$XPLATFORM" | grep symbian > /dev/null; then |
4914 if echo "$XPLATFORM" | grep symbian > /dev/null; then |
4717 CFG_S60=yes |
4915 CFG_S60=yes |
4718 else |
4916 else |
4872 fi |
5070 fi |
4873 fi |
5071 fi |
4874 ;; |
5072 ;; |
4875 psql) |
5073 psql) |
4876 if [ "$CFG_SQL_psql" != "no" ]; then |
5074 if [ "$CFG_SQL_psql" != "no" ]; then |
4877 if "$WHICH" pg_config >/dev/null 2>&1; then |
5075 # Be careful not to use native pg_config when cross building. |
5076 if [ "$XPLATFORM_MINGW" != "yes" ] && "$WHICH" pg_config >/dev/null 2>&1; then |
|
4878 QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null` |
5077 QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null` |
4879 QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null` |
5078 QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null` |
4880 fi |
5079 fi |
4881 [ -z "$QT_CFLAGS_PSQL" ] || QT_CFLAGS_PSQL="-I$QT_CFLAGS_PSQL" |
5080 [ -z "$QT_CFLAGS_PSQL" ] || QT_CFLAGS_PSQL="-I$QT_CFLAGS_PSQL" |
4882 [ -z "$QT_LFLAGS_PSQL" ] || QT_LFLAGS_PSQL="-L$QT_LFLAGS_PSQL" |
5081 [ -z "$QT_LFLAGS_PSQL" ] || QT_LFLAGS_PSQL="-L$QT_LFLAGS_PSQL" |
5082 # But, respect PSQL_LIBS if set |
|
5083 [ -z "$PSQL_LIBS" ] || QT_LFLAGS_PSQL="$PSQL_LIBS" |
|
4883 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/psql "PostgreSQL" $QT_LFLAGS_PSQL $L_FLAGS $QT_CFLAGS_PSQL $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
5084 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/psql "PostgreSQL" $QT_LFLAGS_PSQL $L_FLAGS $QT_CFLAGS_PSQL $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
4884 if [ "$CFG_SQL_psql" = "auto" ]; then |
5085 if [ "$CFG_SQL_psql" = "auto" ]; then |
4885 CFG_SQL_psql=plugin |
5086 CFG_SQL_psql=plugin |
4886 fi |
5087 fi |
4887 else |
5088 else |
4899 fi |
5100 fi |
4900 fi |
5101 fi |
4901 ;; |
5102 ;; |
4902 odbc) |
5103 odbc) |
4903 if [ "$CFG_SQL_odbc" != "no" ]; then |
5104 if [ "$CFG_SQL_odbc" != "no" ]; then |
4904 if [ "$PLATFORM_MAC" != "yes" ] && "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/odbc "ODBC" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
5105 if ( [ "$PLATFORM_MAC" != "yes" ] || [ "$XPLATFORM_MINGW" = "yes" ] ) && "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/odbc "ODBC" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
4905 if [ "$CFG_SQL_odbc" = "auto" ]; then |
5106 if [ "$CFG_SQL_odbc" = "auto" ]; then |
4906 CFG_SQL_odbc=plugin |
5107 CFG_SQL_odbc=plugin |
4907 fi |
5108 fi |
4908 else |
5109 else |
4909 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/iodbc "iODBC" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
5110 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/iodbc "iODBC" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
5022 ;; |
5223 ;; |
5023 sqlite) |
5224 sqlite) |
5024 if [ "$CFG_SQL_sqlite" = "auto" ]; then # the default |
5225 if [ "$CFG_SQL_sqlite" = "auto" ]; then # the default |
5025 case "$XPLATFORM" in |
5226 case "$XPLATFORM" in |
5026 symbian*) |
5227 symbian*) |
5027 # sqlite on symbian is typically not build in Qt but deployed as a pre-existing sis file. |
5228 # sqlite on symbian is typically not build in Qt but deployed as a pre-existing sis file and should be marked as driver. |
5028 CFG_SQL_sqlite=no |
5229 # Configuration parameters should be set |
5230 CFG_SQL_sqlite=qt |
|
5231 QT_LFLAGS_SQLITE=-lsqlite3 |
|
5232 QMAKE_CONFIG="$QMAKE_CONFIG system-sqlite" |
|
5029 ;; |
5233 ;; |
5030 esac |
5234 esac |
5031 fi |
5235 fi |
5032 if [ "$CFG_SQL_sqlite" != "no" ]; then |
5236 if [ "$CFG_SQL_sqlite" != "no" ]; then |
5033 SQLITE_AUTODETECT_FAILED="no" |
5237 SQLITE_AUTODETECT_FAILED="no" |
5061 echo " switch (-continue) to $0 to continue." |
5265 echo " switch (-continue) to $0 to continue." |
5062 exit 101 |
5266 exit 101 |
5063 fi |
5267 fi |
5064 fi |
5268 fi |
5065 ;; |
5269 ;; |
5270 sqlite_symbian) |
|
5271 if [ "$OPT_VERBOSE" = "yes" ]; then |
|
5272 echo "sqlite 3 driver is used in Symbian" |
|
5273 fi |
|
5274 ;; |
|
5066 *) |
5275 *) |
5067 if [ "$OPT_VERBOSE" = "yes" ]; then |
5276 if [ "$OPT_VERBOSE" = "yes" ]; then |
5068 echo "unknown SQL driver: $_SQLDR" |
5277 echo "unknown SQL driver: $_SQLDR" |
5069 fi |
5278 fi |
5070 ;; |
5279 ;; |
5071 esac |
5280 esac |
5072 done |
5281 done |
5073 |
5282 |
5283 |
|
5074 # auto-detect NIS support |
5284 # auto-detect NIS support |
5075 if [ "$CFG_NIS" != "no" ]; then |
5285 if [ "$CFG_NIS" != "no" ]; then |
5076 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/nis "NIS" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
5286 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/nis "NIS" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
5077 CFG_NIS=yes |
5287 CFG_NIS=yes |
5078 else |
5288 else |
5109 if [ "$CFG_ICONV" != "no" ]; then |
5319 if [ "$CFG_ICONV" != "no" ]; then |
5110 if [ "$PLATFORM_QWS" = "yes" ]; then |
5320 if [ "$PLATFORM_QWS" = "yes" ]; then |
5111 CFG_ICONV=no |
5321 CFG_ICONV=no |
5112 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" "$OPT_VERBOSE" "$relpath" "$outpath" "config.tests/unix/iconv" "POSIX iconv" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
5322 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" "$OPT_VERBOSE" "$relpath" "$outpath" "config.tests/unix/iconv" "POSIX iconv" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
5113 CFG_ICONV=yes |
5323 CFG_ICONV=yes |
5324 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" "$OPT_VERBOSE" "$relpath" "$outpath" "config.tests/unix/sun-libiconv" "SUN libiconv" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
|
5325 CFG_ICONV=sun |
|
5114 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" "$OPT_VERBOSE" "$relpath" "$outpath" "config.tests/unix/gnu-libiconv" "GNU libiconv" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
5326 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" "$OPT_VERBOSE" "$relpath" "$outpath" "config.tests/unix/gnu-libiconv" "GNU libiconv" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
5115 CFG_ICONV=gnu |
5327 CFG_ICONV=gnu |
5116 else |
5328 else |
5117 if [ "$CFG_ICONV" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then |
5329 if [ "$CFG_ICONV" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then |
5118 echo "Iconv support cannot be enabled due to functionality tests!" |
5330 echo "Iconv support cannot be enabled due to functionality tests!" |
5165 # Carbon events work. |
5377 # Carbon events work. |
5166 if [ "$PLATFORM_MAC" = "yes" -a ! -z "$QT_NAMESPACE" ]; then |
5378 if [ "$PLATFORM_MAC" = "yes" -a ! -z "$QT_NAMESPACE" ]; then |
5167 QT_NAMESPACE_MAC_CRC=`"$mactests/crc.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/mac/crc $QT_NAMESPACE $L_FLAGS $I_FLAGS $l_FLAGS` |
5379 QT_NAMESPACE_MAC_CRC=`"$mactests/crc.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/mac/crc $QT_NAMESPACE $L_FLAGS $I_FLAGS $l_FLAGS` |
5168 fi |
5380 fi |
5169 |
5381 |
5382 # X11/QWS |
|
5170 if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then |
5383 if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then |
5171 |
5384 |
5172 # auto-detect Glib support |
5385 # auto-detect Glib support |
5173 if [ "$CFG_GLIB" != "no" ]; then |
5386 if [ "$CFG_GLIB" != "no" ]; then |
5174 if [ -n "$PKG_CONFIG" ]; then |
5387 if [ -n "$PKG_CONFIG" ]; then |
5329 fi |
5542 fi |
5330 fi |
5543 fi |
5331 fi |
5544 fi |
5332 fi # X11/QWS |
5545 fi # X11/QWS |
5333 |
5546 |
5334 # x11 |
5547 # X11 |
5335 if [ "$PLATFORM_X11" = "yes" ]; then |
5548 if [ "$PLATFORM_X11" = "yes" ]; then |
5336 x11tests="$relpath/config.tests/x11" |
5549 x11tests="$relpath/config.tests/x11" |
5337 X11TESTS_FLAGS= |
5550 X11TESTS_FLAGS= |
5338 |
5551 |
5339 # work around broken X11 headers when using GCC 2.95 or later |
5552 # work around broken X11 headers when using GCC 2.95 or later |
5350 echo "Basic XLib functionality test failed!" |
5563 echo "Basic XLib functionality test failed!" |
5351 echo " You might need to modify the include and library search paths by editing" |
5564 echo " You might need to modify the include and library search paths by editing" |
5352 echo " QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in ${XQMAKESPEC}." |
5565 echo " QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in ${XQMAKESPEC}." |
5353 exit 1 |
5566 exit 1 |
5354 fi |
5567 fi |
5355 |
5568 fi |
5569 |
|
5570 # X11/MINGW OpenGL |
|
5571 if [ "$PLATFORM_X11" = "yes" -o "$XPLATFORM_MINGW" = "yes" ]; then |
|
5356 # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es2 = OpenGL ES 2.x) |
5572 # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es2 = OpenGL ES 2.x) |
5357 if [ "$CFG_GUI" = "no" ]; then |
5573 if [ "$CFG_GUI" = "no" ]; then |
5358 if [ "$CFG_OPENGL" = "auto" ]; then |
5574 if [ "$CFG_OPENGL" = "auto" ]; then |
5359 CFG_OPENGL=no |
5575 CFG_OPENGL=no |
5360 fi |
5576 fi |
5446 # if opengl is disabled and the user specified graphicssystem gl, disable it... |
5662 # if opengl is disabled and the user specified graphicssystem gl, disable it... |
5447 if [ "$CFG_GRAPHICS_SYSTEM" = "opengl" ] && [ "$CFG_OPENGL" = "no" ]; then |
5663 if [ "$CFG_GRAPHICS_SYSTEM" = "opengl" ] && [ "$CFG_OPENGL" = "no" ]; then |
5448 echo "OpenGL Graphics System is disabled due to missing OpenGL support..." |
5664 echo "OpenGL Graphics System is disabled due to missing OpenGL support..." |
5449 CFG_GRAPHICS_SYSTEM=default |
5665 CFG_GRAPHICS_SYSTEM=default |
5450 fi |
5666 fi |
5451 |
5667 fi # X11/MINGW OpenGL |
5668 |
|
5669 # X11 |
|
5670 if [ "$PLATFORM_X11" = "yes" ]; then |
|
5452 # auto-detect Xcursor support |
5671 # auto-detect Xcursor support |
5453 if [ "$CFG_XCURSOR" != "no" ]; then |
5672 if [ "$CFG_XCURSOR" != "no" ]; then |
5454 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xcursor "Xcursor" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then |
5673 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xcursor "Xcursor" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then |
5455 if [ "$CFG_XCURSOR" != "runtime" ]; then |
5674 if [ "$CFG_XCURSOR" != "runtime" ]; then |
5456 CFG_XCURSOR=yes; |
5675 CFG_XCURSOR=yes; |
5809 exit 1 |
6028 exit 1 |
5810 fi |
6029 fi |
5811 fi |
6030 fi |
5812 |
6031 |
5813 if [ "${screen}" = "directfb" ] && [ "${CFG_CONFIGURE_EXIT_ON_ERROR}" = "yes" ]; then |
6032 if [ "${screen}" = "directfb" ] && [ "${CFG_CONFIGURE_EXIT_ON_ERROR}" = "yes" ]; then |
5814 if [ -n "$PKG_CONFIG" ]; then |
6033 if test -n "$PKG_CONFIG" && "$PKG_CONFIG" --exists directfb 2>/dev/null; then |
5815 if $PKG_CONFIG --exists directfb 2>/dev/null; then |
6034 QT_CFLAGS_DIRECTFB=`$PKG_CONFIG --cflags directfb 2>/dev/null` |
5816 QT_CFLAGS_DIRECTFB=`$PKG_CONFIG --cflags directfb 2>/dev/null` |
6035 QT_LIBS_DIRECTFB=`$PKG_CONFIG --libs directfb 2>/dev/null` |
5817 QT_LIBS_DIRECTFB=`$PKG_CONFIG --libs directfb 2>/dev/null` |
6036 elif directfb-config --version >/dev/null 2>&1; then |
5818 elif directfb-config --version >/dev/null 2>&1; then |
6037 QT_CFLAGS_DIRECTFB=`directfb-config --cflags 2>/dev/null` |
5819 QT_CFLAGS_DIRECTFB=`directfb-config --cflags 2>/dev/null` |
6038 QT_LIBS_DIRECTFB=`directfb-config --libs 2>/dev/null` |
5820 QT_LIBS_DIRECTFB=`directfb-config --libs 2>/dev/null` |
|
5821 fi |
|
5822 fi |
6039 fi |
5823 |
6040 |
5824 # QMake variables set here override those in the mkspec. Therefore we only set the variables here if they are not zero. |
6041 # QMake variables set here override those in the mkspec. Therefore we only set the variables here if they are not zero. |
5825 if [ -n "$QT_CFLAGS_DIRECTFB" ] || [ -n "$QT_LIBS_DIRECTFB" ]; then |
6042 if [ -n "$QT_CFLAGS_DIRECTFB" ] || [ -n "$QT_LIBS_DIRECTFB" ]; then |
5826 QMakeVar set QT_CFLAGS_DIRECTFB "$QT_CFLAGS_DIRECTFB" |
6043 QMakeVar set QT_CFLAGS_DIRECTFB "$QT_CFLAGS_DIRECTFB" |
5894 fi |
6111 fi |
5895 fi |
6112 fi |
5896 fi |
6113 fi |
5897 fi |
6114 fi |
5898 |
6115 |
6116 [ "$XPLATFORM_MINGW" = "yes" ] && [ "$CFG_PHONON" != "no" ] && CFG_PHONON="yes" |
|
6117 |
|
5899 # freetype support |
6118 # freetype support |
5900 [ "x$CFG_EMBEDDED" != "xno" ] && CFG_LIBFREETYPE="$CFG_QWS_FREETYPE" |
6119 [ "x$CFG_EMBEDDED" != "xno" ] && CFG_LIBFREETYPE="$CFG_QWS_FREETYPE" |
5901 [ "x$PLATFORM_MAC" = "xyes" ] && CFG_LIBFREETYPE=no |
6120 [ "x$PLATFORM_MAC" = "xyes" ] && CFG_LIBFREETYPE=no |
6121 [ "$XPLATFORM_MINGW" = "yes" ] && [ "$CFG_LIBFREETYPE" = "auto" ] && CFG_LIBFREETYPE=no |
|
5902 if [ "$CFG_LIBFREETYPE" = "auto" ]; then |
6122 if [ "$CFG_LIBFREETYPE" = "auto" ]; then |
5903 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/freetype "FreeType" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
6123 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/freetype "FreeType" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
5904 CFG_LIBFREETYPE=system |
6124 CFG_LIBFREETYPE=system |
5905 else |
6125 else |
5906 CFG_LIBFREETYPE=yes |
6126 CFG_LIBFREETYPE=yes |
5907 fi |
6127 fi |
5908 fi |
6128 fi |
5909 |
6129 |
5910 if [ "$CFG_ENDIAN" = "auto" ]; then |
6130 if [ "$CFG_ENDIAN" = "auto" ]; then |
5911 if [ "$PLATFORM_MAC" = "yes" ]; then |
6131 if [ "$XPLATFORM_MINGW" = "yes" ]; then |
6132 CFG_ENDIAN="Q_LITTLE_ENDIAN" |
|
6133 elif [ "$PLATFORM_MAC" = "yes" ]; then |
|
5912 true #leave as auto |
6134 true #leave as auto |
5913 elif [ "$XPLATFORM" = "symbian-sbsv2" ]; then |
6135 elif [ "$XPLATFORM" = "symbian-sbsv2" ]; then |
5914 CFG_ENDIAN="Q_LITTLE_ENDIAN" |
6136 CFG_ENDIAN="Q_LITTLE_ENDIAN" |
5915 else |
6137 else |
5916 "$unixtests/endian.test" "$XQMAKESPEC" $OPT_VERBOSE "$relpath" "$outpath" |
6138 "$unixtests/endian.test" "$XQMAKESPEC" $OPT_VERBOSE "$relpath" "$outpath" |
6017 fi |
6239 fi |
6018 fi |
6240 fi |
6019 |
6241 |
6020 # find if the platform supports IPv6 |
6242 # find if the platform supports IPv6 |
6021 if [ "$CFG_IPV6" != "no" ]; then |
6243 if [ "$CFG_IPV6" != "no" ]; then |
6022 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/ipv6 "IPv6" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
6244 if [ "$XPLATFORM" = "symbian-sbsv2" ]; then |
6245 #IPV6 should always be enabled for Symbian release |
|
6246 CFG_IPV6=yes |
|
6247 elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/ipv6 "IPv6" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
|
6023 CFG_IPV6=yes |
6248 CFG_IPV6=yes |
6024 else |
6249 else |
6025 if [ "$CFG_IPV6" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then |
6250 if [ "$CFG_IPV6" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then |
6026 echo "IPv6 support cannot be enabled due to functionality tests!" |
6251 echo "IPv6 support cannot be enabled due to functionality tests!" |
6027 echo " Turn on verbose messaging (-v) to $0 to see the final report." |
6252 echo " Turn on verbose messaging (-v) to $0 to see the final report." |
6130 fi |
6355 fi |
6131 fi |
6356 fi |
6132 fi |
6357 fi |
6133 |
6358 |
6134 # detect OpenSSL |
6359 # detect OpenSSL |
6135 if [ "$CFG_OPENSSL" != "no" ]; then |
6360 if [ "$CFG_OPENSSL" != "no" ] && [ "$XPLATFORM" != "symbian-sbsv2" ]; then |
6136 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/openssl "OpenSSL" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
6361 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/openssl "OpenSSL" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then |
6137 if [ "$CFG_OPENSSL" = "auto" ]; then |
6362 if [ "$CFG_OPENSSL" = "auto" ]; then |
6138 CFG_OPENSSL=yes |
6363 CFG_OPENSSL=yes |
6139 fi |
6364 fi |
6140 else |
6365 else |
6146 exit 101 |
6371 exit 101 |
6147 else |
6372 else |
6148 CFG_OPENSSL=no |
6373 CFG_OPENSSL=no |
6149 fi |
6374 fi |
6150 fi |
6375 fi |
6376 else |
|
6377 if [ "$CFG_OPENSSL" = "auto" ] && [ "$XPLATFORM" = "symbian-sbsv2" ]; then |
|
6378 #OpenSSl should be enabled for Symbian release |
|
6379 CFG_OPENSSL=yes |
|
6380 fi |
|
6151 fi |
6381 fi |
6152 |
6382 |
6153 # detect OpenVG support |
6383 # detect OpenVG support |
6154 if [ "$CFG_OPENVG" != "no" ] && [ "$XPLATFORM" != "symbian-sbsv2" ]; then |
6384 if [ "$CFG_OPENVG" != "no" ] && [ "$XPLATFORM" != "symbian-sbsv2" ]; then |
6155 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/openvg" "OpenVG" $L_FLAGS $I_FLAGS $l_FLAGS $CONFIG_ARG; then |
6385 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/openvg" "OpenVG" $L_FLAGS $I_FLAGS $l_FLAGS $CONFIG_ARG; then |
6201 mkdir "$outpath/lib/" ; cp "libptmalloc3.a" "$outpath/lib/") |
6431 mkdir "$outpath/lib/" ; cp "libptmalloc3.a" "$outpath/lib/") |
6202 |
6432 |
6203 QMakeVar add QMAKE_LFLAGS "$outpath/lib/libptmalloc3.a" |
6433 QMakeVar add QMAKE_LFLAGS "$outpath/lib/libptmalloc3.a" |
6204 fi |
6434 fi |
6205 |
6435 |
6206 if [ "$CFG_ALSA" = "auto" ]; then |
6436 if [ "$CFG_ALSA" = "auto" ] && [ "$XPLATFORM" != "symbian-sbsv2" ]; then |
6207 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/alsa "alsa" $L_FLAGS $I_FLAGS $l_FLAGS; then |
6437 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/alsa "alsa" $L_FLAGS $I_FLAGS $l_FLAGS; then |
6208 CFG_ALSA=yes |
6438 CFG_ALSA=yes |
6209 else |
6439 else |
6210 CFG_ALSA=no |
6440 CFG_ALSA=no |
6211 fi |
6441 fi |
6442 elif [ "$XPLATFORM" = "symbian-sbsv2" ]; then |
|
6443 # Disabled for Symbian release |
|
6444 CFG_ALSA=no |
|
6212 fi |
6445 fi |
6213 |
6446 |
6214 if [ "$CFG_JAVASCRIPTCORE_JIT" = "yes" ] || [ "$CFG_JAVASCRIPTCORE_JIT" = "auto" ]; then |
6447 if [ "$CFG_JAVASCRIPTCORE_JIT" = "yes" ] || [ "$CFG_JAVASCRIPTCORE_JIT" = "auto" ]; then |
6215 if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then |
6448 if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then |
6216 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/javascriptcore-jit "javascriptcore-jit" $L_FLAGS $I_FLAGS $l_FLAGS |
6449 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/javascriptcore-jit "javascriptcore-jit" $L_FLAGS $I_FLAGS $l_FLAGS |
6226 QMakeVar set JAVASCRIPTCORE_JIT no |
6459 QMakeVar set JAVASCRIPTCORE_JIT no |
6227 fi |
6460 fi |
6228 |
6461 |
6229 if [ "$CFG_AUDIO_BACKEND" = "auto" ]; then |
6462 if [ "$CFG_AUDIO_BACKEND" = "auto" ]; then |
6230 if echo "$XPLATFORM" | grep symbian > /dev/null 2>&1; then |
6463 if echo "$XPLATFORM" | grep symbian > /dev/null 2>&1; then |
6231 "$symbiantests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/symbian/audio "audio" $L_FLAGS $I_FLAGS $l_FLAGS |
6464 if "$symbiantests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/symbian/audio "audio" $L_FLAGS $I_FLAGS $l_FLAGS ; then |
6465 CFG_AUDIO_BACKEND=yes |
|
6466 fi |
|
6232 else |
6467 else |
6233 CFG_AUDIO_BACKEND=yes |
6468 CFG_AUDIO_BACKEND=yes |
6234 fi |
6469 fi |
6470 fi |
|
6471 |
|
6472 if [ "$CFG_LARGEFILE" != "yes" ] && [ "$XPLATFORM_MINGW" = "yes" ]; then |
|
6473 echo "Warning: largefile support cannot be disabled for win32." |
|
6474 CFG_LARGEFILE="yes" |
|
6475 elif [ "$CFG_LARGEFILE" != "no" ] && echo "$XPLATFORM" | grep "symbian" > /dev/null; then |
|
6476 echo "Warning: largefile support cannot be enabled for symbian." |
|
6477 CFG_LARGEFILE="no" |
|
6235 fi |
6478 fi |
6236 |
6479 |
6237 #------------------------------------------------------------------------------- |
6480 #------------------------------------------------------------------------------- |
6238 # ask for all that hasn't been auto-detected or specified in the arguments |
6481 # ask for all that hasn't been auto-detected or specified in the arguments |
6239 #------------------------------------------------------------------------------- |
6482 #------------------------------------------------------------------------------- |
6334 CFG_MAC_COCOA="no"; |
6577 CFG_MAC_COCOA="no"; |
6335 CFG_MAC_CARBON="yes"; |
6578 CFG_MAC_CARBON="yes"; |
6336 fi |
6579 fi |
6337 fi |
6580 fi |
6338 |
6581 |
6582 # but disable Cocoa if cross-building for mingw |
|
6583 [ "$XPLATFORM_MINGW" = "yes" ] && CFG_MAC_COCOA="no" |
|
6584 |
|
6339 # set the global Mac deployment target. This is overridden on an arch-by-arch basis |
6585 # set the global Mac deployment target. This is overridden on an arch-by-arch basis |
6340 # in some cases, see code further down |
6586 # in some cases, see code further down |
6341 case "$PLATFORM,$CFG_MAC_COCOA" in |
6587 case "$PLATFORM,$CFG_MAC_COCOA" in |
6342 macx*,yes) |
6588 macx*,yes) |
6343 # Cocoa |
6589 # Cocoa |
6472 QMakeVar set PRECOMPILED_DIR ".pch/$QMAKE_OUTDIR" |
6718 QMakeVar set PRECOMPILED_DIR ".pch/$QMAKE_OUTDIR" |
6473 QMakeVar set OBJECTS_DIR ".obj/$QMAKE_OUTDIR" |
6719 QMakeVar set OBJECTS_DIR ".obj/$QMAKE_OUTDIR" |
6474 QMakeVar set MOC_DIR ".moc/$QMAKE_OUTDIR" |
6720 QMakeVar set MOC_DIR ".moc/$QMAKE_OUTDIR" |
6475 QMakeVar set RCC_DIR ".rcc/$QMAKE_OUTDIR" |
6721 QMakeVar set RCC_DIR ".rcc/$QMAKE_OUTDIR" |
6476 QMakeVar set UI_DIR ".uic/$QMAKE_OUTDIR" |
6722 QMakeVar set UI_DIR ".uic/$QMAKE_OUTDIR" |
6477 if [ "$CFG_LARGEFILE" = "yes" ]; then |
6723 if [ "$CFG_LARGEFILE" = "yes" ] && [ "$XPLATFORM_MINGW" != "yes" ]; then |
6478 QMAKE_CONFIG="$QMAKE_CONFIG largefile" |
6724 QMAKE_CONFIG="$QMAKE_CONFIG largefile" |
6479 fi |
6725 fi |
6480 if [ "$CFG_STL" = "no" ]; then |
6726 if [ "$CFG_STL" = "no" ]; then |
6481 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STL" |
6727 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STL" |
6482 else |
6728 else |
6498 fi |
6744 fi |
6499 [ "$CFG_MMX" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG mmx" |
6745 [ "$CFG_MMX" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG mmx" |
6500 [ "$CFG_3DNOW" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG 3dnow" |
6746 [ "$CFG_3DNOW" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG 3dnow" |
6501 [ "$CFG_SSE" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse" |
6747 [ "$CFG_SSE" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse" |
6502 [ "$CFG_SSE2" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse2" |
6748 [ "$CFG_SSE2" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse2" |
6749 [ "$CFG_SSE3" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse3" |
|
6750 [ "$CFG_SSSE3" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG ssse3" |
|
6751 [ "$CFG_SSE4_1" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse4_1" |
|
6752 [ "$CFG_SSE4_2" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse4_2" |
|
6753 [ "$CFG_AVX" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG avx" |
|
6503 [ "$CFG_IWMMXT" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG iwmmxt" |
6754 [ "$CFG_IWMMXT" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG iwmmxt" |
6504 [ "$CFG_NEON" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG neon" |
6755 [ "$CFG_NEON" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG neon" |
6505 [ "$PLATFORM_MAC" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG $CFG_MAC_ARCHS" |
6756 [ "$PLATFORM_MAC" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG $CFG_MAC_ARCHS" |
6506 if [ "$CFG_IPV6" = "yes" ]; then |
6757 if [ "$CFG_IPV6" = "yes" ]; then |
6507 QT_CONFIG="$QT_CONFIG ipv6" |
6758 QT_CONFIG="$QT_CONFIG ipv6" |
6573 elif [ "$CFG_TIFF" = "yes" ]; then |
6824 elif [ "$CFG_TIFF" = "yes" ]; then |
6574 QT_CONFIG="$QT_CONFIG tiff" |
6825 QT_CONFIG="$QT_CONFIG tiff" |
6575 fi |
6826 fi |
6576 if [ "$CFG_LIBFREETYPE" = "no" ]; then |
6827 if [ "$CFG_LIBFREETYPE" = "no" ]; then |
6577 QT_CONFIG="$QT_CONFIG no-freetype" |
6828 QT_CONFIG="$QT_CONFIG no-freetype" |
6829 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_FREETYPE" |
|
6578 elif [ "$CFG_LIBFREETYPE" = "system" ]; then |
6830 elif [ "$CFG_LIBFREETYPE" = "system" ]; then |
6579 QT_CONFIG="$QT_CONFIG system-freetype" |
6831 QT_CONFIG="$QT_CONFIG system-freetype" |
6580 else |
6832 else |
6581 QT_CONFIG="$QT_CONFIG freetype" |
6833 QT_CONFIG="$QT_CONFIG freetype" |
6582 fi |
6834 fi |
6588 else |
6840 else |
6589 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GUI" |
6841 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GUI" |
6590 fi |
6842 fi |
6591 |
6843 |
6592 |
6844 |
6593 if [ "x$PLATFORM_MAC" = "xyes" ] && [ "$XPLATFORM" != "win32-g++" ]; then |
6845 if [ "x$PLATFORM_MAC" = "xyes" ] && [ "$XPLATFORM_MINGW" != "yes" ]; then |
6594 #On Mac we implicitly link against libz, so we |
6846 #On Mac we implicitly link against libz, so we |
6595 #never use the 3rdparty stuff. |
6847 #never use the 3rdparty stuff. |
6596 [ "$CFG_ZLIB" = "yes" ] && CFG_ZLIB="system" |
6848 [ "$CFG_ZLIB" = "yes" ] && CFG_ZLIB="system" |
6597 fi |
6849 fi |
6598 if [ "$CFG_ZLIB" = "yes" ]; then |
6850 if [ "$CFG_ZLIB" = "yes" ]; then |
6604 if [ "$CFG_S60" = "yes" ]; then |
6856 if [ "$CFG_S60" = "yes" ]; then |
6605 QT_CONFIG="$QT_CONFIG s60" |
6857 QT_CONFIG="$QT_CONFIG s60" |
6606 fi |
6858 fi |
6607 |
6859 |
6608 if [ "$CFG_SYMBIAN_DEFFILES" = "yes" ]; then |
6860 if [ "$CFG_SYMBIAN_DEFFILES" = "yes" ]; then |
6609 QMAKE_CONFIG="$QMAKE_CONFIG def_files" |
6861 QTCONFIG_CONFIG="$QTCONFIG_CONFIG def_files" |
6610 else |
6862 else |
6611 QMAKE_CONFIG="$QMAKE_CONFIG def_files_disabled" |
6863 QTCONFIG_CONFIG="$QTCONFIG_CONFIG def_files_disabled" |
6612 fi |
6864 fi |
6613 |
6865 |
6614 [ "$CFG_NIS" = "yes" ] && QT_CONFIG="$QT_CONFIG nis" |
6866 [ "$CFG_NIS" = "yes" ] && QT_CONFIG="$QT_CONFIG nis" |
6615 [ "$CFG_CUPS" = "yes" ] && QT_CONFIG="$QT_CONFIG cups" |
6867 [ "$CFG_CUPS" = "yes" ] && QT_CONFIG="$QT_CONFIG cups" |
6616 [ "$CFG_ICONV" = "yes" ] && QT_CONFIG="$QT_CONFIG iconv" |
6868 [ "$CFG_ICONV" = "yes" ] && QT_CONFIG="$QT_CONFIG iconv" |
6869 [ "$CFG_ICONV" = "sun" ] && QT_CONFIG="$QT_CONFIG sun-libiconv" |
|
6617 [ "$CFG_ICONV" = "gnu" ] && QT_CONFIG="$QT_CONFIG gnu-libiconv" |
6870 [ "$CFG_ICONV" = "gnu" ] && QT_CONFIG="$QT_CONFIG gnu-libiconv" |
6618 [ "$CFG_GLIB" = "yes" ] && QT_CONFIG="$QT_CONFIG glib" |
6871 [ "$CFG_GLIB" = "yes" ] && QT_CONFIG="$QT_CONFIG glib" |
6619 [ "$CFG_GSTREAMER" = "yes" ] && QT_CONFIG="$QT_CONFIG gstreamer" |
6872 [ "$CFG_GSTREAMER" = "yes" ] && QT_CONFIG="$QT_CONFIG gstreamer" |
6620 [ "$CFG_DBUS" = "yes" ] && QT_CONFIG="$QT_CONFIG dbus" |
6873 [ "$CFG_DBUS" = "yes" ] && QT_CONFIG="$QT_CONFIG dbus" |
6621 [ "$CFG_DBUS" = "linked" ] && QT_CONFIG="$QT_CONFIG dbus dbus-linked" |
6874 [ "$CFG_DBUS" = "linked" ] && QT_CONFIG="$QT_CONFIG dbus dbus-linked" |
6725 CFG_EXCEPTIONS=no |
6978 CFG_EXCEPTIONS=no |
6726 fi |
6979 fi |
6727 |
6980 |
6728 if [ "$CFG_EXCEPTIONS" != "no" ]; then |
6981 if [ "$CFG_EXCEPTIONS" != "no" ]; then |
6729 QTCONFIG_CONFIG="$QTCONFIG_CONFIG exceptions" |
6982 QTCONFIG_CONFIG="$QTCONFIG_CONFIG exceptions" |
6983 fi |
|
6984 |
|
6985 if [ "$XPLATFORM_MINGW" = "yes" ]; then |
|
6986 # mkspecs/features/win32/default_pre.prf sets "no-rtti". |
|
6987 # Follow default behavior of configure.exe by overriding with "rtti". |
|
6988 QTCONFIG_CONFIG="$QTCONFIG_CONFIG rtti" |
|
6730 fi |
6989 fi |
6731 |
6990 |
6732 if [ "$CFG_ALSA" = "yes" ]; then |
6991 if [ "$CFG_ALSA" = "yes" ]; then |
6733 QT_CONFIG="$QT_CONFIG alsa" |
6992 QT_CONFIG="$QT_CONFIG alsa" |
6734 fi |
6993 fi |
6861 ;; |
7120 ;; |
6862 irix-cc*) |
7121 irix-cc*) |
6863 canBuildWebKit="no" |
7122 canBuildWebKit="no" |
6864 canBuildQtConcurrent="no" |
7123 canBuildQtConcurrent="no" |
6865 ;; |
7124 ;; |
7125 symbian/*-gcce) |
|
7126 canBuildWebKit="no" |
|
7127 canBuildQtConcurrent="no" |
|
7128 ;; |
|
7129 symbian/*-armcc) |
|
7130 canBuildQtConcurrent="no" |
|
7131 ;; |
|
6866 esac |
7132 esac |
6867 |
7133 |
6868 if [ "$CFG_GUI" = "no" ]; then |
7134 if [ "$CFG_GUI" = "no" ]; then |
6869 # WebKit requires QtGui |
7135 # WebKit requires QtGui |
6870 canBuildWebKit="no" |
7136 canBuildWebKit="no" |
6871 fi |
7137 fi |
6872 |
7138 |
7139 if [ "$CFG_SHARED" = "no" ]; then |
|
7140 echo |
|
7141 echo "WARNING: Using static linking will disable the WebKit module." |
|
7142 echo |
|
7143 canBuildWebKit="no" |
|
7144 fi |
|
6873 |
7145 |
6874 CFG_CONCURRENT="yes" |
7146 CFG_CONCURRENT="yes" |
6875 if [ "$canBuildQtConcurrent" = "no" ]; then |
7147 if [ "$canBuildQtConcurrent" = "no" ]; then |
6876 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CONCURRENT" |
7148 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CONCURRENT" |
6877 CFG_CONCURRENT="no" |
7149 CFG_CONCURRENT="no" |
7216 echo "/* Everything */" >"$outpath/src/corelib/global/qconfig.h.new" |
7488 echo "/* Everything */" >"$outpath/src/corelib/global/qconfig.h.new" |
7217 ;; |
7489 ;; |
7218 *) |
7490 *) |
7219 tmpconfig="$outpath/src/corelib/global/qconfig.h.new" |
7491 tmpconfig="$outpath/src/corelib/global/qconfig.h.new" |
7220 echo "#ifndef QT_BOOTSTRAPPED" >"$tmpconfig" |
7492 echo "#ifndef QT_BOOTSTRAPPED" >"$tmpconfig" |
7221 cat "$relpath/src/corelib/global/qconfig-$CFG_QCONFIG.h" >>"$tmpconfig" |
7493 if [ -f "$relpath/src/corelib/global/qconfig-$CFG_QCONFIG.h" ]; then |
7494 cat "$relpath/src/corelib/global/qconfig-$CFG_QCONFIG.h" >>"$tmpconfig" |
|
7495 elif [ -f `"$relpath/config.tests/unix/makeabs" "${CFG_QCONFIG}"` ]; then |
|
7496 cat `"$relpath/config.tests/unix/makeabs" "${CFG_QCONFIG}"` >>"$tmpconfig" |
|
7497 fi |
|
7222 echo "#endif" >>"$tmpconfig" |
7498 echo "#endif" >>"$tmpconfig" |
7223 ;; |
7499 ;; |
7224 esac |
7500 esac |
7225 |
7501 |
7226 cat >>"$outpath/src/corelib/global/qconfig.h.new" <<EOF |
7502 cat >>"$outpath/src/corelib/global/qconfig.h.new" <<EOF |
7316 EOF |
7592 EOF |
7317 |
7593 |
7318 echo '/* Compile time features */' >>"$outpath/src/corelib/global/qconfig.h.new" |
7594 echo '/* Compile time features */' >>"$outpath/src/corelib/global/qconfig.h.new" |
7319 [ '!' -z "$LicenseKeyExt" ] && echo "#define QT_PRODUCT_LICENSEKEY \"$LicenseKeyExt\"" >>"$outpath/src/corelib/global/qconfig.h.new" |
7595 [ '!' -z "$LicenseKeyExt" ] && echo "#define QT_PRODUCT_LICENSEKEY \"$LicenseKeyExt\"" >>"$outpath/src/corelib/global/qconfig.h.new" |
7320 |
7596 |
7321 if [ "$CFG_LARGEFILE" = "yes" ]; then |
7597 if [ "$CFG_LARGEFILE" = "yes" ] && [ "$XPLATFORM_MINGW" != "yes" ]; then |
7322 echo "#define QT_LARGEFILE_SUPPORT 64" >>"$outpath/src/corelib/global/qconfig.h.new" |
7598 echo "#define QT_LARGEFILE_SUPPORT 64" >>"$outpath/src/corelib/global/qconfig.h.new" |
7323 fi |
7599 fi |
7324 |
7600 |
7325 # if both carbon and cocoa are specified, enable the autodetection code. |
7601 # if both carbon and cocoa are specified, enable the autodetection code. |
7326 if [ "$PLATFORM_MAC" = "yes" -a "$CFG_MAC_COCOA" = "yes" -a "$CFG_MAC_CARBON" = "yes" ]; then |
7602 if [ "$PLATFORM_MAC" = "yes" -a "$CFG_MAC_COCOA" = "yes" -a "$CFG_MAC_CARBON" = "yes" ]; then |
7496 # Disable non-working features. |
7772 # Disable non-working features. |
7497 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CONCURRENT QT_NO_QFUTURE QT_NO_CRASHHANDLER QT_NO_PRINTER QT_NO_SYSTEMTRAYICON" |
7773 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CONCURRENT QT_NO_QFUTURE QT_NO_CRASHHANDLER QT_NO_PRINTER QT_NO_SYSTEMTRAYICON" |
7498 fi |
7774 fi |
7499 |
7775 |
7500 if [ -n "$QCONFIG_FLAGS" ]; then |
7776 if [ -n "$QCONFIG_FLAGS" ]; then |
7777 cat >>"$outpath/src/corelib/global/qconfig.h.new" << EOF |
|
7778 #ifndef QT_BOOTSTRAPPED |
|
7779 |
|
7780 EOF |
|
7501 for cfg in $QCONFIG_FLAGS; do |
7781 for cfg in $QCONFIG_FLAGS; do |
7502 cfgd=`echo $cfg | sed 's/=.*$//'` # trim pushed 'Foo=Bar' defines |
7782 cfgd=`echo $cfg | sed 's/=.*$//'` # trim pushed 'Foo=Bar' defines |
7503 cfg=`echo $cfg | sed 's/=/ /'` # turn first '=' into a space |
7783 cfg=`echo $cfg | sed 's/=/ /'` # turn first '=' into a space |
7504 # figure out define logic, so we can output the correct |
7784 # figure out define logic, so we can output the correct |
7505 # ifdefs to override the global defines in a project |
7785 # ifdefs to override the global defines in a project |
7528 #endif |
7808 #endif |
7529 |
7809 |
7530 EOF |
7810 EOF |
7531 fi |
7811 fi |
7532 done |
7812 done |
7813 cat >>"$outpath/src/corelib/global/qconfig.h.new" << EOF |
|
7814 #endif // QT_BOOTSTRAPPED |
|
7815 |
|
7816 EOF |
|
7533 fi |
7817 fi |
7534 |
7818 |
7535 if [ "$CFG_REDUCE_EXPORTS" = "yes" ]; then |
7819 if [ "$CFG_REDUCE_EXPORTS" = "yes" ]; then |
7536 cat >>"$outpath/src/corelib/global/qconfig.h.new" << EOF |
7820 cat >>"$outpath/src/corelib/global/qconfig.h.new" << EOF |
7537 #define QT_VISIBILITY_AVAILABLE |
7821 #define QT_VISIBILITY_AVAILABLE |
7822 |
|
7823 EOF |
|
7824 fi |
|
7825 |
|
7826 if [ -n "$QT_LIBINFIX" ]; then |
|
7827 cat >>"$outpath/src/corelib/global/qconfig.h.new" << EOF |
|
7828 #define QT_LIBINFIX "$QT_LIBINFIX" |
|
7538 |
7829 |
7539 EOF |
7830 EOF |
7540 fi |
7831 fi |
7541 |
7832 |
7542 # avoid unecessary rebuilds by copying only if qconfig.h has changed |
7833 # avoid unecessary rebuilds by copying only if qconfig.h has changed |
7545 else |
7836 else |
7546 [ -f "$outpath/src/corelib/global/qconfig.h" ] && chmod +w "$outpath/src/corelib/global/qconfig.h" |
7837 [ -f "$outpath/src/corelib/global/qconfig.h" ] && chmod +w "$outpath/src/corelib/global/qconfig.h" |
7547 mv "$outpath/src/corelib/global/qconfig.h.new" "$outpath/src/corelib/global/qconfig.h" |
7838 mv "$outpath/src/corelib/global/qconfig.h.new" "$outpath/src/corelib/global/qconfig.h" |
7548 chmod -w "$outpath/src/corelib/global/qconfig.h" |
7839 chmod -w "$outpath/src/corelib/global/qconfig.h" |
7549 for conf in "$outpath/include/QtCore/qconfig.h" "$outpath/include/Qt/qconfig.h"; do |
7840 for conf in "$outpath/include/QtCore/qconfig.h" "$outpath/include/Qt/qconfig.h"; do |
7550 if [ '!' -f "$conf" ]; then |
7841 if echo "$XPLATFORM" | grep "symbian-sbsv2" > /dev/null 2>&1 ; then |
7842 [ -e "$conf" ] && rm -rf "$conf" |
|
7843 cp -a "$outpath/src/corelib/global/qconfig.h" "$conf" |
|
7844 elif [ '!' -f "$conf" ]; then |
|
7551 ln -s "$outpath/src/corelib/global/qconfig.h" "$conf" |
7845 ln -s "$outpath/src/corelib/global/qconfig.h" "$conf" |
7552 fi |
7846 fi |
7553 done |
7847 done |
7554 fi |
7848 fi |
7555 |
|
7556 #------------------------------------------------------------------------------- |
7849 #------------------------------------------------------------------------------- |
7557 # save configuration into qconfig.pri |
7850 # save configuration into qconfig.pri |
7558 #------------------------------------------------------------------------------- |
7851 #------------------------------------------------------------------------------- |
7559 |
7852 |
7560 QTCONFIG="$outpath/mkspecs/qconfig.pri" |
7853 QTCONFIG="$outpath/mkspecs/qconfig.pri" |
7611 #namespaces |
7904 #namespaces |
7612 QT_LIBINFIX = $QT_LIBINFIX |
7905 QT_LIBINFIX = $QT_LIBINFIX |
7613 QT_NAMESPACE = $QT_NAMESPACE |
7906 QT_NAMESPACE = $QT_NAMESPACE |
7614 QT_NAMESPACE_MAC_CRC = $QT_NAMESPACE_MAC_CRC |
7907 QT_NAMESPACE_MAC_CRC = $QT_NAMESPACE_MAC_CRC |
7615 |
7908 |
7909 #modules |
|
7910 for(mod,\$\$list(\$\$files(\$\$[QMAKE_MKSPECS]/modules/qt_*.pri))):include(\$\$mod) |
|
7911 |
|
7616 EOF |
7912 EOF |
7617 if [ "$CFG_RPATH" = "yes" ]; then |
7913 if [ "$CFG_RPATH" = "yes" ]; then |
7618 echo "QMAKE_RPATHDIR += \"$QT_INSTALL_LIBS\"" >> "$QTCONFIG.tmp" |
7914 echo "QMAKE_RPATHDIR += \"$QT_INSTALL_LIBS\"" >> "$QTCONFIG.tmp" |
7619 fi |
7915 fi |
7620 if [ -n "$QT_GCC_MAJOR_VERSION" ]; then |
7916 if [ -n "$QT_GCC_MAJOR_VERSION" ]; then |
7621 echo "QT_GCC_MAJOR_VERSION = $QT_GCC_MAJOR_VERSION" >> "$QTCONFIG.tmp" |
7917 echo "QT_GCC_MAJOR_VERSION = $QT_GCC_MAJOR_VERSION" >> "$QTCONFIG.tmp" |
7622 echo "QT_GCC_MINOR_VERSION = $QT_GCC_MINOR_VERSION" >> "$QTCONFIG.tmp" |
7918 echo "QT_GCC_MINOR_VERSION = $QT_GCC_MINOR_VERSION" >> "$QTCONFIG.tmp" |
7623 echo "QT_GCC_PATCH_VERSION = $QT_GCC_PATCH_VERSION" >> "$QTCONFIG.tmp" |
7919 echo "QT_GCC_PATCH_VERSION = $QT_GCC_PATCH_VERSION" >> "$QTCONFIG.tmp" |
7920 fi |
|
7921 if echo "$XPLATFORM" | grep "symbian-sbsv2" > /dev/null 2>&1; then |
|
7922 echo "#Qt for symbian FPU settings" >> "$QTCONFIG.tmp" |
|
7923 echo "MMP_RULES += \"ARMFPU softvfp\"" >> "$QTCONFIG.tmp" |
|
7624 fi |
7924 fi |
7625 # replace qconfig.pri if it differs from the newly created temp file |
7925 # replace qconfig.pri if it differs from the newly created temp file |
7626 if cmp -s "$QTCONFIG.tmp" "$QTCONFIG"; then |
7926 if cmp -s "$QTCONFIG.tmp" "$QTCONFIG"; then |
7627 rm -f "$QTCONFIG.tmp" |
7927 rm -f "$QTCONFIG.tmp" |
7628 else |
7928 else |
7653 QMAKE_LIBDIR_QT = \$\$QT_BUILD_TREE/lib |
7953 QMAKE_LIBDIR_QT = \$\$QT_BUILD_TREE/lib |
7654 |
7954 |
7655 EOF |
7955 EOF |
7656 |
7956 |
7657 # Ensure we can link to uninistalled libraries |
7957 # Ensure we can link to uninistalled libraries |
7658 if linkerSupportsFlag -rpath-link "$outpath/lib"; then |
7958 if [ "$XPLATFORM_MINGW" != "yes" ] && linkerSupportsFlag -rpath-link "$outpath/lib"; then |
7659 echo "QMAKE_LFLAGS += -Wl,-rpath-link,\$\$QT_BUILD_TREE/lib" >> "$CACHEFILE.tmp" |
7959 echo "QMAKE_LFLAGS = -Wl,-rpath-link,\$\$QT_BUILD_TREE/lib \$\$QMAKE_LFLAGS" >> "$CACHEFILE.tmp" |
7660 fi |
7960 fi |
7661 |
7961 |
7662 if [ -n "$QT_CFLAGS_PSQL" ]; then |
7962 if [ -n "$QT_CFLAGS_PSQL" ]; then |
7663 echo "QT_CFLAGS_PSQL = $QT_CFLAGS_PSQL" >> "$CACHEFILE.tmp" |
7963 echo "QT_CFLAGS_PSQL = $QT_CFLAGS_PSQL" >> "$CACHEFILE.tmp" |
7664 fi |
7964 fi |
7867 echo "Declarative module ..... $CFG_DECLARATIVE" |
8167 echo "Declarative module ..... $CFG_DECLARATIVE" |
7868 echo "Support for S60 ........ $CFG_S60" |
8168 echo "Support for S60 ........ $CFG_S60" |
7869 echo "Symbian DEF files ...... $CFG_SYMBIAN_DEFFILES" |
8169 echo "Symbian DEF files ...... $CFG_SYMBIAN_DEFFILES" |
7870 echo "STL support ............ $CFG_STL" |
8170 echo "STL support ............ $CFG_STL" |
7871 echo "PCH support ............ $CFG_PRECOMPILE" |
8171 echo "PCH support ............ $CFG_PRECOMPILE" |
7872 echo "MMX/3DNOW/SSE/SSE2...... ${CFG_MMX}/${CFG_3DNOW}/${CFG_SSE}/${CFG_SSE2}" |
8172 echo "MMX/3DNOW/SSE/SSE2/SSE3. ${CFG_MMX}/${CFG_3DNOW}/${CFG_SSE}/${CFG_SSE2}/${CFG_SSE3}" |
8173 echo "SSSE3/SSE4.1/SSE4.2..... ${CFG_SSSE3}/${CFG_SSE4_1}/${CFG_SSE4_2}" |
|
8174 echo "AVX..................... ${CFG_AVX}" |
|
7873 if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then |
8175 if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then |
7874 echo "iWMMXt support ......... ${CFG_IWMMXT}" |
8176 echo "iWMMXt support ......... ${CFG_IWMMXT}" |
7875 echo "NEON support ........... ${CFG_NEON}" |
8177 echo "NEON support ........... ${CFG_NEON}" |
7876 fi |
8178 fi |
7877 [ "${PLATFORM_QWS}" != "yes" ] && echo "Graphics System ........ $CFG_GRAPHICS_SYSTEM" |
8179 [ "${PLATFORM_QWS}" != "yes" ] && echo "Graphics System ........ $CFG_GRAPHICS_SYSTEM" |
8012 if [ "$CFG_OPENSSL" = "linked" ] && [ "$OPENSSL_LIBS" = "" ]; then |
8314 if [ "$CFG_OPENSSL" = "linked" ] && [ "$OPENSSL_LIBS" = "" ]; then |
8013 echo |
8315 echo |
8014 echo "NOTE: When linking against OpenSSL, you can override the default" |
8316 echo "NOTE: When linking against OpenSSL, you can override the default" |
8015 echo "library names through OPENSSL_LIBS." |
8317 echo "library names through OPENSSL_LIBS." |
8016 echo "For example:" |
8318 echo "For example:" |
8017 echo " ./configure -openssl-linked OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto'" |
8319 echo " OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked" |
8018 echo |
8320 echo |
8019 fi |
8321 fi |
8020 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_FRAMEWORK" = "yes" ] && [ "$CFG_DEBUG" = "yes" ] && [ "$CFG_DEBUG_RELEASE" = "no" ]; then |
8322 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_FRAMEWORK" = "yes" ] && [ "$CFG_DEBUG" = "yes" ] && [ "$CFG_DEBUG_RELEASE" = "no" ]; then |
8021 echo |
8323 echo |
8022 echo "Error: debug-only framework builds are not supported. Configure with -no-framework" |
8324 echo "Error: debug-only framework builds are not supported. Configure with -no-framework" |
8033 #------------------------------------------------------------------------------- |
8335 #------------------------------------------------------------------------------- |
8034 # build makefiles based on the configuration |
8336 # build makefiles based on the configuration |
8035 #------------------------------------------------------------------------------- |
8337 #------------------------------------------------------------------------------- |
8036 |
8338 |
8037 echo "Finding project files. Please wait..." |
8339 echo "Finding project files. Please wait..." |
8038 "$outpath/bin/qmake" -prl -r "${relpath}/projects.pro" |
8340 if [ "$CFG_NOPROCESS" != "yes" ]; then |
8039 if [ -f "${relpath}/projects.pro" ]; then |
8341 if [ -z "`echo "$XPLATFORM" | grep "symbian" >/dev/null`" ]; then |
8040 mkfile="${outpath}/Makefile" |
8342 "$outpath/bin/qmake" -prl -r "${relpath}/projects.pro" |
8041 [ -f "$mkfile" ] && chmod +w "$mkfile" |
8343 fi |
8042 QTDIR="$outpath" "$outpath/bin/qmake" -spec "$XQMAKESPEC" "${relpath}/projects.pro" -o "$mkfile" |
8344 if [ -f "${relpath}/projects.pro" ]; then |
8043 fi |
8345 mkfile="${outpath}/Makefile" |
8044 |
8346 [ -f "$mkfile" ] && chmod +w "$mkfile" |
8347 QTDIR="$outpath" "$outpath/bin/qmake" -spec "$XQMAKESPEC" "${relpath}/projects.pro" -o "$mkfile" |
|
8348 fi |
|
8349 fi |
|
8045 # .projects -> projects to process |
8350 # .projects -> projects to process |
8046 # .projects.1 -> qt and moc |
8351 # .projects.1 -> qt and moc |
8047 # .projects.2 -> subdirs and libs |
8352 # .projects.2 -> subdirs and libs |
8048 # .projects.3 -> the rest |
8353 # .projects.3 -> the rest |
8049 rm -f .projects .projects.1 .projects.2 .projects.3 |
8354 rm -f .projects .projects.1 .projects.2 .projects.3 |
8172 translations) PART_ROOTS="$PART_ROOTS tools/linguist/lrelease translations" ;; |
8477 translations) PART_ROOTS="$PART_ROOTS tools/linguist/lrelease translations" ;; |
8173 examples) PART_ROOTS="$PART_ROOTS examples demos" ;; |
8478 examples) PART_ROOTS="$PART_ROOTS examples demos" ;; |
8174 *) ;; |
8479 *) ;; |
8175 esac |
8480 esac |
8176 done |
8481 done |
8482 |
|
8483 if echo "$XPLATFORM" | grep "symbian" > /dev/null 2>&1 ; then |
|
8484 if [ -z "`echo "$PART_ROOTS" | grep "lrelease" > /dev/null`" ]; then |
|
8485 #lrelease always should be included into Symbian build process |
|
8486 PART_ROOTS="$PART_ROOTS tools/linguist/lrelease" |
|
8487 fi |
|
8488 fi |
|
8489 |
|
8177 |
8490 |
8178 if [ "$CFG_DEV" = "yes" ]; then |
8491 if [ "$CFG_DEV" = "yes" ]; then |
8179 PART_ROOTS="$PART_ROOTS tests" |
8492 PART_ROOTS="$PART_ROOTS tests" |
8180 fi |
8493 fi |
8181 |
8494 |
8191 fi |
8504 fi |
8192 done |
8505 done |
8193 [ "$IN_ROOT" = "no" ] && continue |
8506 [ "$IN_ROOT" = "no" ] && continue |
8194 |
8507 |
8195 case $a in |
8508 case $a in |
8196 *winmain/winmain.pro) continue ;; |
8509 *winmain/winmain.pro) |
8197 *s60main/s60main.pro) continue ;; |
8510 [ "$XPLATFORM_MINGW" = "yes" ] || continue |
8511 SPEC=$XQMAKESPEC ;; |
|
8512 *s60main/s60main.pro) if [ "$CFG_NOPROCESS" = "yes" ] || [ -z "`echo "$XPLATFORM" | grep "symbian" >/dev/null`"]; then |
|
8513 continue |
|
8514 fi;; |
|
8198 *examples/activeqt/*) continue ;; |
8515 *examples/activeqt/*) continue ;; |
8199 */qmake/qmake.pro) continue ;; |
8516 */qmake/qmake.pro) continue ;; |
8200 *tools/bootstrap*|*tools/moc*|*tools/rcc*|*tools/uic*|*linguist/lrelease*) SPEC=$QMAKESPEC ;; |
8517 *tools/bootstrap*|*tools/moc*|*tools/rcc*|*tools/uic*|*linguist/lrelease*) SPEC=$QMAKESPEC ;; |
8201 *) SPEC=$XQMAKESPEC ;; |
8518 *) if [ "$CFG_NOPROCESS" = "yes" ]; then |
8519 continue |
|
8520 else |
|
8521 SPEC=$XQMAKESPEC |
|
8522 fi;; |
|
8202 esac |
8523 esac |
8203 dir=`dirname "$a" | sed -e "s;$sepath;.;g"` |
8524 dir=`dirname "$a" | sed -e "s;$sepath;.;g"` |
8204 test -d "$dir" || mkdir -p "$dir" |
8525 test -d "$dir" || mkdir -p "$dir" |
8205 OUTDIR="$outpath/$dir" |
8526 OUTDIR="$outpath/$dir" |
8206 if [ -f "${OUTDIR}/Makefile" ] && [ "$OPT_FAST" = "yes" ]; then |
8527 if [ -f "${OUTDIR}/Makefile" ] && [ "$OPT_FAST" = "yes" ]; then |