[ANNOUNCEMENT] Weston builds with Meson, grace period for autotools

Jan Engelhardt jengelh at inai.de
Fri Dec 14 14:16:29 UTC 2018


On Wednesday 2018-12-12 18:16, Pekka Paalanen wrote:
>
>here is an early Christmas / NewYear present / bomb (take your pick). I just
>merged https://gitlab.freedesktop.org/wayland/weston/merge_requests/8 which
>adds Meson build system to Weston.
>
>Most build options are equivalent to their autoconf counterparts, but some
>have been redesigned, hopefully in a more obvious way.
>
>Most options do not have an auto setting, and everything defaults
>to enabled [...]

Not convinced I like that.

[    5s] Dependency pangocairo found: NO (tried pkgconfig)
[    5s] clients/meson.build:205:0: ERROR:  Dependency "pangocairo" not found, tried pkgconfig

Ok, so let's see, what option do I need to disable pangocairo... of course it's
not documented, so all that's left is a grep. Easy enough.

15:11 a4:../Wayland/weston > grep -r pangocairo
weston/clients/editor.c:#include <pango/pangocairo.h>
weston/clients/meson.build:             'add_deps': [ dependency('pangocairo') ]
weston/shared/meson.build:dep_pangocairo = dependency('pangocairo', required: false)
weston/shared/meson.build:if dep_pango.found() and dep_pangocairo.found() and dep_glib.found()
weston/shared/meson.build:      deps_cairo_shared += [ dep_pango, dep_pangocairo, dep_glib ]

[    3s] + /usr/bin/meson --buildtype=plain --prefix=/usr --libdir=/usr/lib64
--libexecdir=/usr/lib --bindir=/usr/bin --sbindir=/usr/sbin
--includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man
--infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc
--localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload
--auto-features=enabled . build -Ddemo-clients=false -Dremoting=false
-Dsimple-clients=

It still wants pangocairo -- and that's the point where I'd get frustrated.
(because shared/, unlike clients/, seems to have it marked as optional already AFAICT)


More information about the wayland-devel mailing list