Use layer shell
This commit is contained in:
20
protocols/meson.build
Normal file
20
protocols/meson.build
Normal file
@ -0,0 +1,20 @@
|
||||
wayland_protos = dependency('wayland-protocols', version: '>=1.12')
|
||||
wl_protocol_dir = wayland_protos.get_pkgconfig_variable('pkgdatadir')
|
||||
|
||||
wl_scanner = find_program('wayland-scanner')
|
||||
gen_scanner_client_header = generator(wl_scanner,
|
||||
output: '@BASENAME@-client-protocol.h',
|
||||
arguments: ['client-header', '@INPUT@', '@OUTPUT@'])
|
||||
gen_scanner_client_code = generator(wl_scanner,
|
||||
output: '@BASENAME@-protocol.c',
|
||||
arguments: ['code', '@INPUT@', '@OUTPUT@'])
|
||||
|
||||
wl_protos = [
|
||||
wl_protocol_dir + '/stable/xdg-shell/xdg-shell.xml',
|
||||
'wlr-layer-shell-unstable-v1.xml',
|
||||
]
|
||||
wl_proto_sources = []
|
||||
foreach proto: wl_protos
|
||||
wl_proto_sources += gen_scanner_client_header.process(proto)
|
||||
wl_proto_sources += gen_scanner_client_code.process(proto)
|
||||
endforeach
|
||||
Reference in New Issue
Block a user