diff -r 76a2435edfd4 -r de1630741fbe qtcontactsmobility/configure --- a/qtcontactsmobility/configure Fri Apr 16 14:53:18 2010 +0300 +++ b/qtcontactsmobility/configure Mon May 03 12:24:20 2010 +0300 @@ -93,6 +93,7 @@ echo "-modules ... Restrict list of modules to build (default all supported)" echo " Choose from: bearer contacts location publishsubscribe" echo " messaging multimedia systeminfo serviceframework versit" + echo " sensors" echo " Modules should be separated by a space and surrounded" echo " by double quotation. If a" echo " selected module depends on other modules dependencies" @@ -208,10 +209,29 @@ findframeworks +findUniversal() +{ + if [ -e "mac.inc" ]; then + rm mac.inc + fi + echo "contains(QT_CONFIG,x86): system(echo CONFIG+=x86 >> mac.inc)" > 2.pro + echo "contains(QT_CONFIG,ppc): system(echo CONFIG+=ppc >> mac.inc)" >> 2.pro + echo "contains(QT_CONFIG,ppc64): system(echo CONFIG+=ppc64 >> mac.inc)" >> 2.pro + echo "contains(QT_CONFIG,x86_64): system(echo CONFIG+=x86_64 >> mac.inc)" >> 2.pro + SOMETIME=`qmake 2.pro 2>&1` + rm 2.pro + if [ -e "mac.inc" ]; then + echo "exists(mac.inc): include(mac.inc)" >> "$CONFIG_IN" + fi +} + + if [ -n "$BUILD_SILENT" ]; then echo "CONFIG += silent" > "$CONFIG_IN" fi +findUniversal + if [ -z "$RELEASEMODE" ]; then RELEASEMODE="debug" fi @@ -347,7 +367,7 @@ cd config.tests/$2 fi - qmake "$relpath/config.tests/$2/$2.pro" >> "$CONFIG_LOG" + qmake "$relpath/config.tests/$2/$2.pro" 2>> "$CONFIG_LOG" >> "$CONFIG_LOG" printf " ." "$MAKE" clean >> "$CONFIG_LOG" printf "." @@ -367,6 +387,7 @@ compileTest QMF qmf compileTest NetworkManager networkmanager compileTest "CoreWLAN (MacOS 10.6)" corewlan +compileTest "Maemo ICD" maemo-icd # Now module selection # using 'expr match ....' should help a bit @@ -378,6 +399,7 @@ # It's a lot easier to make qmake do the dependency checking... echo "mobility_modules = $MOBILITY_MODULES" >> "$CONFIG_IN" echo "contains(mobility_modules,versit): mobility_modules *= contacts" >> "$CONFIG_IN" +echo "maemo5|maemo6:contains(maemo-icd_enabled, no): mobility_modules -= bearer" >> "$CONFIG_IN" # Ideally we'd skip generating headers for modules that are not enabled echo "Generating Mobility Headers..." @@ -409,7 +431,6 @@ ;; multimedia) $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia - $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia/experimental ;; messaging) $relpath/bin/syncheaders $shadowpath/include $relpath/src/messaging @@ -433,6 +454,9 @@ mv "$CONFIG_IN" config.pri mkdir -p "$shadowpath/features" +if [ "$shadowpath" != "$relpath" ]; then + cp -f "$relpath/features/strict_flags.prf" "$shadowpath/features" +fi echo "Running qmake..." if qmake -recursive "$relpath/qtcontactsmobility.pro"; then