mangohudctl meson option

This commit is contained in:
FlightlessMango 2022-01-21 10:42:30 +01:00
parent 97f6a00171
commit e9d4eeff04
2 changed files with 9 additions and 0 deletions

View File

@ -16,3 +16,4 @@ option('with_dlsym', type : 'feature', value : 'disabled')
option('with_libdrm_amdgpu', type : 'feature', value : 'enabled', description: 'Get amdgpu sensor info through libdrm_amdgpu')
option('loglevel', type: 'combo', choices : ['trace', 'debug', 'info', 'warn', 'err', 'critical', 'off'], value : 'info', description: 'Max log level in non-debug build')
option('mangoapp', type: 'boolean', value : 'false')
option('mangohudctl', type: 'boolean', value : 'false')

View File

@ -264,6 +264,14 @@ if get_option('mangoapp') and sizeof_ptr == 8
)
endif
if get_option('mangohudctl') and sizeof_ptr == 8
mangoapp = executable(
'mangohudctl',
files('app/control.cpp'),
install : true
)
endif
configure_file(input : 'mangohud.json.in',
output : '@0@.json'.format(meson.project_name()),
configuration : {'ld_libdir_mangohud' : ld_libdir_mangohud_vk,