powerdevil:add dep and patches

This commit is contained in:
alihanozturk
2016-01-07 20:11:39 +02:00
parent 770ffe6391
commit bfb22876b8
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,13 @@
diff --git a/daemon/BackendConfig.cmake b/daemon/BackendConfig.cmake
index 54094e0..c9e4dc5 100644
--- a/daemon/BackendConfig.cmake
+++ b/daemon/BackendConfig.cmake
@@ -18,6 +18,8 @@ if (UDEV_FOUND)
backends/upower/udevqtdevice.cpp
)
+ add_definitions(-DHAVE_UDEV)
+
set_source_files_properties(
${CMAKE_CURRENT_SOURCE_DIR}/backends/upower/dbus/org.freedesktop.UPower.xml
${CMAKE_CURRENT_SOURCE_DIR}/backends/upower/dbus/org.freedesktop.UPower.Device.xml