meson-examples icon indicating copy to clipboard operation
meson-examples copied to clipboard

Print meson variables

Open Eutics opened this issue 4 years ago • 4 comments

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?

Eutics avatar Jun 17 '21 22:06 Eutics

As over a half year nobody responded, I would recommend searching such questions on internet search engines.

fossdd avatar Jul 18 '21 17:07 fossdd

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.

kstenerud avatar Jul 18 '21 17:07 kstenerud

But now a lot of large software projects are using meson, for example gstreamer/webrtc/chromium ....

lamar-studio avatar Mar 11 '22 15:03 lamar-studio

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?

eli-schwartz avatar Mar 11 '22 17:03 eli-schwartz