[Mesa-dev] [PATCH] docs: add documentation for building with meson

Eric Engestrom eric.engestrom at imgtec.com
Wed Oct 18 21:48:49 UTC 2017


On Wednesday, 2017-10-18 18:45:19 +0000, Nicholas Miell wrote:
> On 10/17/2017 12:21 PM, Dylan Baker wrote:
> > +<p>
> > +To see a description of your options you can run "meson configure". This will
> > +show your meson project configuration options as well as your local
> > +configuration options. One meson option to be aware of is that meson's default
> > +build type is "debug" (-O0 -g on gcc/clang).
> > +</p>
> > +
> > +<pre>
> > +    meson configure build
> > +</pre>
> > +
> 
> There should probably be a warning here about how there's no way to export a
> build configuration and how every minor or point update of meson requires
> you to delete your build directories and reconfigure everything from
> scratch.

Agreed, the delete & reconfigure thing is really annoying, I'm hoping
this will be fixed eventually :/

As for exporting the config, I'm actually working on this area of
meson's code right now, it would be quite easy for me to add a 'dump'
feature.
I'm guessing something like autotool's `./config.status --config` that
can just be fed back to the next run of `meson` would be good?

I haven't actually yet figured out if I can only print the options that
don't have their default value, so what I can do for now is a trivial
'dump all the current values'. Would that be interesting to you?

> 
> Also how user-supplied C/C++ flags get merged in with Meson's idea of what
> the flags should be with the debug/debugoptimized/release configurations and
> if you want complete control of the build flags you should use the "plain"
> build type.


More information about the mesa-dev mailing list