Use ECMGenerateExportHeader to manage deprecated API better
Summary:
Allows
- projects linking to Attica to hide deprecated API up to a given version or silence deprecation warnings after a given version, using
- -DATTICA_DISABLE_DEPRECATED_BEFORE_AND_AT
- -DATTICA_NO_DEPRECATED
- -DATTICA_DEPRECATED_WARNINGS_SINCE
- -DATTICA_NO_DEPRECATED_WARNINGS
or - -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
- -DKF_NO_DEPRECATED
- -DKF_DEPRECATED_WARNINGS_SINCE
- -DKF_NO_DEPRECATED_WARNINGS
- to build Attica optionally with deprecated API excluded from the build, using "EXCLUDE_DEPRECATED_BEFORE_AND_AT" cmake argument.
Test Plan:
Builds with EXCLUDE_DEPRECATED_BEFORE_AND_AT set to 0, 0.2.0, 5.4.0,
5.23.0, CURRENT.
Reviewers: Frameworks, gladhorn, leinir, mlaurent
Reviewed By: leinir, mlaurent
Subscribers: mlaurent, kde-frameworks-devel
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D24650