Advertisement
Guest User

Untitled

a guest
Jan 9th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. NDK=/home/gajdot/android-ndk-r9b
  4.  
  5. SYSROOT=$NDK/platforms/android-9/arch-arm/
  6.  
  7. TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64
  8.  
  9. function build_one
  10. {
  11. PKG_CONFIG_PATH=/home/gajdot/ffmpeg_build/lib/pkgconfig
  12.  
  13. ./configure \
  14. --arch=arm \
  15. --target-os=linux \
  16. --enable-runtime-cpudetect \
  17. --prefix=$PREFIX \
  18. --enable-pic \
  19. --disable-shared \
  20. --enable-static \
  21. --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
  22. --sysroot=$SYSROOT \
  23. --extra-cflags="-Os -fpic $ADDI_CFLAGS -I/home/gajdot/ffmpeg_build/include" \
  24. --extra-ldflags="$ADDI_LDFLAGS -L/home/gajdot/ffmpeg_build/lib" \
  25. --enable-version3 \
  26. --enable-gpl \
  27. --enable-nonfree \
  28. --enable-yasm \
  29. --enable-decoders \
  30. --enable-encoders \
  31. --enable-muxers \
  32. --enable-demuxers \
  33. --enable-parsers \
  34. --enable-protocols \
  35. --enable-filters \
  36. --enable-avresample \
  37. --disable-libvorbis \
  38. --enable-libfdk_aac \
  39. --disable-indevs \
  40. --enable-indev=lavfi \
  41. --disable-outdevs \
  42. --enable-hwaccels \
  43. --enable-ffmpeg \
  44. --disable-ffplay \
  45. --disable-ffprobe \
  46. --disable-ffserver \
  47. --disable-network \
  48. --enable-libx264 \
  49. --enable-zlib \
  50. --enable-libmp3lame \
  51. --enable-muxer=md5 \
  52. $ADDITIONAL_CONFIGURE_FLAG
  53.  
  54. make clean
  55.  
  56. make
  57.  
  58. make install
  59.  
  60. }
  61.  
  62. CPU=arm
  63.  
  64. PREFIX=$(pwd)/android/$CPU
  65.  
  66. ADDI_CFLAGS="-marm"
  67.  
  68. build_one
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement