QDoc: Define logging categories in QDocLib
QDoc's logging categories are declared in a QDocLib header but
defined in driver-side code. The qdoc binary masks the boundary
inversion because it links the driver and QDocLib into a single
target, but any QDocLib unit that needs to log hits an undefined
symbol the moment it is built outside the driver. The QDocLib
unit tests already carry a duplicated stub of the missing
definitions just to satisfy the linker, baking the inversion
into test infrastructure rather than fixing it.
The categories now live next to the header that declares them.
The driver continues to receive the symbols through its
dependency on QDocLib, the unit tests link cleanly without the
stub, and a QDocLib header now declares categories that QDocLib
itself defines.
Fixes: QTBUG-146600
Change-Id: I4a4a4ab8921ec0ad2f615767aa1a8543a3b8ab9d
Reviewed-by: Topi Reinio <topi.reinio@qt.io>