ffmpeg_4.4.2
luoye 2 years ago
parent 7f57acf296
commit 10af5799e1
  1. 2
      ffmpeg-android-maker.sh
  2. 6
      scripts/ffmpeg/build.sh

@ -2,6 +2,8 @@
# Defining essential directories # Defining essential directories
export OUTPUT_SO_NAME=libbzffmpeg.so
# The root of the project # The root of the project
export BASE_DIR="$( cd "$( dirname "$0" )" && pwd )" export BASE_DIR="$( cd "$( dirname "$0" )" && pwd )"
# Directory that contains source code for FFmpeg and its dependencies # Directory that contains source code for FFmpeg and its dependencies

@ -158,7 +158,7 @@ export STATIC_LIB_DIR=${BUILD_DIR_FFMPEG}/${ANDROID_ABI}/lib
echo STATIC_LIB_DIR=${STATIC_LIB_DIR} echo STATIC_LIB_DIR=${STATIC_LIB_DIR}
echo FAM_CC=${FAM_CC} echo FAM_CC=${FAM_CC}
${FAM_CC} -shared -o ${STATIC_LIB_DIR}/libmergin.so \ ${FAM_CC} -shared -o ${STATIC_LIB_DIR}/${OUTPUT_SO_NAME} \
-Wl,--whole-archive \ -Wl,--whole-archive \
${STATIC_LIB_DIR}/libavcodec.a \ ${STATIC_LIB_DIR}/libavcodec.a \
${STATIC_LIB_DIR}/libavfilter.a \ ${STATIC_LIB_DIR}/libavfilter.a \
@ -166,6 +166,6 @@ ${FAM_CC} -shared -o ${STATIC_LIB_DIR}/libmergin.so \
${STATIC_LIB_DIR}/libavformat.a \ ${STATIC_LIB_DIR}/libavformat.a \
${STATIC_LIB_DIR}/libswscale.a \ ${STATIC_LIB_DIR}/libswscale.a \
-Wl,--no-whole-archive -Wl,--no-whole-archive
cp ${STATIC_LIB_DIR}/${OUTPUT_SO_NAME} ${STATIC_LIB_DIR}/ffmpeg_debug.so
${FAM_STRIP} --strip-unneeded ${STATIC_LIB_DIR}/libmergin.so ${FAM_STRIP} --strip-unneeded ${STATIC_LIB_DIR}/${OUTPUT_SO_NAME}

Loading…
Cancel
Save