mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Add xdg shell stubs
This commit is contained in:
parent
347707c962
commit
c3f15ea284
6 changed files with 164 additions and 1 deletions
|
|
@ -11,7 +11,29 @@ executable('tablet', 'tablet.c', dependencies: dep_wlr, link_with: lib_shared)
|
|||
compositor_src = [
|
||||
'compositor/main.c',
|
||||
'compositor/wl_compositor.c',
|
||||
'compositor/wl_shell.c'
|
||||
'compositor/wl_shell.c',
|
||||
'compositor/xdg_shell.c',
|
||||
'compositor/protocols/xdg-shell.c',
|
||||
]
|
||||
|
||||
wayland_scanner = find_program('wayland-scanner')
|
||||
wayland_protocols_pkgdatadir = dep_wayland_proto.get_pkgconfig_variable('pkgdatadir')
|
||||
|
||||
protocols_src = meson.current_source_dir() + '/compositor/protocols'
|
||||
run_command(['mkdir', '-p', protocols_src])
|
||||
|
||||
protocols = [
|
||||
['/unstable/xdg-shell/xdg-shell-unstable-v6.xml', 'xdg-shell']
|
||||
]
|
||||
|
||||
foreach p : protocols
|
||||
xml = wayland_protocols_pkgdatadir + p[0]
|
||||
|
||||
run_command([wayland_scanner, 'code', xml,
|
||||
protocols_src + '/' + p[1] + '.c'])
|
||||
|
||||
run_command([wayland_scanner, 'server-header', xml,
|
||||
protocols_src + '/' + p[1] + '.h'])
|
||||
endforeach
|
||||
|
||||
executable('compositor', compositor_src, dependencies: dep_wlr, link_with: lib_shared)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue