nak/meson: Use bindgen dependencies

These are new in meson 1.0 and lets us avoid all that manual include
directory mangling which was going to break one of these days anyway.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
Faith Ekstrand 2023-01-30 20:53:17 -06:00 committed by Marge Bot
parent e69a30cecb
commit c10aa56efb

View file

@ -18,15 +18,6 @@ libnak_deps = [
nak_bindings_rs = rust.bindgen(
input : ['nak_bindings.h'],
output : 'nak_bindings.rs',
include_directories : [
include_directories(dep_valgrind.get_pkgconfig_variable('includedir')),
inc_compiler,
inc_gallium,
inc_gallium_aux,
inc_include,
inc_nir,
inc_src,
],
c_args : [
pre_args,
],
@ -52,6 +43,7 @@ nak_bindings_rs = rust.bindgen(
'--allowlist-function', 'glsl_.*',
'--no-prepend-enum-name',
],
dependencies : libnak_deps,
)
libnak_bindings_gen = static_library(