meson: add and use stamp files for generated headers
authorAndres Freund <andres@anarazel.de>
Mon, 11 Aug 2025 19:14:39 +0000 (15:14 -0400)
committerAndres Freund <andres@anarazel.de>
Mon, 11 Aug 2025 19:18:23 +0000 (15:18 -0400)
commit01d6832c109bcc37acb30e934b7c472334b7c291
tree8dfe8bb8343e5446f31860b448ebbdcce50d95cc
parent71ea0d6795438f95f4ee6e35867058c44b270d51
meson: add and use stamp files for generated headers

Without using stamp files, meson lists the generated headers as the dependency
for every .c file, bloating build.ninja by more than 2x. Processing all the
dependencies also increases the time to generate build.ninja.

The immediate benefit is that this makes re-configuring and clean builds a bit
faster. The main motivation however is that I have other patches that
introduce additional build targets that further would increase the size of
build.ninja, making re-configuring more noticeably slower.

Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/cgkdgvzdpinkacf4v33mky7tbmk467oda5dd4dlmucjjockxzi@xkqfvjoq4uiy
meson.build
src/backend/meson.build
src/fe_utils/meson.build
src/include/meson.build