kraid: Fix out-of-tree build issue

Rust bindgen creates include dependencies that are relative to the
project root, that works perfectly if the build root is inside of the
project root, but breaks when it's a separate directory

Signed-off-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42189>
This commit is contained in:
Lorenzo Rossi 2026-06-10 19:10:50 +02:00 committed by Marge Bot
parent 40d4cf7a70
commit 0675ce49c5

View file

@ -55,6 +55,9 @@ _libkraid_binding_wrappers = static_library(
'kraid_binding_wrappers',
['bindings.h', _kraid_bindings_rs[1]],
gnu_symbol_visibility : 'hidden',
include_directories : [
fs.relative_to(meson.project_build_root(), meson.current_source_dir()),
],
c_args : [
pre_args,
cc.get_supported_arguments('-Wno-missing-prototypes'),