D24643: Use ECMGenerateExportHeader to manage deprecated API better

2019-10-16 Thread Friedrich W. H. Kossebau
This revision was automatically updated to reflect the committed changes.
Closed by commit R268:b6a1e260c42a: Use ECMGenerateExportHeader to manage 
deprecated API better (authored by kossebau).

CHANGED PRIOR TO COMMIT
  https://phabricator.kde.org/D24643?vs=67925&id=68104#toc

REPOSITORY
  R268 KGlobalAccel

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D24643?vs=67925&id=68104

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

AFFECTED FILES
  CMakeLists.txt
  autotests/kglobalshortcuttest.cpp
  src/CMakeLists.txt
  src/kglobalaccel.cpp
  src/kglobalaccel.h
  src/kglobalaccel_p.h
  src/runtime/CMakeLists.txt
  src/runtime/kglobalaccel_interface.h
  src/runtime/kglobalacceld.cpp
  src/runtime/kglobalacceld.h

To: kossebau, #frameworks, mlaurent
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D24643: Use ECMGenerateExportHeader to manage deprecated API better

2019-10-14 Thread Laurent Montel
mlaurent accepted this revision.
This revision is now accepted and ready to land.

REPOSITORY
  R268 KGlobalAccel

BRANCH
  useECMGenerateExportHeader

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

To: kossebau, #frameworks, mlaurent
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D24643: Use ECMGenerateExportHeader to manage deprecated API better

2019-10-14 Thread Friedrich W. H. Kossebau
kossebau created this revision.
kossebau added a reviewer: Frameworks.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
kossebau requested review of this revision.

REVISION SUMMARY
  Allows
  
  - projects linking to KGlobalAccel to hide deprecated API up to a given 
version or silence deprecation warnings after a given version, using
- -DKGLOBALACCEL_DISABLE_DEPRECATED_BEFORE_AND_AT
- -DKGLOBALACCEL_NO_DEPRECATED
- -DKGLOBALACCEL_DEPRECATED_WARNINGS_SINCE
- -DKGLOBALACCEL_NO_DEPRECATED_WARNINGS
- -DKGLOBALACCELPRIVATE_DISABLE_DEPRECATED_BEFORE_AND_AT
- -DKGLOBALACCELPRIVATE_NO_DEPRECATED
- -DKGLOBALACCELPRIVATE_DEPRECATED_WARNINGS_SINCE
- -DKGLOBALACCELPRIVATE_NO_DEPRECATED_WARNINGS
  
  or
- -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
- -DKF_NO_DEPRECATED
- -DKF_DEPRECATED_WARNINGS_SINCE
- -DKF_NO_DEPRECATED_WARNINGS
  - to build KGlobalAccel 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, 4.2.0, 4.3.0,
  4.4.0, 5.9.0, CURRENT.

REPOSITORY
  R268 KGlobalAccel

BRANCH
  useECMGenerateExportHeader

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

AFFECTED FILES
  CMakeLists.txt
  autotests/kglobalshortcuttest.cpp
  src/CMakeLists.txt
  src/kglobalaccel.cpp
  src/kglobalaccel.h
  src/kglobalaccel_p.h
  src/runtime/CMakeLists.txt
  src/runtime/kglobalaccel_interface.h
  src/runtime/kglobalacceld.cpp
  src/runtime/kglobalacceld.h

To: kossebau, #frameworks
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns