From 2dfdb9b584acaa1de129eaf5abdd75aa119c34db Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Sun, 3 May 2020 21:57:20 +0200 Subject: [PATCH] add metainfo file Signed-off-by: Stephan Lachnit --- ...thub.flightlessmango.mangohud.metainfo.xml | 42 ++ data/io.github.flightlessmango.mangohud.svg | 373 ++++++++++++++++++ data/meson.build | 29 +- meson_options.txt | 3 +- 4 files changed, 445 insertions(+), 2 deletions(-) create mode 100644 data/io.github.flightlessmango.mangohud.metainfo.xml create mode 100644 data/io.github.flightlessmango.mangohud.svg diff --git a/data/io.github.flightlessmango.mangohud.metainfo.xml b/data/io.github.flightlessmango.mangohud.metainfo.xml new file mode 100644 index 00000000..05b94fde --- /dev/null +++ b/data/io.github.flightlessmango.mangohud.metainfo.xml @@ -0,0 +1,42 @@ + + + io.github.flightlessmango.mangohud + + MangoHud + Vulkan/OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more + FlightlessMango + io.github.flightlessmango.mangohud + + CC0-1.0 + MIT + + +

A modification of the Mesa Vulkan overlay, including GUI improvements with HUD configuration, temperature reporting, and logging capabilities. Includes a script (mangohud) to start it on any OpenGL or Vulkan application.

+
+ + + + Example + https://raw.githubusercontent.com/flightlessmango/MangoHud/master/assets/overlay_example.gif + + + Log uploading walkthrough + https://raw.githubusercontent.com/flightlessmango/MangoHud/master/assets/log_upload_example.gif + + + + https://github.com/flightlessmango/MangoHud + https://github.com/flightlessmango/MangoHud/issues + https://www.paypal.me/flightlessmango + + + mangohud + + + + Utility + Game + + + +
diff --git a/data/io.github.flightlessmango.mangohud.svg b/data/io.github.flightlessmango.mangohud.svg new file mode 100644 index 00000000..22e8ced9 --- /dev/null +++ b/data/io.github.flightlessmango.mangohud.svg @@ -0,0 +1,373 @@ + + + FlightlessMango Icon + + + + + + + + + + + + + image/svg+xml + + FlightlessMango Icon + + 2020-11-14 + + + FlightlessMango + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/meson.build b/data/meson.build index 28d9d47c..6ea3ff48 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,10 +1,37 @@ man1dir = join_paths(get_option('mandir'), 'man1') +datadir = get_option('datadir') +metainfo_file = files('io.github.flightlessmango.mangohud.metainfo.xml') +icon_file = files('io.github.flightlessmango.mangohud.svg') +# Validate metainfo file +ascli_exe = find_program('appstreamcli', required: get_option('tests')) +if ascli_exe.found() + test('validate metainfo file', + ascli_exe, + args: ['validate', + '--no-net', + '--pedantic', + metainfo_file] + ) +endif + +# Install metainfo file +install_data( + metainfo_file, + install_dir: join_paths(datadir, 'metainfo') +) + +# Install icon for metainfo +install_data( + icon_file, + install_dir: join_paths(datadir, 'icons', 'hicolor', 'scalable', 'apps'), +) + +# Install man pages install_man( files('mangohud.1'), install_dir: man1dir, ) - if get_option('mangoapp') install_man( files('mangoapp.1'), diff --git a/meson_options.txt b/meson_options.txt index 9744bc8f..f07abec2 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -16,4 +16,5 @@ option('with_dlsym', type : 'feature', value : 'disabled') 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') -option('mangoapp_layer', type: 'boolean', value : 'false') \ No newline at end of file +option('mangoapp_layer', type: 'boolean', value : 'false') +option('tests', type: 'feature', value: 'auto', description: 'Run tests')