README 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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
  7. 2) From the parent directory, invoke ndk-build:
  8. NDK_PROJECT_PATH=. ndk-build APP_BUILD_SCRIPT=./libvpx/test/android/Android.mk \
  9. APP_ABI=armeabi-v7a APP_PLATFORM=android-18 APP_OPTIM=release \
  10. APP_STL=c++_static
  11. Note: Both adb and ndk-build are available prebuilt at:
  12. https://chromium.googlesource.com/android_tools
  13. 3) Run get_files.py to download the test files:
  14. python get_files.py -i /path/to/test-data.sha1 -o /path/to/put/files \
  15. -u http://downloads.webmproject.org/test_data/libvpx
  16. 4) Transfer files to device using adb. Ensure you have proper permissions for
  17. the target
  18. adb push /path/to/test_files /data/local/tmp
  19. adb push /path/to/built_libs /data/local/tmp
  20. NOTE: Built_libs defaults to parent_dir/libs/armeabi-v7a
  21. 5) Run tests:
  22. adb shell
  23. (on device)
  24. cd /data/local/tmp
  25. LD_LIBRARY_PATH=. ./vpx_test