summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-05-28 14:12:07 +1000
committerJustin McPherson <justin.mcpherson@nokia.com>2010-05-28 14:12:07 +1000
commit6eb7818b41405ecf047363b5aaf234edf774f179 (patch)
treeb9a303f2777c7a36cc8cdbb65d468da61cbca96c /configure
parent854beaf4c169256eb15f34d8e59602090badc562 (diff)
configure; do not exit if multimedia can not be built.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure36
1 files changed, 23 insertions, 13 deletions
diff --git a/configure b/configure
index 8613673f6c..ab257e11ef 100755
--- a/configure
+++ b/configure
@@ -475,6 +475,26 @@ fi
# MOBILITY_MODULES="$MOBILITY_MODULES_UNPARSED"
#fi
+# Test if able to build multimedia
+for module in $MOBILITY_MODULES; do
+ case "$module" in
+ multimedia)
+ echo "contains(QT_CONFIG,multimedia):message(1)" > 1.pro
+ SOMETHING=`qmake 1.pro 2>&1`
+ if [ "$SOMETHING" == "Project MESSAGE: 1" ]; then
+ MOBILITY_MODULES="$(echo $MOBILITY_MODULES | sed 's:multimedia::g')"
+ echo "Only one multimedia module allowed, please rebuild Qt with -no-multimedia"
+ fi
+ rm 1.pro
+ ;;
+ esac
+done
+
+if [ -z "$MOBILITY_MODULES" ]; then
+ echo "No module available to build."
+ exit 1
+fi
+
# 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"
@@ -513,19 +533,9 @@ for module in $MOBILITY_MODULES; do
$relpath/bin/syncheaders $shadowpath/include/QtmContacts $relpath/src/contacts/filters
;;
multimedia)
- echo "contains(QT_CONFIG,multimedia):message(1)" > 1.pro
- SOMETHING=`qmake 1.pro 2>&1`
- if [ "$SOMETHING" != "Project MESSAGE: 1" ]; then
- $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia
- $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia/audio
- $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia/video
- else
- echo "Only one multimedia module allowed, cannot continue."
- echo "option 1: configure without multimedia module"
- echo "option 2: compile Qt with -no-multimedia"
- exit 1
- fi
- rm 1.pro
+ $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia
+ $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia/audio
+ $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia/video
;;
messaging)
$relpath/bin/syncheaders $shadowpath/include/QtmMessaging $relpath/src/messaging