Libgbm is a gbm library wrapper needed to build and run Firefox with Pipewire support on Linux (https://gitlab.freedesktop.org/mesa/gbm).
libgbm directory stores headers of libgbm needed for build only. gbm stores the vendored upstream header.