compiler: Use a meson dependency for libcompiler
authorCaio Oliveira <caio.oliveira@intel.com>
Wed, 20 Sep 2023 18:22:22 +0000 (11:22 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 22 Sep 2023 14:52:50 +0000 (14:52 +0000)
commitec835595f0ddea07cf3769bac47e83b29911d8f3
tree69422ef197e0c684844c7aa87b62fd1d768a084d
parent9442571664e5a7d6e06f098ce4ea2246e5504796
compiler: Use a meson dependency for libcompiler

That will make sure the include directories are passed on and also
make sure the generated headers are properly built before whoever code
depends on it. NIR dependency propagates that dependency too.

Since the right include directory is always propagated, we can remove
the extra "compiler/" prefix from the `#include`s in glsl_types.h.

Note: NIR has a special "header only" dependency, so include the
generated headers for compiler there too.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9843
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25314>
src/compiler/glsl/meson.build
src/compiler/glsl/tests/meson.build
src/compiler/glsl_types.h
src/compiler/meson.build
src/compiler/nir/meson.build
src/compiler/spirv/meson.build
src/microsoft/clc/meson.build
src/vulkan/runtime/meson.build