mirror of
https://github.com/labwc/labwc.git
synced 2026-04-09 08:21:18 -04:00
closes #917 Summary follows: - src/menu/menu.c: add `leave` action to call lab-exit. - clients/meson.build: add install routine for lab-exit and lab-sensible-terminal. - meson.build remove lab-sensible-terminal routine re the comment. - po/labwc.pot: rebuild with new xgettext commands. - po/it.po: add translations for lab-exit and edit my email. - CONTRIBUTING.md#translations: modify the instructions for coders as two xgettext commands are needed since we now have two GUI facing languages that have translatable strings.
60 lines
1.4 KiB
Meson
60 lines
1.4 KiB
Meson
wayland_client = dependency('wayland-client')
|
|
wayland_cursor = dependency('wayland-cursor')
|
|
|
|
nag_sources = files(
|
|
'labnag.c',
|
|
'pool-buffer.c',
|
|
)
|
|
|
|
wl_protocol_dir = wayland_protos.get_variable('pkgdatadir')
|
|
|
|
protocols = [
|
|
wl_protocol_dir / 'stable/tablet/tablet-v2.xml',
|
|
wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
|
|
wl_protocol_dir / 'staging/cursor-shape/cursor-shape-v1.xml',
|
|
'../protocols/wlr-layer-shell-unstable-v1.xml',
|
|
]
|
|
|
|
foreach xml : protocols
|
|
nag_sources += custom_target(
|
|
xml.underscorify() + '_c',
|
|
input: xml,
|
|
output: '@BASENAME@-protocol.c',
|
|
command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'],
|
|
)
|
|
nag_sources += custom_target(
|
|
xml.underscorify() + '_client_h',
|
|
input: xml,
|
|
output: '@BASENAME@-client-protocol.h',
|
|
command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],
|
|
)
|
|
endforeach
|
|
|
|
if host_machine.system() in ['freebsd', 'openbsd']
|
|
# For signalfd()
|
|
epoll_dep = dependency('epoll-shim')
|
|
else
|
|
epoll_dep = []
|
|
endif
|
|
|
|
executable(
|
|
'labnag',
|
|
nag_sources,
|
|
dependencies: [
|
|
cairo,
|
|
pangocairo,
|
|
glib,
|
|
wayland_client,
|
|
wayland_cursor,
|
|
wlroots,
|
|
server_protos,
|
|
epoll_dep,
|
|
],
|
|
include_directories: [labwc_inc],
|
|
install: true
|
|
)
|
|
|
|
clients = ['lab-sensible-terminal', 'lab-exit']
|
|
foreach client : clients
|
|
install_data(client, install_dir: get_option('bindir'))
|
|
endforeach
|