From patchwork Mon Dec 4 21:27:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dufresne X-Patchwork-Id: 19279 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 0529DC3226 for ; Mon, 4 Dec 2023 21:28:02 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 41855629D0; Mon, 4 Dec 2023 22:28:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1701725281; bh=P7wSvul4R3nK15U70ZqFV7CBJDZqY3AcercEM4ceSfU=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=X3ne7Quy0J9IPptrAadKP7jxXAeIHW3Li8NeNasCk7y/YJSsHcwuBhV87XCC1oZQ6 Femx2XBZJfFi2i4zqBE1fdwRUJLjwyGCbD940q4okq9gUjx+M4k0wqFT+4qCH4Yndy ylV2zHjY7mgob0+JEyFqCN35d5itjyWPGdMDU3KyUMQU/IidY7au2oCrCju98QQcj3 0KgN6vMK84L1QOXPJmbS3zTCi7pLVbe3I8eRR+nvgVKQvny8SdOLfZJi2TDIY+1sT+ yYa+nYh6WGBEEGA4YeoShp+E/NoWQIWUN2CTU+7FKqiaJ8/OWyDbv30QtIbnqNNHO4 AmPNzA60I9tOQ== Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4A66A61D9C for ; Mon, 4 Dec 2023 22:28:00 +0100 (CET) Received: from nicolas-tpx395.lan (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nicolas) by madras.collabora.co.uk (Postfix) with ESMTPSA id 89D1466022D0; Mon, 4 Dec 2023 21:27:59 +0000 (GMT) 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 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Nicolas Dufresne via libcamera-devel From: Nicolas Dufresne Reply-To: Nicolas Dufresne Cc: Nicolas Dufresne Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" From: Nicolas Dufresne 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. Reviewed-by: Kieran Bingham --- 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)