1base_icles = [
2  [ 'benchmark-appsink.c', false, [gst_base_dep, app_dep], true ],
3  [ 'benchmark-appsrc.c', false, [gst_base_dep, app_dep], true ],
4  [ 'benchmark-video-conversion.c', false, [gst_base_dep, video_dep], true ],
5  [ 'audio-trickplay.c', false, [gst_controller_dep] ],
6  [ 'playbin-text.c' ],
7  [ 'stress-playbin.c' ],
8  [ 'test-effect-switch.c' ],
9  [ 'test-overlay-blending.c', false, [video_dep, gio_dep] ],
10  [ 'test-scale.c' ],
11  [ 'test-resample.c' ],
12  [ 'test-box.c' ],
13  [ 'test-reverseplay.c' ],
14  [ 'stress-videooverlay.c', not x11_dep.found(), [x11_dep, video_dep] ],
15  [ 'output-selector-test.c', not x11_dep.found(), [x11_dep] ],
16  [ 'input-selector-test.c', not x11_dep.found(), [x11_dep] ],
17  [ 'test-colorkey.c', not x11_dep.found() or not gtk_x11_dep.found(), [x11_dep, gtk_x11_dep, video_dep]],
18  [ 'test-videooverlay.c', not x11_dep.found() or not gtk_x11_dep.found(), [x11_dep, gtk_x11_dep, video_dep]],
19  [ 'test-textoverlay.c', not pango_dep.found(), [pango_dep] ],
20  [ 'playback/test.c' ],
21  [ 'playback/decodetest.c' ],
22  [ 'playback/test2.c' ],
23  [ 'playback/test3.c' ],
24  [ 'playback/test4.c' ],
25  [ 'playback/test5.c' ],
26  [ 'playback/test6.c' ],
27  [ 'playback/test7.c' ],
28]
29
30icle_deps = [gst_dep]
31
32foreach icle : base_icles
33  fname = icle.get(0)
34  icle_name = fname.split('.').get(0).underscorify()
35  skip_icle = false
36  is_bench = false
37  extra_deps = [ ]
38
39  if icle.length() >= 4
40    is_bench = icle.get(3)
41  endif
42
43  if icle.length() >= 3
44    extra_deps = icle.get(2)
45  endif
46
47  if icle.length() >= 2
48    skip_icle = icle.get(1)
49  endif
50
51  if not skip_icle
52    exe = executable(icle_name, fname,
53      include_directories : [configinc],
54      c_args : ['-DHAVE_CONFIG_H=1' ],
55      dependencies : icle_deps + extra_deps,
56    )
57    if is_bench
58      benchmark('bench_' + icle_name, exe)
59    endif
60  endif
61endforeach
62