Am Montag, 9. September 2019, 19:28:11 CEST schrieb Friedrich W. H. Kossebau:
> Hi,
> 
> developer using KDE Frameworks libraries in your projects, how would you
> like to be able to control warnings about deprecated API in those
> libraries? Or control the visibility of deprecated API to your code when
> building?
> 
> There is a prototype to enhance KDE Frameworks API, so developers building
> against KDE Frameworks libraries could use flags like
> 
> -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0xXYZ
> -DKF_DEPRECATED_WARNINGS_SINCE=0xXYZ
> -DKF_NO_DEPRECATED_WARNINGS
> -DKF_NO_DEPRECATED
> as well as individual specializations per library, e.g.
> -DKCOREADDONS_DISABLE_DEPRECATED_BEFORE_AND_AT=0xXYZ
> -DKCOREADDONS_DEPRECATED_WARNINGS_SINCE=0xXYZ
> -DKCOREADDONS_NO_DEPRECATED_WARNINGS
> -DKCOREADDONS_NO_DEPRECATED
> 
> following the similar macros introduced with Qt 5.13.
> 
> Additionally this feature also would allow to do custom builds of the KF
> libraries without code for the deprecated API:
> -DEXCLUDE_DEPRECATED_BEFORE_AND_AT=0xXYZ
> So apps bundling the libraries (AppImage, APK, DMG, etc) could save a bit on
> size, if they do not need the deprecated API.
> 
> This prototype is ECMGenerateExportHeader, up at
> https://phabricator.kde.org/ D23789
> 
> So, would those macros be useful to you in your KF5-using projects?
> Where would you like things differently?

No-one any opinion? :) Or just okay with what you have seen proposed, so you 
don't bother to raise your voice?

And yes, not having deprecated API at all would be best :) But sometimes we 
improve things and then have to get rid of legacy at a point, to not collect 
too much luggage to maintain while moving through the times...

Cheers
Friedrich


Reply via email to