This commit is contained in:
Jonathan GUILLOT 2026-01-11 00:09:59 +03:00 committed by GitHub
commit 0ca2f6a92f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 86 additions and 0 deletions

View file

@ -39,6 +39,7 @@ wlroots = dependency('wlroots-0.19', fallback: ['wlroots', 'wlroots'])
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
wayland_server = dependency('wayland-server')
xkbcommon = dependency('xkbcommon')
systemd = dependency('libsystemd', required: get_option('systemd'))
math = cc.find_library('m')
wl_protocol_dir = wayland_protos.get_variable('pkgdatadir')
@ -82,6 +83,7 @@ endif
conf_data = configuration_data()
conf_data.set10('CAGE_HAS_XWAYLAND', have_xwayland)
conf_data.set10('CAGE_HAS_SYSTEMD', systemd.found())
conf_data.set_quoted('CAGE_VERSION', version)
scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: get_option('man-pages'))
@ -136,6 +138,10 @@ if conf_data.get('CAGE_HAS_XWAYLAND', 0) == 1
cage_headers += 'xwayland.h'
endif
if conf_data.get('CAGE_HAS_SYSTEMD', 0) == 1
cage_sources += 'notify_systemd.c'
endif
executable(
meson.project_name(),
cage_sources + cage_headers,
@ -144,6 +150,7 @@ executable(
wayland_server,
wlroots,
xkbcommon,
systemd,
math,
],
install: true,