D24700: Use ECMGenerateExportHeader to manage deprecated API better
Friedrich W. H. Kossebau
noreply at phabricator.kde.org
Wed Oct 16 16:53:15 BST 2019
kossebau created this revision.
kossebau added reviewers: Frameworks, ilic.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
kossebau requested review of this revision.
REVISION SUMMARY
Allows
- projects linking to KI18n to hide deprecated API up to a given version or silence deprecation warnings after a given version, using
- -DKI18N_DISABLE_DEPRECATED_BEFORE_AND_AT
- -DKI18N_NO_DEPRECATED
- -DKI18N_DEPRECATED_WARNINGS_SINCE
- -DKI18N_NO_DEPRECATED_WARNINGS
or (once enabled when all KF modules are done)
- -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
- -DKF_NO_DEPRECATED
- -DKF_DEPRECATED_WARNINGS_SINCE
- -DKF_NO_DEPRECATED_WARNINGS
- to build KI18n 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.
REPOSITORY
R249 KI18n
BRANCH
useECMGenerateExportHeader
REVISION DETAIL
https://phabricator.kde.org/D24700
AFFECTED FILES
CMakeLists.txt
autotests/klocalizedstringtest.cpp
autotests/klocalizedstringtest.h
src/CMakeLists.txt
src/klocalizedstring.cpp
src/klocalizedstring.h
To: kossebau, #frameworks, ilic
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/20191016/d31dc6cb/attachment.html>
More information about the Kde-frameworks-devel
mailing list