From 7e4b490ce72a555ac1ec272766ed63cba6bde0af Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 29 May 2018 23:35:14 +0100 Subject: Add a CoreGraphics OpenGL test for macOS A basic test, to check that we're actually capable of working on macOS without GLX enabled. --- test/meson.build | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'test/meson.build') diff --git a/test/meson.build b/test/meson.build index ea2b354..85e73d6 100644 --- a/test/meson.build +++ b/test/meson.build @@ -152,3 +152,26 @@ if build_wgl test(test_name, test_bin) endforeach endif + +# Apple +if host_machine.system().contains('darwin') + opengl_dep = dependency('appleframeworks', modules: ['OpenGL', 'Carbon'], required: true) + + cgl_tests = [ + [ 'cgl_core', [ 'cgl_core.c' ] ], + ] + + foreach t: cgl_tests + test_name = t[0] + test_sources = t[1] + + test(test_name, + executable( + test_name, test_sources, + c_args: test_cflags, + include_directories: libepoxy_inc, + dependencies: [ libepoxy_dep, opengl_dep ], + ), + ) + endforeach +endif -- cgit v1.2.1