build: Fix up introspection builds on MSVC-style builds when default_library='both'
Hi,
This attempts to fix builds of introspection builds on Visual Studio-style builds when we build both a static and shared version of the librsvg library, as:
- The shared library target
rsvg-gir
does not produce a.lib
file, and the resultingrsvg-gir.dll
is not installed (it's going to be looked for by libgirepository when requesting theRsvg-2.0.typelib
), so we use the shared library target of librsvg that we already will build. This might also be true for MinGW/mingw-w64 builds as well, but I am not knowledgeable enough in that toolchain to say anything about it.
Also, we disallow building introspection files for static-only builds as introspection on Windows run through the built .lib
file to find what DLL the .lib
file links to, and as far as I understand, introspection builds are not supported on static Windows builds of libraries.
With blessings, thank you!