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>
commita9d29543cf9ab6c676cfc9a3ced562e4398d3ab2
parentaa937e6b98fcfcf84c064782fcbda7249166bb17
authorSukyoung Oh <sukyoung.oh@qt.io>
committerSukyoung Oh <sukyoung.oh@qt.io>
commit timeFri, 10 Jul 2026 00:12:49 +0000