diff --git a/meson.build b/meson.build index 7c386bd..36953ef 100644 --- a/meson.build +++ b/meson.build @@ -63,6 +63,10 @@ config_data.set_quoted('PACKAGE_URL', calls_homepage) config_data.set_quoted('PACKAGE_VERSION', calls_version) config_data.set('PACKAGE_URL_RAW', calls_homepage) +gst_debug = get_option('gst_debug') +config_data.set('CALLS_GST_DEBUG', gst_debug, description: 'Use GStreamer debugging API') + + run_data = configuration_data() run_data.set('ABS_BUILDDIR', meson.current_build_dir()) run_data.set('ABS_SRCDIR', meson.current_source_dir()) diff --git a/meson_options.txt b/meson_options.txt index 141ed30..264489c 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -9,3 +9,7 @@ option('tests', option('manpages', type: 'boolean', value: true, description: 'Whether to generate man pages') + +option('gst_debug', + type: 'boolean', value: true, + description: 'Whether to use gstreamers debugging API')