From ef6adadba92d605d54cf344962206cfbf421193d Mon Sep 17 00:00:00 2001 From: DeadSix27 Date: Mon, 17 Apr 2023 12:53:49 +0200 Subject: [PATCH] meson: add an option to disable utilities building Adds the missing utilities option to meson builds for parity with CMake builds --- meson.build | 5 ++++- meson_options.txt | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 6bf8d05da..4f5cc8c7a 100644 --- a/meson.build +++ b/meson.build @@ -373,7 +373,10 @@ foreach check : check_funcs endforeach subdir('src') -subdir('util') + +if not get_option('utilities').disabled() + subdir('util') +endif if not get_option('tests').disabled() subdir('test') diff --git a/meson_options.txt b/meson_options.txt index 195d556e8..9438202e1 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -31,6 +31,8 @@ option('docs', type: 'feature', value: 'auto', yield: true, description: 'Generate documentation with gtk-doc') option('doc_tests', type: 'boolean', value: false, description: 'Run gtkdoc-check tests') +option('utilities', type: 'feature', value: 'enabled', yield: true, + description: 'Build harfbuzz utils') option('benchmark', type: 'feature', value: 'disabled', description: 'Enable benchmark tests')