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}