Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. . abi_settings.sh $1 $2 $3
  4.  
  5. CFLAGS='-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all'
  6. LDFLAGS='-Wl,-z,relro -Wl,-z,now -pie'
  7.  
  8. FFMPEG_PKG_CONFIG="$(pwd)/ffmpeg-pkg-config"
  9.  
  10. pushd ffmpeg
  11.  
  12. case $1 in
  13. armeabi-v7a | armeabi-v7a-neon)
  14. CPU='cortex-a8'
  15. ;;
  16. x86)
  17. CPU='i686'
  18. ;;
  19. esac
  20.  
  21. make clean
  22.  
  23. ./configure \
  24. --target-os="$TARGET_OS" \
  25. --cross-prefix="$CROSS_PREFIX" \
  26. --arch="$NDK_ABI" \
  27. --cpu="$CPU" \
  28. --enable-runtime-cpudetect \
  29. --sysroot="$NDK_SYSROOT" \
  30. --enable-openssl \
  31. --disable-debug \
  32. --disable-ffserver \
  33. --enable-version3 \
  34. --enable-hardcoded-tables \
  35. --disable-ffplay \
  36. --disable-ffprobe \
  37. --enable-gpl \
  38. --enable-yasm \
  39. --disable-doc \
  40. --disable-shared \
  41. --enable-static \
  42. --enable-nonfree \
  43. --pkg-config="${2}/ffmpeg-pkg-config" \
  44. --prefix="${2}/build/${1}" \
  45. --extra-cflags="-I/usr/local/ssl/android-18/include $CFLAGS" \
  46. --extra-ldflags=-static \
  47. --extra-ldflags="-L/usr/local/ssl/android-18/lib $LDFLAGS" \
  48. --extra-cxxflags="$CXX_FLAGS" || exit 1
  49.  
  50. make -j${NUMBER_OF_CORES} && make install || exit 1
  51.  
  52. popd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement