[meson] option to include_doc

pull/93/head
FlightlessMango 4 years ago
parent 6e40f9bdd5
commit 71b602751d

@ -2,3 +2,4 @@ option('glibcxx_asserts', type : 'boolean', value : false)
option('use_system_vulkan', type : 'feature', value : 'disabled', description: 'Use system vulkan headers instead of the provided ones')
option('mangohud_prefix', type : 'string', value : '', description: 'Add prefix to cross-compiled library, like "lib32-".')
option('append_libdir_mangohud', type : 'boolean', value : true, description: 'Append "mangohud" to libdir path or not.')
option('include_doc', type : 'boolean', value : true, description: 'Include the example config')

@ -115,8 +115,10 @@ configure_file(input : '../bin/mangohud.in',
install_dir : get_option('bindir'),
)
install_data(
files('../bin/MangoHud.conf'),
install_dir : join_paths(get_option('datadir'), 'doc', 'mangohud'),
rename : ['MangoHud.conf.example']
)
if get_option('include_doc')
install_data(
files('../bin/MangoHud.conf'),
install_dir : join_paths(get_option('datadir'), 'doc', 'mangohud'),
rename : ['MangoHud.conf.example']
)
endif
Loading…
Cancel
Save