Libraries¶
The Mir project is a collection of C++ libraries for writing Wayland compositors. This document describes what those libraries are and how they depend on one another.
Public Libraries¶
The following libraries are intended for published for public consumption:
miralmircommonmircoremiroilmirplatformmirservermirserverlttngmirwayland
When you build the project, these libraries are found in
<build_directory>/lib.
Additionally, Mir publishes libraries that add support for different platforms.
These can be found in <build_directory>/lib/server-modules. These libraries
are loaded at runtime by Mir and provide access to the underlying graphics and
input hardware of that platform. The libraries that Mir provides are:
graphics-gbm-kmsgraphics-eglstream-kmsgraphics-waylandgraphics-dummyserver-x11server-virtualrenderer-egl-genericinput-evdevinput-stub
Dependency Graph¶
In the following diagram, each arrow denotes that the library at the start of the arrow depends on the library at the end of the arrow.
flowchart
miral ---> mirserver
miral ---> mircommon
miral ---> mircore
miroil ---> mirserver
miroil --> mircommon
mirserver --> mirplatform
mirserver --> mircommon
mirserver --> mirserverlttng
mirserver --> mircore
mirserver --->|dynamically loads|graphics_X
mirserver --->|dynamically loads|input_X
mirwayland --> mircore
graphics_X --> mirplatform
graphics_X --> mircommon
graphics_X --> mircore
input_X --> mirplatform
input_X --> mircommon
input_X --> mircore
There are a few things of note in this diagram:
miralandmircoreare intended to be the primary user-facing librariesmiroilis a special compatibility layer for the Lomiri project is not intended for general consumptionmirserverdepends on the most libraries as it is the brains of the operationmircommonprovide common functionalities for every other library in the systemThe input and graphics platforms (represented as
input_Xandgraphics_Xin the diagram) are dynamically loaded bymirserverwhen the engine starts up.