for now, libinput didn't depend on any specific GUI libraries. However, libwacom cannot be compiled without glib2 as well as gudev. Pulling in those quite heavy libraries only for the sake of supporting a single specific type of input devices without the option to compile libinput-1.2.0 or higher without those libraries is bad practise, imho. Please fix it.
already possible, please use ./configure --disable-libwacom
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.