From kde-devel Mon Jul 24 05:08:24 2023 From: Thiago Macieira Date: Mon, 24 Jul 2023 05:08:24 +0000 To: kde-devel Subject: Re: RFC: Library unit testing and symbol visibility Message-Id: <2176396.C4sosBPzcN () tjmaciei-mobl5> X-MARC-Message: https://marc.info/?l=kde-devel&m=169017523725546 On Sunday, 23 July 2023 07:16:05 PDT Stefan Br=FCns wrote: > 3. ? >=20 > Kind regards, Qt's solution is that it builds in a "build for testing" mode (it defines t= he=20 QT_BUILD_INTERNAL macro, for historical reasons meaning "internal to=20 Trolltech") in which extra symbols are exported using the Q_AUTOTEST_EXPORT= =20 macro. This allows developers and CI systems to enable the extra API withou= t=20 needing to affect users. The CI also tests non-"internal build" builds, so the tests must check whet= her=20 they are in that mode before using a autotest-exported symbol. =2D-=20 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel DCAI Cloud Engineering