|
|
|
@ -20,6 +20,13 @@
|
|
|
|
|
|
|
|
|
|
glslang = find_program('glslangValidator')
|
|
|
|
|
|
|
|
|
|
# Needs prefix for configure_file()
|
|
|
|
|
if get_option('append_libdir_mangohud')
|
|
|
|
|
libdir_mangohud = join_paths(get_option('prefix'), get_option('libdir'), 'mangohud')
|
|
|
|
|
else
|
|
|
|
|
libdir_mangohud = join_paths(get_option('prefix'), get_option('libdir'))
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
overlay_shaders = [
|
|
|
|
|
'overlay.frag',
|
|
|
|
|
'overlay.vert',
|
|
|
|
@ -87,31 +94,36 @@ vklayer_mesa_overlay = shared_library(
|
|
|
|
|
install : true
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if get_option('using_build_sh')
|
|
|
|
|
if get_option('append_libdir_mangohud')
|
|
|
|
|
configure_file(input : 'mangohud.json.in',
|
|
|
|
|
output : '@0@.json'.format(meson.project_name()),
|
|
|
|
|
configuration : {'PROJECT_NAME' : meson.project_name(),
|
|
|
|
|
'libdir_mangohud' : '',
|
|
|
|
|
'LAYER_SUFFIX' : ''},
|
|
|
|
|
install : true,
|
|
|
|
|
install_dir : join_paths(get_option('datadir'), 'vulkan', 'implicit_layer.d'),
|
|
|
|
|
output : '@0@.@1@.json'.format(meson.project_name(), target_machine.cpu_family()),
|
|
|
|
|
configuration : {'libdir_mangohud' : libdir_mangohud + '/',
|
|
|
|
|
'PROJECT_NAME' : meson.project_name() + ' ',
|
|
|
|
|
'LAYER_SUFFIX' : target_machine.cpu_family()},
|
|
|
|
|
install : true,
|
|
|
|
|
install_dir : join_paths(get_option('datadir'), 'vulkan', 'implicit_layer.d'),
|
|
|
|
|
)
|
|
|
|
|
else
|
|
|
|
|
configure_file(input : 'mangohud.json.in',
|
|
|
|
|
output : '@0@.@1@.json'.format(meson.project_name(), target_machine.cpu_family()),
|
|
|
|
|
configuration : {'libdir_mangohud' : join_paths(get_option('prefix'), get_option('libdir'), 'mangohud') + '/',
|
|
|
|
|
'PROJECT_NAME' : meson.project_name() + ' ',
|
|
|
|
|
'LAYER_SUFFIX' : target_machine.cpu_family()},
|
|
|
|
|
install : true,
|
|
|
|
|
install_dir : join_paths(get_option('datadir'), 'vulkan', 'implicit_layer.d'),
|
|
|
|
|
output : '@0@.json'.format(meson.project_name()),
|
|
|
|
|
configuration : {'PROJECT_NAME' : meson.project_name(),
|
|
|
|
|
'libdir_mangohud' : '',
|
|
|
|
|
'LAYER_SUFFIX' : ''},
|
|
|
|
|
install : true,
|
|
|
|
|
install_dir : join_paths(get_option('datadir'), 'vulkan', 'implicit_layer.d'),
|
|
|
|
|
)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
install_data(
|
|
|
|
|
files('../bin/run-mangohud-gl-pkg.sh'),
|
|
|
|
|
if target_machine.cpu_family() == 'x86_64'
|
|
|
|
|
mangohud_cpu_family = ''
|
|
|
|
|
else
|
|
|
|
|
mangohud_cpu_family = '.@0@'.format(target_machine.cpu_family())
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
configure_file(input : '../bin/mangohud.in',
|
|
|
|
|
output : 'mangohud@0@'.format(mangohud_cpu_family),
|
|
|
|
|
configuration : {'libdir_mangohud' : libdir_mangohud},
|
|
|
|
|
install_dir : get_option('bindir'),
|
|
|
|
|
install_mode: 'rwxr-xr-x',
|
|
|
|
|
rename : ['mangohud']
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
install_data(
|
|
|
|
|