[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('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('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('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_dir : get_option('bindir'),
) )
install_data( if get_option('include_doc')
files('../bin/MangoHud.conf'), install_data(
install_dir : join_paths(get_option('datadir'), 'doc', 'mangohud'), files('../bin/MangoHud.conf'),
rename : ['MangoHud.conf.example'] install_dir : join_paths(get_option('datadir'), 'doc', 'mangohud'),
) rename : ['MangoHud.conf.example']
)
endif
Loading…
Cancel
Save