--- mesonbuild/modules/gnome.py.orig +++ mesonbuild/modules/gnome.py @@ -816,6 +816,13 @@ for incdir in typelib_includes: typelib_cmd += ["--includedir=" + incdir] + for target in girtargets: + if isinstance(target, build.SharedLibrary): + typelib_cmd += ["--shared-library=" + + os.path.join(state.environment.get_prefix(), + state.environment.get_shared_lib_dir(), + target.filename)] + typelib_target = self._make_typelib_target(state, typelib_output, typelib_cmd, generated_files, T.cast('T.Dict[str, T.Any]', kwargs)) self._devenv_prepend('GI_TYPELIB_PATH', os.path.join(state.environment.get_build_dir(), state.subdir))