mirror of
https://github.com/polybar/polybar.git
synced 2024-11-18 13:55:11 -05:00
doc(net): Indicate the wireless library used
This helps us to more easily debug network issues because before it wasn't clear if a user had built polybar with the libnl or libiw adapter
This commit is contained in:
parent
fbc5a9fb7f
commit
a881d49d9d
3 changed files with 6 additions and 2 deletions
|
@ -9,8 +9,10 @@ checklib(ENABLE_MPD "pkg-config" libmpdclient)
|
|||
checklib(WITH_LIBNL "pkg-config" libnl-genl-3.0)
|
||||
if(WITH_LIBNL)
|
||||
checklib(ENABLE_NETWORK "pkg-config" libnl-genl-3.0)
|
||||
set(WIRELESS_LIB "libnl")
|
||||
else()
|
||||
checklib(ENABLE_NETWORK "cmake" Libiw)
|
||||
set(WIRELESS_LIB "wireless-tools")
|
||||
endif()
|
||||
checklib(ENABLE_PULSEAUDIO "pkg-config" libpulse)
|
||||
checklib(ENABLE_PULSEAUDIO "binary" pulseaudio)
|
||||
|
|
|
@ -17,7 +17,7 @@ colored_option(" alsa" ENABLE_ALSA)
|
|||
colored_option(" curl" ENABLE_CURL)
|
||||
colored_option(" i3" ENABLE_I3)
|
||||
colored_option(" mpd" ENABLE_MPD)
|
||||
colored_option(" network" ENABLE_NETWORK)
|
||||
colored_option(" network (${WIRELESS_LIB})" ENABLE_NETWORK)
|
||||
colored_option(" pulseaudio" ENABLE_PULSEAUDIO)
|
||||
colored_option(" xkeyboard" WITH_XKB)
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#cmakedefine01 ENABLE_MPD
|
||||
#cmakedefine01 ENABLE_NETWORK
|
||||
#cmakedefine01 WITH_LIBNL
|
||||
#define WIRELESS_LIB "@WIRELESS_LIB@"
|
||||
#cmakedefine01 ENABLE_I3
|
||||
#cmakedefine01 ENABLE_CURL
|
||||
#cmakedefine01 ENABLE_PULSEAUDIO
|
||||
|
@ -102,12 +103,13 @@ const auto version_details = [](const std::vector<std::string>& 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 %cxkeyboard\n",
|
||||
printf("Features: %calsa %ccurl %ci3 %cmpd %cnetwork(%s) %cpulseaudio %cxkeyboard\n",
|
||||
(ENABLE_ALSA ? '+' : '-'),
|
||||
(ENABLE_CURL ? '+' : '-'),
|
||||
(ENABLE_I3 ? '+' : '-'),
|
||||
(ENABLE_MPD ? '+' : '-'),
|
||||
(ENABLE_NETWORK ? '+' : '-'),
|
||||
WIRELESS_LIB,
|
||||
(ENABLE_PULSEAUDIO ? '+' : '-'),
|
||||
(ENABLE_XKEYBOARD ? '+' : '-'));
|
||||
if (extended) {
|
||||
|
|
Loading…
Reference in a new issue