Add options to disable installing systemd specific files

This commit is contained in:
Kira Bruneau
2022-07-27 09:12:31 -04:00
committed by afayaz-feral
parent aee9703872
commit e34e9c5a43
3 changed files with 38 additions and 22 deletions

View File

@ -14,18 +14,22 @@ config_example = run_command(
data_conf.set('GAMEMODE_EXAMPLE_CONFIG', config_example)
if sd_bus_provider == 'systemd'
# Install systemd user unit
configure_file(
input: 'gamemoded.service.in',
output: 'gamemoded.service',
configuration: data_conf,
install_dir: path_systemd_unit_dir,
)
# Install the sysusers.d file
install_data(
files('gamemode.conf'),
install_dir: path_systemd_group_dir,
)
if with_systemd_unit
# Install systemd user unit
configure_file(
input: 'gamemoded.service.in',
output: 'gamemoded.service',
configuration: data_conf,
install_dir: path_systemd_unit_dir,
)
endif
if with_systemd_group
# Install the sysusers.d file
install_data(
files('gamemode.conf'),
install_dir: path_systemd_group_dir,
)
endif
endif
# Install the D-BUS service file