Skip to content

Commit

Permalink
meson: allow setting absolute path instead of 'Dynamic string tokens'
Browse files Browse the repository at this point in the history
resolves #601
  • Loading branch information
Johnnynator authored and flightlessmango committed Jan 15, 2024
1 parent a433273 commit cfc51ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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')
10 changes: 8 additions & 2 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit cfc51ec

Please sign in to comment.