Add cmake function 'kdbusaddons_generate_dbus_service_file'
ClosedPublic

Authored by habacker on Dec 22 2017, 8:37 PM.

Details

Summary

This function is added to hide platform-specific implementation details
when creating dbus service files.

Test Plan
  • compiled and installed on unix
  • build patched kded sorce with this support
  • Files on windows are created as expected

Diff Detail

Repository
R271 KDBusAddons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
habacker created this revision.Dec 22 2017, 8:37 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 22 2017, 8:37 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
habacker requested review of this revision.Dec 22 2017, 8:37 PM
krop added a subscriber: krop.Dec 22 2017, 9:12 PM
krop added inline comments.
KF5DBusAddonsMacros.cmake
5

kdbusaddons_generate_dbus_service_file(EXECUTABLE NAME PATH) to improve the readability.

Please also document each parameter.

7

D-Bus

10

D-Bus

15

${KDE_INSTALL_FULL_BINDIR}

24

You don't check whether _path is absolute. This shall return an error.

dfaure requested changes to this revision.Jan 2 2018, 8:31 AM
dfaure added inline comments.
CMakeLists.txt
77

This file name should be prefixed with kf5 or something, to avoid possible clashes.

This revision now requires changes to proceed.Jan 2 2018, 8:31 AM
habacker updated this revision to Diff 24564.Jan 2 2018, 9:55 AM
  • fixed doc
  • check if absolute path on unix
  • use cmake variable KDE_INSTALL_FULL_BINDIR
  • renamed service file template
habacker marked 6 inline comments as done.Jan 2 2018, 9:56 AM
dfaure accepted this revision.Jan 4 2018, 12:26 PM
This revision is now accepted and ready to land.Jan 4 2018, 12:26 PM
This revision was automatically updated to reflect the committed changes.