Skip to content

Instantly share code, notes, and snippets.

@demotomohiro
Created September 29, 2020 20:51
Show Gist options
  • Save demotomohiro/25f4d86c5b3a90baa8c1a77806c40bd9 to your computer and use it in GitHub Desktop.
Save demotomohiro/25f4d86c5b3a90baa8c1a77806c40bd9 to your computer and use it in GitHub Desktop.
Install [Meson and ninja](https://mesonbuild.com/Getting-meson.html).
Build cairo
Disable some options to avoid compile/link errors
```
git clone --depth 1 https://gitlab.freedesktop.org/cairo/cairo.git
meson --prefix=c:\path\to\install --buildtype release -D tests=disabled -D gl-backend=disabled cairo_builddir cairo
meson compile -C cairo_builddir
meson install -C cairo_builddir
```
Build gobject-introspection:
install winflexbison
```
git clone --depth 1 https://gitlab.gnome.org/GNOME/gobject-introspection.git
meson --prefix=c:\path\to\install --buildtype release --pkg-config-path c:\path\to\install\lib\pkgconfig gobject-introspection_builddir gobject-introspection
set "PKG_CONFIG_PATH=c:\path\to\install\lib\pkgconfig"
meson compile -C gobject-introspection_builddir
meson install -C gobject-introspection_builddir
```
Build gtk
```
git clone --depth 1 https://gitlab.gnome.org/GNOME/gtk.git
# meson --prefix=c:\path\to\install --pkg-config-path c:\path\to\install\lib\pkgconfig --buildtype release -D introspection=false -Dharfbuzz:introspection=disabled gtk_builddir gtk
meson --prefix=c:\path\to\install --pkg-config-path c:\path\to\install\lib\pkgconfig --buildtype release gtk_builddir gtk
cd gtk
meson wrap promote subprojects\pango\subprojects\fribidi.wrap
meson wrap promote subprojects\pango\subprojects\harfbuzz.wrap
cd ..
meson --prefix=c:\path\to\install --pkg-config-path c:\path\to\install\lib\pkgconfig --buildtype release gtk_builddir gtk
meson compile -C gtk_builddir
meson install -C gtk_builddir
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment