Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. NDK=/Users/mantas/Library/Android/sdk/ndk-bundle
  2. SYSROOT=$NDK/platforms/android-28/arch-arm/
  3. TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64
  4. function build_one
  5. {
  6. ./configure \
  7. --prefix=$PREFIX \
  8. --enable-shared \
  9. --disable-static \
  10. --disable-doc \
  11. --disable-ffplay \
  12. --disable-ffprobe \
  13. --disable-doc \
  14. --disable-symver \
  15. --enable-protocol=concat \
  16. --enable-protocol=file \
  17. --enable-muxer=mp4 \
  18. --enable-demuxer=mpegts \
  19. --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
  20. --target-os=linux \
  21. --arch=arm \
  22. --enable-cross-compile \
  23. --sysroot=$SYSROOT \
  24. --extra-cflags="-Os -fpic $ADDI_CFLAGS" \
  25. --extra-ldflags="$ADDI_LDFLAGS" \
  26. $ADDITIONAL_CONFIGURE_FLAG
  27. make clean all
  28. make -j3
  29. make install
  30. }
  31. CPU=arm
  32. PREFIX="$(pwd)/android/$CPU"
  33. ADDI_CFLAGS="-marm"
  34. build_one
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement