1 Android.mk will build vpx unittests on android.
2 1) Configure libvpx from the parent directory:
3 ./libvpx/configure --target=armv7-android-gcc --enable-external-build \
4 --enable-postproc --disable-install-srcs --enable-multi-res-encoding \
5 --enable-temporal-denoising --disable-unit-tests --disable-install-docs \
6 --disable-examples --disable-runtime-cpu-detect --sdk-path=$NDK
8 2) From the parent directory, invoke ndk-build:
9 NDK_PROJECT_PATH=. ndk-build APP_BUILD_SCRIPT=./libvpx/test/android/Android.mk \
10 APP_ABI=armeabi-v7a APP_PLATFORM=android-18 APP_OPTIM=release \
13 Note: Both adb and ndk-build are available prebuilt at:
14 https://chromium.googlesource.com/android_tools
16 3) Run get_files.py to download the test files:
17 python get_files.py -i /path/to/test-data.sha1 -o /path/to/put/files \
18 -u http://downloads.webmproject.org/test_data/libvpx
20 4) Transfer files to device using adb. Ensure you have proper permissions for
23 adb push /path/to/test_files /data/local/tmp
24 adb push /path/to/built_libs /data/local/tmp
26 NOTE: Built_libs defaults to parent_dir/libs/armeabi-v7a
32 LD_LIBRARY_PATH=. ./vpx_test