mirror of
https://github.com/labwc/labwc.git
synced 2026-05-03 06:47:22 -04:00
build: add systemd-session feature option
Some checks are pending
labwc.github.io / notify (push) Waiting to run
Some checks are pending
labwc.github.io / notify (push) Waiting to run
Let distributors opt out of installing labwc-session.target at configure time. Default is 'auto' (install if the systemd pkg-config file is present), 'enabled' forces it on, 'disabled' skips it entirely.
This commit is contained in:
parent
af277b09ed
commit
70e3173f99
2 changed files with 6 additions and 3 deletions
|
|
@ -212,9 +212,11 @@ install_data('data/labwc.desktop', install_dir: get_option('datadir') / 'wayland
|
||||||
install_data('data/labwc-portals.conf', install_dir: get_option('datadir') / 'xdg-desktop-portal')
|
install_data('data/labwc-portals.conf', install_dir: get_option('datadir') / 'xdg-desktop-portal')
|
||||||
|
|
||||||
# Install labwc-session.target so that systemd user services with
|
# Install labwc-session.target so that systemd user services with
|
||||||
# WantedBy=graphical-session.target start under labwc. Labwc activates
|
# WantedBy=graphical-session.target can be started and stopped in sync
|
||||||
# this target itself in src/config/session.c on autostart.
|
# with a labwc session (see labwc(1) SESSION MANAGEMENT for the opt-in
|
||||||
systemd = dependency('systemd', required: false)
|
# autostart/shutdown snippet).
|
||||||
|
systemd_feat = get_option('systemd-session')
|
||||||
|
systemd = dependency('systemd', required: systemd_feat)
|
||||||
if systemd.found()
|
if systemd.found()
|
||||||
install_data('data/labwc-session.target',
|
install_data('data/labwc-session.target',
|
||||||
install_dir: systemd.get_variable('systemduserunitdir'))
|
install_dir: systemd.get_variable('systemduserunitdir'))
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ option('svg', type: 'feature', value: 'enabled', description: 'Enable svg window
|
||||||
option('icon', type: 'feature', value: 'enabled', description: 'Enable window icons')
|
option('icon', type: 'feature', value: 'enabled', description: 'Enable window icons')
|
||||||
option('labnag', type: 'feature', value: 'auto', description: 'Build labnag notification daemon')
|
option('labnag', type: 'feature', value: 'auto', description: 'Build labnag notification daemon')
|
||||||
option('nls', type: 'feature', value: 'auto', description: 'Enable native language support')
|
option('nls', type: 'feature', value: 'auto', description: 'Enable native language support')
|
||||||
|
option('systemd-session', type: 'feature', value: 'auto', description: 'Install labwc-session.target systemd user unit')
|
||||||
option('static_analyzer', type: 'feature', value: 'disabled', description: 'Run gcc static analyzer')
|
option('static_analyzer', type: 'feature', value: 'disabled', description: 'Run gcc static analyzer')
|
||||||
option('test', type: 'feature', value: 'disabled', description: 'Run tests')
|
option('test', type: 'feature', value: 'disabled', description: 'Run tests')
|
||||||
option('sections', type: 'feature', value: 'disabled', description: 'Show unused functions')
|
option('sections', type: 'feature', value: 'disabled', description: 'Show unused functions')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue