From patchwork Mon Mar 23 08:19:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 26309 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 0C0FEC32F8 for ; Mon, 23 Mar 2026 08:20:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E0FB562760; Mon, 23 Mar 2026 09:20:13 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="RD6acg2k"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CD84962743 for ; Mon, 23 Mar 2026 09:20:04 +0100 (CET) Received: from pb-laptop.local (185.221.143.129.nat.pool.zt.hu [185.221.143.129]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8A56419DF; Mon, 23 Mar 2026 09:18:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1774253928; bh=oRrMHbJUfe3QXgyJbv/+omRPsmaUVw11cD8KWldNOvQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RD6acg2k0SZU12c3An9LTthVmiPl9e+SiGevd7RrwewRTK2gCgo/u4+mD6/Kd7pRA EDFc088NyMwKZMPIq65ZhfEsY5/rUKPxCaTlfXJxEOkCqcb3js+wjdYVVNcnbQyuPp 6xVAVwbGjYT5vm5g9uJ9jgP1m8k2O2UQRPX9r3Zc= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Cc: Milan Zamazal , Laurent Pinchart Subject: [PATCH v2 6/7] meson: Move egl related dependencies to `software_isp` subdir Date: Mon, 23 Mar 2026 09:19:59 +0100 Message-ID: <20260323082000.1324115-7-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260323082000.1324115-1-barnabas.pocze@ideasonboard.com> References: <20260323082000.1324115-1-barnabas.pocze@ideasonboard.com> MIME-Version: 1.0 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This way the dependencies are only added if they are actually used. Signed-off-by: Barnabás Pőcze Reviewed-by: Milan Zamazal Reviewed-by: Laurent Pinchart --- src/libcamera/meson.build | 6 ------ src/libcamera/software_isp/meson.build | 11 ++++++++++- 2 files changed, 10 insertions(+), 7 deletions(-) -- 2.53.0 diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 72b7bf02d..575408b2c 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -70,10 +70,6 @@ libcamera_deps = [] libatomic = cc.find_library('atomic', required : false) libthreads = dependency('threads') -libegl = dependency('egl', required : false) -libglesv2 = dependency('glesv2', required : false) -mesa_works = cc.check_header('EGL/egl.h', required : false, dependencies : libegl) - subdir('base') subdir('converter') subdir('ipa') @@ -182,8 +178,6 @@ libcamera_deps += [ libcamera_base_private, libcrypto, libdl, - libegl, - libglesv2, liblttng, libudev, libyaml, diff --git a/src/libcamera/software_isp/meson.build b/src/libcamera/software_isp/meson.build index 118d3f92f..cbcd3c1b3 100644 --- a/src/libcamera/software_isp/meson.build +++ b/src/libcamera/software_isp/meson.build @@ -2,12 +2,17 @@ softisp_enabled = pipelines.contains('simple') summary({'SoftISP support' : softisp_enabled}, section : 'Configuration') -summary({'SoftISP GPU acceleration' : mesa_works}, section : 'Configuration') if not softisp_enabled subdir_done() endif +libegl = dependency('egl', required : false) +libglesv2 = dependency('glesv2', required : false) +mesa_works = cc.check_header('EGL/egl.h', required : false, dependencies : libegl) + +summary({'SoftISP GPU acceleration' : mesa_works}, section : 'Configuration') + libcamera_internal_sources += files([ 'benchmark.cpp', 'debayer.cpp', @@ -22,4 +27,8 @@ if mesa_works '../egl.cpp', 'debayer_egl.cpp', ]) + libcamera_deps += [ + libegl, + libglesv2, + ] endif