Make linux/input.h compile time optional
ClosedPublic

Authored by graesslin on Aug 3 2016, 6:59 AM.

Details

Summary

Instead of hard depending on the include of linux/input.h we check
whether that include file exists and properly ifdef all usages.

Unfortunately there is no replacement for those parts which do mapping
of input event codes.

Diff Detail

Repository
R127 KWayland
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 5649.Aug 3 2016, 6:59 AM
graesslin retitled this revision from to Make linux/input.h compile time optional.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma on Wayland.
Restricted Application added a project: Plasma on Wayland. · View Herald TranscriptAug 3 2016, 6:59 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
tcberner edited edge metadata.Aug 3 2016, 7:18 AM

On FreeBSD we have linux/input.h provided by multimedia/v4l_compat [1] -- which we already depend on at the moment.

But I think it's a good idea to make it optional.

[1] https://www.freshports.org/multimedia/v4l_compat

sebas accepted this revision.Aug 19 2016, 12:54 PM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Aug 19 2016, 12:54 PM
This revision was automatically updated to reflect the committed changes.