equal
deleted
inserted
replaced
91 echo "-examples ......... Build example applications" |
91 echo "-examples ......... Build example applications" |
92 echo "-no-docs .......... Do not build documentation (build by default)" |
92 echo "-no-docs .......... Do not build documentation (build by default)" |
93 echo "-modules <list> ... Restrict list of modules to build (default all supported)" |
93 echo "-modules <list> ... Restrict list of modules to build (default all supported)" |
94 echo " Choose from: bearer contacts location publishsubscribe" |
94 echo " Choose from: bearer contacts location publishsubscribe" |
95 echo " messaging multimedia systeminfo serviceframework versit" |
95 echo " messaging multimedia systeminfo serviceframework versit" |
|
96 echo " sensors" |
96 echo " Modules should be separated by a space and surrounded" |
97 echo " Modules should be separated by a space and surrounded" |
97 echo " by double quotation. If a" |
98 echo " by double quotation. If a" |
98 echo " selected module depends on other modules dependencies" |
99 echo " selected module depends on other modules dependencies" |
99 echo " will automatically be enabled." |
100 echo " will automatically be enabled." |
100 echo "-maemo6 ........... Build Qt Mobility for Maemo6 (Harmattan)." |
101 echo "-maemo6 ........... Build Qt Mobility for Maemo6 (Harmattan)." |
206 rm 1.pro |
207 rm 1.pro |
207 } |
208 } |
208 |
209 |
209 findframeworks |
210 findframeworks |
210 |
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 |
211 if [ -n "$BUILD_SILENT" ]; then |
229 if [ -n "$BUILD_SILENT" ]; then |
212 echo "CONFIG += silent" > "$CONFIG_IN" |
230 echo "CONFIG += silent" > "$CONFIG_IN" |
213 fi |
231 fi |
|
232 |
|
233 findUniversal |
214 |
234 |
215 if [ -z "$RELEASEMODE" ]; then |
235 if [ -z "$RELEASEMODE" ]; then |
216 RELEASEMODE="debug" |
236 RELEASEMODE="debug" |
217 fi |
237 fi |
218 echo "CONFIG += $RELEASEMODE" >> "$CONFIG_IN" |
238 echo "CONFIG += $RELEASEMODE" >> "$CONFIG_IN" |
345 rm -rf config.tests/$2 |
365 rm -rf config.tests/$2 |
346 mkdir -p config.tests/$2 |
366 mkdir -p config.tests/$2 |
347 cd config.tests/$2 |
367 cd config.tests/$2 |
348 fi |
368 fi |
349 |
369 |
350 qmake "$relpath/config.tests/$2/$2.pro" >> "$CONFIG_LOG" |
370 qmake "$relpath/config.tests/$2/$2.pro" 2>> "$CONFIG_LOG" >> "$CONFIG_LOG" |
351 printf " ." |
371 printf " ." |
352 "$MAKE" clean >> "$CONFIG_LOG" |
372 "$MAKE" clean >> "$CONFIG_LOG" |
353 printf "." |
373 printf "." |
354 "$MAKE" >> "$CONFIG_LOG" 2>&1 |
374 "$MAKE" >> "$CONFIG_LOG" 2>&1 |
355 printf ". " |
375 printf ". " |
365 |
385 |
366 #compile tests |
386 #compile tests |
367 compileTest QMF qmf |
387 compileTest QMF qmf |
368 compileTest NetworkManager networkmanager |
388 compileTest NetworkManager networkmanager |
369 compileTest "CoreWLAN (MacOS 10.6)" corewlan |
389 compileTest "CoreWLAN (MacOS 10.6)" corewlan |
|
390 compileTest "Maemo ICD" maemo-icd |
370 |
391 |
371 # Now module selection |
392 # Now module selection |
372 # using 'expr match ....' should help a bit |
393 # using 'expr match ....' should help a bit |
373 #if [ -n "$MOBILITY_MODULES_UNPARSED" ]; then |
394 #if [ -n "$MOBILITY_MODULES_UNPARSED" ]; then |
374 # In theory we should do some sanity checking here. |
395 # In theory we should do some sanity checking here. |
376 #fi |
397 #fi |
377 |
398 |
378 # 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... |
379 echo "mobility_modules = $MOBILITY_MODULES" >> "$CONFIG_IN" |
400 echo "mobility_modules = $MOBILITY_MODULES" >> "$CONFIG_IN" |
380 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" |
381 |
403 |
382 # 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 |
383 echo "Generating Mobility Headers..." |
405 echo "Generating Mobility Headers..." |
384 #remove old headers |
406 #remove old headers |
385 rm -rf $shadowpath/include |
407 rm -rf $shadowpath/include |
407 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/requests |
429 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/requests |
408 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/filters |
430 $relpath/bin/syncheaders $shadowpath/include $relpath/src/contacts/filters |
409 ;; |
431 ;; |
410 multimedia) |
432 multimedia) |
411 $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia |
433 $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia |
412 $relpath/bin/syncheaders $shadowpath/include $relpath/src/multimedia/experimental |
|
413 ;; |
434 ;; |
414 messaging) |
435 messaging) |
415 $relpath/bin/syncheaders $shadowpath/include $relpath/src/messaging |
436 $relpath/bin/syncheaders $shadowpath/include $relpath/src/messaging |
416 ;; |
437 ;; |
417 versit) |
438 versit) |
431 esac |
452 esac |
432 done |
453 done |
433 |
454 |
434 mv "$CONFIG_IN" config.pri |
455 mv "$CONFIG_IN" config.pri |
435 mkdir -p "$shadowpath/features" |
456 mkdir -p "$shadowpath/features" |
|
457 if [ "$shadowpath" != "$relpath" ]; then |
|
458 cp -f "$relpath/features/strict_flags.prf" "$shadowpath/features" |
|
459 fi |
436 |
460 |
437 echo "Running qmake..." |
461 echo "Running qmake..." |
438 if qmake -recursive "$relpath/qtcontactsmobility.pro"; then |
462 if qmake -recursive "$relpath/qtcontactsmobility.pro"; then |
439 echo "" |
463 echo "" |
440 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." |