meson: add 'tools' and 'examples' options

To optionally disable build of those.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/203>
This commit is contained in:
Tim-Philipp Müller 2020-07-25 19:09:30 +01:00 committed by GStreamer Merge Bot
parent 9f202a0a72
commit 2cd8e6d0db
2 changed files with 15 additions and 4 deletions

View file

@ -241,10 +241,14 @@ python3 = import('python').find_installation()
configinc = include_directories('.') configinc = include_directories('.')
subdir('ges') subdir('ges')
subdir('plugins') subdir('plugins')
subdir('tools') if not get_option('tools').disabled()
subdir('tools')
endif
subdir('pkgconfig') subdir('pkgconfig')
subdir('tests') subdir('tests')
subdir('examples') if not get_option('examples').disabled()
subdir('examples')
endif
subdir('docs') subdir('docs')
override_detector = ''' override_detector = '''

View file

@ -1,13 +1,20 @@
# Common feature options
option('doc', type : 'feature', value : 'auto', yield: true,
description: 'Enable documentation.')
option('examples', type : 'feature', value : 'auto', yield : true,
description : 'Build examples')
option('introspection', type : 'feature', value : 'auto', yield : true, option('introspection', type : 'feature', value : 'auto', yield : true,
description : 'Generate gobject-introspection bindings') description : 'Generate gobject-introspection bindings')
option('tests', type : 'feature', value : 'auto', yield : true, option('tests', type : 'feature', value : 'auto', yield : true,
description : 'Build and enable unit tests') description : 'Build and enable unit tests')
option('tools', type : 'feature', value : 'auto', yield : true,
description : 'Build ges-launch command line tool')
# GES options
option('pygi-overrides-dir', type : 'string', value : '', option('pygi-overrides-dir', type : 'string', value : '',
description: 'Path to pygobject overrides directory') description: 'Path to pygobject overrides directory')
option('xptv', type : 'feature', value : 'auto', option('xptv', type : 'feature', value : 'auto',
description : 'Build the deprecated xptv formater') description : 'Build the deprecated xptv formater')
option('doc', type : 'feature', value : 'auto', yield: true,
description: 'Enable documentation.')
option('python', type : 'feature', value : 'auto', yield: true, option('python', type : 'feature', value : 'auto', yield: true,
description: 'Enable python formatters.') description: 'Enable python formatters.')
option('libpython-dir', type : 'string', value : '', option('libpython-dir', type : 'string', value : '',