write script for source code prepare stage (ilbc, vp8)

This commit is contained in:
Simon Morlat 2011-08-12 10:52:55 +02:00
parent 48f3e9c862
commit 92c6af58e2
2 changed files with 14 additions and 7 deletions

12
README
View file

@ -3,14 +3,12 @@
To build liblinphone for Android, you must:
1) download the Android ndk (r5b, r6) from google.
2) download libilbc code by doing:
cd submodules/libilbc-rfc3951 && ./configure && make
3) prepare libvpx
cd submodules/externals/build/libvpx
./asm_conversion.sh
cp *.asm *.h ../../libvpx/
2) run the ./prepare_sources.sh script in the top level directory. This will download iLBC source files and convert some assembly files in VP8 project.
$ ./prepare_sources.sh
4) finally from directory linphone-android, just execute command:
ndk-build
$ ${my google ndk directory}/ndk-build
Some options can be passed to ndk-build, like "ndk-build SOME_OPTION=SOME_VALUE"

9
prepare_sources.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
topdir=`pwd`
cd submodules/libilbc-rfc3951 && ./configure && make || ( echo "iLBC prepare stage failed" ; exit -1 )
cd $topdir/submodules/externals/build/libvpx && ./asm_conversion.sh && cp *.asm *.h ../../libvpx/ || ( echo "VP8 prepare stage failed." ; exit -1 )