qt6-bb10/src
Timur Pocheptsov f0a7d74e1d Add permission API backend for macOS and iOS
When submitting applications to the iOS and macOS AppStore the
application goes through static analysis, which will trigger on
uses of various privacy protected APIs, unless the application
has a corresponding usage description for the permission in the
Info.plist file. This applies even if the application never
requests the given permission, but just links to a Qt library
that has the offending symbols or library dependencies.

To ensure that the application does not have to add usage
descriptions to their Info.plist for permissions they never
plan to use we split up the various permission implementations
into small static libraries that register with the Qt plugin
mechanism as permission backends. We can then inspect the
application's Info.plist at configure time and only add the
relevant static permission libraries.

Furthermore, since some permissions can be checked without any
usage description, we allow the implementation to be split up
into two separate translation units. By putting the request in
its own translation unit we can selectively include it during
linking by telling the linker to look for a special symbol.
This is useful for libraries such as Qt Multimedia who would
like to check the current permission status, but without
needing to request any permission of its own.

Done-with: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Change-Id: Ic2a43e1a0c45a91df6101020639f473ffd9454cc
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-11-03 15:02:36 +01:00
..
3rdparty vma: Revise disabled warnings 2022-10-26 14:53:13 +02:00
android Android: Handle light/dark mode changes 2022-10-26 17:13:44 +02:00
concurrent Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00
corelib Add permission API backend for macOS and iOS 2022-11-03 15:02:36 +01:00
dbus Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
entrypoint Win32: Add a W version entry point 2022-10-28 12:00:01 +08:00
gui Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
network Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
opengl eglfs: Improve z-order handling 2022-10-29 19:44:10 +01:00
openglwidgets Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
platformsupport Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
plugins Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
printsupport Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
sql Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
testlib Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
tools Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
widgets Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
xml Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
CMakeLists.txt Replace the syncqt.pl script with syncqt tool 2022-09-27 13:12:11 +02:00