From patchwork Mon Feb 2 11:25:08 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: 26074 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 98B37C32E7 for ; Mon, 2 Feb 2026 11:25:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0C7F461FEE; Mon, 2 Feb 2026 12:25:32 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="SJv/tsd8"; 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 C55CC61F61 for ; Mon, 2 Feb 2026 12:25:28 +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 2F9A44B3 for ; Mon, 2 Feb 2026 12:24:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1770031487; bh=kA5tHxZxl6zmVbizDd4PmNQWP+ARv1K6jYY+N+GxzVg=; h=From:To:Subject:Date:From; b=SJv/tsd8DMCw4LnLAssbbtr6Pq1MrdZgj++pfCbDFUkHiIJo5/vQivzr8QOPwgbpx hbqJ3xKR31lG0hn4/zPFsohf+49jBXbCkQZ5H1VXhV3TFAk++yaz+i3o0B+ks5HSf7 uSwvWdF7hTurhG7sk0/wxwZHFfqTW3OraB3mPG6M= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [RFC PATCH v1 0/3] meson: Add `meson.format` file Date: Mon, 2 Feb 2026 12:25:08 +0100 Message-ID: <20260202112511.640320-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" Since 1.5.0 the `format` subcommand is provided by meson for formatting build files. So I propose to find a suitable set of options, reformat all files, and then add it to checkstyle.py. The reformatting of everything is not done here, but it is somewhat significant with the proposed settings: $ meson format --recursive --inplace $ git diff --stat [...] 54 files changed, 1420 insertions(+), 936 deletions(-) Barnabás Pőcze (3): meson: Add `meson.format` file utils: checkstyle.py: Make custom dependency checks possible utils: checkstyle.py: Add `MesonFormatter` meson.format | 2 ++ utils/checkstyle.py | 42 +++++++++++++++++++++++++++++++++++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 meson.format --- 2.52.0