refactor(build): Build wihtout xkb
The only reason polybar couldn't build without xkb is because the xkeyboard module's source file was not removed during compilation. xkeyboard already has an entry in unsupported.hpp This effectively makes xcb-util-xkb optional
This commit is contained in:
parent
943fd1aaec
commit
f7a6e5ba98
@ -9,6 +9,7 @@ checklib(ENABLE_MPD "pkg-config" libmpdclient)
|
|||||||
checklib(ENABLE_NETWORK "cmake" Libiw)
|
checklib(ENABLE_NETWORK "cmake" Libiw)
|
||||||
checklib(ENABLE_PULSEAUDIO "pkg-config" libpulse)
|
checklib(ENABLE_PULSEAUDIO "pkg-config" libpulse)
|
||||||
checklib(ENABLE_PULSEAUDIO "binary" pulseaudio)
|
checklib(ENABLE_PULSEAUDIO "binary" pulseaudio)
|
||||||
|
checklib(WITH_XKB "pkg-config" xcb-xkb)
|
||||||
checklib(WITH_XRM "pkg-config" xcb-xrm)
|
checklib(WITH_XRM "pkg-config" xcb-xrm)
|
||||||
checklib(WITH_XRANDR_MONITORS "pkg-config" "xcb-randr>=1.12")
|
checklib(WITH_XRANDR_MONITORS "pkg-config" "xcb-randr>=1.12")
|
||||||
checklib(WITH_XCURSOR "pkg-config" "xcb-cursor")
|
checklib(WITH_XCURSOR "pkg-config" "xcb-cursor")
|
||||||
|
@ -49,6 +49,7 @@ if(NOT WITH_XCOMPOSITE)
|
|||||||
endif()
|
endif()
|
||||||
if(NOT WITH_XKB)
|
if(NOT WITH_XKB)
|
||||||
list(REMOVE_ITEM files x11/extensions/xkb.cpp)
|
list(REMOVE_ITEM files x11/extensions/xkb.cpp)
|
||||||
|
list(REMOVE_ITEM files modules/xkeyboard.cpp)
|
||||||
endif()
|
endif()
|
||||||
if(NOT WITH_XRM)
|
if(NOT WITH_XRM)
|
||||||
list(REMOVE_ITEM files x11/xresources.cpp)
|
list(REMOVE_ITEM files x11/xresources.cpp)
|
||||||
|
Loading…
Reference in New Issue
Block a user