If you are thinking about distributing your
PostgreSQL extension modules, setting up a
portable build system for them can be fairly difficult. Therefore
the PostgreSQL installation provides a build
infrastructure for extensions, called PGXS
(Section 36.19) and
its meson counterpart postgresql-extension.pc
(Section 36.20).