f0a7d74e1d
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> |
||
---|---|---|
.. | ||
aix-g++ | ||
aix-g++-64 | ||
android-clang | ||
common | ||
cygwin-g++ | ||
darwin-g++ | ||
devices | ||
dummy | ||
features | ||
freebsd-clang | ||
freebsd-g++ | ||
haiku-g++ | ||
hpuxi-g++-64 | ||
hurd-g++ | ||
integrity-armv7 | ||
integrity-armv7-imx6 | ||
integrity-armv8-rcar | ||
integrity-x86 | ||
linux-aarch64-gnu-g++ | ||
linux-arm-gnueabi-g++ | ||
linux-clang | ||
linux-clang-32 | ||
linux-clang-libc++ | ||
linux-clang-libc++-32 | ||
linux-g++ | ||
linux-g++-32 | ||
linux-g++-64 | ||
linux-icc | ||
linux-icc-32 | ||
linux-icc-64 | ||
linux-icc-k1om | ||
linux-llvm | ||
linux-lsb-g++ | ||
lynxos-g++ | ||
macx-clang | ||
macx-g++ | ||
macx-icc | ||
macx-ios-clang | ||
macx-xcode | ||
modules | ||
netbsd-g++ | ||
openbsd-g++ | ||
qnx-aarch64le-qcc | ||
qnx-armle-v7-qcc | ||
qnx-x86-64-qcc | ||
qnx-x86-qcc | ||
solaris-cc | ||
solaris-cc-64 | ||
solaris-cc-64-stlport | ||
solaris-cc-stlport | ||
solaris-g++ | ||
solaris-g++-64 | ||
unsupported | ||
wasm-emscripten | ||
win32-arm64-msvc | ||
win32-clang-g++ | ||
win32-clang-msvc | ||
win32-g++ | ||
win32-icc | ||
win32-icc-k1om | ||
win32-msvc |