From 1ab3e5a123109704789c2768e11a4f9af515821d Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Wed, 14 Oct 2026 13:13:52 +0300 Subject: Redefine public and rendering APIs with explicit contracts --- tests/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/meson.build') diff --git a/tests/meson.build b/tests/meson.build index 8370423..e34f072 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -8,7 +8,11 @@ foreach kind : ['static', 'shared'] endforeach if add_languages('cpp', native: false, required: false) cpp_api = executable('yasl-cpp-api-test', 'test_api.cpp', dependencies: shared_dep, - cpp_args: ['-pedantic-errors'], override_options: ['cpp_std=c++11']) + cpp_args: ['-pedantic-errors', + '-DYASL_HAS_VULKAN=' + (has_vulkan ? '1' : '0'), + '-DYASL_HAS_WAYLAND=' + (has_wayland ? '1' : '0'), + '-DYASL_HAS_X11=' + (has_x11 ? '1' : '0'), + '-DYASL_HAS_COCOA=' + (has_cocoa ? '1' : '0')], override_options: ['cpp_std=c++11']) test('cpp-api', cpp_api) endif headers = files('../include/yasl/yasl.h', '../include/yasl/cpu.h', '../include/yasl/gl.h', -- cgit v1.2.3