diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2025-04-23 10:15:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-04-23 10:36:18 -0700 |
commit | 1597b6e86e3c13438a0e469b10048e73039e8023 (patch) | |
tree | db9478f983536ef8337a64961bbd22190ad50fbd /git-gui/lib/commit.tcl | |
parent | 8e980b7f2501c4b9429394f7287757af7aef81ba (diff) |
meson: move headers definition from 'contrib/coccinelle'
The Meson build for coccinelle static analysis lists all headers to
analyse. Due to the way Meson exports variables between subdirs, this
variable is also available in the root Meson build.
An upcoming commit, will add a new check complimenting 'hdr-check' in
the Makefile. This would require the list of headers. So move the
'coccinelle_headers' to the root Meson build and rename it to 'headers',
remove the root path being appended to each header and retain that in
the coccinelle Meson build since it is specific to the coccinelle build.
Also move the 'third_party_sources' variable to the root Meson build
since it is also a dependency for the 'headers' variable. This also
makes it easier to understand as the variable is now propagated from the
top level to the bottom.
While 'headers_to_check' is only computed when we have a repository and
the 'git' executable is present, the variable itself is exposed as an
empty array. This allows dependencies in upcoming commits to simply
check for length of the array and not worry about dependencies required
to actually populate the array.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions