Add meson install_tags, bump meson to 0.60

pull/798/head
jackun 2 years ago
parent 50720d2215
commit e5d52c202e
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -18,13 +18,15 @@ endif
# Install metainfo file
install_data(
metainfo_file,
install_dir: join_paths(datadir, 'metainfo')
install_dir: join_paths(datadir, 'metainfo'),
install_tag : 'doc',
)
# Install icon for metainfo
install_data(
icon_file,
install_dir: join_paths(datadir, 'icons', 'hicolor', 'scalable', 'apps'),
install_tag : 'doc',
)
# Install man pages
@ -42,5 +44,6 @@ endif
install_data(
files('MangoHud.conf'),
install_dir : join_paths(get_option('datadir'), 'doc', 'mangohud'),
rename : ['MangoHud.conf.example']
rename : ['MangoHud.conf.example'],
install_tag : 'doc',
)

@ -2,7 +2,7 @@ project('MangoHud',
['c', 'cpp'],
version : 'v0.6.7',
license : 'MIT',
meson_version: '>=0.54.0',
meson_version: '>=0.60.0',
default_options : ['buildtype=release', 'c_std=c99', 'cpp_std=c++14', 'warning_level=2']
)

@ -248,6 +248,7 @@ if get_option('mangoapp') and sizeof_ptr == 8
json_dep,
],
include_directories : [inc_common],
install_tag : 'mangoapp',
link_args : link_args,
install : true
)
@ -257,6 +258,7 @@ if get_option('mangohudctl') and sizeof_ptr == 8
mangoapp = executable(
'mangohudctl',
files('app/control.cpp'),
install_tag : 'mangoapp', #TODO MangoHud layer itself currently doesn't support it
install : true
)
endif
@ -282,6 +284,7 @@ if get_option('mangoapp_layer')
gnu_symbol_visibility : 'hidden',
include_directories : [inc_common],
link_args : link_args,
install_tag : 'mangoapp',
install_dir : libdir_mangohud,
install : true
)
@ -289,21 +292,24 @@ endif
configure_file(input : 'mangohud.json.in',
output : '@0@.json'.format(meson.project_name()),
configuration : {'ld_libdir_mangohud' : ld_libdir_mangohud_vk,
configuration : {'ld_libdir_mangohud' : ld_libdir_mangohud_vk.replace('\$', '$'),
'PROJECT_NAME' : meson.project_name().to_upper()},
install : true,
install_dir : join_paths(get_option('datadir'), 'vulkan', 'implicit_layer.d'),
install_tag : 'runtime',
)
configure_file(input : '../bin/mangohud.in',
output : 'mangohud',
configuration : conf_data,
install_dir : get_option('bindir'),
install_tag : 'scripts',
)
configure_file(input : 'app/layer.json.in',
output : 'libMangoApp.json',
configuration : {'ld_libdir_mangohud' : ld_libdir_mangohud_vk},
configuration : {'ld_libdir_mangohud' : ld_libdir_mangohud_vk.replace('\$', '$')},
install : true,
install_dir : join_paths(get_option('datadir'), 'vulkan', 'implicit_layer.d'),
install_tag : 'mangoapp',
)

Loading…
Cancel
Save