1*fb1b10abSAndroid Build Coastguard WorkerAndroid.mk will build vpx unittests on android. 2*fb1b10abSAndroid Build Coastguard Worker1) Configure libvpx from the parent directory: 3*fb1b10abSAndroid Build Coastguard Worker./libvpx/configure --target=armv7-android-gcc --enable-external-build \ 4*fb1b10abSAndroid Build Coastguard Worker --enable-postproc --disable-install-srcs --enable-multi-res-encoding \ 5*fb1b10abSAndroid Build Coastguard Worker --enable-temporal-denoising --disable-unit-tests --disable-install-docs \ 6*fb1b10abSAndroid Build Coastguard Worker --disable-examples --disable-runtime-cpu-detect 7*fb1b10abSAndroid Build Coastguard Worker 8*fb1b10abSAndroid Build Coastguard Worker2) From the parent directory, invoke ndk-build: 9*fb1b10abSAndroid Build Coastguard WorkerNDK_PROJECT_PATH=. ndk-build APP_BUILD_SCRIPT=./libvpx/test/android/Android.mk \ 10*fb1b10abSAndroid Build Coastguard Worker APP_ABI=armeabi-v7a APP_PLATFORM=android-18 APP_OPTIM=release \ 11*fb1b10abSAndroid Build Coastguard Worker APP_STL=c++_static 12*fb1b10abSAndroid Build Coastguard Worker 13*fb1b10abSAndroid Build Coastguard WorkerNote: Both adb and ndk-build are available at: 14*fb1b10abSAndroid Build Coastguard Worker https://developer.android.com/studio#downloads 15*fb1b10abSAndroid Build Coastguard Worker https://developer.android.com/ndk/downloads 16*fb1b10abSAndroid Build Coastguard Worker 17*fb1b10abSAndroid Build Coastguard Worker3) Run get_files.py to download the test files: 18*fb1b10abSAndroid Build Coastguard Workerpython get_files.py -i /path/to/test-data.sha1 -o /path/to/put/files \ 19*fb1b10abSAndroid Build Coastguard Worker -u https://storage.googleapis.com/downloads.webmproject.org/test_data/libvpx 20*fb1b10abSAndroid Build Coastguard Worker 21*fb1b10abSAndroid Build Coastguard Worker4) Transfer files to device using adb. Ensure you have proper permissions for 22*fb1b10abSAndroid Build Coastguard Workerthe target 23*fb1b10abSAndroid Build Coastguard Worker 24*fb1b10abSAndroid Build Coastguard Workeradb push /path/to/test_files /data/local/tmp 25*fb1b10abSAndroid Build Coastguard Workeradb push /path/to/built_libs /data/local/tmp 26*fb1b10abSAndroid Build Coastguard Worker 27*fb1b10abSAndroid Build Coastguard WorkerNOTE: Built_libs defaults to parent_dir/libs/armeabi-v7a 28*fb1b10abSAndroid Build Coastguard Worker 29*fb1b10abSAndroid Build Coastguard Worker5) Run tests: 30*fb1b10abSAndroid Build Coastguard Workeradb shell 31*fb1b10abSAndroid Build Coastguard Worker(on device) 32*fb1b10abSAndroid Build Coastguard Workercd /data/local/tmp 33*fb1b10abSAndroid Build Coastguard WorkerLD_LIBRARY_PATH=. ./vpx_test 34