… | |
… | |
2 | comma=, |
2 | comma=, |
3 | SUBDIRS=fib-1.1 support |
3 | SUBDIRS=fib-1.1 support |
4 | if PLUGINS |
4 | if PLUGINS |
5 | SUBDIRS += . |
5 | SUBDIRS += . |
6 | endif |
6 | endif |
7 | DIST_SUBDIRS=autoload binding map maptool fib-1.1 font fonts gui graphics osd plugin speech vehicle support xpm maps |
7 | DIST_SUBDIRS=autoload binding map maptool fib-1.1 font fonts gui graphics osd plugin speech vehicle support maps |
8 | SUBDIRS+=autoload binding map font gui graphics osd plugin speech vehicle xpm |
8 | SUBDIRS+=autoload binding map font gui graphics osd plugin speech vehicle |
9 | |
9 | |
10 | MODULES = $(wildcard $(top_builddir)/navit/binding/*/*.la $(top_builddir)/navit/font/*/*.la $(top_builddir)/navit/graphics/*/*.la $(top_builddir)/navit/gui/*/*.la $(top_builddir)/navit/map/*/*.la $(top_builddir)/navit/osd/*/*.la $(top_builddir)/navit/speech/*/*.la $(top_builddir)/navit/vehicle/*/*.la) |
10 | MODULES = $(wildcard $(top_builddir)/navit/binding/*/*.la $(top_builddir)/navit/font/*/*.la $(top_builddir)/navit/graphics/*/*.la $(top_builddir)/navit/gui/*/*.la $(top_builddir)/navit/map/*/*.la $(top_builddir)/navit/osd/*/*.la $(top_builddir)/navit/speech/*/*.la $(top_builddir)/navit/vehicle/*/*.la) |
11 | |
11 | |
12 | if FONTS |
12 | if FONTS |
13 | SUBDIRS += fonts |
13 | SUBDIRS += fonts |
… | |
… | |
59 | file.h graphics.h gtkext.h gui.h item.h item_def.h keys.h log.h layer.h layout.h linguistics.h main.h map-share.h map.h\ |
59 | file.h graphics.h gtkext.h gui.h item.h item_def.h keys.h log.h layer.h layout.h linguistics.h main.h map-share.h map.h\ |
60 | map_data.h mapset.h maptype.h menu.h messages.h navigation.h navit.h osd.h \ |
60 | map_data.h mapset.h maptype.h menu.h messages.h navigation.h navit.h osd.h \ |
61 | param.h phrase.h plugin.h point.h plugin_def.h projection.h popup.h route.h profile.h roadprofile.h search.h speech.h start_real.h \ |
61 | param.h phrase.h plugin.h point.h plugin_def.h projection.h popup.h route.h profile.h roadprofile.h search.h speech.h start_real.h \ |
62 | transform.h track.h types.h util.h vehicle.h vehicleprofile.h window.h xmlconfig.h zipfile.h \ |
62 | transform.h track.h types.h util.h vehicle.h vehicleprofile.h window.h xmlconfig.h zipfile.h \ |
63 | navit_nls.h sunriset.c sunriset.h glib_slice.h maptool/miniz.c \ |
63 | navit_nls.h sunriset.c sunriset.h glib_slice.h maptool/miniz.c \ |
|
|
64 | coffeecatch.c coffeejni.c \ |
64 | snprintf.c snprintf.h |
65 | snprintf.c snprintf.h |
65 | |
66 | |
66 | |
67 | |
67 | if SUPPORT_ANDROID |
68 | if SUPPORT_ANDROID |
68 | lib@LIBNAVIT@_la_SOURCES += vehicle/android/vehicle_android.c \ |
69 | lib@LIBNAVIT@_la_SOURCES += vehicle/android/vehicle_android.c \ |
69 | vehicle/demo/vehicle_demo.c \ |
70 | vehicle/demo/vehicle_demo.c \ |
70 | gui/internal/gui_internal.c \ |
71 | gui/internal/gui_internal.c \ |
71 | graphics/android/graphics_android.c \ |
72 | graphics/android/graphics_android.c \ |
72 | map/binfile/binfile.c \ |
73 | map/binfile/binfile.c \ |
73 | map/csv/csv.c \ |
74 | map/csv/csv.c \ |
… | |
… | |
120 | # v_name = "1.0.0-"$$(LANG=C svnversion $(top_srcdir) 2> /dev/null|tr -d ":A-Z" 2> /dev/null) |
121 | # v_name = "1.0.0-"$$(LANG=C svnversion $(top_srcdir) 2> /dev/null|tr -d ":A-Z" 2> /dev/null) |
121 | v_name = $$(cat $(srcdir)/android/Android_Market_Version_int.txt|grep v_name|cut -d ":" -f 2) |
122 | v_name = $$(cat $(srcdir)/android/Android_Market_Version_int.txt|grep v_name|cut -d ":" -f 2) |
122 | b_arch = $(shell if [ "$(DO_X86_BUILD)" == "1" ]; then echo "x86"; elif [ "$(DO_ARMV7_BUILD)" == "1" ]; then echo "armeabi-v7a"; else echo "armeabi"; fi) |
123 | b_arch = $(shell if [ "$(DO_X86_BUILD)" == "1" ]; then echo "x86"; elif [ "$(DO_ARMV7_BUILD)" == "1" ]; then echo "armeabi-v7a"; else echo "armeabi"; fi) |
123 | |
124 | |
124 | |
125 | |
125 | android/AndroidManifest.xml: android/AndroidManifest.xml.in |
126 | android/AndroidManifest.xml: |
|
|
127 | echo "making::android/AndroidManifest.xml" |
126 | mkdir -p $(builddir)/android |
128 | mkdir -p $(builddir)/android |
127 | mkdir -p $(builddir)/android/res2/drawable-hdpi |
129 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -v $(srcdir)/android/AndroidManifest.xml.in $(builddir)/android/AndroidManifest.xml.in ; fi |
128 | mkdir -p $(builddir)/android/res2/drawable-mdpi |
|
|
129 | mkdir -p $(builddir)/android/res2/drawable-ldpi |
|
|
130 | |
|
|
131 | sed '0,/<uses-sdk/!d' <$< >$@ |
|
|
132 | for i in $(subst $(comma), ,@ANDROID_PERMISSIONS@); do echo " <uses-permission android:name=\"android.permission.$$i\" />" >>$@; done |
|
|
133 | sed '0,/<uses-sdk/d' <$< >>$@ |
|
|
134 | sed -e "s/@ANDROID_VERSION_INT@/$(v_int)/" <$@ >android/AndroidManifest.xml.tmp |
130 | sed -e "s/@ANDROID_VERSION_INT@/$(v_int)/" <android/AndroidManifest.xml.in >android/AndroidManifest.xml.tmp |
135 | mv android/AndroidManifest.xml.tmp $@ |
131 | mv android/AndroidManifest.xml.tmp android/AndroidManifest.xml.in |
136 | sed -e "s/@ANDROID_VERSION_NAME@/$(v_name)/" <$@ >android/AndroidManifest.xml.tmp |
132 | sed -e "s/@ANDROID_VERSION_NAME@/$(v_name)/" <android/AndroidManifest.xml.in >android/AndroidManifest.xml.tmp |
137 | mv android/AndroidManifest.xml.tmp $@ |
133 | mv android/AndroidManifest.xml.tmp android/AndroidManifest.xml |
138 | |
134 | |
139 | android/build.xml: android/AndroidManifest.xml android/dummy.txt |
135 | android/build.xml: android/AndroidManifest.xml android/dummy.txt |
140 | # this is needed, otherwise somehow the files cant be deleted |
136 | # this is needed, otherwise somehow the files cant be deleted |
|
|
137 | |
|
|
138 | echo "making::android/build.xml" |
|
|
139 | touch $(builddir)/android/build.xml |
|
|
140 | |
141 | mkdir -p $(builddir)/android/src/ |
141 | mkdir -p $(builddir)/android/src/ |
142 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android/src/; fi |
142 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android/src/; fi |
143 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android/src/; fi |
143 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android/src/; fi |
144 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android/* $(builddir)/android; fi |
144 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android/* $(builddir)/android; fi |
145 | |
145 | |
… | |
… | |
148 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -pf $(srcdir)/android/tagsoup-1.2.1.jar $(builddir)/android/lib/; fi |
148 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -pf $(srcdir)/android/tagsoup-1.2.1.jar $(builddir)/android/lib/; fi |
149 | |
149 | |
150 | touch $(srcdir)/android/dummy.txt |
150 | touch $(srcdir)/android/dummy.txt |
151 | touch $(builddir)/android/dummy.txt |
151 | touch $(builddir)/android/dummy.txt |
152 | |
152 | |
153 | # mkdir -p $(builddir)/actionbarsherlock/src/ |
153 | |
|
|
154 | ######## -------------------------- |
|
|
155 | mkdir -p $(builddir)/android-about-page/src/ |
154 | # if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/actionbarsherlock/src/; fi |
156 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-about-page/src/; fi |
155 | # if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/actionbarsherlock/src/; fi |
157 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-about-page/src/; fi |
156 | # if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/actionbarsherlock/* $(builddir)/actionbarsherlock; fi |
158 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-about-page/* $(builddir)/android-about-page/; fi |
157 | # touch $(srcdir)/actionbarsherlock/dummy.txt |
159 | touch $(srcdir)/android-about-page/dummy.txt |
158 | # touch $(builddir)/actionbarsherlock/dummy.txt |
160 | touch $(builddir)/android-about-page/dummy.txt |
159 | # |
161 | ######## -------------------------- |
160 | # android update project -t @ANDROID_PROJECT@ -p android -l ../actionbarsherlock |
|
|
161 | # echo "jar.libs.dir=lib" >> $(builddir)/android/ant.properties |
|
|
162 | |
162 | |
|
|
163 | |
|
|
164 | ######## -------------------------- |
|
|
165 | mkdir -p $(builddir)/android-support-animated-vector-drawable/src/ |
|
|
166 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-animated-vector-drawable/src/; fi |
|
|
167 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-animated-vector-drawable/src/; fi |
|
|
168 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-animated-vector-drawable/* $(builddir)/android-support-animated-vector-drawable/; fi |
|
|
169 | touch $(srcdir)/android-support-animated-vector-drawable/dummy.txt |
|
|
170 | touch $(builddir)/android-support-animated-vector-drawable/dummy.txt |
|
|
171 | ######## -------------------------- |
|
|
172 | |
|
|
173 | |
|
|
174 | ######## -------------------------- |
|
|
175 | mkdir -p $(builddir)/android-support-annotations/src/ |
|
|
176 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-annotations/src/; fi |
|
|
177 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-annotations/src/; fi |
|
|
178 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-annotations/* $(builddir)/android-support-annotations/; fi |
|
|
179 | touch $(srcdir)/android-support-annotations/dummy.txt |
|
|
180 | touch $(builddir)/android-support-annotations/dummy.txt |
|
|
181 | ######## -------------------------- |
|
|
182 | |
|
|
183 | |
|
|
184 | ######## -------------------------- |
|
|
185 | mkdir -p $(builddir)/android-support-compat/src/ |
|
|
186 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-compat/src/; fi |
|
|
187 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-compat/src/; fi |
|
|
188 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-compat/* $(builddir)/android-support-compat/; fi |
|
|
189 | touch $(srcdir)/android-support-compat/dummy.txt |
|
|
190 | touch $(builddir)/android-support-compat/dummy.txt |
|
|
191 | ######## -------------------------- |
|
|
192 | |
|
|
193 | ######## -------------------------- |
|
|
194 | mkdir -p $(builddir)/android-support-core-ui/src/ |
|
|
195 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-core-ui/src/; fi |
|
|
196 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-core-ui/src/; fi |
|
|
197 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-core-ui/* $(builddir)/android-support-core-ui/; fi |
|
|
198 | touch $(srcdir)/android-support-core-ui/dummy.txt |
|
|
199 | touch $(builddir)/android-support-core-ui/dummy.txt |
|
|
200 | ######## -------------------------- |
|
|
201 | |
|
|
202 | ######## -------------------------- |
|
|
203 | mkdir -p $(builddir)/android-support-core-utils/src/ |
|
|
204 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-core-utils/src/; fi |
|
|
205 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-core-utils/src/; fi |
|
|
206 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-core-utils/* $(builddir)/android-support-core-utils/; fi |
|
|
207 | touch $(srcdir)/android-support-core-utils/dummy.txt |
|
|
208 | touch $(builddir)/android-support-core-utils/dummy.txt |
|
|
209 | ######## -------------------------- |
|
|
210 | |
|
|
211 | ######## -------------------------- |
|
|
212 | mkdir -p $(builddir)/android-support-design/src/ |
|
|
213 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-design/src/; fi |
|
|
214 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-design/src/; fi |
|
|
215 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-design/* $(builddir)/android-support-design/; fi |
|
|
216 | touch $(srcdir)/android-support-design/dummy.txt |
|
|
217 | touch $(builddir)/android-support-design/dummy.txt |
|
|
218 | ######## -------------------------- |
|
|
219 | |
|
|
220 | |
|
|
221 | ######## -------------------------- |
|
|
222 | mkdir -p $(builddir)/android-support-fragment/src/ |
|
|
223 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-fragment/src/; fi |
|
|
224 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-fragment/src/; fi |
|
|
225 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-fragment/* $(builddir)/android-support-fragment/; fi |
|
|
226 | touch $(srcdir)/android-support-fragment/dummy.txt |
|
|
227 | touch $(builddir)/android-support-fragment/dummy.txt |
|
|
228 | ######## -------------------------- |
|
|
229 | |
|
|
230 | ######## -------------------------- |
|
|
231 | mkdir -p $(builddir)/android-support-media-compat/src/ |
|
|
232 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-media-compat/src/; fi |
|
|
233 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-media-compat/src/; fi |
|
|
234 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-media-compat/* $(builddir)/android-support-media-compat/; fi |
|
|
235 | touch $(srcdir)/android-support-media-compat/dummy.txt |
|
|
236 | touch $(builddir)/android-support-media-compat/dummy.txt |
|
|
237 | ######## -------------------------- |
|
|
238 | |
|
|
239 | ######## -------------------------- |
|
|
240 | mkdir -p $(builddir)/android-support-v4/src/ |
|
|
241 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-v4/src/; fi |
|
|
242 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-v4/src/; fi |
|
|
243 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-v4/* $(builddir)/android-support-v4/; fi |
|
|
244 | touch $(srcdir)/android-support-v4/dummy.txt |
|
|
245 | touch $(builddir)/android-support-v4/dummy.txt |
|
|
246 | ######## -------------------------- |
|
|
247 | |
|
|
248 | |
|
|
249 | ######## -------------------------- |
163 | mkdir -p $(builddir)/android-support-v7-appcompat/src/ |
250 | mkdir -p $(builddir)/android-support-v7-appcompat/src/ |
164 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-v7-appcompat/src/; fi |
251 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-v7-appcompat/src/; fi |
165 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-v7-appcompat/src/; fi |
252 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-v7-appcompat/src/; fi |
166 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-v7-appcompat/* $(builddir)/android-support-v7-appcompat/; fi |
253 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-v7-appcompat/* $(builddir)/android-support-v7-appcompat/; fi |
167 | touch $(srcdir)/android-support-v7-appcompat/dummy.txt |
254 | touch $(srcdir)/android-support-v7-appcompat/dummy.txt |
168 | touch $(builddir)/android-support-v7-appcompat/dummy.txt |
255 | touch $(builddir)/android-support-v7-appcompat/dummy.txt |
|
|
256 | ######## -------------------------- |
|
|
257 | |
|
|
258 | |
|
|
259 | ######## -------------------------- |
|
|
260 | mkdir -p $(builddir)/android-support-v7-recyclerview/src/ |
|
|
261 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-v7-recyclerview/src/; fi |
|
|
262 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-v7-recyclerview/src/; fi |
|
|
263 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-v7-recyclerview/* $(builddir)/android-support-v7-recyclerview/; fi |
|
|
264 | touch $(srcdir)/android-support-v7-recyclerview/dummy.txt |
|
|
265 | touch $(builddir)/android-support-v7-recyclerview/dummy.txt |
|
|
266 | ######## -------------------------- |
|
|
267 | |
|
|
268 | |
|
|
269 | ######## -------------------------- |
|
|
270 | mkdir -p $(builddir)/android-support-vector-drawable/src/ |
|
|
271 | if [ "$(builddir)" != "$(srcdir)" ]; then chmod -R u+w $(builddir)/android-support-vector-drawable/src/; fi |
|
|
272 | if [ "$(builddir)" != "$(srcdir)" ]; then rm -Rf $(builddir)/android-support-vector-drawable/src/; fi |
|
|
273 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -rpf $(srcdir)/android-support-vector-drawable/* $(builddir)/android-support-vector-drawable/; fi |
|
|
274 | touch $(srcdir)/android-support-vector-drawable/dummy.txt |
|
|
275 | touch $(builddir)/android-support-vector-drawable/dummy.txt |
|
|
276 | ######## -------------------------- |
169 | |
277 | |
170 | if [ "$(builddir)" != "$(srcdir)" ]; then mkdir -p $(builddir)/android/src/com/zoffcc/applications/zanavi_msg/ ; fi |
278 | if [ "$(builddir)" != "$(srcdir)" ]; then mkdir -p $(builddir)/android/src/com/zoffcc/applications/zanavi_msg/ ; fi |
|
|
279 | echo "+++ move aidl files +++" |
|
|
280 | echo "+++ move aidl files +++" |
171 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -pf $(builddir)/android/aidl/com/zoffcc/applications/zanavi_msg/*.aidl $(builddir)/android/src/com/zoffcc/applications/zanavi_msg/ ; fi |
281 | if [ "$(builddir)" != "$(srcdir)" ]; then cp -pf $(builddir)/android/aidl/com/zoffcc/applications/zanavi_msg/*.aidl $(builddir)/android/src/com/zoffcc/applications/zanavi_msg/ ; fi |
172 | |
282 | |
173 | # android update lib-project -t @ANDROID_PROJECT@ -p $(builddir)/android-support-v7-appcompat |
|
|
174 | android update project -t @ANDROID_PROJECT@ -p android -l ../android-support-v7-appcompat |
|
|
175 | echo "jar.libs.dir=lib" >> $(builddir)/android/ant.properties |
|
|
176 | |
|
|
177 | |
283 | |
178 | apkg-all: all android/build.xml navit.xml |
284 | apkg-all: all android/build.xml navit.xml |
|
|
285 | |
|
|
286 | echo "making::apkg-all" |
|
|
287 | |
179 | mkdir -p android/libs/$(b_arch) |
288 | mkdir -p android/libs/$(b_arch) |
180 | cp .libs/*.so android/libs/$(b_arch)/libnavit.so |
289 | # cp .libs/*.so android/libs/$(b_arch)/libnavit.so |
181 | for i in */*/.libs/*.so ; do sed 's&lib_data_data_com\.zoffcc\.applications\.zanavi_lib_&/data/data/com.zoffcc.applications.zanavi/lib/lib&' <$$i >android/libs/$(b_arch)/$$(basename $$i); done |
290 | # for i in */*/.libs/*.so ; do sed 's&lib_data_data_com\.zoffcc\.applications\.zanavi_lib_&/data/data/com.zoffcc.applications.zanavi/lib/lib&' <$$i >android/libs/$(b_arch)/$$(basename $$i); done |
182 | |
|
|
183 | mkdir -p android/res/drawable-ldpi |
|
|
184 | mkdir -p android/res/drawable-mdpi |
|
|
185 | mkdir -p android/res/drawable-hdpi |
|
|
186 | mkdir -p android/res/drawable-xhdpi |
|
|
187 | mkdir -p android/res/drawable-xxhdpi |
|
|
188 | |
|
|
189 | mkdir -p android/res2/drawable-hdpi |
|
|
190 | mkdir -p android/res2/drawable-mdpi |
|
|
191 | mkdir -p android/res2/drawable-ldpi |
|
|
192 | |
|
|
193 | # all icons and imgs |
|
|
194 | if [ "$(DO_PNG_BUILD)" == "1" ]; then for i in $(shell cd $(builddir)/xpm && echo *_16_16.png); do cp -v $(builddir)/xpm/$$i android/res/drawable-ldpi/$$( echo $$i | tr "[A-Z]" "[a-z]" | sed -e 'sx_16_16xx') ; done ; fi |
|
|
195 | if [ "$(DO_PNG_BUILD)" == "1" ]; then for i in $(shell cd $(builddir)/xpm && echo *_32_32.png); do cp -v $(builddir)/xpm/$$i android/res/drawable-mdpi/$$( echo $$i | tr "[A-Z]" "[a-z]" | sed -e 'sx_32_32xx') ; done ; fi |
|
|
196 | if [ "$(DO_PNG_BUILD)" == "1" ]; then for i in $(shell cd $(builddir)/xpm && echo *_48_48.png); do cp -v $(builddir)/xpm/$$i android/res/drawable-hdpi/$$( echo $$i | tr "[A-Z]" "[a-z]" | sed -e 'sx_48_48xx') ; done ; fi |
|
|
197 | if [ "$(DO_PNG_BUILD)" == "1" ]; then for i in $(shell cd $(builddir)/xpm && echo *_48_48.png); do cp -v $(builddir)/xpm/$$i android/res/drawable-xhdpi/$$( echo $$i | tr "[A-Z]" "[a-z]" | sed -e 'sx_48_48xx') ; done ; fi |
|
|
198 | |
|
|
199 | # nav icons (overwrite with larger versions) |
|
|
200 | if [ "$(DO_PNG_BUILD)" == "1" ]; then for i in $(shell cd $(builddir)/xpm && echo nav_*_48_48.png); do cp -v $(builddir)/xpm/$$i android/res/drawable-ldpi/$$( echo $$i | tr "[A-Z]" "[a-z]" | sed -e 'sx_48_48xx') ; done ; fi |
|
|
201 | if [ "$(DO_PNG_BUILD)" == "1" ]; then for i in $(shell cd $(builddir)/xpm && echo nav_*_48_48.png); do cp -v $(builddir)/xpm/$$i android/res/drawable-mdpi/$$( echo $$i | tr "[A-Z]" "[a-z]" | sed -e 'sx_48_48xx') ; done ; fi |
|
|
202 | if [ "$(DO_PNG_BUILD)" == "1" ]; then for i in $(shell cd $(builddir)/xpm && echo nav_*_96_96.png); do cp -v $(builddir)/xpm/$$i android/res/drawable-hdpi/$$( echo $$i | tr "[A-Z]" "[a-z]" | sed -e 'sx_96_96xx') ; done ; fi |
|
|
203 | if [ "$(DO_PNG_BUILD)" == "1" ]; then for i in $(shell cd $(builddir)/xpm && echo nav_*_192_192.png); do cp -v $(builddir)/xpm/$$i android/res/drawable-xhdpi/$$( echo $$i | tr "[A-Z]" "[a-z]" | sed -e 'sx_192_192xx') ; done ; fi |
|
|
204 | |
|
|
205 | |
|
|
206 | # only use needed pngs to make size of apk smaller |
|
|
207 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in flag_bk_tr.png flag_bk_wh.png mini_roundabout.png gui_active_32_32.png gui_arrow_right_32_32.png gui_arrow_left_32_32.png icon_32_32.png unknown_32_32.png gui_zoom_out_64_64.png gui_zoom_in_64_64.png gui_map_32_32.png gui_home_32_32.png gui_actions_64_64.png gui_settings_64_64.png gui_tools_64_64.png gui_about_64_64.png gui_inactive_32_32.png ; do cp -v $(builddir)/android/res2/drawable-hdpi/$$i android/res/drawable-hdpi/ ; done ; fi |
|
|
208 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in flag_bk_tr.png flag_bk_wh.png mini_roundabout.png gui_active_32_32.png gui_arrow_right_32_32.png gui_arrow_left_32_32.png icon_32_32.png unknown_32_32.png gui_zoom_out_64_64.png gui_zoom_in_64_64.png gui_map_32_32.png gui_home_32_32.png gui_actions_64_64.png gui_settings_64_64.png gui_tools_64_64.png gui_about_64_64.png gui_inactive_32_32.png ; do cp -v $(builddir)/android/res2/drawable-mdpi/$$i android/res/drawable-mdpi/ ; done ; fi |
|
|
209 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in flag_bk_tr.png flag_bk_wh.png mini_roundabout.png gui_active_32_32.png gui_arrow_right_32_32.png gui_arrow_left_32_32.png icon_32_32.png unknown_32_32.png gui_zoom_out_64_64.png gui_zoom_in_64_64.png gui_map_32_32.png gui_home_32_32.png gui_actions_64_64.png gui_settings_64_64.png gui_tools_64_64.png gui_about_64_64.png gui_inactive_32_32.png ; do cp -v $(builddir)/android/res2/drawable-ldpi/$$i android/res/drawable-ldpi/ ; done ; fi |
|
|
210 | # gui icons |
|
|
211 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in $(shell cd android/res2/drawable-hdpi && echo gui*64_64*png); do cp -v $(builddir)/android/res2/drawable-hdpi/$$i android/res/drawable-hdpi/ ; done ; fi |
|
|
212 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in $(shell cd android/res2/drawable-mdpi && echo gui*64_64*png); do cp -v $(builddir)/android/res2/drawable-mdpi/$$i android/res/drawable-mdpi/ ; done ; fi |
|
|
213 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in $(shell cd android/res2/drawable-ldpi && echo gui*64_64*png); do cp -v $(builddir)/android/res2/drawable-ldpi/$$i android/res/drawable-ldpi/ ; done ; fi |
|
|
214 | # nav icons |
|
|
215 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in $(shell cd android/res2/drawable-hdpi && echo nav_*png); do cp -v $(builddir)/android/res2/drawable-hdpi/$$i android/res/drawable-hdpi/ ; done ; fi |
|
|
216 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in $(shell cd android/res2/drawable-mdpi && echo nav_*png); do cp -v $(builddir)/android/res2/drawable-mdpi/$$i android/res/drawable-mdpi/ ; done ; fi |
|
|
217 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in $(shell cd android/res2/drawable-ldpi && echo nav_*png); do cp -v $(builddir)/android/res2/drawable-ldpi/$$i android/res/drawable-ldpi/ ; done ; fi |
|
|
218 | # POIs |
|
|
219 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in traffic_signals.png atm.png bank.png fuel.png gui_select_street_32_32.png gui_select_town_32_32.png gui_select_country_32_32.png ; do cp -v $(builddir)/android/res2/drawable-hdpi/$$i android/res/drawable-hdpi/ ; done ; fi |
|
|
220 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in traffic_signals.png atm.png bank.png fuel.png gui_select_street_32_32.png gui_select_town_32_32.png gui_select_country_32_32.png ; do cp -v $(builddir)/android/res2/drawable-mdpi/$$i android/res/drawable-mdpi/ ; done ; fi |
|
|
221 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in traffic_signals.png atm.png bank.png fuel.png gui_select_street_32_32.png gui_select_town_32_32.png gui_select_country_32_32.png ; do cp -v $(builddir)/android/res2/drawable-ldpi/$$i android/res/drawable-ldpi/ ; done ; fi |
|
|
222 | # more POIs |
|
|
223 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in airport.png attraction.png bar.png beer.png bench.png boat_ramp.png boundary_stone.png bus.png cafe.png camping.png church.png cinema.png danger.png exit.png fastfood.png firebrigade.png fountain.png golf.png heliport.png hospital.png hotel.png information.png justice.png mark.png military.png mini_roundabout.png museum.png parking.png peak.png pharmacy.png police.png post.png repair_service.png resort.png restaurant.png ruins.png school.png shop_grocery.png shopping.png skiing.png stadium.png swimming.png tec_common.png telephone.png toilets.png viewpoint.png wifi.png zoom_in.png zoom_out.png zoo.png ; do cp -v $(builddir)/android/res2/drawable-hdpi/$$i android/res/drawable-hdpi/ ; done ; fi |
|
|
224 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in airport.png attraction.png bar.png beer.png bench.png boat_ramp.png boundary_stone.png bus.png cafe.png camping.png church.png cinema.png danger.png exit.png fastfood.png firebrigade.png fountain.png golf.png heliport.png hospital.png hotel.png information.png justice.png mark.png military.png mini_roundabout.png museum.png parking.png peak.png pharmacy.png police.png post.png repair_service.png resort.png restaurant.png ruins.png school.png shop_grocery.png shopping.png skiing.png stadium.png swimming.png tec_common.png telephone.png toilets.png viewpoint.png wifi.png zoom_in.png zoom_out.png zoo.png ; do cp -v $(builddir)/android/res2/drawable-mdpi/$$i android/res/drawable-mdpi/ ; done ; fi |
|
|
225 | # if [ "$(builddir)" != "$(srcdir)" ]; then for i in airport.png attraction.png bar.png beer.png bench.png boat_ramp.png boundary_stone.png bus.png cafe.png camping.png church.png cinema.png danger.png exit.png fastfood.png firebrigade.png fountain.png golf.png heliport.png hospital.png hotel.png information.png justice.png mark.png military.png mini_roundabout.png museum.png parking.png peak.png pharmacy.png police.png post.png repair_service.png resort.png restaurant.png ruins.png school.png shop_grocery.png shopping.png skiing.png stadium.png swimming.png tec_common.png telephone.png toilets.png viewpoint.png wifi.png zoom_in.png zoom_out.png zoo.png ; do cp -v $(builddir)/android/res2/drawable-ldpi/$$i android/res/drawable-ldpi/ ; done ; fi |
|
|
226 | # rest of nav_ icons |
|
|
227 | # if [ "$(builddir)" != "$(srcdir)" ]; then cp -v $(builddir)/android/res2/drawable-hdpi/nav_destination_bk_59_59.png android/res/drawable-hdpi/nav_destination_bk.png ; fi |
|
|
228 | # if [ "$(builddir)" != "$(srcdir)" ]; then cp -v $(builddir)/android/res2/drawable-mdpi/nav_destination_bk_59_59.png android/res/drawable-mdpi/nav_destination_bk.png ; fi |
|
|
229 | # if [ "$(builddir)" != "$(srcdir)" ]; then cp -v $(builddir)/android/res2/drawable-ldpi/nav_destination_bk_59_59.png android/res/drawable-ldpi/nav_destination_bk.png ; fi |
|
|
230 | |
|
|
231 | # if release build -> then compress png images (this takes a long time!!!) |
|
|
232 | # |
|
|
233 | if [ "$(DO_RELEASE_BUILD)" == "1" ]; then if [ "$(builddir)" != "$(srcdir)" ]; then find android/res/drawable-hdpi/ -maxdepth 1 -type f -exec $(srcdir)/../pngout-static -c6 -f6 -y {} \; ; fi ; fi |
|
|
234 | if [ "$(DO_RELEASE_BUILD)" == "1" ]; then if [ "$(builddir)" != "$(srcdir)" ]; then find android/res/drawable-mdpi/ -maxdepth 1 -type f -exec $(srcdir)/../pngout-static -c6 -f6 -y {} \; ; fi ; fi |
|
|
235 | if [ "$(DO_RELEASE_BUILD)" == "1" ]; then if [ "$(builddir)" != "$(srcdir)" ]; then find android/res/drawable-ldpi/ -maxdepth 1 -type f -exec $(srcdir)/../pngout-static -c6 -f6 -y {} \; ; fi ; fi |
|
|
236 | |
291 | |
237 | # remove old libs |
292 | # remove old libs |
238 | ls -al android/libs/$(b_arch)/lib*.so |
293 | # ls -al android/libs/$(b_arch)/lib*.so |
239 | rm -f android/libs/$(b_arch)/libgraphics_android.so |
294 | rm -f android/libs/$(b_arch)/libgraphics_android.so |
240 | rm -f android/libs/$(b_arch)/libgraphics_null.so |
295 | rm -f android/libs/$(b_arch)/libgraphics_null.so |
241 | rm -f android/libs/$(b_arch)/libgui_internal.so |
296 | rm -f android/libs/$(b_arch)/libgui_internal.so |
242 | rm -f android/libs/$(b_arch)/libmap_binfile.so |
297 | rm -f android/libs/$(b_arch)/libmap_binfile.so |
243 | rm -f android/libs/$(b_arch)/libmap_csv.so |
298 | rm -f android/libs/$(b_arch)/libmap_csv.so |
… | |
… | |
252 | rm -f android/libs/$(b_arch)/libvehicle_file.so |
307 | rm -f android/libs/$(b_arch)/libvehicle_file.so |
253 | rm -f android/libs/$(b_arch)/libvehicle_pipe.so |
308 | rm -f android/libs/$(b_arch)/libvehicle_pipe.so |
254 | rm -f android/libs/$(b_arch)/libvehicle_serial.so |
309 | rm -f android/libs/$(b_arch)/libvehicle_serial.so |
255 | rm -f android/libs/$(b_arch)/libvehicle_socket.so |
310 | rm -f android/libs/$(b_arch)/libvehicle_socket.so |
256 | |
311 | |
257 | # clean up |
|
|
258 | # rm android/res2/drawable-hdpi/* |
|
|
259 | # rm android/res2/drawable-mdpi/* |
|
|
260 | # rm android/res2/drawable-ldpi/* |
|
|
261 | |
|
|
262 | mkdir -p android/res/raw |
312 | mkdir -p android/res/raw |
263 | for i in $(shell cd ../po && echo *.mo); do cp ../po/$$i android/res/raw/$$( echo $$i | tr "[A-Z]" "[a-z]") ; done |
313 | for i in $(shell cd ../po && echo *.mo); do cp ../po/$$i android/res/raw/$$( echo $$i | tr "[A-Z]" "[a-z]") ; done |
264 | # cp navit.xml android/res/raw |
|
|
265 | cp navit_android_mdpi.xml android/res/raw/navitmdpi.xml |
314 | cp navit_android_mdpi.xml android/res/raw/navitmdpi.xml |
266 | cp navit_android_ldpi.xml android/res/raw/navitldpi.xml |
315 | cp navit_android_ldpi.xml android/res/raw/navitldpi.xml |
267 | cp navit_android_hdpi.xml android/res/raw/navithdpi.xml |
316 | cp navit_android_hdpi.xml android/res/raw/navithdpi.xml |
268 | |
317 | |
269 | # cleanup svn dirs, they should never be in build dir |
318 | # cleanup svn dirs, they should never be in build dir |
… | |
… | |
276 | if [ "$(DO_RELEASE_BUILD)" != "1" ]; then cp android/libs/$(b_arch)/*.so android/obj/local/$(b_arch)/ ; fi |
325 | if [ "$(DO_RELEASE_BUILD)" != "1" ]; then cp android/libs/$(b_arch)/*.so android/obj/local/$(b_arch)/ ; fi |
277 | if [ "$(DO_RELEASE_BUILD)" != "1" ]; then echo "set solib-search-path $(builddir)/obj/local/$(b_arch)" > android/libs/$(b_arch)/gdb.setup ; fi |
326 | if [ "$(DO_RELEASE_BUILD)" != "1" ]; then echo "set solib-search-path $(builddir)/obj/local/$(b_arch)" > android/libs/$(b_arch)/gdb.setup ; fi |
278 | if [ "$(DO_RELEASE_BUILD)" != "1" ]; then echo "directory $(NDK)/platforms/android-""$(AND_API_LEVEL_C)""/arch-arm/usr/include $(NDK)/sources/cxx-stl/system" >> android/libs/$(b_arch)/gdb.setup ; fi |
327 | if [ "$(DO_RELEASE_BUILD)" != "1" ]; then echo "directory $(NDK)/platforms/android-""$(AND_API_LEVEL_C)""/arch-arm/usr/include $(NDK)/sources/cxx-stl/system" >> android/libs/$(b_arch)/gdb.setup ; fi |
279 | |
328 | |
280 | # strip libs if release build is selected |
329 | # strip libs if release build is selected |
281 | if [ "$(DO_RELEASE_BUILD)" == "1" ]; then echo "stripping libs ..."; arm-linux-androideabi-strip --strip-unneeded $(builddir)/android/libs/armeabi/* ; echo "done" ; fi |
330 | # if [ "$(DO_RELEASE_BUILD)" == "1" ]; then echo "stripping libs ..."; arm-linux-androideabi-strip --strip-unneeded $(builddir)/android/libs/armeabi/* ; echo "done" ; fi |
282 | if [ "$(DO_RELEASE_BUILD)" == "1" ]; then echo "stripping libs ..."; arm-linux-androideabi-strip --strip-unneeded $(builddir)/android/libs/armeabi-v7a/* ; echo "done" ; fi |
331 | # if [ "$(DO_RELEASE_BUILD)" == "1" ]; then echo "stripping libs ..."; arm-linux-androideabi-strip --strip-unneeded $(builddir)/android/libs/armeabi-v7a/* ; echo "done" ; fi |
283 | if [ "$(DO_RELEASE_BUILD)" == "1" ]; then echo "stripping libs ..."; /home/navit/_navit_develop/_need/NDK/_unpack/android-ndk-r5c/toolchains/x86-4.8/prebuilt/linux-x86/bin/i686-linux-android-strip --strip-unneeded $(builddir)/android/libs/x86/* ; echo "done" ; fi |
332 | # if [ "$(DO_RELEASE_BUILD)" == "1" ]; then echo "stripping libs ..."; /home/navit/_navit_develop/_need/NDK/_unpack/android-ndk-r5c/toolchains/x86-4.8/prebuilt/linux-x86/bin/i686-linux-android-strip --strip-unneeded $(builddir)/android/libs/x86/* ; echo "done" ; fi |
284 | |
333 | |
285 | |
334 | |
286 | apkg: apkg-all |
335 | apkg: apkg-all |
|
|
336 | echo "making::apkg" |
287 | touch $(srcdir)/android/dummy.txt |
337 | touch $(srcdir)/android/dummy.txt |
288 | touch $(builddir)/android/dummy.txt |
338 | touch $(builddir)/android/dummy.txt |
289 | cd android && ant debug |
339 | cd android && echo "debug" |
290 | # zipalign is already run automatically |
|
|
291 | |
340 | |
292 | apkg-release: apkg-all |
341 | apkg-release: apkg-all |
|
|
342 | echo "making::apkg-release" |
293 | touch $(srcdir)/android/dummy.txt |
343 | touch $(srcdir)/android/dummy.txt |
294 | touch $(builddir)/android/dummy.txt |
344 | touch $(builddir)/android/dummy.txt |
295 | cd android && ant release |
345 | cd android && echo "release" |
296 | # jarsigner $$(cat ~/.keys_args) android/bin/Navit-unsigned.apk mykey |
|
|
297 | # zipalign -f 4 android/bin/Navit-unsigned.apk android/bin/Navit-aligned.apk |
|
|
298 | /home/navit/_navit_develop/_need/SDK/_unpack/android-sdk-linux_SDK_r22.0.1/build-tools/21.1.1/zipalign -f 4 android/bin/Navit-release-unsigned.apk android/bin/Navit-aligned.apk |
|
|
299 | cp android/bin/Navit-aligned.apk android/bin/Navit-debug.apk |
|
|
300 | else |
346 | else |
301 | navit_SOURCES = start.c |
347 | navit_SOURCES = start.c |
302 | navit_LDADD = lib@LIBNAVIT@.la |
348 | navit_LDADD = lib@LIBNAVIT@.la |
303 | |
349 | |
304 | endif |
350 | endif |
… | |
… | |
381 | ls $(top_builddir)/navit/support/*/*.la | sed -e "s/\.la/_init(void);/" -e "s/.*lib/extern void module_/" >support-builtin.c |
427 | ls $(top_builddir)/navit/support/*/*.la | sed -e "s/\.la/_init(void);/" -e "s/.*lib/extern void module_/" >support-builtin.c |
382 | echo "extern void builtin_init(void);" >>support-builtin.c |
428 | echo "extern void builtin_init(void);" >>support-builtin.c |
383 | echo "void builtin_init(void) {" >>support-builtin.c |
429 | echo "void builtin_init(void) {" >>support-builtin.c |
384 | ls $(top_builddir)/navit/support/*/*.la | sed -e "s/\.la/_init();/" -e "s/.*\\/lib/ module_/" >>support-builtin.c |
430 | ls $(top_builddir)/navit/support/*/*.la | sed -e "s/\.la/_init();/" -e "s/.*\\/lib/ module_/" >>support-builtin.c |
385 | echo "}" >>support-builtin.c |
431 | echo "}" >>support-builtin.c |
|
|
432 | |
|
|
433 | |