RFC: Use ECMGenerateExportHeader to manage deprecated API better
Needs ReviewPublic

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

Details

Reviewers
None
Summary

Allows

  • projects linking to KService to hide deprecated API up to a given version or silence deprecation warnings before a given version, using
    • -DKSERVICE_DISABLE_DEPRECATED_BEFORE_AND_AT
    • -DKSERVICE_DEPRECATED_WARNINGS_SINCE
    • -DKSERVICE_NO_DEPRECATED_WARNINGS
    • -DKSERVICE_NO_DEPRECATED or
    • -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
    • -DKF_DEPRECATED_WARNINGS_SINCE
    • -DKF_NO_DEPRECATED_WARNINGS
    • -DKF_NO_DEPRECATED
  • to build KService 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
R309 KService
Branch
useECMGenerateExportHeader
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 16281
Build 16299: arc lint + arc unit
kossebau created this revision.Mon, Sep 9, 4:20 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMon, Sep 9, 4:20 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
kossebau requested review of this revision.Mon, Sep 9, 4:20 PM
kossebau edited the test plan for this revision. (Show Details)Mon, Sep 9, 4:24 PM