giscanner: Allow passing full paths to libraries with MSVC
Hi,
This MR is to fix an issue I found when attempting to generate introspection data with Meson under MSVC.
Meson will ordinarily pass either the name of the DLL, or the full path to the static library. However, in all cases, g-ir-scanner
tries to outdo Meson and add .lib
as a suffix. This is incorrect for MinGW (where it's .dll.a
) and for MSVC too if the passed library is already a static one. Also, it does not account for .dll.lib
which is the output of Rust cdylibs, like librsvg.
This MR adds the relevant extensions, and tells g-ir-scanner
not to mangle the given library path if it's absolute.