5 'allocator/allocator.c',
16 'surface/subsurface.c',
17 'client_buffer/shm_client_buffer.c',
18 'xdg_shell/xdg_shell.c',
19 'xdg_shell/xdg_surface.c',
20 'xdg_shell/xdg_toplevel.c',
26 'xdg-shell': wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
30 protocols_server_header = {}
32 foreach name, path : protocols
34 name.underscorify() + '_c',
36 output: '@BASENAME@-protocol.c',
37 command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'],
41 server_header = custom_target(
42 name.underscorify() + '_server_h',
44 output: '@BASENAME@-server-protocol.h',
45 command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
46 build_by_default: false,
48 libds_files += server_header
51 math = meson.get_compiler('c').find_library('m')
52 wayland_server = dependency('wayland-server', required: true)
53 pixman = dependency('pixman-1', required: true)
54 libdrm = dependency('libdrm', required: true)
55 libtbm = dependency('libtbm', required: true)
66 lib_libds = shared_library('ds', libds_files,
67 dependencies: libds_deps,
68 include_directories: [ common_inc, include_directories('.') ],
69 version: meson.project_version(),
73 dep_libds = declare_dependency(
75 dependencies: libds_deps,
76 include_directories: [ common_inc, include_directories('.') ],