mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-07-05 00:06:18 -04:00
Merge a500d11f0f into e5db9506b4
This commit is contained in:
commit
ebf55637c1
7 changed files with 86 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ endif
|
|||
wlroots = dependency('wlroots-0.20', fallback: ['wlroots', 'wlroots'])
|
||||
wayland_server = dependency('wayland-server')
|
||||
xkbcommon = dependency('xkbcommon')
|
||||
systemd = dependency('libsystemd', required: get_option('systemd'))
|
||||
math = cc.find_library('m')
|
||||
|
||||
have_xwayland = wlroots.get_variable(pkgconfig: 'have_xwayland', internal: 'have_xwayland') == 'true'
|
||||
|
|
@ -62,6 +63,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'))
|
||||
|
|
@ -106,6 +108,10 @@ if conf_data.get('CAGE_HAS_XWAYLAND', 0) == 1
|
|||
cage_sources += 'xwayland.c'
|
||||
endif
|
||||
|
||||
if conf_data.get('CAGE_HAS_SYSTEMD', 0) == 1
|
||||
cage_sources += 'notify_systemd.c'
|
||||
endif
|
||||
|
||||
executable(
|
||||
meson.project_name(),
|
||||
cage_sources,
|
||||
|
|
@ -113,6 +119,7 @@ executable(
|
|||
wayland_server,
|
||||
wlroots,
|
||||
xkbcommon,
|
||||
systemd,
|
||||
math,
|
||||
],
|
||||
install: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue