meson-examples
meson-examples copied to clipboard
Print meson variables
I have a simple goal: to print out values of meson variables. I can print a string using the message function, but have found no way to print out the value of a variable. Can you help?
As over a half year nobody responded, I would recommend searching such questions on internet search engines.
I've largely abandoned build systems like meson and cmake... they're just too infuriatingly obtuse, obscure, and have bad defaults. I had high hopes for meson, but have since given up and gone back to makefiles.
But now a lot of large software projects are using meson, for example gstreamer/webrtc/chromium ....
I don't really understand the question?
I can print a string using the message function, but have found no way to print out the value of a variable.
You can assign a string to a variable, and use that variable anywhere that a string is expected. That includes passing it to the message function. So, why would this not work?