mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-02 03:37:10 +08:00
FFmpeg, iOS: Automatically grab version string from source code
This patch allows us to automatically grab the FFmpeg version string from the source code directly, rather than having to explicitly specify a version string inside ffmpeg-installation-utils. Pick-to: 6.11 Change-Id: I657302ab8566592390a51c6f5c3ee989d66efaaa Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
This commit is contained in:
@@ -26,8 +26,12 @@ readonly MINIMUM_IOS_VERSION="16.0"
|
||||
|
||||
source "${BASH_SOURCE%/*}/../unix/ffmpeg-installation-utils.sh"
|
||||
|
||||
ffmpeg_version=$(ffmpeg_version_default)
|
||||
ffmpeg_source_dir=$(download_ffmpeg)
|
||||
ffmpeg_version="n$(<"${ffmpeg_source_dir}/RELEASE")"
|
||||
if [ ! -n "$ffmpeg_version" ]; then
|
||||
echo "Error. Unable to determine FFmpeg version."
|
||||
exit 1
|
||||
fi
|
||||
ffmpeg_config_options=$(get_ffmpeg_config_options "shared")
|
||||
default_prefix="/usr/local/ios/ffmpeg"
|
||||
prefix="${1:-$default_prefix}"
|
||||
|
||||
@@ -2,12 +2,8 @@
|
||||
# Copyright (C) 2024 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
ffmpeg_version_default() {
|
||||
echo "n7.1.3"
|
||||
}
|
||||
|
||||
download_ffmpeg() {
|
||||
local version="${1:-$(ffmpeg_version_default)}"
|
||||
local version="${1:-"n7.1.3"}"
|
||||
local sha1="${2:-27051817deec88bed3b9652d49f9127d22268d83}"
|
||||
|
||||
local ffmpeg_name="FFmpeg-$version"
|
||||
|
||||
Reference in New Issue
Block a user