Commit Graph

69 Commits

Author SHA1 Message Date
Uri Lublin
ecc4e7d2cf spice: subdirs: support ./autogen.sh in a "make dist" tarball (subdir config)
Each subdir (common, client and server) can "make dist".
This commit adds configure.ac.shared and autogen.sh to the tar file.
Above files are copied from .. (spice/ directory)

Also added configure.ac.shared (which is not part of "distribution" tarball)
that only imports ../configure.ac.shared such that ./autogen.sh still
works (on "git directories").

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:46:19 +02:00
Uri Lublin
82a73df97f spice: configure.ac.shared: add PATCHID and DISTRIBUTION variables (subdir config)
Define them with ./configure PATCHID=id DISTRIBUTION=dist
They appear in config.h
Add them to your version-printing function.

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:46:11 +02:00
Uri Lublin
f0eb948b5c spice: server: common/ files are not needed by "make dist" (subdir config)
Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:46:04 +02:00
Uri Lublin
766bd244dc spice: configure.ac.shared: add option to use spice-common package (subdir config)
Run ./configure --with-spice-common to use spice-common sources from
spice-common package, instead of source in spice/common/ directory.

This is usefull when building the spice client or spice server out
of a "distribution" tarball, when ../common directory does not exist.
2010-01-10 19:45:56 +02:00
Uri Lublin
c8c1837809 common: add "install" target for make (subdir config)
Install source files in $(prefix)/src/spice-common/
Install linux/ffmpeg_inc.h in $(prefix)/src/spice-common/linux/
Install spice-common.pc in $(libdir)/pkgconfig/

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:45:48 +02:00
Uri Lublin
b23e84ce37 common: add spice-common.pc (subdir config)
The package-config file is to be used when ../common
is not available, e.g. when building each subdir
separately.

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:45:42 +02:00
Uri Lublin
e2dd219f6b configure.ac: use AC_CONFIG_SUBDIRS to run configure in subdirs (subdir config)
That's about all the work configure.ac does.
Moved config.pc.in to server, and updated Makefile.am and
server/Makefile.am accordingly

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:45:34 +02:00
Uri Lublin
49e532c327 configure.ac.shared: prefer ffmpeg-spice (if exists) over ffmpeg (subdir config)
If ffmpeg-spice exists use ffmpeg-spice.
If ffmpeg-spice does not exist and ffmpeg exists, use ffmpeg
If none exist, fail.

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:45:26 +02:00
Uri Lublin
bfba2971bc spice: client: Makefile.am: add missing files to file-list (subdir config)
The follwing files exist in client directory but not in RED_COMMON_SRCS,
thus they are not part of distribution tarball (make dist).
Adding them fixes building the spice client out of a distribution tarball.

Those files are:
icon.h
process_loop.h
red_gdi_canvas.cpp
red_gdi_canvas.h
red_pixmap_gdi.h
gdi_canvas.cpp

Similarly, the following files were added to spicec_SOURCES in
client/x11/Makefile.am:
event_sources_p.h
2010-01-10 19:45:15 +02:00
Uri Lublin
203c85c4ff client: remove '../common' from #include directive (subdir config)
We compile with -I$(COMMON_DIR) (which currently is ../common), so there is
no need for that.

Later we would like to be able to have a different COMMON_DIR.

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:45:08 +02:00
Uri Lublin
abe5233ca3 Add common/configure.ac (subdir config)
Enables running ./configure in common/ (as well as autoreconf or autogen.sh)

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:45:00 +02:00
Uri Lublin
f82bb9cc0c Add client/configure.ac (subdir config)
Enables running ./configure in client/ (as well as autoreconf or autogen.sh)

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:44:51 +02:00
Uri Lublin
5e5ad018c2 Add server/configure.ac (subdir config)
Enables running ./configure in server/ (as well as autoreconf or autogen.sh)

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:44:43 +02:00
Uri Lublin
ae9a42d6c4 configure.ac: client: replace $(top_srcdir) in x11/Makefile.am (subdir config)
Replace all "$(top_srcdir)/common" with "$(SPICE_COMMON_DIR)"
and     all "$(top_srcdir)/client" with ".." (relative to x11)

This would (after following patches) enables building the client from
either spice/ (top directory) or spice/client.

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:44:34 +02:00
Uri Lublin
c854259ba4 configure.ac: use SPICE_COMMON_SRCDIR in server/Makefile.am (subdir config)
Replace all $(top_srcdir)/common.

This would (after following patches) enables building the server from
either spice/ (top directory) or spice/server.

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:44:27 +02:00
Uri Lublin
5e07945177 configure.ac: define SPICE_COMMON_SRCDIR, to be used by Makefile.am (subdir config)
Note that SPICE_COMMON_SRCDIR may be overwritten by configure.ac.shared

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:44:19 +02:00
Uri Lublin
ee242fbd81 configure.ac: check for (and require) cairo-spice instead of qspice
Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:44:10 +02:00
Uri Lublin
c3418952eb configure.ac: move most checks to configure.ac.shared (subdir config)
... and m4_include it in configure.ac

Later all configure.ac in subdirs will m4_include it too.

This patch changes nothing really, just moves lines from one file to another.

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:44:02 +02:00
Uri Lublin
b298008eac autogen: run "do_cmd auto*" for subdirs too (subdir config)
subdirs are defined in configure.ac

Note we also mkdir m4 (just in case)
And touch some needed files (README NEWS ...) to prevent warnings/errors.
It may be better to add those files and commit them, or copy from parent dir.

Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:43:55 +02:00
Uri Lublin
17dd5f047e autogen: exit upon errors (subdir config)
Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:43:48 +02:00
Uri Lublin
594d940f39 autogen: add possibly missing AUTOMAKE definition (subdir config)
Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:43:41 +02:00
Uri Lublin
09edf10262 autogen: remove copied code - srcdir and ORIGDIR (subdir config)
Signed-off-by: Uri Lublin <uril@redhat.com>
2010-01-10 19:43:34 +02:00
Yaniv Kamay
461b04793d client: change rerror code to be positive 2010-01-10 13:41:31 +02:00
Yaniv Kamay
6d9026c4b4 client: add Platform::term_printf
Platform::term_printf is a variant of printf that
on windows dynamically opens console in order to
have visible output during command line processing.
2010-01-10 13:41:08 +02:00
Yaniv Kamay
0bd3b58bc9 client: fix logger init mix-up
enable log rotate in case RED_DEBUG is not defined
and disable log rotate in case RED_DEBUG is defined
2010-01-10 13:40:53 +02:00
Yaniv Kamay
db5375a5f8 client: move log file to spicec appdata dir 2010-01-10 13:40:31 +02:00
Arnon Gilboa
15fff174eb spice: menu additons
-functions: set_name, remove_command, remove_sub, clear
-item state & enum
-add state support in RedWindow insert_command & insert_menu
2010-01-07 13:09:26 +02:00
Yaniv Kamay
358cb41971 server: add new vd interface QTerm2Interface 2010-01-06 19:09:02 +02:00
Arnon Gilboa
185fe4777c spice: add missing break 2010-01-06 17:23:47 +02:00
Yonit Halperin
e38a619007 server,client: server authentication for secured channels. #527411 #549673.
3 available mechanisms:  by public key, by host name, and by certificate subject name.
    In the former method, chain of trust verification is not performed.
    The CA certificate files are looked for under <spice-config-dir>/spice_truststore.pem

    windows <spice-config-dir>=%APPDATA%\spicec\
    linux <spice-config-dir>=$HOME/.spicec
2010-01-06 16:06:46 +02:00
Izik Eidus
54a8e50270 spice:stable server: add calls to red_pipe_clear_device_resources()
needed in case we are detaching

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-01-05 20:59:09 +02:00
Yaniv Kamay
68fa759dc4 client: use spice icon instead-of solidice icon 2010-01-04 21:18:57 +02:00
Yaniv Kamay
fc5c668f46 client: restore gl_fbo and gl_pbuff canavas type options 2010-01-03 18:16:14 +02:00
Arnon Gilboa
4202ee3945 spice: position mouse in primary monitor center after full screen toggle
-move _focused & _pointer_in_window from RedWindow to RedWindow_p's
-move shadow focus & cursor handling to sync()
-add reset_cursor_pos() to Platform
-Monitor set_mode()/restore() use virtual do_set_mode()/do_restore()
2010-01-03 17:55:32 +02:00
Arnon Gilboa
8ce343daa0 spice: on_activate_screen generates on_key_down for any modifier pressed
-call SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc...) only once, in RedWindow::init()
-add Application::cleanup_globals() & RedWindow::cleanup()
-cleanup LowLevelKeyboardProc()
2010-01-03 17:51:17 +02:00
Yaniv Kamay
d8a3c2c12a use spaces instead of tabs in bitmap_to_c and icon_to_c output 2010-01-03 17:51:08 +02:00
Yaniv Kamay
87f35921c3 win client: change avcodec version to 51 2010-01-03 17:50:36 +02:00
Izik Eidus
8ac07c21f8 spice: fix server crush in case connecting without qxl device
Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-01-03 17:49:01 +02:00
Izik Eidus
032740323d spice client: fix wrong gdi-canvas handling of blend_alpha
Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-01-03 17:48:52 +02:00
Yaniv Kamay
1c87b17283 client: new static title image 2010-01-03 17:48:09 +02:00
Izik Eidus
6333e034a3 spice: fix ssl compiling errors
(openssl api was changed, so lets have ifdef to compile in all cases)

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-01-03 17:47:13 +02:00
Izik Eidus
6b065f80de spice: client: add checks to see if it is safe to use XShem.
Beacuse that XShem internal checks wont fail when using the spice client
from remote, we are adding check on the socket family to see if it is
unix domain socket and fail in case it is not.

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-01-03 17:47:04 +02:00
Yaniv Kamay
fe02804983 spice: sever: increase client timeout
Increase client timeout in order to prevent unnecessary
disconnecting of client while the connection is over WAN.

Tested by changing WinXP resolution (with desktop background) while
connecting over WAN (1.5Mbit 150Kbit)
2010-01-03 17:46:47 +02:00
Yaniv Kamay
8aa4ea3662 spice: sever: remove assert on nop copy bits 2010-01-03 17:45:32 +02:00
Yonit Halperin
80dddb8d2a spice server: heuristic for distinguishing between "real" videos and textual streams 2010-01-03 17:42:56 +02:00
Yaniv Kamay
173ff6fe0f add missing alt_image.c to Makefile.am 2010-01-03 17:37:50 +02:00
Arnon Gilboa
03f23b870e spice: pass modifiers stroke events down the hook chain 2010-01-03 17:37:33 +02:00
Arnon Gilboa
702b92cdb8 spice: add [pid:tid] to log lines 2010-01-03 17:37:20 +02:00
Arnon Gilboa
18270e0235 spice: on toggle_full_screen, generate on_key_down if shift is still pressed 2010-01-03 17:37:05 +02:00
Arnon Gilboa
ba04ac69c6 spice: show splash screen on disconnect only on debug 2010-01-03 17:36:49 +02:00