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>
| commit | 06415e076ad4e428e87566bc7709cb01ba2650a9 |
| parent | 38bd310a432010f1db8ce45203c6137d9f50193e |
| author | Sami Shalayel <sami.shalayel@qt.io> |
| committer | Sami Shalayel <sami.shalayel@qt.io> |
| commit time | Tue, 24 Sep 2024 14:50:06 +0200 |
- M src/CMakeLists.txt
- D src/quick3d/imports/render/CMakeLists.txt
- D src/quick3d/imports/render/dependencies.json
- D src/quick3d/imports/render/plugins.qmltypes
- D src/quick3d/imports/render/qmldir
- D src/quick3d/imports/render/qt3dquick3drenderplugin.cpp
- M src/quick3d/quick3drender/CMakeLists.txt
- M src/quick3d/quick3drender/items/quick3dparameter_p.h
- M src/quick3d/quick3drender/items/quick3draycaster_p.h
- M src/quick3d/quick3drender/items/quick3dscreenraycaster_p.h
- M src/quick3d/quick3drender/items/quick3dshaderdata_p.h
- M src/quick3d/quick3drender/items/quick3dshaderdataarray_p.h
- A src/quick3d/quick3drender/qt3dquick3drenderforeign_p.h
- A src/quick3d/quick3drender/qt3dquick3drenderplugin.cpp
- R100 src/quick3d/imports/render/qt3dquick3drenderplugin.h
- M src/quick3d/quick3drender/qt3dquickrender_global.cpp
- M src/quick3d/quick3drender/qt3dquickrender_global_p.h