From 1cbffebdf6baad8b76bcd435c46012d747aa4951 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Sun, 18 Dec 2022 11:12:51 +0100 Subject: [PATCH] meson: Add option to use gstreamer debugging API gst_debug_bin_to_dot_data() can only be used if gstreamer has been compiled with debugging features enabled. --- meson.build | 4 ++++ meson_options.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/meson.build b/meson.build index 58e3441..87bfe14 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')