meson: add tests option

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
Fabrice Fontaine 2020-02-23 00:09:16 +01:00
parent 792402849f
commit a269bc0bed
2 changed files with 7 additions and 1 deletions

View file

@ -10,6 +10,10 @@ option('man',
description: 'Build manpages',
type: 'boolean',
value: true)
option('tests',
description: 'Build tests',
type: 'boolean',
value: true)
option('gstreamer',
description: 'Build GStreamer plugins',
type: 'boolean',

View file

@ -7,7 +7,9 @@ subdir('modules')
if get_option('examples')
subdir('examples')
endif
subdir('tests')
if get_option('tests')
subdir('tests')
endif
if get_option('gstreamer')
subdir('gst')