diff --git a/README b/README index e64612f06..d8fce30ee 100644 --- a/README +++ b/README @@ -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" diff --git a/prepare_sources.sh b/prepare_sources.sh new file mode 100755 index 000000000..1123f9002 --- /dev/null +++ b/prepare_sources.sh @@ -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 ) + +