diff options
author | Lionel Landwerlin <[email protected]> | 2019-05-10 18:55:54 +0100 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2019-05-22 14:07:14 +0000 |
commit | cb7c9b2a9352cc73a2d3becc0427c53c8baf153a (patch) | |
tree | 28ae03b3d66c6a31edfbd1fdfcc2c1c0c3e1792b /src/vulkan/util | |
parent | 506ebf55c0446e690c2f40471fce2d4ea2f9762d (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/vulkan/util')
-rw-r--r-- | src/vulkan/util/meson.build | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vulkan/util/meson.build b/src/vulkan/util/meson.build index db09482e3a7..84a44862495 100644 --- a/src/vulkan/util/meson.build +++ b/src/vulkan/util/meson.build @@ -44,3 +44,15 @@ libvulkan_util = static_library( c_args : [c_vis_args, vulkan_wsi_args], build_by_default : false, ) + +idep_vulkan_util_headers = declare_dependency( + sources : vk_enum_to_str[1], + include_directories : include_directories('.') +) + +idep_vulkan_util = declare_dependency( + sources : vk_enum_to_str[1], + link_with : libvulkan_util, + include_directories : include_directories('.'), + dependencies : idep_vulkan_util_headers +) |