Experiment: compiling Wayland and Weston with Meson
Jussi Pakkanen
jpakkane at gmail.com
Sat Feb 21 13:16:10 PST 2015
Hi all
I'm working on a new build system called Meson. As part of development I
take open source projects and rewrite their build systems to ensure it
fulfils real world requirement. This time I took Wayland and Weston.
The patches are attached to this message for anyone to try them out. They
apply against git trunk and are compiled with the following steps. First
Wayland:
mkdir build; cd build
PKG_CONFIG_PATH=... meson --prefix=/your/install/root
ninja
[ninja test]
ninja install
Then do Weston:
mkdir build; cd build
PKG_CONFIG_PATH=... PATH=... LD_LIBRARY_PATH=.. meson ..
ninja
[ninja test]
Wayland compiles and installs fully apart from Doxygen. Weston builds only
choice bits, the basic library, some demo clients and some unit tests.
Performance-wise the configuration step takes about 13 seconds for both
when using Autotools and less than a second for Meson. Compilation times
are roughly the same. Autotools build definitions are 21 kilobytes for
Wayland and 54 kilobytes for Weston. Meson takes 10k and 20k, respectively.
(Though note that they do not do everything that the autotools-ones do.)
For more information, just go to the github project page:
https://github.com/jpakkane/meson
The presentation "Making build systems not suck" from LCA2015 is a good
overview of Meson: https://www.youtube.com/watch?v=KPi0AuVpxLI
That's about it. I hope you find it interesting,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150221/263b4de0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wayland-meson.patch
Type: application/octet-stream
Size: 10431 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150221/263b4de0/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: weston-meson.patch
Type: application/octet-stream
Size: 19720 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150221/263b4de0/attachment-0003.obj>
More information about the wayland-devel
mailing list