RFC: Use ECMGenerateExportHeader to manage deprecated API better
Needs ReviewPublic

Authored by kossebau on Mon, Sep 9, 4:06 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Allows

  • projects linking to KCoreAddons to hide deprecated API up to a given version or silence deprecation warnings before a given version, using
    • -DKCOREADDONS_DISABLE_DEPRECATED_BEFORE_AND_AT
    • -DKCOREADDONS_DEPRECATED_WARNINGS_SINCE
    • -DKCOREADDONS_NO_DEPRECATED_WARNINGS
    • -DKCOREADDONS_NO_DEPRECATED

      or
    • -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
    • -DKF_DEPRECATED_WARNINGS_SINCE
    • -DKF_NO_DEPRECATED_WARNINGS
    • -DKF_NO_DEPRECATED
  • to build KCoreAddons 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, 5.0.0, CURRENT and
all the versions where deprecations were done.

Diff Detail

Repository
R244 KCoreAddons
Branch
useECMGenerateExportHeader
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 16275
Build 16293: arc lint + arc unit
kossebau created this revision.Mon, Sep 9, 4:06 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMon, Sep 9, 4:06 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
kossebau requested review of this revision.Mon, Sep 9, 4:06 PM
kossebau edited the summary of this revision. (Show Details)Mon, Sep 9, 5:06 PM