On Sat Aug 06, 2022 at 08:58:30AM +0200, Sebastien Marie wrote:
> Hi,
> 
> wayland/input-event-codes intents is to provide input-event-codes definition 
> from linux headers. Wayland defines several constants as "code as defined in 
> the 
> Linux kernel's linux/input-event-codes.h header file".
> 
> This port exports linux/input-event-codes.h header (only comments and 
> #define) 
> and linux/input.h (which only include the previous header).
> 
> including linux/input.h is the usual way to get input-event-codes definition.
> 
> Such headers is necessary to properly build some libraries or programs with 
> wayland support (without defining the constants like BTN_LEFT with patches).
> 
> 
> The port itself is very simple, but the fallout to have ports picking 
> <linux/input.h> is somehow important.
> 
> If possible, I would like to have a bulk build with wayland/input-event-codes 
> installed, in order to see if the presence of linux/input.h header makes 
> problems or not.
> 
> Thanks.
> -- 
> Sebastien Marie

Hi Sebastien,

We could hide this in ${LOCALBASE}/include/libinput/ and use it explicit
by setting FLAGS -I.

I forked[1] libinput from mpi@[2] and updated libinput.h. You can find the port 
here:
https://github.com/sizeofvoid/wip-ports/tree/kde-plasma-wip/wayland/libinput

I did all the hacks to build kde-plasma/kwin in
wip-ports/tree/kde-plasma-wip. Currently I am failing at :

/usr/ports/pobj/kwin-5.25.4/kwin-5.25.4/src/inputmethod.cpp:44:10: fatal error: 
'linux/input-event-codes.h' file not found
#include <linux/input-event-codes.h>

Rafael

1: https://github.com/sizeofvoid/libinput
2: https://github.com/mpieuchot/libinput

Reply via email to