460 compileTest NetworkManager networkmanager |
460 compileTest NetworkManager networkmanager |
461 compileTest "CoreWLAN (MacOS 10.6)" corewlan |
461 compileTest "CoreWLAN (MacOS 10.6)" corewlan |
462 compileTest "Maemo ICD" maemo-icd |
462 compileTest "Maemo ICD" maemo-icd |
463 compileTest "Maemo ICD WLAN" maemo-icd-network-wlan |
463 compileTest "Maemo ICD WLAN" maemo-icd-network-wlan |
464 compileTest "Maemo5 contacts dependencies" maemo5-contacts |
464 compileTest "Maemo5 contacts dependencies" maemo5-contacts |
|
465 compileTest "Bluez" bluez |
465 if [ "$LINUX_TARGET" = maemo6 ]; then |
466 if [ "$LINUX_TARGET" = maemo6 ]; then |
466 compileTest sensord sensord |
467 compileTest sensord sensord |
467 else |
468 else |
468 echo "sensord_enabled = no" >> "$CONFIG_IN" |
469 echo "sensord_enabled = no" >> "$CONFIG_IN" |
469 fi |
|
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 |
470 fi |
497 |
471 |
498 # It's a lot easier to make qmake do the dependency checking... |
472 # It's a lot easier to make qmake do the dependency checking... |
499 echo "mobility_modules = $MOBILITY_MODULES" >> "$CONFIG_IN" |
473 echo "mobility_modules = $MOBILITY_MODULES" >> "$CONFIG_IN" |
500 echo "contains(mobility_modules,versit): mobility_modules *= contacts" >> "$CONFIG_IN" |
474 echo "contains(mobility_modules,versit): mobility_modules *= contacts" >> "$CONFIG_IN" |
510 rm -rf $shadowpath/include |
484 rm -rf $shadowpath/include |
511 mkdir $shadowpath/include |
485 mkdir $shadowpath/include |
512 for module in $MOBILITY_MODULES; do |
486 for module in $MOBILITY_MODULES; do |
513 case "$module" in |
487 case "$module" in |
514 bearer) |
488 bearer) |
515 $relpath/bin/syncheaders $shadowpath/include/QtmBearer $relpath/src/bearer |
489 $relpath/bin/syncheaders $shadowpath/include/QtBearer $relpath/src/bearer |
516 ;; |
490 ;; |
517 publishsubscribe) |
491 publishsubscribe) |
518 $relpath/bin/syncheaders $shadowpath/include/QtmPubSub $relpath/src/publishsubscribe |
492 $relpath/bin/syncheaders $shadowpath/include/QtPublishSubscribe $relpath/src/publishsubscribe |
519 ;; |
493 ;; |
520 location) |
494 location) |
521 $relpath/bin/syncheaders $shadowpath/include/QtmLocation $relpath/src/location |
495 $relpath/bin/syncheaders $shadowpath/include/QtLocation $relpath/src/location |
522 ;; |
496 ;; |
523 serviceframework) |
497 serviceframework) |
524 $relpath/bin/syncheaders $shadowpath/include/QtmServiceFramework $relpath/src/serviceframework |
498 $relpath/bin/syncheaders $shadowpath/include/QtServiceFramework $relpath/src/serviceframework |
525 ;; |
499 ;; |
526 systeminfo) |
500 systeminfo) |
527 $relpath/bin/syncheaders $shadowpath/include/QtmSystemInfo $relpath/src/systeminfo |
501 $relpath/bin/syncheaders $shadowpath/include/QtSystemInfo $relpath/src/systeminfo |
528 ;; |
502 ;; |
529 contacts) |
503 contacts) |
530 $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts |
504 $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts |
531 $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/details |
505 $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/details |
532 $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/requests |
506 $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/requests |
533 $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/filters |
507 $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/filters |
534 ;; |
508 ;; |
535 multimedia) |
509 multimedia) |
536 $relpath/bin/syncheaders $shadowpath/include/QtMultimedia $relpath/src/multimedia |
510 $relpath/bin/syncheaders $shadowpath/include/QtMultimediaKit $relpath/src/multimedia |
537 $relpath/bin/syncheaders $shadowpath/include/QtMultimedia $relpath/src/multimedia/audio |
511 $relpath/bin/syncheaders $shadowpath/include/QtMultimediaKit $relpath/src/multimedia/audio |
538 $relpath/bin/syncheaders $shadowpath/include/QtMultimedia $relpath/src/multimedia/video |
512 $relpath/bin/syncheaders $shadowpath/include/QtMultimediaKit $relpath/src/multimedia/video |
539 ;; |
513 ;; |
540 messaging) |
514 messaging) |
541 $relpath/bin/syncheaders $shadowpath/include/QtmMessaging $relpath/src/messaging |
515 $relpath/bin/syncheaders $shadowpath/include/QtMessaging $relpath/src/messaging |
542 ;; |
516 ;; |
543 versit) |
517 versit) |
544 #versit implies contacts |
518 #versit implies contacts |
545 $relpath/bin/syncheaders $shadowpath/include/QtmVersit $relpath/src/versit |
519 $relpath/bin/syncheaders $shadowpath/include/QtVersit $relpath/src/versit |
546 $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts |
520 $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts |
547 $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/details |
521 $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/details |
548 $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/requests |
522 $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/requests |
549 $relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/filters |
523 $relpath/bin/syncheaders $shadowpath/include/QtContacts $relpath/src/contacts/filters |
550 ;; |
524 ;; |
551 sensors) |
525 sensors) |
552 $relpath/bin/syncheaders $shadowpath/include/QtmSensors $relpath/src/sensors |
526 $relpath/bin/syncheaders $shadowpath/include/QtSensors $relpath/src/sensors |
553 ;; |
527 ;; |
554 *) |
528 *) |
555 echo "Cannot generate headers for $module" |
529 echo "Cannot generate headers for $module" |
556 ;; |
530 ;; |
557 esac |
531 esac |