Install data files only if `include_doc` option is set

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

@ -38,3 +38,9 @@ if get_option('mangoapp')
install_dir: man1dir,
)
endif
install_data(
files('MangoHud.conf'),
install_dir : join_paths(get_option('datadir'), 'doc', 'mangohud'),
rename : ['MangoHud.conf.example']
)

@ -280,4 +280,7 @@ if get_option('mangoapp') or get_option('mangoapp_layer')
endif
subdir('src')
subdir('data')
if get_option('include_doc')
subdir('data')
endif

@ -6,7 +6,7 @@ option('append_libdir_mangohud', type : 'boolean', value : true, description: 'A
option('ld_libdir_prefix', type : 'boolean', value : false, description: 'Set ld libdir to "$prefix/lib/mangohud/\$LIB"')
option('ld_libdir_abs', type : 'boolean', value : false, description: 'Use absolute path in LD_PRELOAD')
option('prepend_libdir_vk', type : 'boolean', value : true, description: 'Prepend libdir to library path in vulkan manifest')
option('include_doc', type : 'boolean', value : true, description: 'Include the example config')
option('include_doc', type : 'boolean', value : true, description: 'Include the example config, man pages, appstream files etc.')
option('with_nvml', type : 'combo', value : 'enabled', choices: ['enabled', 'system', 'disabled'], description: 'Enable NVML support')
option('with_xnvctrl', type : 'feature', value : 'enabled', description: 'Enable XNVCtrl support')
option('with_x11', type : 'feature', value : 'enabled')

@ -301,14 +301,6 @@ configure_file(input : '../bin/mangohud.in',
install_dir : get_option('bindir'),
)
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
configure_file(input : 'app/layer.json.in',
output : 'libMangoApp.json',
configuration : {'ld_libdir_mangohud' : ld_libdir_mangohud_vk},

Loading…
Cancel
Save