Use ECMGenerateExportHeader to manage deprecated API better

Authored by kossebau on Oct 13 2019, 3:06 PM.

Description

Use ECMGenerateExportHeader to manage deprecated API better

Summary:
Allows

  • projects linking to KItemViews to hide deprecated API up to a given version or silence deprecation warnings after a given version, using
    • -DKITEMVIEWS_DISABLE_DEPRECATED_BEFORE_AND_AT
    • -DKITEMVIEWS_NO_DEPRECATED
    • -DKITEMVIEWS_DEPRECATED_WARNINGS_SINCE
    • -DKITEMVIEWS_NO_DEPRECATED_WARNINGS

      or
    • -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
    • -DKF_NO_DEPRECATED
    • -DKF_DEPRECATED_WARNINGS_SINCE
    • -DKF_NO_DEPRECATED_WARNINGS
  • to build KItemViews 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, 4.2.0, 4.4.0,
5.0.0, 5.50.0, CURRENT.

Reviewers: Frameworks, davidedmundson

Subscribers: kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D24610

Details

Committed
kossebauOct 17 2019, 10:18 PM
Differential Revision
D24610: Use ECMGenerateExportHeader to manage deprecated API better
Parents
R276:ec94605784a2: GIT_SILENT Upgrade KF5 version to 5.64.0.
Branches
Unknown
Tags
Unknown