refactor(build): List xkeyboard in cmake and polybar -v

This commit is contained in:
patrick96 2018-05-13 12:34:31 +02:00 committed by Patrick Ziegler
parent f7a6e5ba98
commit 6157c697bc
2 changed files with 10 additions and 8 deletions

View File

@ -19,6 +19,7 @@ colored_option(" i3" ENABLE_I3)
colored_option(" mpd" ENABLE_MPD) colored_option(" mpd" ENABLE_MPD)
colored_option(" network" ENABLE_NETWORK) colored_option(" network" ENABLE_NETWORK)
colored_option(" pulseaudio" ENABLE_PULSEAUDIO) colored_option(" pulseaudio" ENABLE_PULSEAUDIO)
colored_option(" xkeyboard" WITH_XKB)
message(STATUS " X extensions:") message(STATUS " X extensions:")
colored_option(" xcb-randr" WITH_XRANDR) colored_option(" xcb-randr" WITH_XRANDR)

View File

@ -101,18 +101,19 @@ const auto version_details = [](const std::vector<std::string>& args) {
// clang-format off // clang-format off
const auto print_build_info = [](bool extended = false) { const auto print_build_info = [](bool extended = false) {
printf("%s %s\n\n", APP_NAME, APP_VERSION); printf("%s %s\n\n", APP_NAME, APP_VERSION);
printf("Features: %calsa %ccurl %ci3 %cmpd %cnetwork %cpulseaudio\n", printf("Features: %calsa %ccurl %ci3 %cmpd %cnetwork %cpulseaudio %cxkeyboard\n",
(ENABLE_ALSA ? '+' : '-'), (ENABLE_ALSA ? '+' : '-'),
(ENABLE_CURL ? '+' : '-'), (ENABLE_CURL ? '+' : '-'),
(ENABLE_I3 ? '+' : '-'), (ENABLE_I3 ? '+' : '-'),
(ENABLE_MPD ? '+' : '-'), (ENABLE_MPD ? '+' : '-'),
(ENABLE_NETWORK ? '+' : '-'), (ENABLE_NETWORK ? '+' : '-'),
(ENABLE_PULSEAUDIO ? '+' : '-')); (ENABLE_PULSEAUDIO ? '+' : '-'),
(ENABLE_XKEYBOARD ? '+' : '-'));
if (extended) { if (extended) {
printf("\n"); printf("\n");
printf("X extensions: %crandr (%cmonitors) %crender %cdamage %csync %ccomposite %cxkb %cxrm %cxcursor\n", printf("X extensions: %crandr (%cmonitors) %crender %cdamage %csync %ccomposite %cxkb %cxrm %cxcursor\n",
(WITH_XRANDR ? '+' : '-'), (WITH_XRANDR ? '+' : '-'),
(WITH_XRANDR_MONITORS ? '+' : '-'), (WITH_XRANDR_MONITORS ? '+' : '-'),
(WITH_XRENDER ? '+' : '-'), (WITH_XRENDER ? '+' : '-'),
(WITH_XDAMAGE ? '+' : '-'), (WITH_XDAMAGE ? '+' : '-'),
(WITH_XSYNC ? '+' : '-'), (WITH_XSYNC ? '+' : '-'),