Closed xiota closed 4 weeks ago
If you or someone creates, I would gladly add it.
Thanks. If possible, tell me how to use the meson build system, plz.
The current make files appear to do in-tree builds. Meson does out-of-tree builds only, keeping build artifacts separate from source. While Meson does support Windows and macOS, I've used it only on Linux.
From the source directory, running the following creates a new build
folder.
meson setup build
Then to compile:
meson compile -C build
Older versions of meson didn't have compile command, so ninja has to be called directly:
ninja -C build
Then to install to a new directory fakeinstall
for review or packaging:
DESTDIR="$PWD/fakeinstall" meson install -C build
The install step rebuilds if necessary, so the compile step can be skipped.
Meson automatically uses compiler flags, like CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS, etc. So they can be left for users to optimize themselves for their own computers, or leave alone if they don't care. When creating packages for installation with package managers, packaging utilities usually set compiler flags to the latest recommended defaults, according to distro.
For less complicated programs, meson can figure out what to do with the source files. More complicated programs need more setup, but should still be easier than other systems I've tried (make files, cmake, autotools).
I can build it easily as you say.
Compared with make and cmake, meson is easier to work with and automates some things. Since meson uses its own config files, it shouldn't interfere with other build systems.
If you are open to adding meson support, I can look into opening a PR. It would target Linux, since that is the OS I use.