meson: define empty variables for libswdri and libswkmsdri
authorDylan Baker <dylan@pnwbakers.com>
Mon, 12 Feb 2018 18:46:06 +0000 (10:46 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 15 Feb 2018 18:35:23 +0000 (10:35 -0800)
commitd672084ba29a64f5ec8c9cd23d4b77c0efa05693
treeb0de243249e09efd842345b10ce53a9885b98ba4
parent7d0e342af2221fb1fabc490b240a821ecbab7b6a
meson: define empty variables for libswdri and libswkmsdri

This allows these variables to unconditionally included in `link_with`
lists, even if they're not used. This allows deleting duplicated logic
in nearly every gallium target implemented in meson today. This also
removes the now useless `build_by_default` flag from swdri and swkmsdri.

v4: - add this patch

Fixes: 66c94b9313a697ce8f2b222f4ba353035e4b8726
       ("meson: build gallium winsys for dri, null, and wrapper")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Acked-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/meson.build
src/gallium/winsys/sw/dri/meson.build
src/gallium/winsys/sw/kms-dri/meson.build