flowchart TD
cr[cairo-2.dll] --> z[z-1.dll]
cr --> pn[png6-16.dll]
cr --> fc[fontconfig-1.dll]
cr --> ft[freetype-6.dll]
cr --> px[pixman-1-0.dll]
pn --> z
fc --> ft
fc --> x[xml2-2.dll]
ft --> z
ft --> pn
x --> z
For Linux cairo is a prerequisite and must be installed, e.g. for Debian-like:
sudo apt install libcairo2-bin
# or to install the dev-package (the bin package is sufficient usually)
sudo apt install libcairo2-devAs no current cairo DLLs are available, the cairo source is included as git-submodule, and can be built via cairo's meson build system.
Options for the build are listed in meson.options.
rem Run in "x64 Native Tools Command Prompt for VS 2022"
cd native\cairo
meson setup --buildtype=release --default-library=shared -Dfontconfig=enabled -Dfreetype=enabled -Dtests=disabled ..\..\artifacts\native\win-x64\cairo\build .
meson compile -C ..\..\artifacts\native\win-x64\cairo\build
meson install -C ..\..\artifacts\native\win-x64\cairo\build --destdir ..\outrem Run in "x86 Native Tools Command Prompt for VS 2022"
cd native\cairo
meson setup --buildtype=release --default-library=shared -Dfontconfig=enabled -Dfreetype=enabled -Dtests=disabled ..\..\artifacts\native\win-x86\cairo\build .
meson compile -C ..\..\artifacts\native\win-x86\cairo\build
meson install -C ..\..\artifacts\native\win-x86\cairo\build --destdir ..\outcairo must be installed, and as I don't have any experience with Macs I don't know if stubs are needed or not. If you know more, please file and issue or create a PR, that adds these stubs, etc.