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/gallium/drivers/radeonsi/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/gallium/drivers/radeonsi/meson.build')
-rw-r--r-- | src/gallium/drivers/radeonsi/meson.build | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/meson.build b/src/gallium/drivers/radeonsi/meson.build index 58132bf0720..97c7a412444 100644 --- a/src/gallium/drivers/radeonsi/meson.build +++ b/src/gallium/drivers/radeonsi/meson.build @@ -70,14 +70,14 @@ si_driinfo_h = custom_target( libradeonsi = static_library( 'radeonsi', - [files_libradeonsi, si_driinfo_h, nir_opcodes_h, sid_tables_h], + [files_libradeonsi, si_driinfo_h, sid_tables_h], include_directories : [ inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common, inc_gallium_drivers, ], c_args : [c_vis_args], cpp_args : [cpp_vis_args], - dependencies : dep_llvm, + dependencies : [dep_llvm, idep_nir_headers], ) driver_radeonsi = declare_dependency( @@ -85,6 +85,6 @@ driver_radeonsi = declare_dependency( sources : si_driinfo_h, link_with : [ libradeonsi, libradeon, libradeonwinsys, libamdgpuwinsys, libamd_common, - libnir, ], + dependencies : idep_nir, ) |