Use ECMGenerateExportHeader to manage deprecated API better
ClosedPublic

Authored by kossebau on Oct 12 2019, 3:22 PM.

Details

Summary

Allows

  • projects linking to KTextWidgets to hide deprecated API up to a given version or silence deprecation warnings after a given version, using
    • -DKTEXTWIDGETS_DISABLE_DEPRECATED_BEFORE_AND_AT
    • -DKTEXTWIDGETS_NO_DEPRECATED
    • -DKTEXTWIDGETS_DEPRECATED_WARNINGS_SINCE
    • -DKTEXTWIDGETS_NO_DEPRECATED_WARNINGS

      or
    • -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
    • -DKF_NO_DEPRECATED
    • -DKF_DEPRECATED_WARNINGS_SINCE
    • -DKF_NO_DEPRECATED_WARNINGS
  • to build KTextWidgets 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.

Diff Detail

Repository
R310 KTextWidgets
Branch
useECMGenerateExportHeader
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 17614
Build 17632: arc lint + arc unit
kossebau created this revision.Oct 12 2019, 3:22 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptOct 12 2019, 3:22 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
kossebau requested review of this revision.Oct 12 2019, 3:22 PM
mlaurent accepted this revision.Oct 13 2019, 7:54 AM
This revision is now accepted and ready to land.Oct 13 2019, 7:54 AM
This revision was automatically updated to reflect the committed changes.