Qt3D.Extras: add declarative type registration


Add declarative qml registration via QML_FOREIGN, remove handwritten(?)
qmldir and qmltypes files. Also remove the .pro files, but keep the manually
written plugin for the special registration it does. Change the
CMakeLists.txt to have the plugin code separate from the QML Module code
to avoid weird interferences between qmltyperegistrar and the plugin.

Also fix the REVISION macros to include the major version.

Replace the dependencies.json with a DEPENDENCIES in the
qt_add_qml_module call.

Also remove the .qrc files that only refers non-existing qml files, it
seems to be a leftover from something. Also remove the plugin code that
was loading this .qrc file.

Also do the qtquickplugin.cpp dance to avoid evil linker optimizations in
static builds.

This fixes some qmllint warnings about the handwritten *.qmltypes files
being outdated and/or invalid.

Pick-to: 6.8 6.9
Task-number: QTBUG-106079
Change-Id: Iefeffc58137f5f8ef6958b33d4199c66f9dbe906
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
commit5e4888945d534b280aa7f618609a514ebd77783f
parent68c0ac121576603b293af1dca7f99f325021c8c1
authorSami Shalayel <sami.shalayel@qt.io>
committerSami Shalayel <sami.shalayel@qt.io>
commit timeWed, 9 Apr 2025 09:41:27 +0200