diff options
| author | Drew DeVault <sir@cmpwn.com> | 2017-06-14 18:53:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-14 18:53:32 -0400 |
| commit | eb6e38c86d2deb37cc6f378f8644c4a530fd7448 (patch) | |
| tree | e3c567c4684faf0f9a7f77494f1bf638171d5349 /CMakeLists.txt | |
| parent | 16e20ec251b027c5a8dbc5e85804012f2602629d (diff) | |
| parent | 0fc9628f03984caa04e200a1dc458d1cf7fc6d6c (diff) | |
Merge pull request #1234 from 4e554c4c/tray
Implement Tray Icons
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index edf486ca..c80f6361 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,7 @@ option(enable-swaybar "Enables the swaybar utility" YES) option(enable-swaygrab "Enables the swaygrab utility" YES) option(enable-swaymsg "Enables the swaymsg utility" YES) option(enable-gdk-pixbuf "Use Pixbuf to support more image formats" YES) +option(enable-tray "Enables the swaybar tray" YES) option(zsh-completions "Zsh shell completions" NO) option(default-wallpaper "Installs the default wallpaper" YES) option(LD_LIBRARY_PATH "Configure sway's default LD_LIBRARY_PATH") @@ -64,6 +65,7 @@ find_package(Cairo REQUIRED) find_package(Pango REQUIRED) find_package(GdkPixbuf) find_package(PAM) +find_package(DBus) find_package(LibInput REQUIRED) @@ -90,6 +92,17 @@ else() message(STATUS "Building without gdk-pixbuf, only png images supported.") endif() +if (enable-tray) + if (DBUS_FOUND) + set(ENABLE_TRAY) + add_definitions(-DENABLE_TRAY) + else() + message(WARNING "Tray required but DBus was not found. Tray will not be included") + endif() +else() + message(STATUS "Building without the tray.") +endif() + include_directories(include) add_subdirectory(protocols) |
