meson: Correct behavior of vdpau=auto
authorDylan Baker <dylan@pnwbakers.com>
Thu, 21 Jun 2018 15:28:36 +0000 (08:28 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 22 Jun 2018 16:51:11 +0000 (09:51 -0700)
commitd9a8008a93d87287b696627ea6dd01b278b6d579
tree4302df295e3c46e0416bb2eecf3c8d568be95fe7
parentca59c3906d6b416a2d44fd5ad0c39e2b9c6325d8
meson: Correct behavior of vdpau=auto

Currently if vdpau is set to auto, it will be disabled only in cases
where gallium is disabled or the host OS is not supported (mac, haiku,
windows). However on (for example) Linux if libvdpau is not installed
then the build will error because of the unmet dependency. This corrects
auto to do the right thing, and not error if libvdpau is not installed.

Fixes: 992af0a4b8224bdb4809e01c2f00d2f32546aee5
       ("meson: dedup gallium-vdpau logic")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
meson.build