From 10af5799e12c8ac9d79656bc31710424d6f5fffb Mon Sep 17 00:00:00 2001 From: luoye Date: Sun, 23 Apr 2023 23:46:00 +0800 Subject: [PATCH] so name --- ffmpeg-android-maker.sh | 2 ++ scripts/ffmpeg/build.sh | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ffmpeg-android-maker.sh b/ffmpeg-android-maker.sh index 8f83171..5c89f63 100755 --- a/ffmpeg-android-maker.sh +++ b/ffmpeg-android-maker.sh @@ -2,6 +2,8 @@ # Defining essential directories +export OUTPUT_SO_NAME=libbzffmpeg.so + # The root of the project export BASE_DIR="$( cd "$( dirname "$0" )" && pwd )" # Directory that contains source code for FFmpeg and its dependencies diff --git a/scripts/ffmpeg/build.sh b/scripts/ffmpeg/build.sh index 257b30a..e160ab5 100755 --- a/scripts/ffmpeg/build.sh +++ b/scripts/ffmpeg/build.sh @@ -158,7 +158,7 @@ export STATIC_LIB_DIR=${BUILD_DIR_FFMPEG}/${ANDROID_ABI}/lib echo STATIC_LIB_DIR=${STATIC_LIB_DIR} 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 \ ${STATIC_LIB_DIR}/libavcodec.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}/libswscale.a \ -Wl,--no-whole-archive - -${FAM_STRIP} --strip-unneeded ${STATIC_LIB_DIR}/libmergin.so +cp ${STATIC_LIB_DIR}/${OUTPUT_SO_NAME} ${STATIC_LIB_DIR}/ffmpeg_debug.so +${FAM_STRIP} --strip-unneeded ${STATIC_LIB_DIR}/${OUTPUT_SO_NAME}