[Mesa-dev] [PATCH 1/5] meson: Don't compile pipe loader with dri support when not using dri

Eric Engestrom eric.engestrom at intel.com
Tue Sep 18 18:07:57 UTC 2018


On Tuesday, 2018-09-18 19:02:55 +0100, Eric Engestrom wrote:
> On Tuesday, 2018-09-18 09:13:00 -0700, Dylan Baker wrote:
> > Corrects building glx as gallium-xlib without any dri targets.
> > 
> > Fixes: 66c94b9313a697ce8f2b222f4ba353035e4b8726
> >        ("meson: build gallium winsys for dri, null, and wrapper")
> 
> Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>
> 
> > ---
> >  src/gallium/auxiliary/pipe-loader/meson.build | 7 +++++--
> >  1 file changed, 5 insertions(+), 2 deletions(-)
> > 
> > diff --git a/src/gallium/auxiliary/pipe-loader/meson.build b/src/gallium/auxiliary/pipe-loader/meson.build
> > index 32e8188c68b..277a68057b9 100644
> > --- a/src/gallium/auxiliary/pipe-loader/meson.build
> > +++ b/src/gallium/auxiliary/pipe-loader/meson.build
> > @@ -31,6 +31,9 @@ libpipe_loader_defines = []
> >  if dep_libdrm.found()
> >    files_pipe_loader += files('pipe_loader_drm.c')
> >  endif
> > +if with_dri
> > +  libpipe_loader_defines += '-DHAVE_PIPE_LOADER_DRI'
> > +endif
> >  if with_gallium_drisw_kms
> >    libpipe_loader_defines += '-DHAVE_PIPE_LOADER_KMS'
> >  endif
> > @@ -43,7 +46,7 @@ libpipe_loader_static = static_library(
> >      inc_gallium_winsys,
> >    ],
> >    c_args : [
> > -    c_vis_args, '-DHAVE_PIPE_LOADER_DRI', '-DGALLIUM_STATIC_TARGETS=1',
> > +    c_vis_args,'-DGALLIUM_STATIC_TARGETS=1',

Actually, missing space here ^

> >      libpipe_loader_defines,
> >    ],
> >    link_with : [libloader, libxmlconfig],
> > @@ -59,7 +62,7 @@ libpipe_loader_dynamic = static_library(
> >      inc_gallium_winsys,
> >    ],
> >    c_args : [
> > -    c_vis_args, libpipe_loader_defines, '-DHAVE_PIPE_LOADER_DRI',
> > +    c_vis_args, libpipe_loader_defines,
> >      '-DPIPE_SEARCH_DIR="@0@"'.format(
> >        join_paths(get_option('prefix'), get_option('libdir'), 'gallium-pipe')
> >      )
> > -- 
> > 2.19.0
> > 
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list