summaryrefslogtreecommitdiffstats
path: root/python_modules
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-20 11:09:55 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:51 +0100
commit4fafa210df5b106614246b04e4d31877bb47476a (patch)
tree56bce5ed49f43defb42822807cc9925336748285 /python_modules
parenteda7b8938a15ee2a5fcde5b201258403d2287644 (diff)
downloadspice-common-4fafa210df5b106614246b04e4d31877bb47476a.tar.gz
spice-common-4fafa210df5b106614246b04e4d31877bb47476a.tar.xz
spice-common-4fafa210df5b106614246b04e4d31877bb47476a.zip
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.
Diffstat (limited to 'python_modules')
0 files changed, 0 insertions, 0 deletions