meson: Try finding libxvmcw via pkg-config before using find_library
authorDylan Baker <dylan@pnwbakers.com>
Thu, 26 Sep 2019 22:19:54 +0000 (15:19 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 27 Sep 2019 16:39:01 +0000 (16:39 +0000)
commit8c5c21d7e337bbaffe8d68d9abbb166a271b35cc
tree828d1cbc85b641f6c2d74a2f653870d487e8b7de
parentc5a2ccec5e9fa60bbec5e7b574877f8af4c14462
meson: Try finding libxvmcw via pkg-config before using find_library

This fixes cross compiling issues, because pkg-config is less likely to
get the wrong libs.

v2: - Fix typo in comment

Fixes: 22a817af8a89eb3c762fc3e07b443a3ce37d7416
       ("meson: build gallium xvmc state tracker")
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/939
Reviewed-by: Adam Jackson <ajax@redhat.com>
src/gallium/state_trackers/xvmc/meson.build