Skip to content

build,meson: fix 'export_packages' in GIR setup

The 'export_packages' field in the generate_gir() command should include the name of the pkg-config package being exported, not the name of the library file.

Without this change, building GIR files depending on the one we provide here would fail as the corresponding .pc file isn't found, e.g.:

[148/150] Generating Qmi-1.0.gir with a custom command.
Package libqrtr-glib was not found in the pkg-config search path.
Perhaps you should add the directory containing `libqrtr-glib.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libqrtr-glib' found

Merge request reports