Skip to content

Commit b60fbac

Browse files
committed
init commit
Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
0 parents  commit b60fbac

File tree

11 files changed

+2698
-0
lines changed

11 files changed

+2698
-0
lines changed

CMakeLists.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
cmake_minimum_required(VERSION 3.0)
2+
3+
project(winspice)
4+
5+
include_directories(include)
6+
7+
find_package(PkgConfig)
8+
pkg_check_modules(SPICE spice-server)
9+
pkg_check_modules(GLIB glib-2.0)
10+
include_directories(${SPICE_INCLUDEDIR} ${SPICE_INCLUDE_DIRS} ${GLIB_INCLUDEDIR} ${GLIB_INCLUDE_DIRS})
11+
find_library(SPICE spice-server)
12+
find_library(GLIB glib-2.0)
13+
14+
aux_source_directory(src DIR_SRCS)
15+
set(WINSPICE_LIBS d3d11 dxgi dxguid ${SPICE} ${GLIB})
16+
add_executable(${PROJECT_NAME} ${DIR_SRCS})
17+
target_link_libraries(${PROJECT_NAME} ${WINSPICE_LIBS})
18+
add_compile_options(-Werror -Wall)
19+
target_compile_options(${PROJECT_NAME} PUBLIC -Werror -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter)

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
* Introduce
2+
winspice provides windows remote desktop access using the Spice protocol.
3+
4+
* Building
5+
** Prepare build environment
6+
7+
Use fedora 32 as the compilation platform
8+
9+
#+BEGIN_SRC bash
10+
$ yum install yum-utils cmake
11+
$ yum-builddep mingw32-spice-glib
12+
#+END_SRC
13+
14+
** Build spice server library
15+
16+
For convenience, use the stable tar package directly instead of the git version
17+
to build spice library, e.g.
18+
19+
$ tar xf spice-{VERSION}.tar.bz2
20+
$ cd spice-{VERSION}
21+
$ mingw32-configure
22+
$ mingw32-make
23+
$ mingw32-make install
24+
25+
** Build winspice
26+
27+
$ git clone https://github.com/mathslinux/winspice.git
28+
$ cd winspice
29+
$ mkdir -p build && mingw32-cmake ../
30+
$ mingw32-make
31+
32+
* How to run
33+
34+
Copy all the dll libraries that the winspice.exe depends on to the folder
35+
where the exe is located. Then open window cmd, run:
36+
#+BEGIN_SRC bash
37+
$ winspice.exe <PORT>
38+
#+END_SRC
39+
Or double click winspice.exe to run, the default port is 5900.
40+
41+
In the future, a GUI window will be provided to set the port, username and
42+
other parameters.

TODO

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- GUI window for configuration parameters
2+
- Sound support

0 commit comments

Comments
 (0)