Skip to content

meson: Fix fallout on Visual Studio after !938

Chun-wei Fan requested to merge fix-meson-pc-cmake into main

Hi,

Sadly, the updates in !938 (merged) broke some things for Visual Studio builds...

This attempts to fix the Meson build on Visual Studio-like compilers, by:

  • Correcting how .pc files are generated when libxml2 and/or FreeType is found via CMake.
  • Fix running query-rustc-native-libs.py on Windows (must specify a temporary output file for querying the Windows platform libs)
  • Fix running on Python 3.7.x on Windows, as the minimal required Meson version still supports Python 3.7.x.
  • Fix running on Python 3.8.x.

With blessings, thank you!

Edited by Chun-wei Fan

Merge request reports