{"id":19279,"url":"https://patchwork.libcamera.org/api/patches/19279/?format=json","web_url":"https://patchwork.libcamera.org/patch/19279/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20231204212747.581968-1-nicolas@ndufresne.ca>","date":"2023-12-04T21:27:47","name":"[libcamera-devel] gstreamer: Add meson devenv support","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"2881b16e939a947e413435ced14f827ffcd772bb","submitter":{"id":30,"url":"https://patchwork.libcamera.org/api/people/30/?format=json","name":"Nicolas Dufresne","email":"nicolas@ndufresne.ca"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/19279/mbox/","series":[{"id":4100,"url":"https://patchwork.libcamera.org/api/series/4100/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4100","date":"2023-12-04T21:27:47","name":"[libcamera-devel] gstreamer: Add meson devenv support","version":1,"mbox":"https://patchwork.libcamera.org/series/4100/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/19279/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/19279/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 0529DC3226\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  4 Dec 2023 21:28:02 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 41855629D0;\n\tMon,  4 Dec 2023 22:28:01 +0100 (CET)","from madras.collabora.co.uk (madras.collabora.co.uk\n\t[46.235.227.172])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 4A66A61D9C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  4 Dec 2023 22:28:00 +0100 (CET)","from nicolas-tpx395.lan (cola.collaboradmins.com [195.201.22.229])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (4096 bits)\n\tserver-digest SHA256)\n\t(No client certificate requested) (Authenticated sender: nicolas)\n\tby madras.collabora.co.uk (Postfix) with ESMTPSA id 89D1466022D0;\n\tMon,  4 Dec 2023 21:27:59 +0000 (GMT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1701725281;\n\tbh=P7wSvul4R3nK15U70ZqFV7CBJDZqY3AcercEM4ceSfU=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:Cc:From;\n\tb=X3ne7Quy0J9IPptrAadKP7jxXAeIHW3Li8NeNasCk7y/YJSsHcwuBhV87XCC1oZQ6\n\tFemx2XBZJfFi2i4zqBE1fdwRUJLjwyGCbD940q4okq9gUjx+M4k0wqFT+4qCH4Yndy\n\tylV2zHjY7mgob0+JEyFqCN35d5itjyWPGdMDU3KyUMQU/IidY7au2oCrCju98QQcj3\n\t0KgN6vMK84L1QOXPJmbS3zTCi7pLVbe3I8eRR+nvgVKQvny8SdOLfZJi2TDIY+1sT+\n\tyYa+nYh6WGBEEGA4YeoShp+E/NoWQIWUN2CTU+7FKqiaJ8/OWyDbv30QtIbnqNNHO4\n\tAmPNzA60I9tOQ==","To":"libcamera-devel@lists.libcamera.org","Date":"Mon,  4 Dec 2023 16:27:47 -0500","Message-ID":"<20231204212747.581968-1-nicolas@ndufresne.ca>","X-Mailer":"git-send-email 2.41.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH] gstreamer: Add meson devenv support","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Nicolas Dufresne via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Nicolas Dufresne <nicolas@ndufresne.ca>","Cc":"Nicolas Dufresne <nicolas.dufresne@collabora.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"From: Nicolas Dufresne <nicolas.dufresne@collabora.com>\n\nThis change to the build system will prepend the plugin build directory\nto GST_PLUGIN_PATH environment. This makes the built plugin visible to\nGStreamer inside meson devenv enabling uninstalled testing.\n---\n src/gstreamer/meson.build | 7 +++++++\n 1 file changed, 7 insertions(+)","diff":"diff --git a/src/gstreamer/meson.build b/src/gstreamer/meson.build\nindex 20784b71..3810a15b 100644\n--- a/src/gstreamer/meson.build\n+++ b/src/gstreamer/meson.build\n@@ -46,3 +46,10 @@ libcamera_gst = shared_library('gstlibcamera',\n     install : true,\n     install_dir : '@0@/gstreamer-1.0'.format(get_option('libdir')),\n )\n+\n+# Makes the plugin visble to GStreamer inside meson devenv\n+fs = import('fs')\n+plugin_path = fs.parent(libcamera_gst.full_path())\n+env = environment()\n+env.prepend('GST_PLUGIN_PATH', fs.parent(plugin_path))\n+meson.add_devenv(env)\n","prefixes":["libcamera-devel"]}