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\include cmake-find-package-multimedia.qdocinc
14
15\cmakecommandsince 6.8
16\preliminarycmakecommand
17
18\section1 Synopsis
19
20\badcode
21qt_add_ios_ffmpeg_libraries(target)
22\endcode
23
24\versionlessCMakeCommandsNote qt6_add_ios_ffmpeg_libraries()
25
26\section1 Description
27
28 FFmpeg binaries from the online installer must be embedded into the application's
29 bundle. To embed FFmpeg binaries, you can add the \c qt_add_ios_ffmpeg_libraries command
30 to the app's CMakeLists.txt file.
31
32 This command will set several properties for the application target:
33
34 \list
35 \li XCODE_EMBED_FRAMEWORKS, adds the informatioin for XCode (which FFmpeg
36 binaries to embed).
37 \li XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY is set to ON, so that the
38 embedded FFmpeg binaries will be code-signed.
39 \li XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS - to add the location of embedded
40 FFmpeg libraries within the bundle.
41 \endlist
42
43 If code-signing is not required, you can use the \l{QT_NO_FFMPEG_XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY}
44 variable before the command \c{qt_add_ios_ffmpeg_libraries}:
45
46 \badcode
47 set(QT_NO_FFMPEG_XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY ON)
48 \endcode
49
50 \note \c qt_add_ios_ffmpeg_libraries requires CMake 3.28 or later.
51*/