author | zecke <zecke> | 2002-09-10 12:05:29 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-10 12:05:29 (UTC) |
commit | d10cddb3c9ce75bc90b14add14bc133737fe35aa (patch) (unidiff) | |
tree | b6bd92e786e151588ba7c7580bac64175df184c4 | |
parent | da8e0d7e3fb2d34c22299f7281ac869a8fcccb6c (diff) | |
download | opie-d10cddb3c9ce75bc90b14add14bc133737fe35aa.zip opie-d10cddb3c9ce75bc90b14add14bc133737fe35aa.tar.gz opie-d10cddb3c9ce75bc90b14add14bc133737fe35aa.tar.bz2 |
Update configure to generate qtopia/ and qtopia/private
-rwxr-xr-x | configure | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -75,132 +75,135 @@ while [ -n "$1" ]; do | |||
75 | -qconfig) | 75 | -qconfig) |
76 | # optional way to specify the qconfig-qpe.h is to pass -qconfig qpe | 76 | # optional way to specify the qconfig-qpe.h is to pass -qconfig qpe |
77 | shift; QCONFIGARG=DEFINES+=QCONFIG='\"'$1'\"' # Don't quote me on that. | 77 | shift; QCONFIGARG=DEFINES+=QCONFIG='\"'$1'\"' # Don't quote me on that. |
78 | ;; | 78 | ;; |
79 | -make) | 79 | -make) |
80 | shift; TOMAKE="$TOMAKE $1" | 80 | shift; TOMAKE="$TOMAKE $1" |
81 | ;; | 81 | ;; |
82 | -qt3) | 82 | -qt3) |
83 | QT3=yes | 83 | QT3=yes |
84 | ;; | 84 | ;; |
85 | *) | 85 | *) |
86 | HELP=yes;; | 86 | HELP=yes;; |
87 | esac | 87 | esac |
88 | shift | 88 | shift |
89 | done | 89 | done |
90 | 90 | ||
91 | TARGET=configs/$PLATFORM-$SHARING$DEBUG | 91 | TARGET=configs/$PLATFORM-$SHARING$DEBUG |
92 | 92 | ||
93 | if [ '!' -f $TARGET ] | 93 | if [ '!' -f $TARGET ] |
94 | then | 94 | then |
95 | if [ -f configs/linux-$PLATFORM-g++-$SHARING$DEBUG ] | 95 | if [ -f configs/linux-$PLATFORM-g++-$SHARING$DEBUG ] |
96 | then | 96 | then |
97 | TARGET=configs/linux-$PLATFORM-g++-$SHARING$DEBUG | 97 | TARGET=configs/linux-$PLATFORM-g++-$SHARING$DEBUG |
98 | PLATFORM=linux-$PLATFORM-g++ | 98 | PLATFORM=linux-$PLATFORM-g++ |
99 | else | 99 | else |
100 | echo | 100 | echo |
101 | echo ' The specified platform/compiler not supported: ' $TARGET | 101 | echo ' The specified platform/compiler not supported: ' $TARGET |
102 | echo | 102 | echo |
103 | exit 2 | 103 | exit 2 |
104 | fi | 104 | fi |
105 | fi | 105 | fi |
106 | 106 | ||
107 | # Next, emit a usage message if something failed. | 107 | # Next, emit a usage message if something failed. |
108 | 108 | ||
109 | if [ "$HELP" = "yes" ]; then | 109 | if [ "$HELP" = "yes" ]; then |
110 | cat <<EOF | 110 | cat <<EOF |
111 | Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...] | 111 | Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...] |
112 | 112 | ||
113 | The defaults (*) are usually acceptable. Here is a short explanation of | 113 | The defaults (*) are usually acceptable. Here is a short explanation of |
114 | each option: | 114 | each option: |
115 | 115 | ||
116 | * -release ........... Compile and link Qt with debugging turned off. | 116 | * -release ........... Compile and link Qt with debugging turned off. |
117 | -debug ............. Compile and link Qt with debugging turned on. | 117 | -debug ............. Compile and link Qt with debugging turned on. |
118 | 118 | ||
119 | * -shared ............ Create and use a shared Qt library (libqt.so) | 119 | * -shared ............ Create and use a shared Qt library (libqt.so) |
120 | -static ............ Create and use a static Qt library (libqt.a) | 120 | -static ............ Create and use a static Qt library (libqt.a) |
121 | 121 | ||
122 | -qt3 ............... Configure for use with Qt 3.x | 122 | -qt3 ............... Configure for use with Qt 3.x |
123 | 123 | ||
124 | -platform target ... The platform you are building on ($PLATFORM) | 124 | -platform target ... The platform you are building on ($PLATFORM) |
125 | EOF | 125 | EOF |
126 | exit 0; | 126 | exit 0; |
127 | fi | 127 | fi |
128 | 128 | ||
129 | CUSTOM=`echo $PLATFORM | sed -n -e "s/.*-\(.*\)-.*/\1/p"` | 129 | CUSTOM=`echo $PLATFORM | sed -n -e "s/.*-\(.*\)-.*/\1/p"` |
130 | 130 | ||
131 | if [ -f library/custom-$CUSTOM.h ] | 131 | if [ -f library/custom-$CUSTOM.h ] |
132 | then | 132 | then |
133 | rm -f library/custom.h | 133 | rm -f library/custom.h |
134 | ln -s custom-$CUSTOM.h library/custom.h | 134 | ln -s custom-$CUSTOM.h library/custom.h |
135 | fi | 135 | fi |
136 | 136 | ||
137 | mkdir -p include/qpe | 137 | mkdir -p include/qpe |
138 | ( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; ) | 138 | ( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; ) |
139 | 139 | mkdir -p include/qtopia | |
140 | ( cd include/qtopia && rm -f *.h; ln -s ../../library/*.h .; ) | ||
141 | mkdir -p include/qtopia/private | ||
142 | ( cd include/qtopia/private && rm -f *.h; ln -s ../../../library/backend/*.h .; ) | ||
140 | mkdir -p include/opie | 143 | mkdir -p include/opie |
141 | ( cd include/opie && rm -f *.h; ln -s ../../libopie/*.h .; rm -f *_p.h; ) | 144 | ( cd include/opie && rm -f *.h; ln -s ../../libopie/*.h .; rm -f *_p.h; ) |
142 | ( cd include/opie && ln -s ../../libsql/*.h . ) | 145 | ( cd include/opie && ln -s ../../libsql/*.h .; ) |
143 | 146 | ||
144 | echo Creating makefiles... | 147 | echo Creating makefiles... |
145 | 148 | ||
146 | # Set version for library directly | 149 | # Set version for library directly |
147 | # Version 1.5.0 right now for compat. | 150 | # Version 1.5.0 right now for compat. |
148 | sed -e 's/^\(VERSION.*= \).*/\1'1.5.0.$VERSION_PAT/ <library/library.pro >library/library.pro-v | 151 | sed -e 's/^\(VERSION.*= \).*/\1'1.5.0.$VERSION_PAT/ <library/library.pro >library/library.pro-v |
149 | mv library/library.pro-v library/library.pro | 152 | mv library/library.pro-v library/library.pro |
150 | 153 | ||
151 | if [ "$QT3" = yes ] | 154 | if [ "$QT3" = yes ] |
152 | then | 155 | then |
153 | VCONFIG="CONFIG+=qt3" | 156 | VCONFIG="CONFIG+=qt3" |
154 | else | 157 | else |
155 | VCONFIG="CONFIG+=qt2" | 158 | VCONFIG="CONFIG+=qt2" |
156 | fi | 159 | fi |
157 | 160 | ||
158 | if [ -f $TMAKEPATH/tmake.conf ] | 161 | if [ -f $TMAKEPATH/tmake.conf ] |
159 | then | 162 | then |
160 | # You have tmake. We'll regenerate the file for you... | 163 | # You have tmake. We'll regenerate the file for you... |
161 | echo "Makefiles will be regenerated." | 164 | echo "Makefiles will be regenerated." |
162 | fi | 165 | fi |
163 | 166 | ||
164 | H=`pwd` | 167 | H=`pwd` |
165 | if [ -z "$TOMAKE" ] | 168 | if [ -z "$TOMAKE" ] |
166 | then | 169 | then |
167 | TOMAKE=`make showcomponents` | 170 | TOMAKE=`make showcomponents` |
168 | fi | 171 | fi |
169 | 172 | ||
170 | for a in $TOMAKE ; do | 173 | for a in $TOMAKE ; do |
171 | N=$a/Makefile | 174 | N=$a/Makefile |
172 | M=$a/Makefile.in | 175 | M=$a/Makefile.in |
173 | O=$a/Makefile.add | 176 | O=$a/Makefile.add |
174 | f=`basename $a` | 177 | f=`basename $a` |
175 | 178 | ||
176 | if [ -f "$TMAKEPATH/tmake.conf" -a -f "$a/$f.pro" ] | 179 | if [ -f "$TMAKEPATH/tmake.conf" -a -f "$a/$f.pro" ] |
177 | then | 180 | then |
178 | ( cd $a; | 181 | ( cd $a; |
179 | TMAKEPATH=$QTDIR/tmake:$TMAKEPATH \ | 182 | TMAKEPATH=$QTDIR/tmake:$TMAKEPATH \ |
180 | tmake $QCONFIGARG CONFIG+=embedded $VCONFIG \ | 183 | tmake $QCONFIGARG CONFIG+=embedded $VCONFIG \ |
181 | -t $H/qt/tmake/propagate.t $f.pro | | 184 | -t $H/qt/tmake/propagate.t $f.pro | |
182 | sed -e "s|$QTDIR|\$(QTDIR)|g" -e "s|$OPIEDIR|\$(OPIEDIR)|g" >Makefile.in; | 185 | sed -e "s|$QTDIR|\$(QTDIR)|g" -e "s|$OPIEDIR|\$(OPIEDIR)|g" >Makefile.in; |
183 | ) | 186 | ) |
184 | echo -n "." | 187 | echo -n "." |
185 | #echo Building $N.. | 188 | #echo Building $N.. |
186 | appname=`grep '^TARGET' $a/$f.pro | sed 's/^TARGET.*=//' | tr -d " \t"` | 189 | appname=`grep '^TARGET' $a/$f.pro | sed 's/^TARGET.*=//' | tr -d " \t"` |
187 | translation=`grep '^TRANSLATION.*[^+]=.*' $a/$f.pro | sed 's,^TRANSL.*=.*i18n\/.*\/,,' | sed 's/ //g' | sed 's,\.ts.*,,' | sed 's,^lib,,' ` | 190 | translation=`grep '^TRANSLATION.*[^+]=.*' $a/$f.pro | sed 's,^TRANSL.*=.*i18n\/.*\/,,' | sed 's/ //g' | sed 's,\.ts.*,,' | sed 's,^lib,,' ` |
188 | if [ -n "$translation" -a -n "$appname" ] | 191 | if [ -n "$translation" -a -n "$appname" ] |
189 | then | 192 | then |
190 | if [ "$appname" != "$translation" ] | 193 | if [ "$appname" != "$translation" ] |
191 | then | 194 | then |
192 | echo | 195 | echo |
193 | echo "Warning: translation and appname disagree in $a/$f.pro" | 196 | echo "Warning: translation and appname disagree in $a/$f.pro" |
194 | fi | 197 | fi |
195 | fi | 198 | fi |
196 | 199 | ||
197 | fi | 200 | fi |
198 | 201 | ||
199 | cat > $N <<EOF | 202 | cat > $N <<EOF |
200 | ############################################################################# | 203 | ############################################################################# |
201 | # Automatically generated from $M | 204 | # Automatically generated from $M |
202 | # Build options from $1 | 205 | # Build options from $1 |
203 | ############################################################################# | 206 | ############################################################################# |
204 | 207 | ||
205 | EOF | 208 | EOF |
206 | 209 | ||