GraphicalEffects: Fix static builds of private module


The only effect of providing the plugin manually and making it
non-optional is that it breaks with any linker that figures out that
we're "not using" the registration function. Just auto-generate the
plugin.

Pick-to: 6.5
Fixes: QTBUG-109747
Change-Id: I4a52376a4046e320cf5719352dd8f9ffd1e84ce6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commit52d5bc6996a6765a5bc327db32c71efa1e47d08c
parent5d630a7d85b533e1f9bb1c1328395c7a757c22c6
authorUlf Hermann <ulf.hermann@qt.io>
committerUlf Hermann <ulf.hermann@qt.io>
commit timeThu, 5 Jan 2023 07:59:23 +0100