Use ECMGenerateExportHeader to manage deprecated API better
ClosedPublic

Authored by kossebau on Oct 15 2019, 6:24 PM.

Details

Summary

Allows

  • projects linking to Plasma to hide deprecated API up to a given version or silence deprecation warnings after a given version, using
    • -DPLASMA_DISABLE_DEPRECATED_BEFORE_AND_AT
    • -DPLASMA_NO_DEPRECATED
    • -DPLASMA_DEPRECATED_WARNINGS_SINCE
    • -DPLASMA_NO_DEPRECATED_WARNINGS
    • -DPLASMAQUICK_DISABLE_DEPRECATED_BEFORE_AND_AT
    • -DPLASMAQUICK_NO_DEPRECATED
    • -DPLASMAQUICK_DEPRECATED_WARNINGS_SINCE
    • -DPLASMAQUICK_NO_DEPRECATED_WARNINGS

      or
    • -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
    • -DKF_NO_DEPRECATED
    • -DKF_DEPRECATED_WARNINGS_SINCE
    • -DKF_NO_DEPRECATED_WARNINGS

Diff Detail

Repository
R242 Plasma Framework (Library)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau created this revision.Oct 15 2019, 6:24 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptOct 15 2019, 6:24 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
kossebau requested review of this revision.Oct 15 2019, 6:24 PM

EXCLUDE_DEPRECATED_BEFORE_AND_AT needs to be implemented by someone who has overview of internals, if wanted.

mlaurent accepted this revision.Oct 18 2019, 6:16 AM
This revision is now accepted and ready to land.Oct 18 2019, 6:16 AM
mart accepted this revision.Oct 18 2019, 1:06 PM
This revision was automatically updated to reflect the committed changes.