From 2083a14179eb04d22feebc5751a1a145828d07cf Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 12 Dec 2017 12:22:56 -0800 Subject: meson: Use dependencies for nir This creates two new internal dependencies, idep_nir_headers and idep_nir. The former encapsulates the generation of nir_opcodes.h and nir_builder_opcodes.h and adding src/compiler/nir as an include path. This ensures that any target that needs nir headers will have the includes and that the generated headers will be generated before the target is build. The second, idep_nir, includes the first and additionally links to libnir. This is intended to make it easier to avoid race conditions in the build when using nir, since the number of consumers for libnir and it's headers are quite high. Acked-by: Eric Engestrom Signed-off-by: Dylan Baker --- src/gallium/targets/xa/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/targets/xa/meson.build') diff --git a/src/gallium/targets/xa/meson.build b/src/gallium/targets/xa/meson.build index f25999d1603..8ff6486a5ac 100644 --- a/src/gallium/targets/xa/meson.build +++ b/src/gallium/targets/xa/meson.build @@ -40,7 +40,7 @@ libxatracker = shared_library( inc_common, inc_util, inc_gallium_winsys, inc_gallium_drivers, ], link_with : [ - libxa_st, libgalliumvl_stub, libgallium, libmesa_util, libnir, + libxa_st, libgalliumvl_stub, libgallium, libmesa_util, libpipe_loader_static, libws_null, libwsw, ], link_depends : xa_link_depends, -- cgit v1.2.3