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')