equal
deleted
inserted
replaced
61 LINUX_TARGET= |
61 LINUX_TARGET= |
62 QMAKE_CACHE="$shadowpath/.qmake.cache" |
62 QMAKE_CACHE="$shadowpath/.qmake.cache" |
63 LIB_PATH="lib" |
63 LIB_PATH="lib" |
64 BIN_PATH="bin" |
64 BIN_PATH="bin" |
65 MAC_SDK= |
65 MAC_SDK= |
66 MOBILITY_MODULES="bearer location contacts multimedia publishsubscribe versit messaging systeminfo serviceframework" |
66 MOBILITY_MODULES="bearer location contacts multimedia publishsubscribe versit messaging systeminfo serviceframework sensors" |
67 MOBILITY_MODULES_UNPARSED= |
67 MOBILITY_MODULES_UNPARSED= |
68 |
68 |
69 usage() |
69 usage() |
70 { |
70 { |
71 echo "Usage: configure [-prefix <dir>] [headerdir <dir>] [libdir <dir>]" |
71 echo "Usage: configure [-prefix <dir>] [headerdir <dir>] [libdir <dir>]" |
164 MOBILITY_MODULES_UNPARSED=$2 |
164 MOBILITY_MODULES_UNPARSED=$2 |
165 #reset default selection |
165 #reset default selection |
166 MOBILITY_MODULES= |
166 MOBILITY_MODULES= |
167 for m in $MOBILITY_MODULES_UNPARSED; do |
167 for m in $MOBILITY_MODULES_UNPARSED; do |
168 case "$m" in |
168 case "$m" in |
169 bearer|contacts|location|messaging|multimedia|publishsubscribe|serviceframework|systeminfo|versit) |
169 bearer|contacts|location|messaging|multimedia|publishsubscribe|serviceframework|systeminfo|versit|sensors) |
170 MOBILITY_MODULES="$MOBILITY_MODULES $m"; |
170 MOBILITY_MODULES="$MOBILITY_MODULES $m"; |
171 ;; |
171 ;; |
172 *) |
172 *) |
173 echo "Unknown module: $m" |
173 echo "Unknown module: $m" |
174 echo |
174 echo |
382 # Ideally we'd skip generating headers for modules that are not enabled |
382 # Ideally we'd skip generating headers for modules that are not enabled |
383 echo "Generating Mobility Headers..." |
383 echo "Generating Mobility Headers..." |
384 #remove old headers |
384 #remove old headers |
385 rm -rf $shadowpath/include |
385 rm -rf $shadowpath/include |
386 mkdir $shadowpath/include |
386 mkdir $shadowpath/include |
387 $relpath/bin/syncheaders $shadowpath/include $relpath/src/global |
|
388 for module in $MOBILITY_MODULES; do |
387 for module in $MOBILITY_MODULES; do |
389 case "$module" in |
388 case "$module" in |
390 bearer) |
389 bearer) |
391 $relpath/bin/syncheaders $shadowpath/include $relpath/src/bearer |
390 $relpath/bin/syncheaders $shadowpath/include $relpath/src/bearer |
392 ;; |
391 ;; |
421 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts |
420 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts |
422 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/details |
421 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/details |
423 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/requests |
422 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/requests |
424 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/filters |
423 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/filters |
425 ;; |
424 ;; |
|
425 sensors) |
|
426 $relpath/bin/syncheaders $shadowpath/include $relpath/src/sensors |
|
427 ;; |
426 *) |
428 *) |
427 echo "Cannot generate headers for $module" |
429 echo "Cannot generate headers for $module" |
428 ;; |
430 ;; |
429 esac |
431 esac |
430 done |
432 done |