summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-06-23 10:49:10 (UTC)
committer harlekin <harlekin>2002-06-23 10:49:10 (UTC)
commit5ab3b3daeb6940af8cbe05e730559980fc880658 (patch) (unidiff)
tree679447551b7e687727bccb9a10973042689d74e8
parent1d773d5df7038410c498d38a68a9569c1350975a (diff)
downloadopie-5ab3b3daeb6940af8cbe05e730559980fc880658.zip
opie-5ab3b3daeb6940af8cbe05e730559980fc880658.tar.gz
opie-5ab3b3daeb6940af8cbe05e730559980fc880658.tar.bz2
hardcore libqpe version
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index 7e9ab68..a9d229e 100755
--- a/configure
+++ b/configure
@@ -97,97 +97,99 @@ then
97 TARGET=configs/linux-$PLATFORM-g++-$SHARING$DEBUG 97 TARGET=configs/linux-$PLATFORM-g++-$SHARING$DEBUG
98 else 98 else
99 echo 99 echo
100 echo ' The specified platform/compiler not supported: ' $TARGET 100 echo ' The specified platform/compiler not supported: ' $TARGET
101 echo 101 echo
102 exit 2 102 exit 2
103 fi 103 fi
104fi 104fi
105 105
106# Next, emit a usage message if something failed. 106# Next, emit a usage message if something failed.
107 107
108if [ "$HELP" = "yes" ]; then 108if [ "$HELP" = "yes" ]; then
109 cat <<EOF 109 cat <<EOF
110Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...] 110Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...]
111 111
112The defaults (*) are usually acceptable. Here is a short explanation of 112The defaults (*) are usually acceptable. Here is a short explanation of
113each option: 113each option:
114 114
115 * -release ........... Compile and link Qt with debugging turned off. 115 * -release ........... Compile and link Qt with debugging turned off.
116 -debug ............. Compile and link Qt with debugging turned on. 116 -debug ............. Compile and link Qt with debugging turned on.
117 117
118 * -shared ............ Create and use a shared Qt library (libqt.so) 118 * -shared ............ Create and use a shared Qt library (libqt.so)
119 -static ............ Create and use a static Qt library (libqt.a) 119 -static ............ Create and use a static Qt library (libqt.a)
120 120
121 -qt3 ............... Configure for use with Qt 3.x 121 -qt3 ............... Configure for use with Qt 3.x
122 122
123 -platform target ... The platform you are building on ($PLATFORM) 123 -platform target ... The platform you are building on ($PLATFORM)
124EOF 124EOF
125 exit 0; 125 exit 0;
126fi 126fi
127 127
128CUSTOM=`echo $PLATFORM | sed -n -e "s/.*-\(.*\)-.*/\1/p"` 128CUSTOM=`echo $PLATFORM | sed -n -e "s/.*-\(.*\)-.*/\1/p"`
129 129
130if [ -f library/custom-$CUSTOM.h ] 130if [ -f library/custom-$CUSTOM.h ]
131then 131then
132 rm -f library/custom.h 132 rm -f library/custom.h
133 ln -s custom-$CUSTOM.h library/custom.h 133 ln -s custom-$CUSTOM.h library/custom.h
134fi 134fi
135 135
136mkdir -p include/qpe 136mkdir -p include/qpe
137( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; ) 137( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; )
138 138
139mkdir -p include/opie 139mkdir -p include/opie
140( cd include/opie && rm -f *.h; ln -s ../../libopie/*.h .; rm -f *_p.h; ) 140( cd include/opie && rm -f *.h; ln -s ../../libopie/*.h .; rm -f *_p.h; )
141 141
142 142
143echo Creating makefiles... 143echo Creating makefiles...
144 144
145sed -e 's/^\(VERSION.*= \).*/\1'$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT/ <library/library.pro >library/library.pro-v 145# Set version for library directly
146# Version 1.5.0 right now for compat.
147sed -e 's/^\(VERSION.*= \).*/\1'1.5.0.$VERSION_PAT/ <library/library.pro >library/library.pro-v
146mv library/library.pro-v library/library.pro 148mv library/library.pro-v library/library.pro
147 149
148if [ "$QT3" = yes ] 150if [ "$QT3" = yes ]
149then 151then
150 VCONFIG="CONFIG+=qt3" 152 VCONFIG="CONFIG+=qt3"
151else 153else
152 VCONFIG="CONFIG+=qt2" 154 VCONFIG="CONFIG+=qt2"
153fi 155fi
154 156
155if [ -f $TMAKEPATH/tmake.conf ] 157if [ -f $TMAKEPATH/tmake.conf ]
156then 158then
157 # You have tmake. We'll regenerate the file for you... 159 # You have tmake. We'll regenerate the file for you...
158 echo "Makefiles will be regenerated." 160 echo "Makefiles will be regenerated."
159fi 161fi
160 162
161H=`pwd` 163H=`pwd`
162if [ -z "$TOMAKE" ] 164if [ -z "$TOMAKE" ]
163then 165then
164 TOMAKE=`make showcomponents` 166 TOMAKE=`make showcomponents`
165fi 167fi
166 168
167for a in $TOMAKE ; do 169for a in $TOMAKE ; do
168 N=$a/Makefile 170 N=$a/Makefile
169 M=$a/Makefile.in 171 M=$a/Makefile.in
170 O=$a/Makefile.add 172 O=$a/Makefile.add
171 f=`basename $a` 173 f=`basename $a`
172 174
173 if [ -f "$TMAKEPATH/tmake.conf" -a -f "$a/$f.pro" ] 175 if [ -f "$TMAKEPATH/tmake.conf" -a -f "$a/$f.pro" ]
174 then 176 then
175 ( cd $a; 177 ( cd $a;
176 TMAKEPATH=$QTDIR/tmake:$TMAKEPATH \ 178 TMAKEPATH=$QTDIR/tmake:$TMAKEPATH \
177 tmake $QCONFIGARG CONFIG+=embedded $VCONFIG \ 179 tmake $QCONFIGARG CONFIG+=embedded $VCONFIG \
178 -t $H/qt/tmake/propagate.t $f.pro | 180 -t $H/qt/tmake/propagate.t $f.pro |
179 sed -e "s|$QTDIR|\$(QTDIR)|g" -e "s|$OPIEDIR|\$(OPIEDIR)|g" >Makefile.in; 181 sed -e "s|$QTDIR|\$(QTDIR)|g" -e "s|$OPIEDIR|\$(OPIEDIR)|g" >Makefile.in;
180 ) 182 )
181 echo -n "." 183 echo -n "."
182 #echo Building $N.. 184 #echo Building $N..
183 appname=`grep '^TARGET' $a/$f.pro | sed 's/^TARGET.*=//' | sed 's/ //g'` 185 appname=`grep '^TARGET' $a/$f.pro | sed 's/^TARGET.*=//' | sed 's/ //g'`
184 translation=`grep '^TRANSLATION.*[^+]=.*' $a/$f.pro | sed 's,^TRANSL.*=.*i18n\/.*\/,,' | sed 's/ //g' | sed 's,\.ts.*,,' | sed 's,^lib,,' ` 186 translation=`grep '^TRANSLATION.*[^+]=.*' $a/$f.pro | sed 's,^TRANSL.*=.*i18n\/.*\/,,' | sed 's/ //g' | sed 's,\.ts.*,,' | sed 's,^lib,,' `
185 if [ -n "$translation" -a -n "$appname" ] 187 if [ -n "$translation" -a -n "$appname" ]
186 then 188 then
187 if [ "$appname" != "$translation" ] 189 if [ "$appname" != "$translation" ]
188 then 190 then
189 echo 191 echo
190 echo "Warning: translation and appname disagree in $a/$f.pro" 192 echo "Warning: translation and appname disagree in $a/$f.pro"
191 fi 193 fi
192 fi 194 fi
193 195