qtmobility/configure
changeset 15 1f895d8a5b2b
parent 14 6fbed849b4f4
equal deleted inserted replaced
14:6fbed849b4f4 15:1f895d8a5b2b
   466     compileTest sensord sensord
   466     compileTest sensord sensord
   467 else
   467 else
   468     echo "sensord_enabled = no" >> "$CONFIG_IN"
   468     echo "sensord_enabled = no" >> "$CONFIG_IN"
   469 fi
   469 fi
   470 
   470 
   471 # Now module selection
       
   472 # using 'expr match ....' should help a bit
       
   473 #if [ -n "$MOBILITY_MODULES_UNPARSED" ]; then
       
   474     # In theory we should do some sanity checking here.
       
   475 #    MOBILITY_MODULES="$MOBILITY_MODULES_UNPARSED"
       
   476 #fi
       
   477 
       
   478 # Test if able to build multimedia
       
   479 for module in $MOBILITY_MODULES; do
       
   480     case "$module" in
       
   481         multimedia)
       
   482             echo "contains(QT_CONFIG,multimedia):message(1)" > 1.pro
       
   483             SOMETHING=`qmake 1.pro 2>&1`
       
   484             if [ "$SOMETHING" = "Project MESSAGE: 1" ]; then
       
   485                 MOBILITY_MODULES="$(echo $MOBILITY_MODULES | sed 's:multimedia::g')"
       
   486                 echo "Only one multimedia module allowed, please rebuild Qt with -no-multimedia"
       
   487             fi
       
   488             rm 1.pro
       
   489             ;;
       
   490     esac
       
   491 done
       
   492 
       
   493 if [ -z "$MOBILITY_MODULES" ]; then
       
   494     echo "No module available to build."
       
   495     exit 1
       
   496 fi
       
   497 
       
   498 # It's a lot easier to make qmake do the dependency checking...
   471 # It's a lot easier to make qmake do the dependency checking...
   499 echo "mobility_modules = $MOBILITY_MODULES" >> "$CONFIG_IN"
   472 echo "mobility_modules = $MOBILITY_MODULES" >> "$CONFIG_IN"
   500 echo "contains(mobility_modules,versit): mobility_modules *= contacts" >> "$CONFIG_IN"
   473 echo "contains(mobility_modules,versit): mobility_modules *= contacts" >> "$CONFIG_IN"
   501 echo "maemo5|maemo6:contains(maemo-icd_enabled, no): mobility_modules -= bearer" >> "$CONFIG_IN"
   474 echo "maemo5|maemo6:contains(maemo-icd_enabled, no): mobility_modules -= bearer" >> "$CONFIG_IN"
   502 
   475 
   510 rm -rf $shadowpath/include
   483 rm -rf $shadowpath/include
   511 mkdir $shadowpath/include
   484 mkdir $shadowpath/include
   512 for module in $MOBILITY_MODULES; do
   485 for module in $MOBILITY_MODULES; do
   513     case "$module" in 
   486     case "$module" in 
   514         bearer)
   487         bearer)
   515             $relpath/bin/syncheaders $shadowpath/include/QtmBearer $relpath/src/bearer
   488             $relpath/bin/syncheaders $shadowpath/include/QtBearer $relpath/src/bearer
   516             ;;
   489             ;;
   517         publishsubscribe)
   490         publishsubscribe)
   518             $relpath/bin/syncheaders $shadowpath/include/QtmPubSub $relpath/src/publishsubscribe
   491             $relpath/bin/syncheaders $shadowpath/include/QtPublishSubscribe $relpath/src/publishsubscribe
   519             ;;
   492             ;;
   520         location)
   493         location)
   521             $relpath/bin/syncheaders $shadowpath/include/QtmLocation $relpath/src/location
   494             $relpath/bin/syncheaders $shadowpath/include/QtLocation $relpath/src/location
   522             ;;
   495             ;;
   523         serviceframework)
   496         serviceframework)
   524             $relpath/bin/syncheaders $shadowpath/include/QtmServiceFramework $relpath/src/serviceframework
   497             $relpath/bin/syncheaders $shadowpath/include/QtServiceFramework $relpath/src/serviceframework
   525             ;;
   498             ;;
   526         systeminfo)
   499         systeminfo)
   527             $relpath/bin/syncheaders $shadowpath/include/QtmSystemInfo $relpath/src/systeminfo
   500             $relpath/bin/syncheaders $shadowpath/include/QtSystemInfo $relpath/src/systeminfo
   528             ;;
   501             ;;
   529         contacts)
   502         contacts)
   530             $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts
   503             $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts
   531             $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/details
   504             $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/details
   532             $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/requests
   505             $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/requests
   533             $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/filters
   506             $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/filters
   534             ;;
   507             ;;
   535         multimedia)
   508         multimedia)
   536             $relpath/bin/syncheaders $shadowpath/include/QtMultimedia $relpath/src/multimedia
   509             $relpath/bin/syncheaders $shadowpath/include/QtMultimediaKit $relpath/src/multimedia
   537             $relpath/bin/syncheaders $shadowpath/include/QtMultimedia $relpath/src/multimedia/audio
   510             $relpath/bin/syncheaders $shadowpath/include/QtMultimediaKit $relpath/src/multimedia/audio
   538             $relpath/bin/syncheaders $shadowpath/include/QtMultimedia $relpath/src/multimedia/video
   511             $relpath/bin/syncheaders $shadowpath/include/QtMultimediaKit $relpath/src/multimedia/video
   539             ;;
   512             ;;
   540         messaging)
   513         messaging)
   541             $relpath/bin/syncheaders $shadowpath/include/QtmMessaging $relpath/src/messaging
   514             $relpath/bin/syncheaders $shadowpath/include/QtMessaging $relpath/src/messaging
   542             ;;
   515             ;;
   543         versit)
   516         versit)
   544             #versit implies contacts
   517             #versit implies contacts
   545             $relpath/bin/syncheaders $shadowpath/include/QtmVersit $relpath/src/versit
   518             $relpath/bin/syncheaders $shadowpath/include/QtVersit $relpath/src/versit
   546             $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts
   519             $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts
   547             $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/details
   520             $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/details
   548             $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/requests
   521             $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/requests
   549             $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/filters
   522             $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/filters
   550             ;;
   523             ;;
   551         sensors)
   524         sensors)
   552             $relpath/bin/syncheaders $shadowpath/include/QtmSensors $relpath/src/sensors
   525             $relpath/bin/syncheaders $shadowpath/include/QtSensors $relpath/src/sensors
   553             ;;
   526             ;;
   554         *)
   527         *)
   555             echo "Cannot generate headers for $module"
   528             echo "Cannot generate headers for $module"
   556             ;;
   529             ;;
   557     esac
   530     esac