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>
This commit is contained in:
Caio Oliveira
2023-09-20 11:22:22 -07:00
committed by Marge Bot
parent 9442571664
commit ec835595f0
8 changed files with 20 additions and 17 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ if dep_dxheaders.found() and host_machine.system() == 'windows' and with_tests
['clc_compiler_test.cpp', 'compute_test.cpp'],
link_with : [libclc_compiler],
dependencies : [idep_gtest, idep_mesautil, idep_libdxil_compiler, dep_dxheaders,
dep_spirv_tools],
include_directories : [inc_include, inc_src, inc_compiler, inc_spirv],
dep_spirv_tools, idep_compiler],
include_directories : [inc_include, inc_src, inc_spirv],
)
if build_machine.system() == 'windows'