Skip to content

Make the Meson build files work for Visual Studio builds

Chun-wei Fan requested to merge fanc999/pixman:meson.msvc into master

Hi,

This updates the Meson build files as well as the code so that we can build pixman with Visual Studio 2008 and later using Meson.

The main points of the changes here:

  • Update the SIMD intrinsics checks so that they can be detected, built and used for Visual Studio builds. Caveats here include that we are unable to build the SSSE3 code on Visual Studio 2008 x64 builds (compiler crashes due to compiler issue) and we must use the compatibility/emulated intrinsics for MMX for all x64 builds.

  • Define a new macro so that we can use compiler directives to build pixman as a DLL on Visual Studio (and clang-cl) builds.

  • Update the build files (and in a minor way, the code), so that the test programs and the GTK-2.x-based demo program will build and run. This means that for now, on Visual Studio builds, the thread-test.c test program is currently not built if an implementation of PThreads is not found.

This closes issue #32 (closed)

With blessings, thank you!

Edited by Chun-wei Fan

Merge request reports