2021-11-10 08:01:26 +00:00
|
|
|
man1dir = join_paths(get_option('mandir'), 'man1')
|
2020-05-03 19:57:20 +00:00
|
|
|
datadir = get_option('datadir')
|
|
|
|
metainfo_file = files('io.github.flightlessmango.mangohud.metainfo.xml')
|
|
|
|
icon_file = files('io.github.flightlessmango.mangohud.svg')
|
2021-11-10 08:01:26 +00:00
|
|
|
|
2020-05-03 19:57:20 +00:00
|
|
|
# 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,
|
2022-07-14 13:59:20 +00:00
|
|
|
install_dir: join_paths(datadir, 'metainfo'),
|
|
|
|
install_tag : 'doc',
|
2020-05-03 19:57:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Install icon for metainfo
|
|
|
|
install_data(
|
|
|
|
icon_file,
|
|
|
|
install_dir: join_paths(datadir, 'icons', 'hicolor', 'scalable', 'apps'),
|
2022-07-14 13:59:20 +00:00
|
|
|
install_tag : 'doc',
|
2020-05-03 19:57:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Install man pages
|
2020-07-25 09:33:23 +00:00
|
|
|
install_man(
|
|
|
|
files('mangohud.1'),
|
2021-11-10 08:01:26 +00:00
|
|
|
install_dir: man1dir,
|
2020-07-25 09:33:23 +00:00
|
|
|
)
|
2021-11-10 08:01:26 +00:00
|
|
|
if get_option('mangoapp')
|
|
|
|
install_man(
|
|
|
|
files('mangoapp.1'),
|
|
|
|
install_dir: man1dir,
|
|
|
|
)
|
|
|
|
endif
|
2022-07-14 12:30:26 +00:00
|
|
|
|
|
|
|
install_data(
|
|
|
|
files('MangoHud.conf'),
|
|
|
|
install_dir : join_paths(get_option('datadir'), 'doc', 'mangohud'),
|
2022-07-14 13:59:20 +00:00
|
|
|
rename : ['MangoHud.conf.example'],
|
|
|
|
install_tag : 'doc',
|
2022-07-14 12:30:26 +00:00
|
|
|
)
|