Skip to content

Fix building tests on Windows

Chun-wei Fan requested to merge fanc999/cairomm:fix-tests-windows into master

Hi,

This attempts to improve on how tests are built, particularly on Windows (i.e. issue #21 (closed)), by:

  • Fixing test-font-face.cc as it also requires a source update like commit 715d9dd9 in the Windows bits.
  • Fix building tests where we have FreeType (CAIRO_HAVE_FT_FONT) but have no FontConfig (CAIRO_HAVE_FC_FONT). We also allow building the tests on Windows even if FontConfig is not found (as we want to test the Windows bits).
  • Port the Boost::Test code to use BOOST_AUTO_TEST_SUITE, to allow easier building and running against dynamic builds of Boost::Test.
  • Update the NMake Makefiles and Meson build files to enable the use of BOOST_AUTO_TEST_SUITE, and give the option to allow using dynamic builds of Boost::Test.

With blessings, thank you!

Merge request reports