Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qt_add_ios_ffmpeg_libraries.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2024 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\page qt-add-ios-ffmpeg-libraries.html
6
\ingroup cmake-commands-qtmultimedia
7
8
\title qt_add_ios_ffmpeg_libraries
9
\keyword qt6_add_ios_ffmpeg_libraries
10
11
\summary {Auxiliary function which embeds FFmpeg binaries in iOS app bundle.}
12
13
\cmakecommandsince 6.8
14
\preliminarycmakecommand
15
16
\section1 Synopsis
17
18
\badcode
19
qt_add_ios_ffmpeg_libraries(target)
20
\endcode
21
22
\versionlessCMakeCommandsNote qt6_add_ios_ffmpeg_libraries()
23
24
\section1 Description
25
26
FFmpeg binaries from the online installer must be embedded into the application's
27
bundle. To embed FFmpeg binaries, you can add the \c qt_add_ios_ffmpeg_libraries command
28
to the app's CMakeLists.txt file.
29
30
This command will set several properties for the application target:
31
32
\list
33
\li XCODE_EMBED_FRAMEWORKS, adds the informatioin for XCode (which FFmpeg
34
binaries to embed).
35
\li XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY is set to ON, so that the
36
embedded FFmpeg binaries will be code-signed.
37
\li XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS - to add the location of embedded
38
FFmpeg libraries within the bundle.
39
\endlist
40
41
If code-signing is not required, you can use the \l{QT_NO_FFMPEG_XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY}
42
variable before the command \c{qt_add_ios_ffmpeg_libraries}:
43
44
\badcode
45
set(QT_NO_FFMPEG_XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY ON)
46
\endcode
47
48
\note \c qt_add_ios_ffmpeg_libraries requires CMake 3.28 or later.
49
*/
qtmultimedia
src
multimedia
doc
src
cmake
qt_add_ios_ffmpeg_libraries.qdoc
Generated on
for Qt by
1.14.0