For linux/bsd the build host needs to install following:
libxkbcommon-dev
libwayland-dev
libxrandr-dev
libxi-dev
libdbus-1-dev
libxtst-dev
libegl-dev
python3-setuptools
libxkbcommon-devel
wayland-devel
libXrandr-devel
libXi-devel
libXtst-devel
# Mac
Install the XCode command line tools with
xcode-select --install
Then create a python3 virtual environment and activate it with
python3 -m venv venv . venv/bin/activate
Next, upgrade pip and install meson and mercurial.
pip install -U pip pip install -U meson mercurial
We also need to download and install ninja
curl
Now we need to compile a static version of pkg-config and install
it into our virtual environment's bin directory.
curl --output pkg-config-0.29.2 https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz tar zxf pkg-config-0.29.2 cd pkg-config-0.29.2 ./configure --with-internal-glib --enable-static make cp pkg-config ../venv/bin/
# Linux
meson build -Datk:introspection=false -Dlibrsvg:gtk3=false -Dgtk3:wayland_backend=false -Dgtk3:introspection=false
# Mac
meson -Dx11_backend=false -Dwayland_backend=false -Dlibrsvg:gtk3=false -Datk:introspection=false build