mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-27 01:41:45 +02:00
Add options to disable installing systemd specific files
This commit is contained in:

committed by
afayaz-feral

parent
aee9703872
commit
e34e9c5a43
@ -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
|
||||
|
Reference in New Issue
Block a user