~kennylevinsen/greetd-devel

gtkgreet: Convert -Dlayershell to 'feature' v1 APPLIED

Aleksei Bavshin: 1
 Convert -Dlayershell to 'feature'

 3 files changed, 8 insertions(+), 6 deletions(-)
#399995 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~kennylevinsen/greetd-devel/patches/19644/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gtkgreet] Convert -Dlayershell to 'feature' Export this patch

---
 README.md            | 7 ++++---
 gtkgreet/meson.build | 5 +++--
 meson_options.txt    | 2 +-
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index cc720b6..471cbab 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/gtkgreet/meson.build b/gtkgreet/meson.build
index 3738bc4..984dd48 100644
--- a/gtkgreet/meson.build
+++ b/gtkgreet/meson.build
@@ -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

diff --git a/meson_options.txt b/meson_options.txt
index dd816dc..7a9d322 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -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
-- 
2.28.0