Qt3D.Scene2D: add declarative QML registration
Remove the imports/scene2d folder and do all declarative QML
registration in the scene2d module directly in private headers or
indirectly in public headers via QML_FOREIGN in a private header.
Remove handwritten(?) qmldir and qmltypes files. Also remove the
.pro files, and move the hand written plugin for the initialization
code to 3DQuickScene2D. Also follow qtquickplugin.cpp on how to avoid
linked optimization for static builds.
Move Q_COREAPP_STARTUP_FUNCTION(initScene2dPlugin) and initScene2dPlugin
outside the plugin and inside the library to avoid the initialization
code inside the plugin.
Replace the dependencies.json with a DEPENDENCIES in the
qt_add_qml_module call.
Change 3DQuickScene2D to be a QML module instead of normal module.
This fixes some qmllint warnings about the handwritten *.qmltypes files
being outdated and/or invalid.
Pick-to: 6.8
Task-number: QTBUG-106079
Change-Id: I9dc8201b33624ac22e6bc18b686d066c734f4ded
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>