compositor: Do not allow vt-switching by default
[src/agl-compositor.git] / clients / meson.build
1 dep_wayland_client = dependency('wayland-client', version: '>= 1.17.0')
2
3 clients = [
4 {
5         'basename': 'agl-screenshooter',
6         'sources': [
7           'screenshooter.c',
8           '../shared/file-util.c',
9           '../shared/os-compatibility.c',
10           '../shared/xalloc.c',
11           agl_screenshooter_client_protocol_h,
12           agl_screenshooter_protocol_c,
13           xdg_output_unstable_v1_client_protocol_h,
14           xdg_output_unstable_v1_protocol_c,
15         ],
16         'deps_objs' : [ dep_wayland_client ],
17         'deps': [ 'cairo' ],
18 },
19 ]
20
21 foreach t: clients
22   t_name = t.get('basename')
23   t_deps = t.get('deps_objs', [])
24
25   foreach xdep: t.get('deps', [])
26     dep = dependency(xdep, required: false)
27     if dep.found()
28       t_deps += dep
29     endif
30   endforeach
31
32   executable(
33       t_name, t.get('sources'),
34       include_directories: [ common_inc ],
35       dependencies: [ t_deps, libweston_dep ],
36       install: true,
37   )
38
39   message('Building client ' + t_name)
40 endforeach