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