package/sway: enable swaynag support

Add a config option to build sway with swaynag support.

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Adam Duskett 2023-12-21 08:36:18 -07:00 committed by Yann E. MORIN
parent 31058f5fdf
commit 4163b67c37
2 changed files with 11 additions and 1 deletions

View File

@ -43,6 +43,11 @@ config BR2_PACKAGE_SWAY_SWAYBAR_TRAY
endif # BR2_PACKAGE_SWAY_SWAYBAR
config BR2_PACKAGE_SWAY_SWAYNAG
bool "swaynag"
help
Enable support for swaynag
endif # BR2_PACKAGE_SWAY
comment "sway needs systemd, udev, EGL w/ Wayland backend and OpenGL ES support"

View File

@ -13,7 +13,6 @@ SWAY_CONF_OPTS = \
-Dwerror=false \
-Dzsh-completions=false \
-Dfish-completions=false \
-Dswaynag=false \
-Dman-pages=disabled \
-Dsd-bus-provider=libsystemd
@ -48,6 +47,12 @@ else
SWAY_CONF_OPTS += -Dswaybar=false
endif
ifeq ($(BR2_PACKAGE_SWAY_SWAYNAG),y)
SWAY_CONF_OPTS += -Dswaynag=true
else
SWAY_CONF_OPTS += -Dswaynag=false
endif
ifeq ($(BR2_PACKAGE_SWAY_SWAYBAR_TRAY),y)
SWAY_CONF_OPTS += -Dtray=enabled
else