diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-02-14 16:11:39 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-02-14 15:16:07 +0000 |
commit | 19ecd327dc4dea660147eb53c51b81b188db577d (patch) | |
tree | bb1bbfa25b73853801855c40598975d09f4317d3 /libmm-glib | |
parent | a5cee46ba98f17cb6f7e24240cec4cd4e3b8b631 (diff) |
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.
Diffstat (limited to 'libmm-glib')
-rw-r--r-- | libmm-glib/meson.build | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libmm-glib/meson.build b/libmm-glib/meson.build index 7b94a0be..64518439 100644 --- a/libmm-glib/meson.build +++ b/libmm-glib/meson.build @@ -127,8 +127,10 @@ sources = files( deps = [include_dep] +libname = 'mm-glib' + libmm_glib = shared_library( - 'mm-glib', + libname, version: mm_glib_version, sources: sources, include_directories: top_inc, @@ -147,7 +149,7 @@ libmm_glib_dep = declare_dependency( pkg.generate( libraries: libmm_glib, version: mm_version, - name: 'mm-glib', + name: libname, description: 'Library to control and monitor the ModemManager', subdirs: mm_glib_name, # FIXME: produced by the inhability of meson to use internal dependencies @@ -180,7 +182,7 @@ if enable_gir symbol_prefix: gir_prefix.to_lower(), extra_args: args, header: 'libmm-glib.h', - export_packages: gir_ns, + export_packages: libname, install: true, ) |