Qt3D.Render: 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 around for the special conversions it adds. Change the
CMakeLists.txt to have the plugin code separate from the QML Module code
to avoid weird interferences between qmltyperegistrar and the plugin.

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

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

Also do the qtquickplugin.cpp dance to avoid evil linker optimizations
in static builds, and move the plugin initialization code to a library
initialization function.

Also register some missing types to get rid of the 'missing-type'
warning.

Pick-to: 6.8
Task-number: QTBUG-106079
Change-Id: I5afaa39e88eea566c4cbcb34ff152932e9a999a4
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
commit06415e076ad4e428e87566bc7709cb01ba2650a9
parent38bd310a432010f1db8ce45203c6137d9f50193e
authorSami Shalayel <sami.shalayel@qt.io>
committerSami Shalayel <sami.shalayel@qt.io>
commit timeTue, 24 Sep 2024 14:50:06 +0200