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
29 application's bundle. To embed FFmpeg binaries, you can add the
30 \c qt_add_ios_ffmpeg_libraries command to an executable target within the
31 project's CMakeLists.txt file.
32
33 The function must be called on an executable target. It cannot be used on
34 library targets or interface targets. If your project is a library that
35 links to Qt Multimedia, the executable that it is linked into must
36 call this function.
37
38 This command will set several properties for the application target:
39
40 \list
41 \li XCODE_EMBED_FRAMEWORKS, adds the informatioin for XCode (which FFmpeg
42 binaries to embed).
43 \li XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY is set to ON, so that the
44 embedded FFmpeg binaries will be code-signed.
45 \li XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS - to add the location of embedded
46 FFmpeg libraries within the bundle.
47 \endlist
48
49 If code-signing is not required, you can use the \l{QT_NO_FFMPEG_XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY}
50 variable before the command \c{qt_add_ios_ffmpeg_libraries}:
51
52 \badcode
53 set(QT_NO_FFMPEG_XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY ON)
54 \endcode
55
56 \note \c qt_add_ios_ffmpeg_libraries requires CMake 3.28 or later.
57*/