[Android] Added tools (unix bash scripts) to recompile Android extlibs

For some reason, one might want to recompile the extlibs but this is a tedious task. That's why these scripts are provided.
Please read readme.txt before using them!
This commit is contained in:
Jonathan De Wachter 2013-09-23 14:08:16 +02:00
parent 90d8b37442
commit 4180e6b31f
11 changed files with 300 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
DESTDIR=$PWD/tmp/arm-v7a
PATH=$PWD/toolchains/arm/bin:$PATH
CC=arm-linux-androideabi-gcc
CXX=arm-linux-androideabi-g++
CFLAGS="-I$DESTDIR/usr/include -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16"
CPPFLAGS="-I$DESTDIR/usr/include -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16"
LDFLAGS="-L$DESTDIR/usr/lib -march=armv7-a -Wl,--fix-cortex-a8 -lstlport_shared"
./compile_libs.sh arm-v7a $PATH $CC $CXX "$CFLAGS" "$CPPFLAGS" "$LDFLAGS"