meson: Add basic PGXS compatibility

Andres Freund <andres@anarazel.de>

Commit: 5bdd0cfb91036b396935fad289c627602a00130c
Author: Andres Freund <andres@anarazel.de>
Date: 2022-12-07T02:56:46Z
Releases: 16.0
meson: Add basic PGXS compatibility

Generate a Makefile.global that's complete enough for PGXS to work for some
extensions. It is likely that this compatibility layer will not suffice for
every extension and not all platforms - we can expand it over time.

This allows extensions to use a single buildsystem across all the supported
postgres versions. Once all supported PG versions support meson, we can remove
the compatibility layer.

Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/20221005200710.luvw5evhwf6clig6@awork3.anarazel.de

Files

PathChange+/−
meson.build modified +2 −6
meson_options.txt modified +3 −0
src/common/meson.build modified +1 −3
src/include/meson.build modified +8 −2
src/makefiles/meson.build added +260 −0
src/meson.build modified +37 −0

Discussion