summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/meson.build
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2019-05-10 18:55:54 +0100
committerLionel Landwerlin <[email protected]>2019-05-22 14:07:14 +0000
commitcb7c9b2a9352cc73a2d3becc0427c53c8baf153a (patch)
tree28ae03b3d66c6a31edfbd1fdfcc2c1c0c3e1792b /src/intel/vulkan/meson.build
parent506ebf55c0446e690c2f40471fce2d4ea2f9762d (diff)
vulkan: fix build dependency issue with generated files
On machines with many cores, you can run into that issue : ../mesa-9999/src/vulkan/overlay-layer/overlay.cpp:42:10: fatal error: vk_enum_to_str.h: No such file or directory v2: Move declare_dependency around (Eric) Signed-off-by: Lionel Landwerlin <[email protected]> Reported-by: Jan Ziak Cc: <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/intel/vulkan/meson.build')
-rw-r--r--src/intel/vulkan/meson.build28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/intel/vulkan/meson.build b/src/intel/vulkan/meson.build
index c12040c84eb..03dbd98b5a4 100644
--- a/src/intel/vulkan/meson.build
+++ b/src/intel/vulkan/meson.build
@@ -98,14 +98,15 @@ foreach g : [['70', ['gen7_cmd_buffer.c']], ['75', ['gen7_cmd_buffer.c']],
'anv_gen@0@'.format(_gen),
[anv_gen_files, g[1], anv_entrypoints[0], anv_extensions_h],
include_directories : [
- inc_common, inc_compiler, inc_include, inc_intel, inc_vulkan_util,
- inc_vulkan_wsi,
+ inc_common, inc_compiler, inc_include, inc_intel, inc_vulkan_wsi,
],
c_args : [
c_vis_args, no_override_init_args, c_sse2_args,
'-DGEN_VERSIONx10=@0@'.format(_gen),
],
- dependencies : [dep_libdrm, dep_valgrind, idep_nir_headers, idep_genxml],
+ dependencies : [
+ dep_libdrm, dep_valgrind, idep_nir_headers, idep_genxml, idep_vulkan_util_headers,
+ ],
)
endforeach
@@ -144,6 +145,7 @@ anv_deps = [
dep_libdrm,
dep_valgrind,
idep_nir_headers,
+ idep_vulkan_util_headers,
]
anv_flags = [
c_vis_args,
@@ -183,7 +185,7 @@ libanv_common = static_library(
gen_xml_pack,
],
include_directories : [
- inc_common, inc_intel, inc_compiler, inc_include, inc_vulkan_util,
+ inc_common, inc_intel, inc_compiler, inc_include,
inc_vulkan_wsi,
],
c_args : anv_flags,
@@ -194,16 +196,15 @@ libvulkan_intel = shared_library(
'vulkan_intel',
[files('anv_gem.c'), anv_entrypoints[0], anv_extensions_h],
include_directories : [
- inc_common, inc_intel, inc_compiler, inc_include, inc_vulkan_util,
- inc_vulkan_wsi,
+ inc_common, inc_intel, inc_compiler, inc_include, inc_vulkan_wsi,
],
link_whole : [libanv_common, libanv_gen_libs],
link_with : [
libintel_compiler, libintel_common, libintel_dev, libisl, libblorp,
- libvulkan_util, libvulkan_wsi, libmesa_util,
+ libvulkan_wsi, libmesa_util,
],
dependencies : [
- dep_thread, dep_dl, dep_m, anv_deps, idep_nir, idep_genxml,
+ dep_thread, dep_dl, dep_m, anv_deps, idep_nir, idep_genxml, idep_vulkan_util
],
c_args : anv_flags,
link_args : ['-Wl,--build-id=sha1', ld_args_bsymbolic, ld_args_gc_sections],
@@ -215,16 +216,15 @@ if with_tests
'vulkan_intel_test',
[files('anv_gem_stubs.c'), anv_entrypoints[0], anv_extensions_h],
include_directories : [
- inc_common, inc_intel, inc_compiler, inc_include, inc_vulkan_util,
- inc_vulkan_wsi,
+ inc_common, inc_intel, inc_compiler, inc_include, inc_vulkan_wsi,
],
link_whole : libanv_common,
link_with : [
libanv_gen_libs, libintel_compiler, libintel_common, libintel_dev,
- libisl, libblorp, libvulkan_util, libvulkan_wsi, libmesa_util,
+ libisl, libblorp, libvulkan_wsi, libmesa_util,
],
dependencies : [
- dep_thread, dep_dl, dep_m, anv_deps, idep_nir,
+ dep_thread, dep_dl, dep_m, anv_deps, idep_nir, idep_vulkan_util
],
c_args : anv_flags,
)
@@ -239,9 +239,9 @@ if with_tests
['tests/@[email protected]'.format(t), anv_entrypoints[0], anv_extensions_h],
c_args : [ c_sse2_args ],
link_with : libvulkan_intel_test,
- dependencies : [dep_libdrm, dep_thread, dep_m, dep_valgrind],
+ dependencies : [dep_libdrm, dep_thread, dep_m, dep_valgrind, idep_vulkan_util, ],
include_directories : [
- inc_common, inc_intel, inc_compiler, inc_vulkan_util, inc_vulkan_wsi,
+ inc_common, inc_intel, inc_compiler, inc_vulkan_wsi,
],
),
suite : ['intel'],