[PATCH weston v2 00/17] libweston

Giulio Camuffo giuliocamuffo at gmail.com
Thu Dec 4 13:01:06 PST 2014


This is the second version of libwayland, rebased on top of master.
There are no big differences. Apart a few fixes, the main new thing is
that libweston.so is now libweston-1.so, and also $prefix/lib/weston
is not $prefix/lib/weston-1. Same thing for $prefix/include/weston.
The '-1' is supposed to be incremented every time the libweston abi/api
changes, this way multiple libweston versions required by different
installed compositor can live together in the same system.

There is also a new --enable-weston-binaries option for the configure,
enabled by default. When disabled the 'weston' binary and other
weston-the-compositor specific binaries will not be built.

I think i'm pretty happy with this. Not every weston feature can
be used by other libweston compositors yet (such as the screencaster),
but those can be moved whit follow up patches when needed. All the basics
work fine as far as i can see and i'd like to not add more changes to
this patch set since rebasing is becoming quite tedious and not trivial.


I have the patchset available on [0] too. FYI, i've been working on
a compositor using Qt and libweston, [1].

[0]: https://github.com/giucam/weston/tree/libweston
[1]: https://github.com/giucam/orbital/tree/master/src/compositor

Giulio Camuffo (17):
  compositor: introduce struct weston_backend
  don't use weston_config in the backends code
  compositor: remove the weston_config field from weston_compositor
  compositor: add API to manage compositor instances
  compositor: move the main() to a new weston.c file
  build a libweston.so used by the weston binary
  libweston: allow compositors to define the logging behavior
  libweston: move the child process launching and monitoring to weston
  libweston: handle the screenshoot and record bindings in weston.c
  text: build the text-backend in weston
  libweston: expose the X11 backend's API
  libweston: expose the drm backend's API
  libweston: make a shared library for compositor launchers
  libweston: expose the wayland backend API
  libweston: libweston-ify xwayland
  libweston: version the libweston .so's and the weston include and lib
    paths
  configure: add an option to allow building only the libraries

 Makefile.am                         |  118 +++-
 configure.ac                        |    8 +
 desktop-shell/shell.c               |   10 +-
 desktop-shell/shell.h               |    1 +
 fullscreen-shell/fullscreen-shell.c |    3 +-
 ivi-shell/hmi-controller.c          |   18 +-
 ivi-shell/ivi-shell.c               |    8 +-
 src/cms-colord.c                    |    3 +-
 src/cms-static.c                    |    7 +-
 src/compositor-drm.c                |  951 ++++++++++++++--------------
 src/compositor-drm.h                |   60 ++
 src/compositor-fbdev.c              |  180 +++---
 src/compositor-headless.c           |  104 +--
 src/compositor-rdp.c                |  157 ++---
 src/compositor-rpi.c                |  164 ++---
 src/compositor-wayland.c            |  404 ++++++------
 src/compositor-wayland.h            |   51 ++
 src/compositor-x11.c                |  616 +++++++++---------
 src/compositor-x11.h                |   27 +
 src/compositor.c                    |  902 +-------------------------
 src/compositor.h                    |   41 +-
 src/input.c                         |    2 +-
 src/libinput-device.c               |   29 +-
 src/libinput-device.h               |    2 +
 src/libinput-seat.c                 |   29 +-
 src/libinput-seat.h                 |    8 +
 src/log.c                           |   69 +-
 src/screenshooter.c                 |  176 +-----
 src/text-backend.c                  |   10 +-
 src/weston-launch.c                 |  698 +-------------------
 src/weston-launcher.c               |  769 +++++++++++++++++++++++
 src/weston-launcher.h               |   45 ++
 src/weston.c                        | 1188 +++++++++++++++++++++++++++++++++++
 tests/surface-global-test.c         |    3 +-
 tests/surface-test.c                |    3 +-
 tests/weston-test.c                 |    3 +-
 xwayland/launcher.c                 |  153 +----
 xwayland/xwayland-module.c          |  188 ++++++
 xwayland/xwayland.h                 |   24 +-
 39 files changed, 3962 insertions(+), 3270 deletions(-)
 create mode 100644 src/compositor-drm.h
 create mode 100644 src/compositor-wayland.h
 create mode 100644 src/compositor-x11.h
 create mode 100644 src/weston-launcher.c
 create mode 100644 src/weston-launcher.h
 create mode 100644 src/weston.c
 create mode 100644 xwayland/xwayland-module.c

-- 
2.1.3



More information about the wayland-devel mailing list