Skip to content

Commit

Permalink
Merge tag 'v2.12' into media-file
Browse files Browse the repository at this point in the history
  • Loading branch information
Javernaut committed Nov 25, 2024
2 parents 52b8b41 + 69bc3f2 commit ed73431
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
8 changes: 6 additions & 2 deletions scripts/ffmpeg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ done
DEP_CFLAGS="-I${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/include"
DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"

# Everything that goes below ${EXTRA_BUILD_CONFIGURATION_FLAGS} is my project-specific.
# Android 15 with 16 kb page size support
# https://developer.android.com/guide/practices/page-sizes#compile-r27
EXTRA_LDFLAGS="-Wl,-z,max-page-size=16384 $DEP_LD_FLAGS"

# Everything that goes below ${EXTRA_BUILD_CONFIGURATION_FLAGS} is specific to MediaFile.
# You are free to enable/disable whatever you actually need.

./configure \
Expand All @@ -46,7 +50,7 @@ DEP_LD_FLAGS="-L${BUILD_DIR_EXTERNAL}/${ANDROID_ABI}/lib $FFMPEG_EXTRA_LD_FLAGS"
--ranlib=${FAM_RANLIB} \
--strip=${FAM_STRIP} \
--extra-cflags="-O3 -fPIC $DEP_CFLAGS" \
--extra-ldflags="$DEP_LD_FLAGS" \
--extra-ldflags="$EXTRA_LDFLAGS" \
--enable-shared \
--disable-static \
--disable-vulkan \
Expand Down
10 changes: 10 additions & 0 deletions scripts/libmp3lame/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/usr/bin/env bash

CFLAGS=
if [ "$ANDROID_ABI" = "x86" ] ; then
# mp3lame's configure script sets -mtune=native for i686,
# which leads to compilation errors on Mac with arm processors,
# because 'native' is recognized as apple-m1 processor.
# Passing an empty mtune resets the value to default
CFLAGS="-mtune="
fi

./configure \
--prefix=${INSTALL_DIR} \
--host=${TARGET} \
Expand All @@ -11,6 +20,7 @@
--disable-analyzer-hooks \
--disable-gtktest \
--disable-frontend \
CFLAGS=$CFLAGS \
CC=${FAM_CC} \
AR=${FAM_AR} \
RANLIB=${FAM_RANLIB} || exit 1
Expand Down
2 changes: 1 addition & 1 deletion scripts/libx265/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source ${SCRIPTS_DIR}/common-functions.sh

LIBX265_VERSION=4.0
LIBX265_VERSION=4.1

downloadTarArchive \
"libx265" \
Expand Down

0 comments on commit ed73431

Please sign in to comment.