Provide libgbm in SDK
Context
When moving mesa to an extension, we have not exposed libgbm into the SDK, because we cannot split backend from the interface easily without exposing some private data structures in the SDK.
We decided to not expose it because we believed no application needed it directly. Most applications would use EGL because GBM does not work on all GPUs.
However there is virglrenderer which is used by GNOME Boxes that links to it.
Description
I propose we ship gbm headers in the SDK with the library without any backend. And let's make sure that the GL extension has priority in ld.so.cache
.
Acceptance Criteria
- We can link to libgbm.
- We can run with a dumb libgbm when using nvidia drivers.
- It dynamically link to libgbm from extension instead when it is available.