public inbox for [email protected]  
help / color / mirror / Atom feed
From: Miłosz Bieniek <[email protected]>
To: [email protected]
Subject: [PATCH] Add `headerscheck` run_target to meson
Date: Wed, 26 Nov 2025 19:55:19 +0100
Message-ID: <CAMSWrt-trTPpq1KGptQvESCOO+x2T==qVWkCe6F3LH3O7ebYxw@mail.gmail.com> (raw)

Hi,
While reviewing a patch I noticed that we have a `make -s headerscheck` but
there is no equivalent in meson.
I prepared a small patch that adds `headerscheck` and `cpluspluscheck`
targets.

Best Regards,
Miłosz Bieniek


Attachments:

  [application/octet-stream] 0001-Add-headerscheck-run_target-to-meson.patch (993B, 3-0001-Add-headerscheck-run_target-to-meson.patch)
  download | inline diff:
From 2c5029bad0c2a5fdc621de9beb1bbbf4d532b087 Mon Sep 17 00:00:00 2001
From: moozzi <[email protected]>
Date: Wed, 26 Nov 2025 13:05:44 +0100
Subject: [PATCH] Add `headerscheck` run_target to meson

---
 meson.build | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/meson.build b/meson.build
index 6e7ddd74683..8d4839ae64b 100644
--- a/meson.build
+++ b/meson.build
@@ -3900,6 +3900,20 @@ endif
 
 
 
+###############################################################
+# headerscheck
+###############################################################
+
+run_target('headerscheck',
+  command: [meson.project_source_root() / 'src/tools/pginclude/headerscheck']
+)
+
+run_target('cpluspluscheck',
+  command: [meson.project_source_root() / 'src/tools/pginclude/headerscheck', '--cplusplus']
+)
+
+
+
 ###############################################################
 # The End, The End, My Friend
 ###############################################################
-- 
2.49.0



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: [PATCH] Add `headerscheck` run_target to meson
  In-Reply-To: <CAMSWrt-trTPpq1KGptQvESCOO+x2T==qVWkCe6F3LH3O7ebYxw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox