kvazaar icon indicating copy to clipboard operation
kvazaar copied to clipboard

feature: use (or add ?) meson as build system

Open vtorri opened this issue 3 years ago • 6 comments

compared to autotools, meson build system is faster, as a simpler and better syntax (close to the python one).

vtorri avatar Dec 22 '21 08:12 vtorri

Changing the build system of an already used project is always a bit hard decision since all the users will also have to adapt, and we don't want to add another build system for long term support (Now there's the autotools and visual studio project files).

There has been also discussions about using CMake, since it's also used by other video encoder projects so the support in places where Kvazaar is used should be there. I don't actually have any idea how widely meson is used..?

Anyway, good to hear opinions about this! =)

fador avatar Dec 22 '21 08:12 fador

look at the right column there : https://archlinux.org/packages/extra/any/meson/

for example, all the freedesktop projects, gtk, gnome and gstreamer are using it

compared, to cmake, same speed, but meson has a nicer syntax.

vtorri avatar Dec 22 '21 09:12 vtorri

Either meson or cmake should let you drop the visual studio project files in addition to considering to phase out autotools.

For the record, VLC has ported some components to meson and has WIP stuff or wishlist tickets to port quite a bit of the rest. My outsider perspective is I think they want to migrate everything to meson. mpv recently added meson support with the intention of phasing out waf support. gstreamer as mentioned above moved to meson.

eli-schwartz avatar Dec 23 '21 04:12 eli-schwartz

with the meson .pc file generator, no problem with all the issues there is in issues these days

@fador @Jovasa I would be glad to work on a meson port if you are interested

vtorri avatar Feb 19 '24 09:02 vtorri

Thanks, but considering that the point of adopting CMake was to eventually reduce the amount of maintained build systems to a single one, I don't want to add meson support. CMake was chosen, because 1), while we are not experts with it, at least we have some experience with it, and 2) Visual Studio has native support for CMake.

Jovasa avatar Feb 19 '24 10:02 Jovasa

meson can also create Visual Studio solutions (i use this feature), but feel free to close the issue if you want to

vtorri avatar Feb 19 '24 10:02 vtorri