Warning, /plasma/powerdevil/daemon/actions/bundled/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 function(add_powerdevil_bundled_action _name)
0002     # Build the plugin
0003     kcoreaddons_add_plugin(powerdevil_${_name}action SOURCES ${_name}.cpp INSTALL_NAMESPACE "powerdevil/action")
0004     target_link_libraries(powerdevil_${_name}action
0005                         powerdevil_log_static
0006                         powerdevilcore
0007                         KF6::CoreAddons
0008                         KF6::I18n
0009                         ${ARGN})
0010 endfunction(add_powerdevil_bundled_action _name)
0011 
0012 function(target_dbus_files _target)
0013     set(dbus_SRCS)
0014     qt_add_dbus_adaptor(dbus_SRCS ${ARGN})
0015     target_sources(${_target} PRIVATE ${dbus_SRCS})
0016 endfunction()
0017 
0018 add_powerdevil_bundled_action(brightnesscontrol KF6::GlobalAccel)
0019 target_dbus_files(powerdevil_brightnesscontrolaction  org.kde.Solid.PowerManagement.Actions.BrightnessControl.xml
0020                      brightnesscontrol.h PowerDevil::BundledActions::BrightnessControl)
0021 
0022 add_powerdevil_bundled_action(keyboardbrightnesscontrol)
0023 target_dbus_files(powerdevil_keyboardbrightnesscontrolaction org.kde.Solid.PowerManagement.Actions.KeyboardBrightnessControl.xml
0024                      keyboardbrightnesscontrol.h PowerDevil::BundledActions::KeyboardBrightnessControl)
0025 
0026 add_powerdevil_bundled_action(dimdisplay)
0027 add_powerdevil_bundled_action(runscript KF6::KIOCore KF6::KIOWidgets)
0028 
0029 add_powerdevil_bundled_action(suspendsession KF6::KIOCore KF6::KIOWidgets)
0030 target_dbus_files(powerdevil_suspendsessionaction org.kde.Solid.PowerManagement.Actions.SuspendSession.xml
0031                      suspendsession.h PowerDevil::BundledActions::SuspendSession)
0032 
0033 add_powerdevil_bundled_action(dpms)
0034 target_link_libraries(powerdevil_dpmsaction KF6::ScreenDpms)
0035 
0036 set(handlebuttons_SRCS handlebuttonevents.cpp)
0037 qt_add_dbus_adaptor(handlebuttons_SRCS org.kde.Solid.PowerManagement.Actions.HandleButtonEvents.xml handlebuttonevents.h PowerDevil::BundledActions::HandleButtonEvents)
0038 
0039 add_powerdevil_bundled_action(powerprofile)
0040 target_dbus_files(powerdevil_powerprofileaction org.kde.Solid.PowerManagement.Actions.PowerProfile.xml powerprofile.h PowerDevil::BundledActions::PowerProfile)
0041 set(powerprofile_dbus_SRCS)
0042 qt_add_dbus_interface(powerprofile_dbus_SRCS org.freedesktop.DBus.Properties.xml properties_interface)
0043 qt_add_dbus_interface(powerprofile_dbus_SRCS net.hadess.PowerProfiles.xml power_profiles_interface)
0044 target_sources(powerdevil_powerprofileaction PRIVATE ${powerprofile_dbus_SRCS} ${handlebuttons_SRCS})
0045 
0046 kcoreaddons_add_plugin(powerdevil_handlebuttoneventsaction SOURCES powerdevilhandlebuttonevents_plugin.cpp ${handlebuttons_SRCS} INSTALL_NAMESPACE "powerdevil/action")
0047 target_link_libraries(powerdevil_handlebuttoneventsaction PRIVATE powerdevilcore)