I went to mesonbuild.org and it doesn't match the description (some sort of betting site? I didn't stick around ...), and a search turned up: https://mesonbuild.com/. - Source: Hacker News / 6 months ago
Came here to post the same. The answer for How to build software? is Meson[1] for C and C++ and also other languages. Works well on Windows and Mac, too. I’ve written a small Makefile to learn the basic and backgrounds. Make is fine. But the next high-level would have been Autotools, which is an intimidating and weird set of tools. Most new stuff written in C/C++ use now Meson and it feels sane. [1]... - Source: Hacker News / 7 months ago
If you are very fortunate, you'll be able to choose something else. I like meson myself: it looks a bit like python, it's popular, small, simple, well-documented, easy to install and update, and it works well everywhere. Source: 8 months ago
I suggest changing the build tool. Meson improved C and C++ a lot: https://mesonbuild.com/ The dependency declaration and auto-detection is nice. But the hidden extra is WrapDB, built-in package management (if wanted):- Source: Hacker News / 8 months agohttps://mesonbuild.com/Wrap-dependency-system-manual.html.
> C's only REAL problem (in my opinion) which is the lack of dependency management. Most everything else can be done with a makefile and a half decent editor. Care to hear about our lord and saviour Meson? Both of your quoted problems are mutually incompatible: dependency management isn't the job of the compiler, it's a job for the build or host system. If you want to keep writing makefiles, be prepared to write... - Source: Hacker News / 9 months ago
Other people going down this route seem to end up writing cmake replacements instead. I'm thinking of something like meson here except that meson never intended to transpile to cmake. Source: 10 months ago
Meson is probably the closest we'll ever get to such a thing, it's kinda declarative and has WrapDB as a dependency repository. Source: 11 months ago
Historically when you're building software you need to install it before you can run it. A while back Meson added support for development environments (aka devenv's). These allow us to run pidgin3 and finch3 from the build directory without installing, which saves a TON of development time! - Source: dev.to / almost 1 year ago
That's basically just Meson; it even has support for pulling in cmake projects. Source: over 1 year ago
This post will focus on building this same code using Meson. Meson focuses on simplicity, is a build system generator, but has a concept of back-ends where it can generate whatever the back-end defines. Together with the backend creates a featureful build system. Currently, the default back-end is the fabulous ninja on the Linux platform. Ninja is a command runner that is extremely fast compared to something like... - Source: dev.to / over 1 year ago
CMake is unfortunately the current de-facto standard so knowing at least the basics will be necessary at some point. However especially for your personal projects you can also just use one of the more modern and sane alternatives, for example Meson. Source: over 1 year ago
Zig's potential is that it is pretty easy to write cross-platform code with it. Normally writing cross-platform code involves using a cross-compiler setup where you write code that targets another platform that's different than your host system. It requires using compilers that have ABIs of the target system, which is not something many have readily available. Sometimes you're often left having to do this yourself... - Source: dev.to / over 1 year ago
As a comparative example, https://mesonbuild.com includes builtin functionality to generate a pkg-config file, with a global setting to select whether to use relocatable paths (necessary because on Linux when installed in /usr it is bad to use ${pcfiledir}/../../). Source: over 1 year ago
To build any and all of these without affecting your source directory. I usually wrap all the useful configurations in a Makefile-like shell script. [1]: https://mesonbuild.com/. - Source: Hacker News / over 1 year ago
Well first, you probably want some sort of build system. It looks like you're on linux - I recommend Meson build (https://mesonbuild.com/) - it plays really well with small projects like this. But more importantly, it will create compile_commands.json which VSCode can use for autocomplete. Source: over 1 year ago
The current de-facto standard build system for C++ is CMake so in theory if you were to write a library then most people would be able to consume it if you use that and at some point you will encounter it so knowing a bit about it is useful. However CMake also has several downsides, the major one being the terrible, ugly, and clunky shit syntax. The tutorials/documentation situation is also not really good,... Source: over 1 year ago
And wonder which library that would be? (I’m not too familiar with debugging the meson build system.). Source: over 1 year ago
And finally there's other build systems like Meson which are basically like CMake just in much nicer. I recommend you use this but at the very least use CMake, writing your own scripts or makefiles is just no. Source: almost 2 years ago
After using cmake for a few years, experiencing its strengths and weaknesses, I'm just not convinced there isn't a simpler way. A few days of research and I've settled on doing next project with https://mesonbuild.com/. Source: almost 2 years ago
I would recommend against CMake and in favor of Meson. It is just much more approachable. And the documentation way better: https://mesonbuild.com/. Source: almost 2 years ago
XMake is another one I've been keeping an eye on and also uses Lua. Meson also looks neat, but I'm not sure with it using Python. Source: almost 2 years ago
Do you know an article comparing Meson to other products?
Suggest a link to a post with product alternatives.
This is an informative page about Meson. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.