spice/common
Christophe Fergeau 2a4614ea94 autotools: refactor the whole build machinery
spice Makefile.am setup is a bit confusing, with source file
names being listed several times in different Makefile.am
(generally, once in EXTRA_DIST and another time in another
Makefile.am in _SOURCES). The client binaries are built
by client/x11/Makefile.am, which means recursing into client,
then into x11 to finally build spicec. This Makefile.am is
also referencing files from common/ and client/, which is
a bit unusual with autotools.

This patch attempts to simplify the build process to get
something more usual from an autotools point of view.
The source from common/ are compiled into a libtool convenience
library, which the server and the client links against which avoids
referencing source files from common/ when building the server and
the client. The client is built in client/Makefile.am and directly
builds files from x11/ windows/ and gui/ if needed (without
recursing in these subdirectories).

This makes the build simpler to understand, and also makes it
possible to list source files once, which avoids potential
make distcheck breakage when adding new files.

There is a regression in this patch with respect to
sw_canvas/gl_canvas/gdi_canvas. They should be built with
different preprocessor #defines resulting in different behaviour
of the canvas for the client and the server. However, this is not
currently the case, both the client and the server will use the same
code for now (which probably means one of them is broken). This will
be fixed in a subsequent commit.

make distcheck passes, but compilation on windows using the
autotools build system hasn't been tested, which means it's likely
to be broken. It shouldn't be too hard ot fix it though, just let
me know of any issues with this.
2011-05-03 14:44:10 +02:00
..
win Add files i forgot to commit 2010-07-09 11:57:09 +02:00
.gitignore fresh start 2009-10-14 15:06:41 +02:00
canvas_base.c common: don't try to redefine PANIC if it already exists 2011-05-02 11:24:44 +02:00
canvas_base.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
canvas_utils.c server: Fix alloc_lz_image_surface stride allocations 2010-08-26 09:38:36 +02:00
canvas_utils.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
draw.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
gdi_canvas.c use foo(void) instead of foo() in prototypes 2011-05-02 11:24:44 +02:00
gdi_canvas.h use foo(void) instead of foo() in prototypes 2011-05-02 11:24:44 +02:00
gl_canvas.c use foo(void) instead of foo() in prototypes 2011-05-02 11:24:44 +02:00
gl_canvas.h use foo(void) instead of foo() in prototypes 2011-05-02 11:24:44 +02:00
gl_utils.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
glc.c common/gl: remove unused variable 2011-03-23 11:26:33 +01:00
glc.c.save fresh start 2009-10-14 15:06:41 +02:00
glc.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
lines.c Initialize variable to avoid compiler warning 2010-09-29 12:47:15 +02:00
lines.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
lz_common.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
lz_compress_tmpl.c Fix spelling errors in comments and strings 2010-05-21 10:51:28 +02:00
lz_config.h Use macros from <spice/macros.h> rather than duplicate them 2010-03-09 11:10:00 +01:00
lz_decompress_tmpl.c Fix spelling errors in comments and strings 2010-05-21 10:51:28 +02:00
lz.c mingw32 build: fix signed/unsigned warnings as errors 2010-12-08 17:11:45 +02:00
lz.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
Makefile.am autotools: refactor the whole build machinery 2011-05-03 14:44:10 +02:00
marshaller.c Fix sign warnings from win32 compiler 2010-07-08 15:44:39 +02:00
marshaller.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
mem.c common: add SpiceBuffer - based on qemu-vnc Buffer 2011-02-28 16:36:35 +01:00
mem.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
messages.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
mutex.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
ogl_ctx.c Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
ogl_ctx.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
pixman_utils.c common/pixman: remove dead assignments 2011-04-08 12:14:19 +02:00
pixman_utils.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
quic_config.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
quic_family_tmpl.c Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
quic_rgb_tmpl.c Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
quic_tmpl.c Relicense everything from GPL to LGPL 2.1+ 2010-04-13 22:22:15 +02:00
quic.c use foo(void) instead of foo() in prototypes 2011-05-02 11:24:44 +02:00
quic.h use foo(void) instead of foo() in prototypes 2011-05-02 11:24:44 +02:00
rect.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
region.c Fix warnings breaking win32 build 2010-04-23 16:36:31 +02:00
region.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
ring.h common: add extern "C" guards to headers 2011-05-02 11:24:44 +02:00
rop3.c use foo(void) instead of foo() in prototypes 2011-05-02 11:24:44 +02:00
rop3.h use foo(void) instead of foo() in prototypes 2011-05-02 11:24:44 +02:00
spice_common.h use foo(void) instead of foo() in prototypes 2011-05-02 11:24:44 +02:00
sw_canvas.c use foo(void) instead of foo() in prototypes 2011-05-02 11:24:44 +02:00
sw_canvas.h use foo(void) instead of foo() in prototypes 2011-05-02 11:24:44 +02:00