aboutsummaryrefslogtreecommitdiff
path: root/subprojects/d2tk/pugl/test/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/d2tk/pugl/test/meson.build')
-rw-r--r--subprojects/d2tk/pugl/test/meson.build33
1 files changed, 33 insertions, 0 deletions
diff --git a/subprojects/d2tk/pugl/test/meson.build b/subprojects/d2tk/pugl/test/meson.build
new file mode 100644
index 0000000..340a7dd
--- /dev/null
+++ b/subprojects/d2tk/pugl/test/meson.build
@@ -0,0 +1,33 @@
+basic_tests = [
+ 'realize',
+ 'redisplay',
+ 'show_hide',
+ 'stub_hints',
+ 'timer',
+ 'update',
+]
+
+gl_tests = [
+ 'gl_hints'
+]
+
+includes = [
+ '.',
+ '../include',
+]
+
+foreach test : basic_tests
+ test(test,
+ executable('test_' + test, 'test_@0@.c'.format(test),
+ include_directories: include_directories(includes),
+ dependencies: [pugl_dep, stub_backend_dep]))
+endforeach
+
+if opengl_dep.found()
+ foreach test : gl_tests
+ test(test,
+ executable('test_' + test, 'test_@0@.c'.format(test),
+ include_directories: include_directories(includes),
+ dependencies: [pugl_dep, gl_backend_dep]))
+ endforeach
+endif