~kennylevinsen/gtkgreet

fbe39f816b732a31ebfd6606a5096628d930975b — Aleksei Bavshin a month ago 1240f98
Convert -Dlayershell to 'feature'
3 files changed, 8 insertions(+), 6 deletions(-)

M README.md
M gtkgreet/meson.build
M meson_options.txt
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