Debian Codegraph @

wayland-drm/meson.build

raw
1 foreach output_type: ['client-header', 'server-header', 'public-code']
2 if output_type == 'client-header'
3 output_file = 'wayland-drm-client-protocol.h'
4 elif output_type == 'server-header'
5 output_file = 'wayland-drm-server-protocol.h'
6 else
7 output_file = 'wayland-drm-protocol.c'
8
9 if wl_scanner.version().version_compare('< 1.14.91')
10 output_type = 'code'
11 elif generated_public_protocols.contains(proto)
12 output_type = 'public-code'
13 endif
14 endif
15
16 var_name = output_file.underscorify()
17 target = custom_target(
18 '@0@'.format(output_file),
19 command: [prog_scanner, output_type, '@INPUT@', '@OUTPUT@'],
20 input: 'wayland-drm.xml',
21 output: output_file,
22 )
23
24 set_variable(var_name, target)
25 endforeach
26
27 install_data(
28 'wayland-drm.xml',
29 install_dir : join_paths(get_option('datadir'), meson.project_name())
30 )