/[zanavi_public1]/navit/ci/fdroid.sh
ZANavi

Contents of /navit/ci/fdroid.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (show annotations) (download) (as text)
Mon Jul 25 19:29:08 2016 UTC (4 years, 7 months ago) by zoff99
File MIME type: application/x-sh
File size: 3347 byte(s)
v2.0.52
1 #! /bin/bash
2
3 if [ `uname -m` == 'x86_64' ] ; then SUFFIX2='_64' ; else SUFFIX2='' ; fi && \
4 export PATH=$PATH:$_SDK_/tools:$_SDK_/platform-tools:$_NDK_/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86$SUFFIX2/bin && \
5 rm build.xml && \
6 mkdir nav2 && \
7 for i in `ls -1`; do if [ "$i" != "nav2" ]; then mv $i nav2/ ; fi ; done && \
8 mv nav2 navit && \
9 mkdir android-build && \
10 cd android-build/ && \
11 DEBUG_="-fpic -ffunction-sections -fstack-protector -fomit-frame-pointer -fno-strict-aliasing -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -march=armv5te -msoft-float -mthumb -finline-limit=64 -DHAVE_API_ANDROID -DANDROID -Wa,--noexecstack -O3 -I$_NDK_/platforms/android-14/arch-arm/usr/include -nostdlib -Wl,-rpath-link=$_NDK_/platforms/android-14/arch-arm/usr/lib -L$_NDK_/platforms/android-14/arch-arm/usr/lib" && \
12 ../navit/configure RANLIB=arm-linux-androideabi-ranlib AR=arm-linux-androideabi-ar CC="arm-linux-androideabi-gcc -O2 $DEBUG_ -L. -L$_NDK_/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86$SUFFIX2/lib/gcc/arm-linux-androideabi/4.8/ -lgcc -ljnigraphics " CXX="arm-linux-androideabi-g++ -O2 -fno-rtti -fno-exceptions -L$_NDK_/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86$SUFFIX2/lib/gcc/arm-linux-androideabi/4.8/ -lgcc -ljnigraphics " --host=arm-eabi-linux_android --enable-avoid-float --enable-avoid-unaligned --disable-glib --disable-gmodule --disable-vehicle-gpsd --enable-vehicle-demo --disable-binding-dbus --disable-speech-cmdline --disable-gui-gtk --disable-font-freetype --disable-fontconfig --disable-graphics-gtk-drawing-area --disable-maptool --enable-cache-size=20971520 --enable-svg2png-scaling=8,16,32,48,64,96,192,384 --enable-svg2png-scaling-nav=48,64,59,96,192,384 --enable-svg2png-scaling-flag=32 --with-xslts=android,plugin_menu --with-saxon=saxonb-xslt --enable-transformation-roll --with-android-project="android-21" && \
13 export AND_API_LEVEL_C=14 && \
14 export NDK=$_NDK_ && \
15 export DO_RELEASE_BUILD=1 && \
16 export DO_PNG_BUILD=1 && \
17 export NDK_CCACHE="" && \
18 make && \
19 pwd && \
20 cd navit && \
21 make apkg-release || pwd && \
22 cd android-support-v7-appcompat && \
23 cat local.properties |sed -e "s#/home/navit/_navit_develop/_need/SDK/_unpack/android-sdk-linux_x86#$_SDK_#" > l.txt && \
24 mv l.txt local.properties && \
25 cat local.properties && \
26 echo android update project -t android-21 -p . && \
27 cd .. && \
28 pwd && \
29 cp -av ../../navit/trans_img/* ./android/res/ && \
30 cp -av ../../navit/trans_img/* ../../android-build/navit/android/res/ && \
31 cp -av ../../navit/trans_img/* ../../navit/navit/android/res/ && \
32 cd ./android && \
33 pwd && \
34 cat AndroidManifest.xml | sed -e 's#android:debuggable="true"#android:debuggable="false"#' > l.txt && \
35 mv l.txt AndroidManifest.xml && \
36 cat src/com/zoffcc/applications/zanavi/Navit.java | sed -e 's#static final boolean FDBL = false;#static final boolean FDBL = true;#' > l.txt && \
37 mv l.txt src/com/zoffcc/applications/zanavi/Navit.java && \
38 ant release && \
39 cd ../../../ && \
40 pwd && \
41 cat android-build/navit/android/project.properties | sed -e 's#^android.library.reference.*$#android.library.reference.1=./android-support-v7-appcompat#' > l.txt && \
42 mv l.txt android-build/navit/android/project.properties && \
43 ln -s android-build/navit/android-support-v7-appcompat . && \
44 ln -s android-build/navit/android/* .
45

   
Visit the ZANavi Wiki