diff options
author | Dylan Baker <[email protected]> | 2017-12-12 12:22:56 -0800 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-01-11 15:40:02 -0800 |
commit | 2083a14179eb04d22feebc5751a1a145828d07cf (patch) | |
tree | 0fa3d2d540621d00faa6daf0c132aa5127f2dab0 /src/amd/common/meson.build | |
parent | 60856a7b4982aaaa4f22a002878d5d78cd63e272 (diff) |
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 <[email protected]>
Signed-off-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/amd/common/meson.build')
-rw-r--r-- | src/amd/common/meson.build | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/amd/common/meson.build b/src/amd/common/meson.build index 43a633a493a..22c13b955fa 100644 --- a/src/amd/common/meson.build +++ b/src/amd/common/meson.build @@ -52,12 +52,13 @@ amd_common_files = files( libamd_common = static_library( 'amd_common', - [amd_common_files, sid_tables_h, nir_opcodes_h], + [amd_common_files, sid_tables_h], include_directories : [ - inc_common, inc_compiler, inc_nir, inc_mesa, inc_mapi, inc_amd, + inc_common, inc_compiler, inc_mesa, inc_mapi, inc_amd, ], dependencies : [ dep_llvm, dep_thread, dep_elf, dep_libdrm_amdgpu, dep_valgrind, + idep_nir_headers, ], c_args : [c_vis_args], cpp_args : [cpp_vis_args], |