Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.88 KB

File metadata and controls

67 lines (45 loc) · 1.88 KB

Native Build

cairo

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
Loading

Linux

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-dev

Windows

As 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.

x64

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 ..\out

x86

rem 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 ..\out

Mac OS X

cairo 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.