Closed jirutka closed 2 years ago
I've merged it manually with the last three commits squashed, thanks again!
Hey @jirutka,
I used your APKBUILD as a reference for my rofi-wayland template for voidlinux. It compiles fine when using -Dxcb=disabled
, however, I cannot run rofi without compiling rofi-wayland with xcb-util-cursor-devel
as a dependancy.
Error message:
rofi: error while loading shared libraries: libxcb-cursor.so.0: cannot open shared object file: No such file or directory
EDIT: actually this might be a local issue, I will look into this further.
This PR replaces build option
wayland
with multi-choice optionbackends
which allows to choose which backends to build:xcb
(replaceswayland=disabled
)wayland
(this is the goal of this PR)xcb,wayland
(replaceswayland=enabled
)I’ve tested it on Alpine Linux – the following diff shows the difference between tracked dynamic dependencies between rofi built with both XCB and Wayland backends (the current state) and with Wayland backend only:
The difference in the rofi binary size: 350 kiB vs 408 kiB
NOTE: Alpine Linux package rofi-wayland is built with the patches from this PR (since 1.7.0-r1).
Resolves #29.