• Home
Name Date Size #Lines LOC

..--

Android.mkD03-May-20241.9 KiB5834

READMED03-May-20241.2 KiB3325

get_files.pyD03-May-20243.1 KiB11980

scrape_gtest_log.pyD03-May-20241.5 KiB5838

README

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