D24682: Use ECMGenerateExportHeader to manage deprecated API better

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Wed Oct 16 00:10:01 BST 2019


kossebau created this revision.
kossebau added reviewers: Frameworks, vkrause.
kossebau requested review of this revision.

REVISION SUMMARY
  Allows
  
  - projects linking to KCalendarCore to hide deprecated API up to a given version or silence deprecation warnings after a given version, using
    - -DKCALENDARCORE_DISABLE_DEPRECATED_BEFORE_AND_AT
    - -DKCALENDARCORE_NO_DEPRECATED
    - -DKCALENDARCORE_DEPRECATED_WARNINGS_SINCE
    - -DKCALENDARCORE_NO_DEPRECATED_WARNINGS
  
      or
    - -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
    - -DKF_NO_DEPRECATED
    - -DKF_DEPRECATED_WARNINGS_SINCE
    - -DKF_NO_DEPRECATED_WARNINGS
  - to build KCalendarCore 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.64.0, CURRENT.

BRANCH
  useECMGenerateExportHeader

REVISION DETAIL
  https://phabricator.kde.org/D24682

AFFECTED FILES
  CMakeLists.txt
  src/CMakeLists.txt
  src/recurrence.cpp
  src/recurrence.h

To: kossebau, #frameworks, vkrause
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191015/fdc7b421/attachment.html>


More information about the Kde-frameworks-devel mailing list