1 simple_shm_shell_files = ['simple-shm-shell.c']
2 simple_shm_shell_deps = [
3 dependency('wayland-client', required: true),
6 executable('ds-simple-shm-shell',
7 simple_shm_shell_files,
8 dependencies: simple_shm_shell_deps,
9 install_dir: libds_bindir,
13 wayland_tbm_client = dependency('wayland-tbm-client', required: false)
14 libtbm = dependency('libtbm', required: false)
16 if not wayland_tbm_client.found() or not libtbm.found()
20 simple_tbm_files = ['simple-tbm.c']
22 dependency('wayland-client', required: true),
28 'xdg-shell': wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
32 protocols_client_header = {}
33 foreach name, path : protocols
35 name.underscorify() + '_c',
37 output: '@BASENAME@-protocol.c',
38 command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'],
40 simple_tbm_files += code
42 client_header = custom_target(
43 name.underscorify() + '_client_h',
45 output: '@BASENAME@-client-protocol.h',
46 command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],
47 build_by_default: false,
49 simple_tbm_files += client_header
52 executable('ds-simple-tbm',
54 dependencies: simple_tbm_deps,
55 install_dir: libds_bindir,