Commit Graph

148 Commits

Author SHA1 Message Date
Christophe Fergeau
5d0649b8f0 build-sys: Remove client check from configure.ac
configure.ac is checking for pyparsing availability if
client/generated_marshallers.cpp is missing. The client/ code is gone, and
the python modules checks are done in spice-common/configure.ac
nowadays, so we can get rid of this check.
2015-10-07 18:26:00 +02:00
Frediano Ziglio
9e75019e65 build-sys: bump libtool version information
As one interface was added bump the version and put a comment to avoid
too much updates.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2015-10-06 17:09:16 +02:00
Frediano Ziglio
434c6e1007 build-sys: Update warning message
arch_warn was set to 1 only if architecture is not x86, x64 or arm.
Update the message as we actually mainly test x64.
Define the warning message and do the architecture checks in the
same place so that they are easier to keep in sync.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2015-09-07 14:55:45 +01:00
Christophe Fergeau
c615ebb01c build-sys: Require a new enough spice-protocol in .pc file
spice-server headers expose SpiceImageCompression which is only available
from recent spice-protocol releases.
This dependency must be expressed in Requires and not Requires.private
2015-08-26 11:01:09 +02:00
Christophe Fergeau
5acc017638 build-sys: Remove spice-protocol submodule
It's seeing regular releases and is API stable, so we don't need to
bundle it with spice-server
2015-08-20 12:30:55 +01:00
Francois Gouget
4ad3025249 HAVE_CLOCK_GETTIME is not used so remove it.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-06-29 17:50:26 +02:00
Christophe Fergeau
878d81dae4 build-sys: Fix build with automake < 1.13
AC_CONFIG_MACRO_DIRS is not available with older automake versions,
which causes autogen.sh failures on RHEL6. m4_include() can be used
instead.
2015-06-26 16:01:34 +02:00
Christophe Fergeau
e0a5cb591c build-sys: Use spice-common m4 macro for lz4
This will allow to share this detection code with spice-gtk.
2015-06-22 19:47:58 +02:00
Christophe Fergeau
27636d80de build-sys: Use spice-common m4 macro for opengl
This factorizes a bit of configure.ac m4 code.
2015-06-22 19:47:58 +02:00
Christophe Fergeau
fe2ca14fc2 build-sys: Use spice-common m4 macro for smartcard
Besides the code factorization, this will allow smartcard support to be
automatically enabled if libcacard is present and --disable-smartcard is
not used.
2015-06-22 19:47:58 +02:00
Jonathon Jongsma
edc52a4ead Use AS_HELP_STRING for configure options 2015-06-15 13:08:42 -05:00
Christophe Fergeau
f80eef8f9c build-sys: Replace cpu detection error with warning
configure.ac currently errors out when trying to build on
non-x86/non-ARM CPUs. Since the previous commits improved
big endian support a lot, this commit replaces the error
with a warning at configure time to make testing on big
endian platforms easier.
2015-04-10 20:24:15 +02:00
Christophe Fergeau
5b813b4340 build-sys: Remove unused 'X86_64' conditional
X86_64 was defined as an AM_CONDITIONAL, but then nothing was using it.
This commit gets rid of it.
2015-04-10 20:24:15 +02:00
Christophe Fergeau
1876971442 client: Remove client code
The client has been superseded by virt-viewer (
http://virt-manager.org/download/sources/virt-viewer/ ) and is no longer
being maintained.
2014-12-03 11:31:17 +01:00
Javier Celaya
b532ef0866 Add LZ4 compression support.
- Add lz4 encoder to compress an image of type LZ4 (see spice_common).
- Add code in red_worker to use LZ4 when it is enabled, and the client
  supports it through its display capability, or fallback to LZ.
- Add enable_lz4 switch in the configure script. Show LZ4 support at the
  end.
2014-12-02 19:41:17 +01:00
Christophe Fergeau
84b3a5079d configure.ac: Never add xinerama to SPICE_REQUIRES
SPICE_REQUIRES is only used to generate the Requires.private line of
spice-server.pc. The server code is not using xinerama, so we don't need
to list xinerama in Requires.private.
2014-12-01 14:58:43 +01:00
Christophe Fergeau
87149e48ed configure.ac: Only check for xinerama for client builds
Xinerama support is only used for the X11 client, but is currently
being checked even for server only builds. This commit ensures Xinerama
is not checked for/added to spice-server.pc when not building the
client.
2014-12-01 14:58:42 +01:00
Marc-André Lureau
ab12cf414c build-sys: generate spice-version.h
Editing the hexadecimal value of spice-version and keeping it in sync
with actual release is a bit tedious. Let's generate it
automatically (although handling of bumps will need temporarily static
versions, when 0.12 -> 1.0 for example)
2014-11-27 14:27:33 +01:00
Alexander Tsoy
4327e6afb8 configure.ac: use portable shell
This fixes the following errors when configure run in dash:

 ./configure: 17366: ./configure: SPICE_NONPKGCONFIG_LIBS+= -pthread -lm -lrt: not found
 ./configure: 17974: ./configure: SPICE_REQUIRES+= glib-2.0 >= 2.22: not found
 ./configure: 18069: ./configure: SPICE_REQUIRES+= pixman-1 >= 0.17.7: not found
 ./configure: 18165: ./configure: SPICE_REQUIRES+= celt051 >= 0.5.1.1: not found
 ./configure: 18369: ./configure: SPICE_REQUIRES+= openssl: not found
 ./configure: 18477: ./configure: SPICE_NONPKGCONFIG_LIBS+= : not found
 ./configure: 18948: ./configure: SPICE_REQUIRES+= xinerama: not found
 ./configure: 20377: test: no: unexpected operator
 ./configure: 20409: test: no: unexpected operator
 ./configure: 23423: test: xno: unexpected operator
 ./configure: 23443: test: no: unexpected operator
2014-11-21 10:21:24 +01:00
Marc-André Lureau
004744fd2f build-sys: check for spicy-screenshot 2014-09-08 14:49:29 +02:00
Christophe Fergeau
1aac71d51c Update libtool version information for 0.12.5 release 2014-05-19 14:21:08 +02:00
Christophe Fergeau
cdc04d567a Update 'release' instructions in configure.ac
The instructions are obsolete, replace them with the explanation about
how to handle current/revision/age from libtool manual:
https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
2014-05-19 14:19:36 +02:00
Christophe Fergeau
d9fa872a94 build-sys: Fix VPATH builds
Fixing this is a matter of picking the spice-common fix to generate the
(de)marshaller source files in the right place, and to adjust the compiler
flags to look for includes in the build directory as well.
2014-04-16 16:50:14 +02:00
Christophe Fergeau
37bf7a5163 doc: Generate chunked manual
This commit makes use of a2x in order to generate a chunked manual in
addition to the "all in one page" one.
2014-04-16 16:33:44 +02:00
Marc-André Lureau
2e730453bf Translate docbook -> asciidoc
It's much much easier to read and edit, and the end results looks better
as well, see http://elmarco.fedorapeople.org/manual.html
2014-03-19 17:14:44 +01:00
Christophe Fergeau
7095563153 Add reference manual
This manual documents how to enable/use various SPICE features when
creating a VM by running QEMU directly, or when using libvirt, or when
using virt-manager.
This is based on work by Lubos Kocman
2014-01-20 12:18:15 +01:00
Jeremy White
4c7c0ef3a7 Revise the spice client and server to use the new snd_codec functions in spice-common.
This makes celt optional, and paves the way to readily add additional codecs.

Signed-off-by: Jeremy White <jwhite@codeweavers.com>
2014-01-02 12:34:34 +01:00
Christophe Fergeau
686750e49c Fix snappy detection with newer spice-gtk
It was renamed to spicy-screenshot
2013-12-11 16:12:19 +01:00
Christian Ruppert
58195c1951 Require alsa only with --enable-client
Hey guys,

the alsa libraries/header seem to be required only when configured with
--enable-client so I wrote a patch to make configure respect it.

--
Regards,
Christian Ruppert

From 53683cc75ba092799f856f710cb45b2aacfb6123 Mon Sep 17 00:00:00 2001
From: Christian Ruppert <idl0r@gentoo.org>
Date: Sun, 3 Nov 2013 18:36:26 +0100
Subject: [PATCH] Require alsa only with --enable-client
2013-11-04 12:02:16 +01:00
Christophe Fergeau
ef9a8bf053 Remove tunneling support
It's depending on an unmaintained package (slirp), and I don't
think anyone uses that code. It's not tested upstream nor in fedora,
so let's remove it.
2013-10-28 11:12:27 +01:00
Christophe Fergeau
ceb672bf85 Use hardened linker flags if available
This commit reuse several macros from libvirt to test for
support for "-Wl,-z -Wl,relro", "-Wl,-z -Wl,now" and
"-Wl,--no-copy-dt-needed-entries", and use them if available.
2013-10-10 11:17:52 +02:00
Nahum Shalman
c07ba1cd4f TIOCOUTQ -> SIOCOUTQ and portability ifdefs
The ioctl on sockets is actually named SIOCOUTQ though its value
is identical to TIOCOUTQ which is for terminals.
SIOCOUTQ is linux specific so we add a header check and ifdef based
on the presence of the header
This prevents bogus ioctls on non-Linux platforms
2013-07-22 12:01:59 -04:00
Nahum Shalman
7f3f51142c configure.ac comment typo nit 2013-07-22 12:01:44 -04:00
Uri Lublin
b270fb010a Release 0.12.4 2013-07-17 18:32:58 +03:00
Alon Levy
59ff2f9221 0.12.3 release 2013-05-17 11:06:34 -04:00
Christophe Fergeau
55495a61bf build: Use glib2
Now that QEMU depends on glib, it won't really hurt if we depend
on it as well, and we won't have to reinvent our own helpers.
2012-12-12 18:15:48 +01:00
Christophe Fergeau
7fe6b6303b Don't build client by default
It has been superseded by virt-viewer/remote-viewer
2012-12-12 18:15:48 +01:00
Alon Levy
4e7d25a7ac Revert "server: add websockets support via libwebsockets"
This reverts commit 63bb37276e.
2012-11-04 13:48:42 +02:00
Alon Levy
65b6c56cf8 release 0.12.1 2012-10-25 12:33:09 +02:00
Alon Levy
63bb37276e server: add websockets support via libwebsockets
New API: spice_server_set_ws_ports

This adds an optional dependency on libwebsockets. You need to get my
patched 0.0.3 version here:
 git://people.freedesktop.org/~alon/libwebsockets

There is no qemu patches yet, to test change in reds.c the default value
of spice_ws_port to 5959 (for the default of spice-html5).

For testing there is an online client at
 http://spice-space.org/spice-html5/spice.html

Known issues:
 1. The tester (server/tests/test_display_no_ssl) gets into dropping all
  data after a few seconds, I think it's an issue with the implemented
  watches, but haven't figured it out.

 2. libwebsocket's read interface is inverted to what our code expects,
 i.e. there is no libwebsocket_read, so there is an additional copy
 involved (see RedsWebSocket). This can be fixed.

 3. Listening on a separate port. Since the headers are different, we
 could listen on the same port (first three bytes RED/GET). I don't know
 if we want to?

Todos:
 1. SSL not implemented yet. Needs some thought as to how.

 2. Serve spice-html5 when accessed as a http server. Nice to have.
2012-10-25 12:33:02 +02:00
Alon Levy
d227a5b6b6 configure.ac: add libcacard to SPICE_REQUIRES if built with smartcard support 2012-10-25 12:31:39 +02:00
Alon Levy
761ce02406 add git-version-gen and gitlog-to-changelog 2012-10-19 14:15:06 +02:00
Alon Levy
dc3cd205dd Release 0.12.0 2012-09-15 00:36:54 +03:00
Alon Levy
56eef9eeaa spice-server 0.11.5
Added api:
 QXL interface (3.2)
  client_monitors_config
2012-09-13 14:47:32 +03:00
Peter Robinson
07426f3c4f Enable build on armv6+
The following patch enables it to build on ARM platforms that support
atomics. Tested on an armv7hl on an ARMv7 device running Fedora 18. Using
firefox connecting to a RHEV-M instance I could launch consoles in
spice-xpi and login so basic support works!

Resolves: rhbz#613529
2012-09-11 15:15:14 +02:00
Jeremy White
5819976c7e Implement spice_server_set_exit_on_disconnect to enable an option whereby the spice server shuts down on client disconnect. 2012-09-05 19:18:34 +03:00
Alon Levy
8ac808918c 0.11.3 release
No new api entries.
2012-09-02 20:54:37 +03:00
Alon Levy
bd10d502f8 support automake >= 1.12
Requires a single line (sans comments) change to configure.ac in
spice-common too, to define the new AM_PROG_AR.
2012-08-27 16:17:17 +03:00
Yonit Halperin
92f3ee6ed8 bump version to 0.11.2
New api entries:
    spice_server_vm_start
    spice_server_vm_stop
    spice_server_set_seamless_migration
2012-08-27 09:04:52 +03:00
Alon Levy
ad7c5ca72a bump version to 0.11.1 for new spice_qxl_monitors_config_async
bump current and age since only additions where done.
new server library is libspice-server.so.1.2.0 .
2012-07-23 15:46:53 +03:00