Commit Graph

173 Commits

Author SHA1 Message Date
Christophe Fergeau
2a2a3585e6 build: Update libtool versioning for 0.13.2 2016-08-04 17:12:53 +02:00
Frediano Ziglio
3b2fd86e8a Constify spice_server_char_device_recognized_subtypes
Users should not change the list of supported subtypes.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2016-06-29 08:09:03 +01:00
Eduardo Lima (Etrunko)
ed429a618e Use correct variable to print if LZ4 support is to be built.
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2016-06-16 11:15:02 -03:00
Eduardo Lima (Etrunko)
bcfd265bcd configure: Better wording hasn't -> has not
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
2016-06-15 19:00:27 -03:00
Francois Gouget
0503cd3d61 streaming: Add support for GStreamer 0.10
configure will use GStreamer 1.0 if present and fall back to
GStreamer 0.10 otherwise.
ffenc_mjpeg takes its bitrate as a long so extend set_gstenc_bitrate().

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2016-06-14 17:04:40 +02:00
Francois Gouget
a21ec4e251 streaming: Add h264 support to the GStreamer video encoder
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2016-06-14 17:04:40 +02:00
Francois Gouget
6dc0dadf8d streaming: Add VP8 support to the GStreamer video encoder
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2016-06-14 17:04:40 +02:00
Francois Gouget
a697bd971b streaming: Add a GStreamer 1.0 MJPEG video encoder and use it by default
This introduces a pared down GStreamer-based video encoder to serve as
the basis for later enhancements.
In this form the new encoder supports both regular and sized streams
but lacks any rate control. It should still work fine if bandwidth is
sufficient such as on LANs.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2016-06-14 17:04:40 +02:00
snir sheriber
903c91cd30 LZ4 compression is now available at the Spicevmc channel
Compressed message type is CompressedData which contains compression
type (1 byte) followed by the uncompressed data size (4 bytes - exists
only if data was compressed) followed by the compressed data

If SPICE_USBREDIR_CAP_DATA_COMPRESS_LZ4 capability is available &&
data_size > COMPRESS_THRESHOLD && !AF_LOCAL data will be sent
compressed otherwise data will be sent uncompressed (also if
compression has failed)

Update the required protocol to 0.12.12

Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-06-13 23:12:59 +01:00
Frediano Ziglio
448f037a3c style: use capital case for C language
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-05-11 12:54:09 +01:00
Christophe Fergeau
15dbc2da7a build-sys: Remove 'CXX' from configure summary
We no longer make use of a c++ compiler since dropping the client, so
no need to show it in the configure summary.
2016-05-10 15:38:33 +02:00
Christophe Fergeau
ad00538254 build-sys: Drop unneeded python check
spice-server does not use python, the spice-common submodule needs it, but
it has its own python check through the use of AM_PATH_PYTHON
2016-05-10 15:38:33 +02:00
Frediano Ziglio
4db15f9e32 fix "spice--gtk" typo in configure.ac
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-05-10 14:16:53 +01:00
Christophe Fergeau
281eeed189 build-sys: Update libtool versioning for 0.13.1 2016-04-01 15:16:27 +02:00
Frediano Ziglio
c51f1126eb build-sys: use safer SPICE_CONTAINEROF version
Enable additional checks for this macro.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-03-23 13:44:22 +00:00
Michal Privoznik
97acfd6f3e configure: Require spice-protocol-0.12.11 at least
After 7a06efde we require SPICE_MSG_DISPLAY_GL_SCANOUT_UNIX
symbol from spice-protocol (or value to be more precise). This
has been however introduced in version 0.12.11 of the
spice-protocol (commit 3fc2221e there). However, our configure
check does not reflect this change. Fix it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-02-25 09:12:35 +00:00
Jonathon Jongsma
1438b7ccf2 Add GObject to build requirements
Preparation for GObject-ifying some internals

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-02-16 11:22:04 +00:00
Pavel Grunt
2db3868864 build-sys: Use sasl check from spice-common
Support only libsasl2 providing libsasl2.pc file

Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2015-12-21 13:40:19 +01:00
Christophe Fergeau
bc1adb5ccf build: Remove unused SPICEC_STATIC_LINKAGE_BSTATIC
A left-over from the client code.
2015-12-16 14:44:09 +01:00
Marc-André Lureau
5d8350f7d7 build-sys: disable static lib by default
It's not used in general, so no need to build it by default.

Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-12-11 11:22:00 +00:00
Francois Gouget
9b42aafe31 server: Rename SUPPORT_AUTOMATED_TESTS to HAVE_AUTOMATED_TESTS
This improves consistency with spice-deps.m4 which names its
AM_CONDITIONAL() variables HAVE_XXX.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-12-08 15:39:11 +01:00
Marc-André Lureau
c5c176a5c7 server: remove OpenGL
This is really not supported, requires X11, so better to remove it for
now. Some day it might be revived, using DRM, ..

Note for later, this could be removed too (not used by client):
- spice-common/common/ogl_ctx

Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
2015-11-21 13:50:46 +00:00
Francois Gouget
f6106afa4f build-sys: Use SPICE_WARNING() to issue the architecture warning
Note that spice-deps.m4 now provides the AS_VAR_APPEND() fallback.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
2015-11-16 16:33:58 +01:00
Francois Gouget
6e12003bde build-sys: Use AC_MSG_NOTICE()
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2015-11-13 17:11:04 +00:00
Christophe Fergeau
d88b1fee74 build-sys: Adjust to new spice-common spice-deps.m4
This commit also updates the spice-common submodule

Christophe Fergeau (7):
      Add marshaller test case
      build-sys: Use ${PKG_CONFIG} rather than pkg-config
      build-sys: Rework SPICE_CHECK_* m4 macros
      build-sys: Add gio-2.0 to SPICE_CHECK_GLIB2
      build-sys: Fix error in SPICE_CHECK_LZ4 description
      build-sys: Set automake conditional in SPICE_CHECK_SMARTCARD
      build-sys: Rename SUPPORT_GL to HAVE_GL

Javier Celaya (1):
      Fix linearization of several marshallers with one item

Lukas Venhoda (3):
      ssl-verify: Only check addr length when using IP addr
      m4: Require glib version >= 2.22
      ssl-verify: Changed IPv4 hostname to IPv6
2015-10-23 14:35:14 +02:00
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