From 359fc1cb5dbbcf32132c3e8ee6f881a23deff684 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Wed, 21 Mar 2012 14:42:35 +0100 Subject: Use the spice-common submodule This patch will replace the common/ directory with the spice-common project. It is for now a simple project subdirectory shared with spice-gtk, but the goal is to make it a proper library later on. With this change, the spice-server build is broken. The following commits fix the build, and have been seperated to ease the review. v2 - moves all the generated marshallers to spice-common library - don't attempt to fix windows VS build, which should somehow be splitted with spice-common (or built from tarball only to avoid generation tools/libs deps) v3 - uses libspice-common-client - fix a mutex.h inclusion reported by Alon --- client/Makefile.am | 62 ++++++++++++++++++------------------------------------ 1 file changed, 20 insertions(+), 42 deletions(-) (limited to 'client/Makefile.am') diff --git a/client/Makefile.am b/client/Makefile.am index c4b5fe1f..4913c1ee 100644 --- a/client/Makefile.am +++ b/client/Makefile.am @@ -2,27 +2,6 @@ NULL = bin_PROGRAMS = spicec -BUILT_SOURCES = \ - generated_demarshallers.cpp \ - generated_marshallers.cpp \ - generated_demarshallers1.cpp \ - generated_marshallers1.cpp \ - $(NULL) - -generated_demarshallers.cpp: $(top_srcdir)/spice.proto - $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-demarshallers --client --include common.h --include messages.h $(top_srcdir)/spice.proto generated_demarshallers.cpp - -generated_demarshallers1.cpp: $(top_srcdir)/spice1.proto - $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-demarshallers --client --include common.h --include messages.h --prefix 1 --ptrsize 8 $(top_srcdir)/spice1.proto generated_demarshallers1.cpp - -generated_marshallers.cpp: $(top_srcdir)/spice.proto - $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-marshallers -P --include "common.h" --include messages.h --include marshallers.h --client $(top_srcdir)/spice.proto generated_marshallers.cpp - -generated_marshallers1.cpp: $(top_srcdir)/spice1.proto - $(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-marshallers -P --include "common.h" --include messages.h --include marshallers.h --client --prefix 1 --ptrsize 8 $(top_srcdir)/spice1.proto generated_marshallers1.cpp - -MAINTAINERCLEANFILES = $(BUILT_SOURCES) - spicec_SOURCES = \ application.cpp \ application.h \ @@ -43,7 +22,6 @@ spicec_SOURCES = \ cursor_channel.cpp \ cursor_channel.h \ debug.h \ - demarshallers.h \ display_channel.cpp \ display_channel.h \ event_sources.h \ @@ -63,7 +41,6 @@ spicec_SOURCES = \ inputs_handler.h \ jpeg_decoder.cpp \ jpeg_decoder.h \ - marshallers.h \ menu.cpp \ menu.h \ mjpeg_decoder.cpp \ @@ -230,7 +207,7 @@ INCLUDES = \ $(GL_CFLAGS) \ $(MISC_X_CFLAGS) \ $(PIXMAN_CFLAGS) \ - $(PROTOCOL_CFLAGS) \ + $(COMMON_CFLAGS) \ $(SPICE_NONPKGCONFIG_CFLAGS) \ $(SMARTCARD_CFLAGS) \ $(SSL_CFLAGS) \ @@ -243,24 +220,25 @@ INCLUDES = \ spicec_LDFLAGS = $(SPICEC_STATIC_LINKAGE_BSTATIC) -spicec_LDADD = \ - $(top_builddir)/common/libspice-common.la \ - $(ALSA_LIBS) \ - $(CEGUI_LIBS) \ - $(CEGUI06_LIBS) \ - $(CELT051_LIBS) \ - $(GL_LIBS) \ - $(JPEG_LIBS) \ - $(MISC_X_LIBS) \ - $(PIXMAN_LIBS) \ - $(SMARTCARD_LIBS) \ - $(SPICE_NONPKGCONFIG_LIBS) \ - $(SSL_LIBS) \ - $(XFIXES_LIBS) \ - $(XRANDR_LIBS) \ - $(Z_LIBS) \ - $(XINERAMA_LIBS) \ - $(spicec_resource_LDADD) \ +spicec_LDADD = \ + $(top_builddir)/spice-common/common/libspice-common.la \ + $(top_builddir)/spice-common/common/libspice-common-client.la \ + $(ALSA_LIBS) \ + $(CEGUI_LIBS) \ + $(CEGUI06_LIBS) \ + $(CELT051_LIBS) \ + $(GL_LIBS) \ + $(JPEG_LIBS) \ + $(MISC_X_LIBS) \ + $(PIXMAN_LIBS) \ + $(SMARTCARD_LIBS) \ + $(SPICE_NONPKGCONFIG_LIBS) \ + $(SSL_LIBS) \ + $(XFIXES_LIBS) \ + $(XRANDR_LIBS) \ + $(Z_LIBS) \ + $(XINERAMA_LIBS) \ + $(spicec_resource_LDADD) \ $(NULL) EXTRA_DIST = \ -- cgit