From e9d4eeff04c24a8a0bc5764e41143e81884380e3 Mon Sep 17 00:00:00 2001 From: FlightlessMango Date: Fri, 21 Jan 2022 10:42:30 +0100 Subject: [PATCH] mangohudctl meson option --- meson_options.txt | 1 + src/meson.build | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/meson_options.txt b/meson_options.txt index 17dfa033..b917dfa8 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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') diff --git a/src/meson.build b/src/meson.build index 0cdc4902..e05d89e8 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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,