protobufqml: use unique QML URIs for generated QML test modules
The enums, syntax and messagelists QML tests each build a standalone QML
module from a dedicated *_gen target via qt_add_protobuf(... QML). All
three derive the module URI from the proto package they share
("qtprotobufnamespace.tests"), resulting in all three registering with
the same URI.
This is harmless while each test runs from its own build directory or
separate package. OpenHarmony instead deploys all autotests in a single
bundle, and we plan to deploy their generated QML modules into one
shared import directory. The three modules would then map to the same
path and overwrite one another's qmldir, so at most one test's types
would survive and the others would fail to load their QML.
Give each generated module its own URI via the QML_URI parameter:
qtprotobufnamespace.tests.enumtypes, .syntax and .repeated for the
enums, syntax and messagelists tests respectively. Update the matching
QML imports. The proto package, and hence the generated C++ types, is
unchanged. Only the QML module URI differs.
Task-number: QTBUG-147585
Pick-to: 6.12
Change-Id: I6f34076ee6adf9fb753e0f669f9ece4954cb4b6f
Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>