author | zecke <zecke> | 2002-03-01 19:22:02 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-03-01 19:22:02 (UTC) |
commit | d81f7934384adf5c06dddc1998e01d474419c7b0 (patch) (side-by-side diff) | |
tree | f937d4d2996f0a4d144cc3f29bea330c49d81105 | |
parent | bd8f5f09dbb80570372f81e2030973146d1f9198 (diff) | |
download | opie-d81f7934384adf5c06dddc1998e01d474419c7b0.zip opie-d81f7934384adf5c06dddc1998e01d474419c7b0.tar.gz opie-d81f7934384adf5c06dddc1998e01d474419c7b0.tar.bz2 |
CVS_SILENT
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,127 +1,138 @@ #!/bin/sh # # Configures to build the Qtopia Environment # # Copyright 1999-2000 Trolltech AS. All rights reserved. # PLATFORM=generic SHARING=shared DEBUG= QCONFIGARG= touch .test.qpe. if [ '!' -f ${OPIEDIR}/.test.qpe. ]; then rm .test.qpe. echo echo echo ' The environment variable $OPIEDIR is not set correctly. It is currently' echo ' set to "'$OPIEDIR'", but it should be set to this directory,' echo ' which is "'`pwd`'".' echo echo ' Please read the INSTALL file for instructions on how to set $OPIEDIR' echo ' correctly. If you have set $OPIEDIR in your .profile or .login, you ' echo ' will need to log out and log in again to make the setting effective.' echo echo exit 1 fi rm .test.qpe. +if [ '!' -f $TMAKEPATH/tmake.conf ] +then + # You have tmake. We'll regenerate the file for you... + echo ' The environment variable $TMAKEPATH is not set correclty. ' + echo ' It should be set to the tmake path' + echo + echo ' Please read the INSTALL file for instructions on how to set $TMAKEPATH' + echo ' to the environment variable correctly.' + exit 1 +fi + VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\.[0-9]*\.[0-9]*.*".*/\1/p' <library/version.h) VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION "[0-9]*\.\([0-9]\)\.[0-9]*.*".*/\1/p' <library/version.h) VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION "[0-9]*\.[0-9]*\.\([0-9]*\).*".*/\1/p' <library/version.h) TOMAKE= if grep -q 'VERSION_STR.*"3' $QTDIR/include/qglobal.h then QT3=yes else QT3=no fi # Parse the arguments, setting things to "yes" or "no". while [ -n "$1" ]; do case $1 in -platform|-xplatform) # No difference since we don't need to build moc, etc. shift; PLATFORM=$1 ;; -release) DEBUG= ;; -debug) DEBUG=-debug ;; -shared) SHARING=shared ;; -static) SHARING=static ;; -qconfig) # optional way to specify the qconfig-qpe.h is to pass -qconfig qpe shift; QCONFIGARG=DEFINES+=QCONFIG='\"'$1'\"' # Don't quote me on that. ;; -make) shift; TOMAKE="$TOMAKE $1" ;; -qt3) QT3=yes ;; *) HELP=yes;; esac shift done TARGET=configs/$PLATFORM-$SHARING$DEBUG if [ '!' -f $TARGET ] then if [ -f configs/linux-$PLATFORM-g++-$SHARING$DEBUG ] then TARGET=configs/linux-$PLATFORM-g++-$SHARING$DEBUG else echo echo ' The specified platform/compiler not supported: ' $TARGET echo exit 2 fi fi # Next, emit a usage message if something failed. if [ "$HELP" = "yes" ]; then cat <<EOF Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...] The defaults (*) are usually acceptable. Here is a short explanation of each option: * -release ........... Compile and link Qt with debugging turned off. -debug ............. Compile and link Qt with debugging turned on. * -shared ............ Create and use a shared Qt library (libqt.so) -static ............ Create and use a static Qt library (libqt.a) -qt3 ............... Configure for use with Qt 3.x -platform target ... The platform you are building on ($PLATFORM) EOF exit 0; fi if [ -f library/custom-$PLATFORM.h ] then rm -f library/custom.h ln -s custom-$PLATFORM.h library/custom.h fi mkdir -p include/qpe ( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; ) echo Creating makefiles... |