ffmpeg_4.4.2
Javernaut 4 years ago
parent 052a7f1b40
commit b172acd583
  1. 14
      scripts/parse-arguments.sh

@ -10,30 +10,30 @@ SOURCE_TYPE=TAR
SOURCE_VALUE=4.2.2 SOURCE_VALUE=4.2.2
API_LEVEL=16 API_LEVEL=16
for artument in "$@" for argument in "$@"
do do
case $artument in case $argument in
# Use this value as Android platform version during compilation. # Use this value as Android platform version during compilation.
--android-api-level=*) --android-api-level=*)
API_LEVEL="${artument#*=}" API_LEVEL="${argument#*=}"
shift shift
;; ;;
# Checkout the particular tag in the FFmpeg's git repository # Checkout the particular tag in the FFmpeg's git repository
--source-git-tag=*) --source-git-tag=*)
SOURCE_TYPE=GIT_TAG SOURCE_TYPE=GIT_TAG
SOURCE_VALUE="${artument#*=}" SOURCE_VALUE="${argument#*=}"
shift shift
;; ;;
# Checkout the particular branch in the FFmpeg's git repository # Checkout the particular branch in the FFmpeg's git repository
--source-git-branch=*) --source-git-branch=*)
SOURCE_TYPE=GIT_BRANCH SOURCE_TYPE=GIT_BRANCH
SOURCE_VALUE="${artument#*=}" SOURCE_VALUE="${argument#*=}"
shift shift
;; ;;
# Download the particular tar archive by its version # Download the particular tar archive by its version
--source-tar=*) --source-tar=*)
SOURCE_TYPE=TAR SOURCE_TYPE=TAR
SOURCE_VALUE="${artument#*=}" SOURCE_VALUE="${argument#*=}"
shift shift
;; ;;
# Arguments below enable certain external libraries to build into FFmpeg # Arguments below enable certain external libraries to build into FFmpeg
@ -50,7 +50,7 @@ do
shift shift
;; ;;
*) *)
echo "Unknown argument $artument" echo "Unknown argument $argument"
;; ;;
esac esac
done done

Loading…
Cancel
Save