1 wayland_tbm_client = dependency('wayland-tbm-client', required: false)
2 libtbm = dependency('libtbm', required: false)
4 if not wayland_tbm_client.found() or not libtbm.found()
8 simple_tbm_files = ['simple-tbm.c']
10 dependency('wayland-client', required: true),
16 'xdg-shell': wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
20 protocols_client_header = {}
21 foreach name, path : protocols
23 name.underscorify() + '_c',
25 output: '@BASENAME@-protocol.c',
26 command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'],
28 simple_tbm_files += code
30 client_header = custom_target(
31 name.underscorify() + '_client_h',
33 output: '@BASENAME@-client-protocol.h',
34 command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],
35 build_by_default: false,
37 simple_tbm_files += client_header
40 executable('ds-simple-tbm',
42 dependencies: simple_tbm_deps,
43 install_dir: libds_bindir,