initial
This commit is contained in:
commit
4e4b82e478
5 changed files with 607 additions and 0 deletions
23
protocols/meson.build
Normal file
23
protocols/meson.build
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# adapted from https://github.com/swaywm/swayidle/blob/0467c1e03a5780ed8e3ba611f099a838822ab550/meson.build
|
||||
wayland_scanner = find_program('wayland-scanner')
|
||||
wayland_protos_dep = dependency('wayland-protocols')
|
||||
wl_protocol_dir = wayland_protos_dep.get_pkgconfig_variable('pkgdatadir')
|
||||
wayland_scanner_code = generator(
|
||||
wayland_scanner,
|
||||
output: '@BASENAME@-protocol.c',
|
||||
arguments: ['private-code', '@INPUT@', '@OUTPUT@'])
|
||||
wayland_scanner_client = generator(
|
||||
wayland_scanner,
|
||||
output: '@BASENAME@-client-protocol.h',
|
||||
arguments: ['client-header', '@INPUT@', '@OUTPUT@'])
|
||||
|
||||
wayland_sources = [
|
||||
wayland_scanner_code.process(
|
||||
wl_protocol_dir + '/stable/xdg-shell/xdg-shell.xml',
|
||||
'wlr-layer-shell-unstable-v1.xml',
|
||||
),
|
||||
wayland_scanner_client.process(
|
||||
wl_protocol_dir + '/stable/xdg-shell/xdg-shell.xml',
|
||||
'wlr-layer-shell-unstable-v1.xml',
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue