spice-common/common
Christophe Fergeau d88b144f1b autotools: correctly build canvas-related code
spice client and spice server shares code from
common/{gdi,gl,sw}_canvas.[ch]. However, while most of the code is
shared, the server code wants a canvas compiled with
SW_CANVAS_IMAGE_CACHE defined while the client code wants a canvas
compiled with SW_CANVAS_CACHE.

The initial autotools refactoring didn't take that into account,
this is now fixed by this commit. After this commit, the canvas
files from common/ are no longer compiled as part of the
libspice-common.la convenience library. Instead, there are "proxy"
canvas source files in client/ and server/ which #include the
appropriate C files after defining the relevant #define for the
binary that is being built.

To prevent misuse of the canvas c files and headers in common/,
SPICE_CANVAS_INTERNAL must be set when including the canvas headers
from common/ or when building the c files from common/ otherwise
the build will error out.
2012-03-20 15:25:51 +01:00
..
win Add files i forgot to commit 2012-03-20 15:25:48 +01:00
.gitignore fresh start 2012-03-20 15:25:36 +01:00
canvas_base.c autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00
canvas_base.h autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00
canvas_utils.c server: Fix alloc_lz_image_surface stride allocations 2012-03-20 15:25:49 +01:00
canvas_utils.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
draw.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
gdi_canvas.c autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00
gdi_canvas.h autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00
gl_canvas.c autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00
gl_canvas.h autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00
gl_utils.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
glc.c common/gl: remove unused variable 2012-03-20 15:25:51 +01:00
glc.c.save fresh start 2012-03-20 15:25:36 +01:00
glc.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
lines.c Initialize variable to avoid compiler warning 2012-03-20 15:25:50 +01:00
lines.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
lz_common.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
lz_compress_tmpl.c Fix spelling errors in comments and strings 2012-03-20 15:25:42 +01:00
lz_config.h Use macros from <spice/macros.h> rather than duplicate them 2012-03-20 15:25:40 +01:00
lz_decompress_tmpl.c Fix spelling errors in comments and strings 2012-03-20 15:25:42 +01:00
lz.c mingw32 build: fix signed/unsigned warnings as errors 2012-03-20 15:25:50 +01:00
lz.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
Makefile.am autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00
marshaller.c Fix sign warnings from win32 compiler 2012-03-20 15:25:48 +01:00
marshaller.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
mem.c common: add SpiceBuffer - based on qemu-vnc Buffer 2012-03-20 15:25:51 +01:00
mem.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
messages.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
mutex.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
ogl_ctx.c Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
ogl_ctx.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
pixman_utils.c common/pixman: remove dead assignments 2012-03-20 15:25:51 +01:00
pixman_utils.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
quic_config.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
quic_family_tmpl.c Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
quic_rgb_tmpl.c Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
quic_tmpl.c Relicense everything from GPL to LGPL 2.1+ 2012-03-20 15:25:41 +01:00
quic.c use foo(void) instead of foo() in prototypes 2012-03-20 15:25:51 +01:00
quic.h use foo(void) instead of foo() in prototypes 2012-03-20 15:25:51 +01:00
rect.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
region.c Fix warnings breaking win32 build 2012-03-20 15:25:41 +01:00
region.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
ring.h common: add extern "C" guards to headers 2012-03-20 15:25:51 +01:00
rop3.c use foo(void) instead of foo() in prototypes 2012-03-20 15:25:51 +01:00
rop3.h use foo(void) instead of foo() in prototypes 2012-03-20 15:25:51 +01:00
spice_common.h use foo(void) instead of foo() in prototypes 2012-03-20 15:25:51 +01:00
sw_canvas.c autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00
sw_canvas.h autotools: correctly build canvas-related code 2012-03-20 15:25:51 +01:00