Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
Signed-off-by: Dunrong Huang <[email protected]>
  • Loading branch information
mathslinux committed Aug 1, 2021
0 parents commit b60fbac
Show file tree
Hide file tree
Showing 11 changed files with 2,698 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.0)

project(winspice)

include_directories(include)

find_package(PkgConfig)
pkg_check_modules(SPICE spice-server)
pkg_check_modules(GLIB glib-2.0)
include_directories(${SPICE_INCLUDEDIR} ${SPICE_INCLUDE_DIRS} ${GLIB_INCLUDEDIR} ${GLIB_INCLUDE_DIRS})
find_library(SPICE spice-server)
find_library(GLIB glib-2.0)

aux_source_directory(src DIR_SRCS)
set(WINSPICE_LIBS d3d11 dxgi dxguid ${SPICE} ${GLIB})
add_executable(${PROJECT_NAME} ${DIR_SRCS})
target_link_libraries(${PROJECT_NAME} ${WINSPICE_LIBS})
add_compile_options(-Werror -Wall)
target_compile_options(${PROJECT_NAME} PUBLIC -Werror -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter)
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
* Introduce
winspice provides windows remote desktop access using the Spice protocol.

* Building
** Prepare build environment

Use fedora 32 as the compilation platform

#+BEGIN_SRC bash
$ yum install yum-utils cmake
$ yum-builddep mingw32-spice-glib
#+END_SRC

** Build spice server library

For convenience, use the stable tar package directly instead of the git version
to build spice library, e.g.

$ tar xf spice-{VERSION}.tar.bz2
$ cd spice-{VERSION}
$ mingw32-configure
$ mingw32-make
$ mingw32-make install

** Build winspice

$ git clone https://github.com/mathslinux/winspice.git
$ cd winspice
$ mkdir -p build && mingw32-cmake ../
$ mingw32-make

* How to run

Copy all the dll libraries that the winspice.exe depends on to the folder
where the exe is located. Then open window cmd, run:
#+BEGIN_SRC bash
$ winspice.exe <PORT>
#+END_SRC
Or double click winspice.exe to run, the default port is 5900.

In the future, a GUI window will be provided to set the port, username and
other parameters.
2 changes: 2 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- GUI window for configuration parameters
- Sound support
Loading

0 comments on commit b60fbac

Please sign in to comment.