Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- . abi_settings.sh $1 $2 $3
- CFLAGS='-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all'
- LDFLAGS='-Wl,-z,relro -Wl,-z,now -pie'
- FFMPEG_PKG_CONFIG="$(pwd)/ffmpeg-pkg-config"
- pushd ffmpeg
- case $1 in
- armeabi-v7a | armeabi-v7a-neon)
- CPU='cortex-a8'
- ;;
- x86)
- CPU='i686'
- ;;
- esac
- make clean
- ./configure \
- --target-os="$TARGET_OS" \
- --cross-prefix="$CROSS_PREFIX" \
- --arch="$NDK_ABI" \
- --cpu="$CPU" \
- --enable-runtime-cpudetect \
- --sysroot="$NDK_SYSROOT" \
- --enable-openssl \
- --disable-debug \
- --disable-ffserver \
- --enable-version3 \
- --enable-hardcoded-tables \
- --disable-ffplay \
- --disable-ffprobe \
- --enable-gpl \
- --enable-yasm \
- --disable-doc \
- --disable-shared \
- --enable-static \
- --enable-nonfree \
- --pkg-config="${2}/ffmpeg-pkg-config" \
- --prefix="${2}/build/${1}" \
- --extra-cflags="-I/usr/local/ssl/android-18/include $CFLAGS" \
- --extra-ldflags=-static \
- --extra-ldflags="-L/usr/local/ssl/android-18/lib $LDFLAGS" \
- --extra-cxxflags="$CXX_FLAGS" || exit 1
- make -j${NUMBER_OF_CORES} && make install || exit 1
- popd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement