meson: allow setting absolute path instead of 'Dynamic string tokens'

resolves #601
pull/1216/head
John Zimmermann 7 months ago committed by flightlessmango
parent a4332733c3
commit cfc51ec99f

@ -13,3 +13,4 @@ option('mangohudctl', type: 'boolean', value : false)
option('mangoapp_layer', type: 'boolean', value : false)
option('tests', type: 'feature', value: 'auto', description: 'Run tests')
option('mangoplot', type: 'feature', value: 'enabled')
option('dynamic_string_tokens', type: 'boolean', value: true, description: 'Use dynamic string tokens in LD_PRELOAD')

@ -1,12 +1,18 @@
glslang = find_program('glslang', 'glslangValidator')
if get_option('dynamic_string_tokens')
ld_prefix = get_option('prefix') + '/\$LIB/'
else
ld_prefix = join_paths(get_option('prefix') ,get_option('libdir')) + '/'
endif
# Needs prefix for configure_file()
if get_option('append_libdir_mangohud')
libdir_mangohud = join_paths(get_option('prefix'), get_option('libdir'), 'mangohud')
ld_libdir_mangohud = get_option('prefix') + '/\$LIB/mangohud/'
ld_libdir_mangohud = ld_prefix + 'mangohud/'
else
libdir_mangohud = join_paths(get_option('prefix'), get_option('libdir'))
ld_libdir_mangohud = get_option('prefix') + '/\$LIB/'
ld_libdir_mangohud = ld_prefix
endif
git = find_program('git', required: false)

Loading…
Cancel
Save