From 6157c697bc89e56d9fcc98cb1d06c3791123879b Mon Sep 17 00:00:00 2001 From: patrick96 Date: Sun, 13 May 2018 12:34:31 +0200 Subject: [PATCH] refactor(build): List xkeyboard in cmake and polybar -v --- cmake/05-summary.cmake | 1 + include/settings.hpp.cmake | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/cmake/05-summary.cmake b/cmake/05-summary.cmake index c50929c9..2801d8a7 100644 --- a/cmake/05-summary.cmake +++ b/cmake/05-summary.cmake @@ -19,6 +19,7 @@ colored_option(" i3" ENABLE_I3) colored_option(" mpd" ENABLE_MPD) colored_option(" network" ENABLE_NETWORK) colored_option(" pulseaudio" ENABLE_PULSEAUDIO) +colored_option(" xkeyboard" WITH_XKB) message(STATUS " X extensions:") colored_option(" xcb-randr" WITH_XRANDR) diff --git a/include/settings.hpp.cmake b/include/settings.hpp.cmake index 699a09ca..d76359c2 100644 --- a/include/settings.hpp.cmake +++ b/include/settings.hpp.cmake @@ -101,18 +101,19 @@ const auto version_details = [](const std::vector& args) { // clang-format off const auto print_build_info = [](bool extended = false) { printf("%s %s\n\n", APP_NAME, APP_VERSION); - printf("Features: %calsa %ccurl %ci3 %cmpd %cnetwork %cpulseaudio\n", - (ENABLE_ALSA ? '+' : '-'), - (ENABLE_CURL ? '+' : '-'), - (ENABLE_I3 ? '+' : '-'), - (ENABLE_MPD ? '+' : '-'), - (ENABLE_NETWORK ? '+' : '-'), - (ENABLE_PULSEAUDIO ? '+' : '-')); + printf("Features: %calsa %ccurl %ci3 %cmpd %cnetwork %cpulseaudio %cxkeyboard\n", + (ENABLE_ALSA ? '+' : '-'), + (ENABLE_CURL ? '+' : '-'), + (ENABLE_I3 ? '+' : '-'), + (ENABLE_MPD ? '+' : '-'), + (ENABLE_NETWORK ? '+' : '-'), + (ENABLE_PULSEAUDIO ? '+' : '-'), + (ENABLE_XKEYBOARD ? '+' : '-')); if (extended) { printf("\n"); printf("X extensions: %crandr (%cmonitors) %crender %cdamage %csync %ccomposite %cxkb %cxrm %cxcursor\n", (WITH_XRANDR ? '+' : '-'), - (WITH_XRANDR_MONITORS ? '+' : '-'), + (WITH_XRANDR_MONITORS ? '+' : '-'), (WITH_XRENDER ? '+' : '-'), (WITH_XDAMAGE ? '+' : '-'), (WITH_XSYNC ? '+' : '-'),