qtmobility/configure
branchRCL_3
changeset 2 5822d84012fb
parent 0 cfcbf08528c4
child 3 87be51aa5b5b
equal deleted inserted replaced
0:cfcbf08528c4 2:5822d84012fb
   207     rm 1.pro
   207     rm 1.pro
   208 }
   208 }
   209 
   209 
   210 findframeworks
   210 findframeworks
   211 
   211 
       
   212 findUniversal()
       
   213 {
       
   214     if [ -e "mac.inc" ]; then 
       
   215         rm mac.inc
       
   216     fi
       
   217     echo "contains(QT_CONFIG,x86): system(echo CONFIG+=x86 >> mac.inc)" > 2.pro
       
   218     echo "contains(QT_CONFIG,ppc): system(echo CONFIG+=ppc >> mac.inc)" >> 2.pro
       
   219     echo "contains(QT_CONFIG,ppc64): system(echo CONFIG+=ppc64 >> mac.inc)" >> 2.pro
       
   220     echo "contains(QT_CONFIG,x86_64): system(echo CONFIG+=x86_64 >> mac.inc)" >> 2.pro
       
   221     SOMETIME=`qmake 2.pro 2>&1`
       
   222     rm 2.pro
       
   223     if [ -e "mac.inc" ]; then 
       
   224          echo "exists(mac.inc): include(mac.inc)" >> "$CONFIG_IN"
       
   225     fi
       
   226 }
       
   227 
       
   228 
   212 if [ -n "$BUILD_SILENT" ]; then
   229 if [ -n "$BUILD_SILENT" ]; then
   213     echo "CONFIG += silent"  > "$CONFIG_IN"
   230     echo "CONFIG += silent"  > "$CONFIG_IN"
   214 fi
   231 fi
       
   232 
       
   233 findUniversal
   215 
   234 
   216 if [ -z "$RELEASEMODE" ]; then
   235 if [ -z "$RELEASEMODE" ]; then
   217     RELEASEMODE="debug"
   236     RELEASEMODE="debug"
   218 fi
   237 fi
   219 echo "CONFIG += $RELEASEMODE" >> "$CONFIG_IN"
   238 echo "CONFIG += $RELEASEMODE" >> "$CONFIG_IN"
   346         rm -rf config.tests/$2
   365         rm -rf config.tests/$2
   347         mkdir -p config.tests/$2
   366         mkdir -p config.tests/$2
   348         cd config.tests/$2
   367         cd config.tests/$2
   349     fi
   368     fi
   350 
   369 
   351     qmake "$relpath/config.tests/$2/$2.pro" >> "$CONFIG_LOG"
   370     qmake "$relpath/config.tests/$2/$2.pro" 2>> "$CONFIG_LOG" >> "$CONFIG_LOG"
   352     printf  " ."
   371     printf  " ."
   353     "$MAKE" clean >> "$CONFIG_LOG"
   372     "$MAKE" clean >> "$CONFIG_LOG"
   354     printf "."
   373     printf "."
   355     "$MAKE" >> "$CONFIG_LOG" 2>&1
   374     "$MAKE" >> "$CONFIG_LOG" 2>&1
   356     printf ". "
   375     printf ". "
   366 
   385 
   367 #compile tests
   386 #compile tests
   368 compileTest QMF qmf
   387 compileTest QMF qmf
   369 compileTest NetworkManager networkmanager
   388 compileTest NetworkManager networkmanager
   370 compileTest "CoreWLAN (MacOS 10.6)" corewlan
   389 compileTest "CoreWLAN (MacOS 10.6)" corewlan
       
   390 compileTest "Maemo ICD" maemo-icd
   371 
   391 
   372 # Now module selection
   392 # Now module selection
   373 # using 'expr match ....' should help a bit
   393 # using 'expr match ....' should help a bit
   374 #if [ -n "$MOBILITY_MODULES_UNPARSED" ]; then
   394 #if [ -n "$MOBILITY_MODULES_UNPARSED" ]; then
   375     # In theory we should do some sanity checking here.
   395     # In theory we should do some sanity checking here.
   377 #fi
   397 #fi
   378 
   398 
   379 # It's a lot easier to make qmake do the dependency checking...
   399 # It's a lot easier to make qmake do the dependency checking...
   380 echo "mobility_modules = $MOBILITY_MODULES" >> "$CONFIG_IN"
   400 echo "mobility_modules = $MOBILITY_MODULES" >> "$CONFIG_IN"
   381 echo "contains(mobility_modules,versit): mobility_modules *= contacts" >> "$CONFIG_IN"
   401 echo "contains(mobility_modules,versit): mobility_modules *= contacts" >> "$CONFIG_IN"
       
   402 echo "maemo5|maemo6:contains(maemo-icd_enabled, no): mobility_modules -= bearer" >> "$CONFIG_IN"
   382 
   403 
   383 # Ideally we'd skip generating headers for modules that are not enabled
   404 # Ideally we'd skip generating headers for modules that are not enabled
   384 echo "Generating Mobility Headers..."
   405 echo "Generating Mobility Headers..."
   385 #remove old headers
   406 #remove old headers
   386 rm -rf $shadowpath/include
   407 rm -rf $shadowpath/include
   408             $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/requests
   429             $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/requests
   409             $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/filters
   430             $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/filters
   410             ;;
   431             ;;
   411         multimedia)
   432         multimedia)
   412             $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia
   433             $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia
   413             $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia/experimental
       
   414             ;;
   434             ;;
   415         messaging)
   435         messaging)
   416             $relpath/bin/syncheaders $shadowpath/include $relpath/src/messaging
   436             $relpath/bin/syncheaders $shadowpath/include $relpath/src/messaging
   417             ;;
   437             ;;
   418         versit)
   438         versit)
   432     esac
   452     esac
   433 done
   453 done
   434 
   454 
   435 mv "$CONFIG_IN" config.pri
   455 mv "$CONFIG_IN" config.pri
   436 mkdir -p "$shadowpath/features"
   456 mkdir -p "$shadowpath/features"
   437 cp -f "$relpath/features/strict_flags.prf" "$shadowpath/features"
   457 if [ "$shadowpath" != "$relpath" ]; then 
       
   458     cp -f "$relpath/features/strict_flags.prf" "$shadowpath/features"
       
   459 fi
   438 
   460 
   439 echo "Running qmake..."
   461 echo "Running qmake..."
   440 if qmake -recursive "$relpath/qtmobility.pro"; then
   462 if qmake -recursive "$relpath/qtmobility.pro"; then
   441     echo ""
   463     echo ""
   442     echo "configure has finished. You may run make or gmake to build the project now."
   464     echo "configure has finished. You may run make or gmake to build the project now."