[PATCH weston v3 11/11] configure: add an option to allow building only the libraries

2015-06-27 Thread Giulio Camuffo
the --enable/disable-weston-binaries enables or disables the creation of 'weston', 'weston-launch' and all the binaries that are installed in $prefix/lib/libexec. This allows, together with --enable-clients, to only build the libraries, making possible to build and install different libweston versi

[PATCH weston v3 09/11] libweston: handle the screenshoot and record bindings in weston.c

2015-06-27 Thread Giulio Camuffo
Move the code launching the screenshooter client and implementing the screenshot protocol out of libweston, and make screenshooter.c a generic way to hook screenshoot protocols into weston. A new header weston.h is added, with an entry point for the shells to init the screenshooter. --- Makefile.a

[PATCH weston v3 03/11] compositor: move the main() to a new main.c file

2015-06-27 Thread Giulio Camuffo
This commits starts to separate the libweston code from the weston specific code. As such, the main() is moved, together with signals handling and configuration handling. --- Makefile.am | 1 + src/compositor.c | 805 +--- src/main.c | 8

[PATCH weston v3 10/11] text: build the text-backend in weston

2015-06-27 Thread Giulio Camuffo
It uses the weston_client_launch API, which is not available in libweston. --- Makefile.am | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 6cb24a0..5cf2aac 100644 --- a/Makefile.am +++ b/Makefile.am @@ -79,7 +79,6 @@ libweston_@ABI_V

[PATCH weston v3 06/11] build a libweston.so used by the weston binary

2015-06-27 Thread Giulio Camuffo
The library is versioned, so a -N is appended to its name, e.g. libweston-1.so. The same is done for the pc file, the include and lib/weston dirs. This allows multiple libweston versions to be installed together. Additionally, a new libweston.pc is introduced in paraller with weston.pc, which is us

[PATCH weston v3 08/11] libweston: move the child process launching and monitoring to weston

2015-06-27 Thread Giulio Camuffo
libweston still used those functions internally, so it was not linkable yet by other compositors. --- src/compositor.c | 144 -- src/main.c | 145 +++ 2 files changed, 145 insertions(+), 1

[PATCH weston v3 07/11] libweston: allow compositors to define the logging behavior

2015-06-27 Thread Giulio Camuffo
--- Makefile.am | 2 +- src/compositor.h | 5 ++-- src/log.c| 69 ++--- src/main.c | 78 4 files changed, 89 insertions(+), 65 deletions(-) diff --git a/Makefile.am b/Makefile

[PATCH weston v3 05/11] compositor: remove the weston_config field from weston_compositor

2015-06-27 Thread Giulio Camuffo
Instead of the central weston_config pointer we now store it in some module-specific pointers. This way we can remove them one by one. --- desktop-shell/shell.c | 8 +++--- desktop-shell/shell.h | 1 + fullscreen-shell/fullscreen-shell.c | 3 ++- ivi-shell/hmi-contro

[PATCH weston v3 04/11] make the backends compositor-neutral

2015-06-27 Thread Giulio Camuffo
The backends used to have lots of code dealing with weston specific configs. To allow them to be used by other compositors with their own configurations remove all the usage of weston_config from the backends code and move it in weston.c. The backends are now initialized with the new weston_composi

[PATCH weston v3 00/11] libweston

2015-06-27 Thread Giulio Camuffo
Hi, i'm sending out the libweston series again, rebased and with most of the comments on v2 addressed. The only outstanding issue is the conundrum about the backends configuration, but i do not feel we have a consensus at the moment, or a solid proposal of an alternative way. Imho, it would make s

[PATCH weston v3 02/11] compositor: add API to manage compositor instances

2015-06-27 Thread Giulio Camuffo
This commit adds three new exported functions: - weston_compositor_create() returns a new weston_compositor instance, initializing it as the now removed weston_compositor_init() did. - weston_compositor_exit(compositor) asks the compositor to tear down by calling the compositor's exit vfunc which i

Re: [PATCH weston 04/11] make the backends compositor-neutral

2015-06-27 Thread Giulio Camuffo
2015-06-24 4:05 GMT+03:00 Jon A. Cruz : > Just a few minor low-level items in this feedback... > [snip] >> diff --git a/src/compositor.c b/src/compositor.c >> index 6e111f1..b063265 100644 >> --- a/src/compositor.c >> +++ b/src/compositor.c >> @@ -4544,6 +4544,43 @@ fail: >> return NULL; >>

Re: [PATCH weston 04/11] make the backends compositor-neutral

2015-06-27 Thread Giulio Camuffo
2015-06-24 4:46 GMT+03:00 Jon A. Cruz : > On 06/22/2015 10:51 PM, Giulio Camuffo wrote: >> 2015-06-23 3:52 GMT+03:00 Bill Spitzak : >>> It seems like prev >>> >>> On Mon, Jun 22, 2015 at 1:02 PM, Giulio Camuffo >>> wrote: The backends used to have lots of code dealing with weston specifi