1Pull the new libvpx checkout into external/libvpx/libvpx:
2$ cd external/libvpx/
3$ rm -rf libvpx
4$ git clone http://git.chromium.org/webm/libvpx.git
5$ cd libvpx
6$ git checkout <branch>
7$ rm -rf .git*
8
9Enter the subdirectory for the relevant platform. For example, armv7-neon for
10armv7 targets with neon extensions. We disable many features. Some for
11functional reasons and some for aesthetic ones.
12
13Functional:
14--force-target=$TARGET
15  The "Android" support in libvpx is targeted at the NDK and does not yet
16  include support for architectures such as MIPS. However, we can still generate
17  the necessary files for them.
18--disable-runtime-cpu-detect
19--disable-neon
20  The platform knows at build time what extensions are supported.
21--sdk-path=$SDK_PATH
22  For configuration we do some compiler tests. It is much easier to accept them
23  than to work around them. This uses the compilers included in the NDK.
24--enable-realtime-only
25  Reduce binary size when building the encoder.
26
27Aesthetic:
28--disable-examples
29--disable-docs
30  Skip unnecessary extra makefiles.
31
32Example:
33$ cd external/libvpx/armv7a
34$ ../libvpx/configure --target=armv7-android-gcc --disable-runtime-cpu-detect \
35  --disable-neon --sdk-path=$ANDROID_NDK_ROOT --disable-vp9-encoder \
36  --disable-examples --disable-docs
37
38Run 'make libvpx_srcs.txt'
39This will generate a file listing all of the required sources. It will also
40generate vpx_rtcd.h and vpx_version.h
41
42Remove the unused files leaving only:
43libvpx_srcs.txt
44vpx_config.c
45vpx_config.h
46vpx_scale_rtcd.h
47vp8_rtcd.h
48vp9_rtcd.h
49vpx_version.h
50