config BR2_PACKAGE_SWAY
	bool "sway"
	depends on BR2_PACKAGE_SYSTEMD # is required by the sd-bus provider
	depends on !BR2_STATIC_LIBS # wlroots
	depends on BR2_TOOLCHAIN_HAS_THREADS # wlroots
	depends on BR2_PACKAGE_HAS_LIBEGL # wlroots
	depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND # wlroots
	depends on BR2_PACKAGE_HAS_LIBGLES # wlroots
	depends on BR2_PACKAGE_HAS_UDEV # wlroots
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
	depends on BR2_USE_WCHAR # pango
	depends on BR2_TOOLCHAIN_HAS_THREADS # pango
	depends on BR2_USE_MMU # pango
	depends on BR2_INSTALL_LIBSTDCPP # pango
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pango
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # pango
	select BR2_PACKAGE_WLROOTS
	select BR2_PACKAGE_JSON_C
	select BR2_PACKAGE_PCRE
	select BR2_PACKAGE_CAIRO
	select BR2_PACKAGE_CAIRO_PNG
	select BR2_PACKAGE_PANGO
	help
	  i3-compatible Wayland compositor

	  https://github.com/swaywm/sway

comment "sway needs systemd, udev, EGL w/ Wayland backend and OpenGL ES support"
	depends on !BR2_PACKAGE_SYSTEMD || \
		!BR2_PACKAGE_HAS_UDEV || \
		!BR2_PACKAGE_HAS_LIBEGL || \
		!BR2_PACKAGE_HAS_LIBEGL_WAYLAND || \
		!BR2_PACKAGE_HAS_LIBGLES

comment "sway needs a toolchain w/ wchar, threads, C++, dynamic library, gcc >= 4.9"
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on !BR2_USE_WCHAR || \
		!BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
		!BR2_INSTALL_LIBSTDCPP || \
		BR2_STATIC_LIBS
