From 71b602751d352e9df3b5e6b86ec50febee14abcd Mon Sep 17 00:00:00 2001 From: FlightlessMango Date: Sun, 15 Mar 2020 16:01:08 +0100 Subject: [PATCH] [meson] option to include_doc --- meson_options.txt | 1 + src/meson.build | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/meson_options.txt b/meson_options.txt index cfcc6752..f3166bf4 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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') diff --git a/src/meson.build b/src/meson.build index 3c187d62..b2bfb61c 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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'] -) \ No newline at end of file +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 \ No newline at end of file