meson: add 'tools' and 'examples' options
authorTim-Philipp Müller <tim@centricular.com>
Sat, 25 Jul 2020 18:09:30 +0000 (19:09 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 26 Jul 2020 09:42:49 +0000 (09:42 +0000)
To optionally disable build of those.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/203>

meson.build
meson_options.txt

index 035c7c1..55f2e43 100644 (file)
@@ -241,10 +241,14 @@ python3 = import('python').find_installation()
 configinc = include_directories('.')
 subdir('ges')
 subdir('plugins')
-subdir('tools')
+if not get_option('tools').disabled()
+  subdir('tools')
+endif
 subdir('pkgconfig')
 subdir('tests')
-subdir('examples')
+if not get_option('examples').disabled()
+  subdir('examples')
+endif
 subdir('docs')
 
 override_detector = '''
index 99d3577..730682e 100644 (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,
        description : 'Generate gobject-introspection bindings')
 option('tests', type : 'feature', value : 'auto', yield : true,
        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 : '',
         description: 'Path to pygobject overrides directory')
 option('xptv', type : 'feature', value : 'auto',
        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,
        description: 'Enable python formatters.')
 option('libpython-dir', type : 'string', value : '',