add basic cairo widget for session lock (WIP)
This commit is contained in:
17
meson.build
17
meson.build
@@ -2,7 +2,7 @@ project('diya-shell',
|
||||
['c'],
|
||||
version: '0.1.0',
|
||||
license: 'MIT',
|
||||
meson_version: '>=0.51.0',
|
||||
meson_version: '>=0.58.0',
|
||||
default_options: ['c_std=gnu11', 'warning_level=3'])
|
||||
|
||||
lib_so_version = '0'
|
||||
@@ -22,7 +22,10 @@ wayland_client = dependency('wayland-client', version: '>=1.10.0')
|
||||
wayland_scanner = find_program('wayland-scanner')
|
||||
|
||||
# use system xdg-shell protocol when available
|
||||
#wayland_protocols = dependency('wayland-protocols', version: '>=1.16')
|
||||
wayland_protocols = dependency('wayland-protocols', version: '>=1.16')
|
||||
|
||||
wl_protocol_dir = wayland_protocols.get_variable('pkgdatadir')
|
||||
|
||||
|
||||
# pkg_config = import('pkgconfig')
|
||||
# gnome = import('gnome')
|
||||
@@ -30,11 +33,12 @@ wayland_scanner = find_program('wayland-scanner')
|
||||
gtk_layer_shell = dependency('gtk4-layer-shell-0', version: '>=1.0.2')
|
||||
wayland_targets=[]
|
||||
|
||||
wayland_protos = [
|
||||
'protocols/wlr-foreign-toplevel-management-unstable-v1'
|
||||
wl_protocols = [
|
||||
wl_protocol_dir / 'staging/ext-session-lock/ext-session-lock-v1',
|
||||
'protocols/wlr-foreign-toplevel-management-unstable-v1'
|
||||
]
|
||||
|
||||
foreach proto : wayland_protos
|
||||
foreach proto : wl_protocols
|
||||
xml = ''.join([proto,'.xml'])
|
||||
header = ''.join([proto.split('/').get(-1),'.h'])
|
||||
cfile = ''.join([proto.split('/').get(-1),'.c'])
|
||||
@@ -51,6 +55,9 @@ src = [
|
||||
'src/wayland.c',
|
||||
'src/shell.c',
|
||||
'src/foreign.c',
|
||||
'src/session.c',
|
||||
'src/widgets/cairo-widget.c',
|
||||
'src/main.c',
|
||||
wayland_targets]
|
||||
|
||||
executable(
|
||||
|
Reference in New Issue
Block a user