mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-27 01:41:45 +02:00
Add option to change lib dir in gamemoderun
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:

committed by
afayaz-feral

parent
1709810707
commit
1e8312f7e3
@ -3,7 +3,7 @@
|
||||
|
||||
# Path to installed libgamemodeauto. ld.so will substitute "\$LIB" to get the
|
||||
# appropriate path depending on whether the app is 32- or 64-bit.
|
||||
GAMEMODEAUTO="@GAMEMODE_PREFIX@/\$LIB/libgamemodeauto.so.0"
|
||||
GAMEMODEAUTO="@GAMEMODERUN_PREFIX@libgamemodeauto.so.0"
|
||||
|
||||
LD_PRELOAD="${GAMEMODEAUTO}${LD_PRELOAD:+:$LD_PRELOAD}"
|
||||
|
||||
|
@ -3,6 +3,14 @@ data_conf.set('BINDIR', path_bindir)
|
||||
data_conf.set('LIBEXECDIR', path_libexecdir)
|
||||
data_conf.set('GAMEMODE_PREFIX', path_prefix)
|
||||
|
||||
# Set gamemoderun lib dir
|
||||
gamemoderun_lib_dir = get_option('with-gamemoderun-lib-dir')
|
||||
if gamemoderun_lib_dir == 'default'
|
||||
data_conf.set('GAMEMODERUN_PREFIX', path_prefix + '/\$LIB/')
|
||||
else
|
||||
data_conf.set('GAMEMODERUN_PREFIX', gamemoderun_lib_dir)
|
||||
endif
|
||||
|
||||
# Pull in the example config
|
||||
config_example = run_command(
|
||||
'cat',
|
||||
|
Reference in New Issue
Block a user