mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-04 12:26:47 +02:00
Only install gamemoderun if shared libgamemodeauto is built
Otherwise emit a warning.
This commit is contained in:

committed by
afayaz-feral

parent
b103bfdd60
commit
71f4b875ce
@@ -70,13 +70,28 @@ if with_privileged_group != ''
|
|||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Install the helper run script
|
# Install the helper run script and man page
|
||||||
|
if get_option('default_library') == 'static'
|
||||||
|
warning('gamemoderun will not be installed as a shared libgamemodeauto library is required')
|
||||||
|
else
|
||||||
install_data(
|
install_data(
|
||||||
files('gamemoderun'),
|
files('gamemoderun'),
|
||||||
install_dir: path_bindir,
|
install_dir: path_bindir,
|
||||||
install_mode: 'rwxr-xr-x',
|
install_mode: 'rwxr-xr-x',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
gamemoderun_manpage = configure_file(
|
||||||
|
input: files('gamemoderun.1.in'),
|
||||||
|
output: 'gamemoderun.1',
|
||||||
|
configuration: data_conf,
|
||||||
|
)
|
||||||
|
|
||||||
|
install_man(
|
||||||
|
gamemoderun_manpage,
|
||||||
|
install_dir: join_paths(path_mandir, 'man1')
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
# Install script to find processes with gamemode lib in runtime
|
# Install script to find processes with gamemode lib in runtime
|
||||||
install_data(
|
install_data(
|
||||||
files('gamemodelist'),
|
files('gamemodelist'),
|
||||||
@@ -96,17 +111,6 @@ install_man(
|
|||||||
install_dir: join_paths(path_mandir, 'man8')
|
install_dir: join_paths(path_mandir, 'man8')
|
||||||
)
|
)
|
||||||
|
|
||||||
gamemoderun_manpage = configure_file(
|
|
||||||
input: files('gamemoderun.1.in'),
|
|
||||||
output: 'gamemoderun.1',
|
|
||||||
configuration: data_conf,
|
|
||||||
)
|
|
||||||
|
|
||||||
install_man(
|
|
||||||
gamemoderun_manpage,
|
|
||||||
install_dir: join_paths(path_mandir, 'man1')
|
|
||||||
)
|
|
||||||
|
|
||||||
gamemodelist_manpage = configure_file(
|
gamemodelist_manpage = configure_file(
|
||||||
input: files('gamemodelist.1.in'),
|
input: files('gamemodelist.1.in'),
|
||||||
output: 'gamemodelist.1',
|
output: 'gamemodelist.1',
|
||||||
|
Reference in New Issue
Block a user