meson: use partial_dependency() to get include directory
authorAlexander Kanavin <alex@linutronix.de>
Mon, 18 Oct 2021 08:13:07 +0000 (10:13 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Nov 2021 14:01:29 +0000 (15:01 +0100)
commitcadd70e1825a49bae70e132b3fb763d429b43458
treeb21212ad6672b5c827c8c6c98755315dc3a8578f
parentbf6bd21f7c887ffa4591ed0cee00b234835ca2be
meson: use partial_dependency() to get include directory

Getting the variable directly from pkg-config (without
adding the sysroot prefix) is prone to host contamination
when building in sysroots as the compiler starts looking for the
headers on the host in addition to the sysroot.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
(cherry picked from commit bfa0ade9f208c5426655a8c09f633eb0984b4b01)
meson.build