aboutsummaryrefslogtreecommitdiff
path: root/subprojects/d2tk/pugl/test/meson.build
blob: 340a7dd1244bc9f10499b27bfec6e2a7a1bddad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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