Home | History | Annotate | Download | only in libvpx
      1 Pull 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 
      9 Enter the subdirectory for the relevant platform. For example, armv7-neon for
     10 armv7 targets with neon extensions. We disable many features. Some for
     11 functional reasons and some for aesthetic ones.
     12 
     13 Functional:
     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 
     27 Aesthetic:
     28 --disable-examples
     29 --disable-docs
     30   Skip unnecessary extra makefiles.
     31 
     32 Example:
     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 
     38 Run 'make libvpx_srcs.txt'
     39 This will generate a file listing all of the required sources. It will also
     40 generate vpx_rtcd.h and vpx_version.h
     41 
     42 Remove the unused files leaving only:
     43 libvpx_srcs.txt
     44 vpx_config.c
     45 vpx_config.h
     46 vpx_scale_rtcd.h
     47 vp8_rtcd.h
     48 vp9_rtcd.h
     49 vpx_version.h
     50