blob: 3fdfb37f3195cace1d6d786c0a45e5962c94f14e [file] [log] [blame]
Pekka Paalanen2abe4452015-07-14 13:05:34 +03001 Weston
2 ======
Kristian Høgsberga6f69992010-09-14 12:41:26 -04003
Kristian Høgsberg72e023c2012-07-20 12:26:23 -04004Weston is the reference implementation of a Wayland compositor, and a
5useful compositor in its own right. Weston has various backends that
6lets it run on Linux kernel modesetting and evdev input as well as
7under X11. Weston ships with a few example clients, from simple
8clients that demonstrate certain aspects of the protocol to more
9complete clients and a simplistic toolkit. There is also a quite
10capable terminal emulator (weston-terminal) and an toy/example desktop
11shell. Finally, weston also provides integration with the Xorg server
12and can pull X clients into the Wayland desktop and act as a X window
13manager.
14
Bryce W. Harringtonc74ab152014-02-03 21:37:06 +000015Refer to http://wayland.freedesktop.org/building.html for building
Kristian Høgsberg72e023c2012-07-20 12:26:23 -040016weston and its dependencies.
Bryce W. Harringtonc74ab152014-02-03 21:37:06 +000017
18The test suite can be invoked via `make check`; see
19http://wayland.freedesktop.org/testing.html for additional details.
Pekka Paalanen2abe4452015-07-14 13:05:34 +030020
Jon A. Cruz179c1862015-07-15 19:22:43 -070021Developer documentation can be built via `make doc`. Output will be in
22the build root under
23
24docs/developer/html/index.html
25docs/tools/html/index.html
26
Pekka Paalanen2abe4452015-07-14 13:05:34 +030027
28
29 Libweston
30 =========
31
32Libweston is an effort to separate the re-usable parts of Weston into
33a library. Libweston provides most of the boring and tedious bits of
34correctly implementing core Wayland protocols and interfacing with
35input and output systems, so that people who just want to write a new
36"Wayland window manager" (WM) or a small desktop environment (DE) can
37focus on the WM part.
38
39Libweston was first introduced in Weston 1.9, and is expected to
40continue evolving through many Weston releases before it achieves a
41stable API and feature completeness.
42
43
44API (in)stability and parallel installability
45---------------------------------------------
46
47As libweston's API surface is huge, it is impossible to get it right
48in one go. Therefore developers reserve the right to break the API
49between every 1.x.0 Weston release (minor version bumps), just like
50Weston's plugin API does. For git snapshots of the master branch, the
51API can break any time without warning or version bump.
52
53Libweston API or ABI will not be broken between Weston's stable
54releases 1.x.0 and 1.x.y, where y < 90.
55
56To make things tolerable for libweston users despite ABI breakages,
57libweston is designed to be perfectly parallel-installable. An
58ABI-version is defined for libweston, and it is bumped for releases as
59needed. Different ABI-versions of libweston can be installed in
60parallel, so that external projects can easily depend on a particular
61ABI-version, and they do not have to fight over which ABI-version is
62installed in a user's system. This allows a user to install many
63different compositors each requiring a different libweston ABI-version
64without tricks or conflicts.
65
66Note, that versions of Weston itself will not be parallel-installable,
67only libweston is.
68
69For more information about parallel installability, see
70http://ometer.com/parallel.html
71
72
73Libweston design goals
74----------------------
75
76The high-level goal of libweston is that what used to be shell plugins
77will be main executables. Instead of launching 'weston' with various
78arguments to choose the shell, one would be launching
79'weston-desktop', 'weston-ivi', 'orbital', etc. The main executable
80(the hosting program) links to libweston for a fundamental compositor
81implementation. Libweston is also intended for use by other projects
82who want to create new "Wayland WMs".
83
84The libweston API/ABI will be separating the shell logic and main
85program from the rest of the "Weston compositor" (libweston
86internals).
87
88Details:
89
90- All configuration and user interfaces will be outside of libweston.
91 This includes command line parsing, configuration files, and runtime
92 (graphical) UI.
93
94- The hosting program (main executable) will be in full control of all
95 libweston options. Libweston should not have user settable options
96 that would work behind the hosting program's back, except perhaps
97 debugging features and such.
98
99- Signal handling will be outside of libweston.
100
101- Child process execution and management will be outside of libweston.
102
103- The different backends (drm, fbdev, x11, etc) will be an internal
104 detail of libweston. Libweston will not support third party
105 backends. However, hosting programs need to handle
106 backend-specific configuration due to differences in behaviour and
107 available features.
108
109- Renderers will be libweston internal details too, though again the
110 hosting program may affect the choice of renderer if the backend
111 allows, and maybe set renderer-specific options.
112
113- plugin design ???
114
115- xwayland ???
116
117There are still many more details to be decided.
118
119
120For packagers
121-------------
122
123Always build Weston with --with-cairo=image.
124
125The Weston project is (will be) intended to be split into several
126binary packages, each with its own dependencies. The maximal split
127would be roughly like this:
128
129- libweston (minimal dependencies):
130 + headless backend
131 + wayland backend
132
133- gl-renderer (depends on GL libs etc.)
134
135- drm-backend (depends on libdrm, libgbm, libudev, libinput, ...)
136
137- x11-backend (depends of X11/xcb libs)
138
139- xwayland (depends on X11/xcb libs)
140
141- rpi-backend (depends on DispmanX, libudev, ...)
142
143- fbdev-backend (depends on libudev...)
144
145- rdp-backend (depends on freerdp)
146 + screen-share
147
148- weston (the executable, not parallel-installable):
149 + desktop shell
150 + ivi-shell
151 + fullscreen shell
152 + weston-info, weston-terminal, etc. we install by default
153
154- weston demos (not parallel-installable)
155 + weston-simple-* programs
156 + possibly all the programs we build but do not install by
157 default
158
159- and possibly more...
160
161Everything should be parallel-installable across libweston
162ABI-versions, except those explicitly mentioned.
163
164Weston's build may not sanely allow this yet, but this is the
165intention.