meson: rename options as per meson's style guide

see https://mesonbuild.com/Style-guide.html
This commit is contained in:
Rasmus Thomsen 2018-05-19 11:44:28 +02:00 committed by Wim Taymans
parent 165c441ced
commit 3bf53f5e22
3 changed files with 7 additions and 7 deletions

View file

@ -153,7 +153,7 @@ dbus_dep = dependency('dbus-1')
#optional dependencies #optional dependencies
jack_dep = dependency('jack', version : '>= 1.9.10', required : false) jack_dep = dependency('jack', version : '>= 1.9.10', required : false)
if get_option('enable_gstreamer') if get_option('gstreamer')
glib_dep = dependency('glib-2.0', version : '>=2.32.0') glib_dep = dependency('glib-2.0', version : '>=2.32.0')
gobject_dep = dependency('gobject-2.0') gobject_dep = dependency('gobject-2.0')
gmodule_dep = dependency('gmodule-2.0') gmodule_dep = dependency('gmodule-2.0')
@ -169,7 +169,7 @@ subdir('spa')
subdir('src') subdir('src')
subdir('pkgconfig') subdir('pkgconfig')
if get_option('enable_docs') if get_option('docs')
doxygen = find_program('doxygen', required : false) doxygen = find_program('doxygen', required : false)
if doxygen.found() if doxygen.found()
subdir('doc') subdir('doc')
@ -178,7 +178,7 @@ if get_option('enable_docs')
endif endif
endif endif
if get_option('enable_man') if get_option('man')
xmltoman = find_program('xmltoman', required : false) xmltoman = find_program('xmltoman', required : false)
if xmltoman.found() if xmltoman.found()
subdir('man') subdir('man')

View file

@ -1,12 +1,12 @@
option('enable_docs', option('docs',
description: 'Build documentation', description: 'Build documentation',
type: 'boolean', type: 'boolean',
value: false) value: false)
option('enable_man', option('man',
description: 'Build manpages', description: 'Build manpages',
type: 'boolean', type: 'boolean',
value: false) value: false)
option('enable_gstreamer', option('gstreamer',
description: 'Build GStreamer plugins', description: 'Build GStreamer plugins',
type: 'boolean', type: 'boolean',
value: false) value: false)

View file

@ -6,6 +6,6 @@ subdir('tools')
subdir('modules') subdir('modules')
subdir('examples') subdir('examples')
if get_option('enable_gstreamer') if get_option('gstreamer')
subdir('gst') subdir('gst')
endif endif