upower/src/linux/meson.build
Jelle van der Waa 17c14cc63f Revert "all: Remove Lid handling"
This reverts commit 07565ef6a1.

In the current systemd stable release 255 org.freedesktop.login1 does
not emit a LidisClosed event, this has added in systemd `main` and will
be availble in the next release.

As GNOME control panel still uses UPower's `LidIsclosed` property and
many other DE's such as Xfce/LXQt/Deepin as well revert this until the
systemd changes are available in all Distributions.

https://github.com/systemd/systemd/pull/30706

Resolve: https://gitlab.freedesktop.org/upower/upower/-/issues/260
2024-01-26 14:57:27 +00:00

31 lines
816 B
Meson

idevice_sources = []
if idevice_dep.found()
idevice_sources = [
'up-device-idevice.c',
'up-device-idevice.h',
]
endif
upshared += { 'linux': static_library('upshared',
sources: [
'up-device-supply.c',
'up-device-supply.h',
'up-device-supply-battery.c',
'up-device-supply-battery.h',
'up-device-hid.c',
'up-device-hid.h',
'up-device-wup.c',
'up-device-wup.h',
'up-device-bluez.c',
'up-device-bluez.h',
'up-input.c',
'up-input.h',
'up-backend.c',
'up-native.c',
'up-enumerator-udev.c',
idevice_sources
],
c_args: [ '-DG_LOG_DOMAIN="UPower-Linux"' ],
dependencies: [ gudev_dep, upowerd_deps, idevice_dep, plist_dep ],
build_by_default: false,
)}