[Mesa-dev] Lets talk about autotools

Dylan Baker dylan at pnwbakers.com
Mon Nov 19 19:58:35 UTC 2018


Quoting Gert Wollny (2018-11-18 02:56:00)
> Am Freitag, den 16.11.2018, 20:04 -0800 schrieb Dylan Baker:
> > 
> > Is there anything else we're missing in meson to be able to drop
> > autotools?
> 
> One thing that I notes is that it seems to be impossible to run the
> test suite for just one subdirectory because the only way to run the
> build is from the binary root directory. With autotools, when I do some
> work on a sub-module (like I did with mesa/st) I can just go there and
> run make check on the few tests that are there where I actually change
> code, with meson/ninja this doesn't seem to be possible and I have to
> either run the  full test suite, or run the test executables manually. 
> 
> One workaround I found on stack overflow [1] would be to give the
> test suites in these subdirectories different names so that one can
> then run e.g. 'ninja test.mesa.st' (the example there is using cmake as
> a basis to create the build.ninja file though). 
> 
> Another think I noted  - and I'm not sure  whether this is a feature or
> a bug - is that if CFLAG or CXXFLAGS are set in the environment, then
> it seems that the flags that should be added by the buildtype are
> ignored (Usually it turns out that -DDEBUG is missing, even though I
> selected debug or debugoptimized as build type).

That seems bad, I'll look into that very soon.

Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181119/0c7ee0cd/attachment.sig>


More information about the mesa-dev mailing list