From patchwork Fri Jan 30 11:32:37 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: 26056 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 1D9C9BD78E for ; Fri, 30 Jan 2026 11:32:43 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5643561FD2; Fri, 30 Jan 2026 12:32:42 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="bpkEq7jr"; 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 A15BC61F84 for ; Fri, 30 Jan 2026 12:32:40 +0100 (CET) Received: from pb-laptop.local (185.221.142.123.nat.pool.zt.hu [185.221.142.123]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0DDB573B for ; Fri, 30 Jan 2026 12:32:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1769772722; bh=2GB3O4ZBDmGyCAlz69G/eCxiUrTuBrg6GhymsnkgVdc=; h=From:To:Subject:Date:From; b=bpkEq7jrwb8H0DWr2j78OvtsRiwg+xjnkJVMpFJ5FKIxFqSmAlDK7svblHRk4zuAN bpMMEOkuDpJoXWD/Bzc1lYKXTDUTfUG+e0zOnzWFUV6XZHtFvFj44sGxVGQAA8hYhD O6vDCMhdr4bkLBs5FkP7H7mCWEx4z4GuFQQjfhvk= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [PATCH v1] meson: Add `libtiff` option to control libtiff dependency Date: Fri, 30 Jan 2026 12:32:37 +0100 Message-ID: <20260130113237.1595411-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.52.0 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" Previously it was not possible to disable libtiff usage if it was detected. Fix that by adding a meson feature option. Signed-off-by: Barnabás Pőcze --- meson_options.txt | 5 +++++ src/apps/meson.build | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/meson_options.txt b/meson_options.txt index 58cf52ad1..8ad0de118 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -62,6 +62,11 @@ option('libdw', value : 'auto', description : 'Enable libdw integration for backtrace symbolization') +option('libtiff', + type : 'feature', + value : 'auto', + description : 'Enable libtiff integration the cam and qcam applications for creating DNG files') + option('libunwind', type : 'feature', value : 'auto', diff --git a/src/apps/meson.build b/src/apps/meson.build index af632b9a7..63ef6f173 100644 --- a/src/apps/meson.build +++ b/src/apps/meson.build @@ -10,7 +10,7 @@ if not libevent.found() libevent = dependency('libevent_pthreads', required : opt_lc_compliance) endif -libtiff = dependency('libtiff-4', required : false) +libtiff = dependency('libtiff-4', required : get_option('libtiff')) subdir('common')