meson: add an option to disable utilities building

Adds the missing utilities option to meson builds for parity with CMake builds
This commit is contained in:
DeadSix27 2023-04-17 12:53:49 +02:00 committed by خالد حسني (Khaled Hosny)
parent 90356eb226
commit ef6adadba9
2 changed files with 6 additions and 1 deletions

View File

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

View File

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