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
This commit is contained in:
Andres Freund
2022-12-06 18:56:46 -08:00
parent 9db49fc5bf
commit 5bdd0cfb91
6 changed files with 311 additions and 11 deletions

View File

@@ -172,6 +172,9 @@ option('PYTHON', type : 'array', value: ['python3', 'python'],
option('SED', type : 'string', value: 'gsed',
description: 'path to sed binary')
option('STRIP', type : 'string', value: 'strip',
description: 'path to strip binary, used for PGXS emulation')
option('TAR', type : 'string', value: 'tar',
description: 'path to tar binary')