Skip to content

Improve Visual Studio build files (pangomm-2-42, post Meson-fied cairomm-1-14)

Chun-wei Fan requested to merge cairomm-meson-improvements-2-42 into pangomm-2-42

Hi,

This attempts to improve the Visual Studio build experience of pangomm as cairomm recently gained support for building with Meson, namely:

  • For the NMake Makefiles, add support to link to Meson-built cairomm .lib's directly with the USE_MESON_LIBS NMake command-line option.

  • For the Meson build files, support looking for cairomm with pkg-config first on Visual Studio builds before trying to look for it manually. If either of cairomm or glibmm is found via pkg-config, we can skip looking for libsigc++, as these pkg-config files will cover that for us.

  • For the Meson build files, don't warn on warning C4275, since we know we are doing __declspec(dllimport) on dependent libraries as needed and we are pretty much tied to a single CRT, for the -mm dependencies.

  • Some cleanups on looking for the needed headers: use the has_headers: attribute in cpp_compiler.find_library(), which already exists in Meson 0.50.0.

With blessings, thank you!

Edited by Chun-wei Fan

Merge request reports