[Mesa-dev] [PATCH v3 2/9] meson: link dri3 xcb libs into vlwinsys instead of into each target

Emil Velikov emil.l.velikov at gmail.com
Thu Feb 8 23:03:37 UTC 2018


On 2 February 2018 at 19:30, Dylan Baker <dylan at pnwbakers.com> wrote:
> This makes the dependencies easier to manage, since each media target
> doesn't need to worry about linking to half a dozen libraries.
>
> Fixes: b1b65397d0c4978e3 ("meson: Build gallium auxiliary")
> Signed-off-by: Dylan Baker <dylan.c.baker at intel.com>
> ---
>  src/gallium/auxiliary/meson.build            | 7 ++++++-
>  src/gallium/targets/omx-bellagio/meson.build | 5 +----
>  src/gallium/targets/va/meson.build           | 6 +-----
>  src/gallium/targets/vdpau/meson.build        | 3 +--
>  src/gallium/targets/xa/meson.build           | 3 +--
>  src/gallium/targets/xvmc/meson.build         | 5 +----
>  6 files changed, 11 insertions(+), 18 deletions(-)
>
> diff --git a/src/gallium/auxiliary/meson.build b/src/gallium/auxiliary/meson.build
> index 6f1542d..5908f9c 100644
> --- a/src/gallium/auxiliary/meson.build
> +++ b/src/gallium/auxiliary/meson.build
> @@ -452,10 +452,15 @@ files_libgalliumvl = files(
>    'vl/vl_zscan.h',
>  )
>
> +vlwinsys_deps = []
>  files_libgalliumvlwinsys = files('vl/vl_winsys.h')
>  if with_dri2
>    files_libgalliumvlwinsys += files('vl/vl_winsys_dri.c')
>    if with_dri3
> +    vlwinsys_deps += [
> +      dep_xcb_sync, dep_xcb_present, dep_xshmfence, dep_xcb_xfixes,
> +      dep_xcb_dri3,
> +    ]
Nice, I just suggested that in the previous patch. Perhaps you can
flip their order?
>From a quick look with_dri2/with_dri3 do not honour platform_x11.

-Emil


More information about the mesa-dev mailing list