From 4b1559a81fe904d66c23d59946ab8b5a2cb3614f Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Fri, 16 Oct 2026 13:54:26 +0300 Subject: Give the shared-library tests the Vulkan headers yasl/vulkan.h includes . 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 --- tests/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 , 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) -- cgit v1.2.3