Skip to content

Commit c1b79eb

Browse files
author
Yaniv Kamay
committed
fresh start
0 parents  commit c1b79eb

File tree

244 files changed

+124499
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

244 files changed

+124499
-0
lines changed

.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*~
2+
*.tar.bz2
3+
*.tar.gz
4+
aclocal.m4
5+
autom4te.cache
6+
compile
7+
config.guess
8+
config.h
9+
config.h.in
10+
config.log
11+
config.status
12+
config.sub
13+
configure
14+
depcomp
15+
install-sh
16+
libtool
17+
ltmain.sh
18+
missing
19+
Makefile
20+
Makefile.in
21+
stamp-h1

AUTHORS

Whitespace-only changes.

COPYING

+340
Large diffs are not rendered by default.

ChangeLog

Whitespace-only changes.

Makefile.am

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SUBDIRS = common server client
2+
3+
pkgconfigdir = $(libdir)/pkgconfig
4+
pkgconfig_DATA = spice.pc
5+
6+
DISTCLEANFILES = \
7+
spice.pc

NEWS

Whitespace-only changes.

README

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Copyright 2009 Red Hat, Inc. and/or its affiliates.
2+
3+
This program is licensed to you under the GNU General Public License,
4+
version 2 or (at your option) any later version published by the Free
5+
Software Foundation. See the file COPYING for details.
6+
7+
There is NO WARRANTY for this software, not even the implied
8+
warranties of MERCHANTABILITY, NONINFRINGEMENT, or FITNESS FOR A
9+
PARTICULAR PURPOSE.
10+

autogen.sh

+170
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
#! /bin/sh
2+
3+
srcdir=`dirname $0`
4+
test -z "$srcdir" && srcdir=.
5+
6+
ORIGDIR=`pwd`
7+
cd $srcdir
8+
9+
# FIXME: can replace this entire script with
10+
# the following line if we can require autoconf 2.60:
11+
# autoreconf -v --force --install || exit 1
12+
13+
PACKAGE=spice
14+
15+
ACLOCAL_FLAGS=""
16+
LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
17+
LIBTOOLIZE_FLAGS="--copy --force"
18+
AUTOHEADER=${AUTOHEADER-autoheader}
19+
AUTOMAKE_FLAGS="--add-missing --gnu"
20+
AUTOCONF=${AUTOCONF-autoconf}
21+
22+
# automake 1.8 requires autoconf 2.58
23+
# automake 1.7 requires autoconf 2.54
24+
automake_min_vers=1.7
25+
aclocal_min_vers=$automake_min_vers
26+
autoconf_min_vers=2.54
27+
libtoolize_min_vers=1.4
28+
29+
# The awk-based string->number conversion we use needs a C locale to work
30+
# as expected. Setting LC_ALL overrides whether the user set LC_ALL,
31+
# LC_NUMERIC, or LANG.
32+
LC_ALL=C
33+
34+
ARGV0=$0
35+
36+
# Allow invocation from a separate build directory; in that case, we change
37+
# to the source directory to run the auto*, then change back before running configure
38+
srcdir=`dirname $ARGV0`
39+
test -z "$srcdir" && srcdir=.
40+
41+
ORIGDIR=`pwd`
42+
43+
# Not all echo versions allow -n, so we check what is possible. This test is
44+
# based on the one in autoconf.
45+
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46+
*c*,-n*) ECHO_N= ;;
47+
*c*,* ) ECHO_N=-n ;;
48+
*) ECHO_N= ;;
49+
esac
50+
51+
52+
# some terminal codes ...
53+
boldface="`tput bold 2>/dev/null || true`"
54+
normal="`tput sgr0 2>/dev/null || true`"
55+
printbold() {
56+
echo $ECHO_N "$boldface"
57+
echo "$@"
58+
echo $ECHO_N "$normal"
59+
}
60+
printerr() {
61+
echo "$@" >&2
62+
}
63+
64+
65+
# Usage:
66+
# compare_versions MIN_VERSION ACTUAL_VERSION
67+
# returns true if ACTUAL_VERSION >= MIN_VERSION
68+
compare_versions() {
69+
ch_min_version=$1
70+
ch_actual_version=$2
71+
ch_status=0
72+
IFS="${IFS= }"; ch_save_IFS="$IFS"; IFS="."
73+
set $ch_actual_version
74+
for ch_min in $ch_min_version; do
75+
ch_cur=`echo $1 | sed 's/[^0-9].*$//'`; shift # remove letter suffixes
76+
if [ -z "$ch_min" ]; then break; fi
77+
if [ -z "$ch_cur" ]; then ch_status=1; break; fi
78+
if [ $ch_cur -gt $ch_min ]; then break; fi
79+
if [ $ch_cur -lt $ch_min ]; then ch_status=1; break; fi
80+
done
81+
IFS="$ch_save_IFS"
82+
return $ch_status
83+
}
84+
85+
# Usage:
86+
# version_check PACKAGE VARIABLE CHECKPROGS MIN_VERSION SOURCE
87+
# checks to see if the package is available
88+
version_check() {
89+
vc_package=$1
90+
vc_variable=$2
91+
vc_checkprogs=$3
92+
vc_min_version=$4
93+
vc_source=$5
94+
vc_status=1
95+
96+
vc_checkprog=`eval echo "\\$$vc_variable"`
97+
if [ -n "$vc_checkprog" ]; then
98+
printbold "using $vc_checkprog for $vc_package"
99+
return 0
100+
fi
101+
102+
printbold "checking for $vc_package >= $vc_min_version..."
103+
for vc_checkprog in $vc_checkprogs; do
104+
echo $ECHO_N " testing $vc_checkprog... "
105+
if $vc_checkprog --version < /dev/null > /dev/null 2>&1; then
106+
vc_actual_version=`$vc_checkprog --version | head -n 1 | \
107+
sed 's/^.*[ ]\([0-9.]*[a-z]*\).*$/\1/'`
108+
if compare_versions $vc_min_version $vc_actual_version; then
109+
echo "found $vc_actual_version"
110+
# set variable
111+
eval "$vc_variable=$vc_checkprog"
112+
vc_status=0
113+
break
114+
else
115+
echo "too old (found version $vc_actual_version)"
116+
fi
117+
else
118+
echo "not found."
119+
fi
120+
done
121+
if [ "$vc_status" != 0 ]; then
122+
printerr "***Error***: You must have $vc_package >= $vc_min_version installed"
123+
printerr " to build $PROJECT. Download the appropriate package for"
124+
printerr " from your distribution or get the source tarball at"
125+
printerr " $vc_source"
126+
printerr
127+
fi
128+
return $vc_status
129+
}
130+
131+
version_check autoconf AUTOCONF $AUTOCONF $autoconf_min_vers \
132+
"http://ftp.gnu.org/pub/gnu/autoconf/autoconf-${autoconf_min_vers}.tar.gz" || DIE=1
133+
version_check automake AUTOMAKE "$AUTOMAKE automake automake-1.10 automake-1.9 automake-1.8 automake-1.7" $automake_min_vers \
134+
"http://ftp.gnu.org/pub/gnu/automake/automake-${automake_min_vers}.tar.gz" || DIE=1
135+
ACLOCAL=`echo $AUTOMAKE | sed s/automake/aclocal/`
136+
version_check libtool LIBTOOLIZE "$LIBTOOLIZE glibtoolize libtoolize" $libtoolize_min_vers \
137+
"http://ftp.gnu.org/pub/gnu/libtool/libtool-${libtool_min_vers}.tar.gz" || DIE=1
138+
139+
if test -n "$DIE"; then
140+
exit 1
141+
fi
142+
143+
144+
if test -z "$*"; then
145+
echo "$ARGV0: Note: \`./configure' will be run with no arguments."
146+
echo " If you wish to pass any to it, please specify them on the"
147+
echo " \`$0' command line."
148+
echo
149+
fi
150+
151+
do_cmd() {
152+
echo "$ARGV0: running \`$@'"
153+
$@
154+
}
155+
156+
# Run for top level directory
157+
158+
printbold "Setting up $PACKAGE toplevel"
159+
cd $srcdir
160+
do_cmd $LIBTOOLIZE $LIBTOOLIZE_FLAGS
161+
do_cmd $ACLOCAL $ACLOCAL_FLAGS
162+
do_cmd $AUTOHEADER
163+
do_cmd $AUTOMAKE $AUTOMAKE_FLAGS
164+
do_cmd $AUTOCONF
165+
166+
cd $ORIGDIR || exit $?
167+
rm -f config.cache
168+
169+
do_cmd $srcdir/configure --enable-maintainer-mode ${1+"$@"} || exit 1
170+

client/.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.la
2+
*.lo
3+
*.loT
4+
*.o
5+
.deps
6+
.libs
7+
Makefile
8+
Makefile.in

client/Makefile.am

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
NULL =
2+
3+
SUBDIRS = $(red_target)
4+
DIST_SUBDIRS = x11 #windows
5+
6+
RED_COMMON_SRCS = \
7+
application.cpp \
8+
application.h \
9+
audio_channels.h \
10+
audio_devices.h \
11+
cache.hpp \
12+
cairo_canvas.cpp \
13+
canvas.cpp \
14+
canvas.h \
15+
canvas_utils.cpp \
16+
red_cairo_canvas.cpp \
17+
red_cairo_canvas.h \
18+
cmd_line_parser.cpp \
19+
cmd_line_parser.h \
20+
common.h \
21+
cursor_channel.cpp \
22+
cursor_channel.h \
23+
cursor.cpp \
24+
cursor.h \
25+
debug.h \
26+
display_channel.cpp \
27+
display_channel.h \
28+
events_loop.h \
29+
red_gl_canvas.cpp \
30+
red_gl_canvas.h \
31+
gl_canvas.cpp \
32+
glc.cpp \
33+
glz_decoded_image.h \
34+
glz_decoder_config.h \
35+
glz_decoder.cpp \
36+
glz_decoder.h \
37+
glz_decoder_window.cpp \
38+
glz_decoder_window.h \
39+
glz_decode_tmpl.c \
40+
inputs_channel.cpp \
41+
inputs_channel.h \
42+
inputs_handler.h \
43+
lz.cpp \
44+
monitor.cpp \
45+
monitor.h \
46+
menu.cpp \
47+
menu.h \
48+
pixels_source.h \
49+
platform.h \
50+
playback_channel.cpp \
51+
quic.cpp \
52+
read_write_mutex.h \
53+
record_channel.cpp \
54+
red_channel.cpp \
55+
red_channel.h \
56+
red_client.cpp \
57+
red_client.h \
58+
red_drawable.h \
59+
red_key.h \
60+
red_peer.cpp \
61+
red_peer.h \
62+
red_pixmap_cairo.h \
63+
red_pixmap_gl.h \
64+
red_pixmap.h \
65+
red_types.h \
66+
red_window.h \
67+
region.cpp \
68+
rop3.cpp \
69+
screen.cpp \
70+
screen.h \
71+
screen_layer.cpp \
72+
screen_layer.h \
73+
shared_cache.hpp \
74+
hot_keys.cpp \
75+
hot_keys.h \
76+
threads.cpp \
77+
threads.h \
78+
utils.cpp \
79+
utils.h \
80+
$(NULL)
81+
82+
EXTRA_DIST = $(RED_COMMON_SRCS)

0 commit comments

Comments
 (0)