M README.md => README.md +4 -3
@@ 11,16 11,17 @@ See the [wiki](https://man.sr.ht/~kennylevinsen/greetd) for FAQ, guides for comm
See the wiki.
-## How to build with gtk-layer-shell (recommended)
+## How to build
```
-meson -Dlayershell=true build
+meson build
ninja -C build
```
+Layer-shell support will be enabled automatically if [gtk-layer-shell](https://github.com/wmww/gtk-layer-shell) development files are installed.
## How to build without gtk-layer-shell
```
-meson build
+meson build -Dlayershell=disabled
ninja -C build
```=
\ No newline at end of file
M gtkgreet/meson.build => gtkgreet/meson.build +3 -2
@@ 1,7 1,8 @@
dependencies = [dependency('gtk+-3.0'), dependency('json-c')]
-if get_option('layershell')
- dependencies += dependency('gtk-layer-shell-0')
+gtk_layer_shell = dependency('gtk-layer-shell-0', required: get_option('layershell'))
+if gtk_layer_shell.found()
+ dependencies += gtk_layer_shell
add_project_arguments('-DLAYER_SHELL', language : 'c')
endif
M meson_options.txt => meson_options.txt +1 -1
@@ 1,2 1,2 @@
-option('layershell', type : 'boolean', value : false)
+option('layershell', type: 'feature', value: 'auto')
option('man-pages', type: 'feature', value: 'auto', description: 'Generate and install man pages')=
\ No newline at end of file