meson: Use dependency.partial_dependency()
authorQuentin Glidic <sardemff7+git@sardemff7.net>
Thu, 23 Apr 2020 08:47:05 +0000 (10:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 06:58:32 +0000 (06:58 +0000)
commit00f5ea9fdc8f5a8d460767cfa8a10639646fb665
treeaf6003077050e71f6fc9b5b8110c12aada5d728d
parent7aaa0e59086fa2bf9c5fa7db2774cb2aa32f95b9
meson: Use dependency.partial_dependency()

It avoids calling pkg-config which was searched for in a wrong way, thus
breaking setup where unprefixed pkg-config was banned (e.g. on Exherbo).

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Fixes: 53f9131205a63fa8b282ab2a7e96c48209447da0
       ("meson: fix getting cflags from pkg-config")

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4701>
meson.build