wlroots-hyprland/examples/meson.build

40 lines
1.3 KiB
Meson
Raw Normal View History

2017-07-17 20:38:28 +02:00
lib_shared = static_library('shared',
['shared.c', 'cat.c'],
dependencies: dep_wlr)
executable('simple', 'simple.c', dependencies: dep_wlr, link_with: lib_shared)
executable('rotation', 'rotation.c', dependencies: dep_wlr, link_with: lib_shared)
executable('pointer', 'pointer.c', dependencies: dep_wlr, link_with: lib_shared)
executable('touch', 'touch.c', dependencies: dep_wlr, link_with: lib_shared)
executable('tablet', 'tablet.c', dependencies: dep_wlr, link_with: lib_shared)
wayland_scanner = find_program('wayland-scanner')
wl_protocol_dir = dep_wayland_proto.get_pkgconfig_variable('pkgdatadir')
wayland_scanner_server = generator(wayland_scanner,
output: '@BASENAME@-protocol.h',
arguments: ['server-header', '@INPUT@', '@OUTPUT@'])
wayland_scanner_code = generator(wayland_scanner,
output: '@BASENAME@-protocol.c',
arguments: ['code', '@INPUT@', '@OUTPUT@'])
2017-07-17 20:38:28 +02:00
compositor_src = [
'compositor/main.c',
'compositor/wl_compositor.c',
2017-08-08 14:09:14 +02:00
'compositor/wl_shell.c',
'compositor/xdg_shell.c',
2017-07-17 20:38:28 +02:00
]
2017-08-08 14:09:14 +02:00
protocols = [
[ 'unstable', 'xdg-shell', 'xdg-shell-unstable-v6.xml' ]
2017-08-08 14:09:14 +02:00
]
foreach p : protocols
xml = join_paths([wl_protocol_dir] + p)
compositor_src += wayland_scanner_code.process(xml)
compositor_src += wayland_scanner_server.process(xml)
2017-08-08 14:09:14 +02:00
endforeach
2017-07-17 20:38:28 +02:00
executable('compositor', compositor_src, dependencies: dep_wlr, link_with: lib_shared)