[libcamera-devel] [PATCH] gstreamer: Add meson devenv support
Nicolas Dufresne
nicolas at ndufresne.ca
Mon Dec 4 22:27:47 CET 2023
From: Nicolas Dufresne <nicolas.dufresne at collabora.com>
This change to the build system will prepend the plugin build directory
to GST_PLUGIN_PATH environment. This makes the built plugin visible to
GStreamer inside meson devenv enabling uninstalled testing.
---
src/gstreamer/meson.build | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/gstreamer/meson.build b/src/gstreamer/meson.build
index 20784b71..3810a15b 100644
--- a/src/gstreamer/meson.build
+++ b/src/gstreamer/meson.build
@@ -46,3 +46,10 @@ libcamera_gst = shared_library('gstlibcamera',
install : true,
install_dir : '@0@/gstreamer-1.0'.format(get_option('libdir')),
)
+
+# Makes the plugin visble to GStreamer inside meson devenv
+fs = import('fs')
+plugin_path = fs.parent(libcamera_gst.full_path())
+env = environment()
+env.prepend('GST_PLUGIN_PATH', fs.parent(plugin_path))
+meson.add_devenv(env)
--
2.41.0
More information about the libcamera-devel
mailing list