From 4b7b8dcfddb35de7af294eba3b6e1770e7c85781 Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Tue, 21 Dec 2021 00:27:13 +0000 Subject: [PATCH] auto-disabling not supported android features --- scripts/function-android.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/function-android.sh b/scripts/function-android.sh index f604ca7..4ed78b6 100755 --- a/scripts/function-android.sh +++ b/scripts/function-android.sh @@ -404,10 +404,13 @@ get_common_linked_libraries() { case $1 in ffmpeg) - if [[ -z ${FFMPEG_KIT_LTS_BUILD} ]]; then + + # SUPPORTED ON API LEVEL 24 AND LATER + if [[ ${API} -ge 24 ]]; then echo "-lc -lm -ldl -llog -lcamera2ndk -lmediandk ${COMMON_LIBRARY_PATHS}" else echo "-lc -lm -ldl -llog ${COMMON_LIBRARY_PATHS}" + echo -e "INFO: Building ffmpeg without native camera API which is not supported on Android API Level ${API}\n" 1>>"${BASEDIR}"/build.log 2>&1 fi ;; libvpx)