fix(build): Optional XKB
This commit is contained in:
parent
d67515d575
commit
f6ae5bd191
3 changed files with 30 additions and 3 deletions
include/modules
|
@ -1,5 +1,5 @@
|
|||
#pragma once
|
||||
#if ENABLE_I3 && ENABLE_MPD && ENABLE_NETWORK && ENABLE_ALSA
|
||||
#if ENABLE_I3 && ENABLE_MPD && ENABLE_NETWORK && ENABLE_ALSA && WITH_XKB
|
||||
#error "Support has been enabled for all optional modules"
|
||||
#endif
|
||||
|
||||
|
@ -12,6 +12,9 @@
|
|||
#if not ENABLE_NETWORK
|
||||
#include "modules/meta/timer_module.inl"
|
||||
#endif
|
||||
#if not WITH_XKB
|
||||
#include "modules/meta/static_module.inl"
|
||||
#endif
|
||||
|
||||
POLYBAR_NS
|
||||
|
||||
|
@ -59,6 +62,9 @@ namespace modules {
|
|||
#if not ENABLE_ALSA
|
||||
DEFINE_UNSUPPORTED_MODULE(volume_module, "internal/volume");
|
||||
#endif
|
||||
#if not WITH_XKB
|
||||
DEFINE_UNSUPPORTED_MODULE(xkeyboard_module, "internal/xkeyboard");
|
||||
#endif
|
||||
}
|
||||
|
||||
POLYBAR_NS_END
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue