summaryrefslogtreecommitdiff
path: root/tests/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'tests/meson.build')
-rw-r--r--tests/meson.build6
1 files changed, 5 insertions, 1 deletions
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',