It's quite common module: https://mesonbuild.com/Pkgconfig-module.html
See the example of its usage:
pkgconfig_mod = import('pkgconfig') pkgconfig_mod.generate(rz_syscall, subdirs: 'librz', version: rizin_version, name: 'rz_syscall', filebase: 'rz_syscall', libraries: pkgcfg_sanitize_libs, requires: [ 'rz_util' ], description: 'rizin foundation libraries' )
I've added some basic support for this, though the generated pc files will only work for the simplest cases. Since installing doesn't work either though, this isn't quite as high priority.
Thank you! It indeed makes the build continue, which is sufficient enough for my needs.