ohos: Move location permissions from plugin to Positioning library
The location permissions for the OHOS positioning plugin were declared
on the plugin CMake target (QGeoPositionInfoSourceFactoryOhosPlugin).
However, the plugin is loaded dynamically at runtime and is not part
of the consuming app's CMake dependency graph. As a result, the
permissions never propagated to the app's harmony-deployment-settings
.json, and harmonydeployqt had no way to include them in the HAP
manifest.
Move the qt_internal_add_harmonyos_permission() calls to the
Positioning library target instead, following the same pattern used
for Android in the same file. Since apps link against Qt::Positioning
directly, the permissions now propagate correctly to the deployment
settings.
Pick-to: 6.12
Change-Id: Ia8bf1d43c4807e837ca25f8adffd7cd03843c2ee
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>