astrand / xclip

Command line interface to the X11 clipboard
GNU General Public License v2.0
1.03k stars 73 forks source link

add the Meson build system #125

Open guijan opened 3 years ago

guijan commented 3 years ago

Hello, I've written Meson build definitions for xclip.

This patch appears to depend on #123 on my system, without it a build error occurs due to the missing #include. That's not a build system issue so it's in its own PR.

I've kept the new build system mostly functionally the same as the autotools-based one, I'm not aware of any lost functionality. The differences are as follows:

I think Meson is a better build system because it took me roughly 9 hours to translate the Autotools definitions into a meson.build and test the result, and this has already gained the project the following:

All of this by depending on Python, Ninja and Meson at build time.