summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-16 13:54:26 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-16 13:54:26 +0300
commit4b1559a81fe904d66c23d59946ab8b5a2cb3614f (patch)
tree466c19d6bcdb7ab894b10eb5e6852570b4ffa2d0
parent6f017eb4c18ea53cbc2782df10e078f5b939e87c (diff)
Give the shared-library tests the Vulkan headers
yasl/vulkan.h includes <vulkan/vulkan.h>. The C++ API test links the shared library through shared_dep, which had only yasl's include path. On macOS, Homebrew installs the Vulkan headers outside the default search path, so the test did not compile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rw-r--r--tests/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 4a0f492..c32cfc6 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,6 +1,8 @@
python = find_program('python3', native: true)
+# yasl/vulkan.h includes <vulkan/vulkan.h>, so the header path must come with the library.
shared_dep = declare_dependency(link_with: yasl_lib.get_shared_lib(),
- include_directories: include_directories('../include'))
+ include_directories: include_directories('../include'),
+ dependencies: has_vulkan ? [vulkan_dep] : [])
foreach kind : ['static', 'shared']
dep = kind == 'static' ? yasl_dep : shared_dep
public_test = executable('yasl-' + kind + '-api-test', 'test_lifecycle.c', dependencies: dep)