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>