D24611: Use ECMGenerateExportHeader to manage deprecated API better

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Sun Oct 13 16:26:06 BST 2019


kossebau created this revision.
kossebau added reviewers: Frameworks, bruns.
Herald added projects: Frameworks, Baloo.
Herald added subscribers: Baloo, kde-frameworks-devel.
kossebau requested review of this revision.

REVISION SUMMARY
  Allows
  
  - projects linking to KFileMetaData to hide deprecated API up to a given version or silence deprecation warnings after a given version, using
    - -DKFILEMETADATA_DISABLE_DEPRECATED_BEFORE_AND_AT
    - -DKFILEMETADATA_NO_DEPRECATED
    - -DKFILEMETADATA_DEPRECATED_WARNINGS_SINCE
    - -DKFILEMETADATA_NO_DEPRECATED_WARNINGS
  
      or
    - -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
    - -DKF_NO_DEPRECATED
    - -DKF_DEPRECATED_WARNINGS_SINCE
    - -DKF_NO_DEPRECATED_WARNINGS
  - to build KFileMetaData 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.50.0, 5.60.0,
  CURRENT.

REPOSITORY
  R286 KFileMetaData

BRANCH
  useECMGenerateExportHeader

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

AFFECTED FILES
  CMakeLists.txt
  src/CMakeLists.txt
  src/properties.h

To: kossebau, #frameworks, bruns
Cc: kde-frameworks-devel, #baloo, hurikhan77, lots0logs, LeGast00n, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191013/cf1d40e1/attachment.html>


More information about the Kde-frameworks-devel mailing list