[Mesa-dev] [PATCH v2 02/12] make: Fix test to be meson compatible
Dylan Baker
dylan at pnwbakers.com
Thu Oct 5 19:12:36 UTC 2017
Quoting Emil Velikov (2017-10-05 11:26:40)
> On 5 October 2017 at 18:12, Dylan Baker <dylan at pnwbakers.com> wrote:
> > This has the same problem as the previous commit, generated headers and
> > hardcoded paths.
> >
> Something's strange here. You already have the "generic"
>
> AM_CPPFLAGS = \
> ... \
> -I$(top_builddir)/src/mapi \
> -I$(top_srcdir)/src/mapi
>
> ... at the top. Thus you don't need the extra -I directive, nor the
> include change.
> Where is the file generated with Meson?
>
> -Emil
<builddir>/src/mapi/glapi/gen
Basically because meson generates -I arguments for you it doesn't allow you to
specify where generator outputs go, you include the object for the generator in
your executable/library sources and it does the rest. There are actually a lot
of generators in src/mapi/glapi/gen that I've pulled into odd places in the
meson build to work around this design mismatch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171005/8d2ff3a8/attachment-0001.sig>
More information about the mesa-dev
mailing list