D24671: Use ECMGenerateExportHeader to manage deprecated API better
Friedrich W. H. Kossebau
noreply at phabricator.kde.org
Tue Oct 15 15:54:31 BST 2019
kossebau created this revision.
kossebau added reviewers: Frameworks, Plasma, mart, apol.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
kossebau requested review of this revision.
REVISION SUMMARY
Allows
- projects linking to KPackage to hide deprecated API up to a given version or silence deprecation warnings after a given version, using
- -DKPACKAGE_DISABLE_DEPRECATED_BEFORE_AND_AT
- -DKPACKAGE_NO_DEPRECATED
- -DKPACKAGE_DEPRECATED_WARNINGS_SINCE
- -DKPACKAGE_NO_DEPRECATED_WARNINGS
or
- -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
- -DKF_NO_DEPRECATED
- -DKF_DEPRECATED_WARNINGS_SINCE
- -DKF_NO_DEPRECATED_WARNINGS
- to build KPackage 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.21.0, CURRENT.
REPOSITORY
R290 KPackage
BRANCH
useECMGenerateExportHeader
REVISION DETAIL
https://phabricator.kde.org/D24671
AFFECTED FILES
CMakeLists.txt
autotests/plasmoidpackagetest.cpp
src/kpackage/CMakeLists.txt
src/kpackage/package.cpp
src/kpackage/package.h
src/kpackage/packageloader.h
src/kpackage/packagestructure.h
src/kpackage/version.h
To: kossebau, #frameworks, #plasma, mart, apol
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191015/ffa8e516/attachment.html>
More information about the Kde-frameworks-devel
mailing list