[Mesa-dev] [PATCH] docs: add documentation for building with meson
dylan at pnwbakers.com
Wed Oct 18 22:07:48 UTC 2017
Quoting Eric Engestrom (2017-10-18 14:48:49)
> 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'
> 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?
I don't think that the meson IR has an concept of default values for options,
the interpreter just passes the default value as the value if one isn't given. I
do think this is a nice feature, and I was thinking about doing it myself, once
the 0.43.1 release happens and upstream starts pulling feature requests again.
One though I had was just to save the command line options in a text file so you
could do something like:
meson build-1.0 `cat build-0.9/options.txt`
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 488 bytes
More information about the mesa-dev