[Mesa-dev] [PATCH v4 02/12] meson: add libswdri and libswkmsdri to link_with unconditionally
Emil Velikov
emil.l.velikov at gmail.com
Thu Feb 15 17:37:01 UTC 2018
On 12 February 2018 at 19:27, Dylan Baker <dylan at pnwbakers.com> wrote:
> Fixes: 6b4c7047d571 ("meson: build gallium nine state_tracker")
> Signed-off-by: Dylan Baker <dylan.c.baker at intel.com>
> ---
> src/gallium/targets/d3dadapter9/meson.build | 13 +++----------
> 1 file changed, 3 insertions(+), 10 deletions(-)
>
> diff --git a/src/gallium/targets/d3dadapter9/meson.build b/src/gallium/targets/d3dadapter9/meson.build
> index 5476e80..f1b68fd 100644
> --- a/src/gallium/targets/d3dadapter9/meson.build
> +++ b/src/gallium/targets/d3dadapter9/meson.build
> @@ -1,4 +1,5 @@
> # Copyright © 2017 Dylan Baker
> +# Copyright © 2018 Intel Corporation
>
> # Permission is hereby granted, free of charge, to any person obtaining a copy
> # of this software and associated documentation files (the "Software"), to deal
> @@ -31,20 +32,12 @@ gallium_nine_c_args = [
> ]
> gallium_nine_ld_args = []
> gallium_nine_link_depends = []
> -gallium_nine_link_with = []
>
> if with_ld_version_script
> gallium_nine_ld_args += ['-Wl,--version-script', join_paths(meson.current_source_dir(), 'd3dadapter9.sym')]
> gallium_nine_link_depends += files('d3dadapter9.sym')
> endif
>
> -if with_dri
> - gallium_nine_link_with += libswdri
> -endif
> -if with_gallium_drisw_kms
> - gallium_nine_link_with += libswkmsdri
> -endif
> -
> libgallium_nine = shared_library(
> 'd3dadapter9',
> [files('description.c', 'getproc.c', 'drm.c'), xmlpool_options_h],
> @@ -60,8 +53,8 @@ libgallium_nine = shared_library(
> link_depends : gallium_nine_link_depends,
> link_with : [
> libgalliumvl_stub, libgallium, libnine_st, libmesa_util, libddebug,
> - librbug, libtrace, libpipe_loader_static, libws_null, libwsw,
> - gallium_nine_link_with,
> + librbug, libtrace, libpipe_loader_static, libws_null, libwsw, libswdi,
> + libswkmsdri,
I hope you build tested the series with and w/o gallium swrast - that
should cover most of the cases.
With the s/swdi/swdri/ typo fixed the series is
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
For the future - one could even fold the link_with libraries into a
list and reuse across targets.
There's two instances vl stubbed and full blown ones.
-Emil
More information about the mesa-dev
mailing list