Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
c2fb69f8
Commit
c2fb69f8
authored
Aug 16, 2011
by
Gernot Tenchio
Committed by
Johannes Schindelin
Aug 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
websockets: Add Websockets support to CMakeLists.txt
Signed-off-by:
Johannes Schindelin
<
johannes.schindelin@gmx.de
>
parent
9afe4e1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
2 deletions
+31
-2
CMakeLists.txt
CMakeLists.txt
+28
-2
rfbconfig.h.cmake
rfb/rfbconfig.h.cmake
+3
-0
No files found.
CMakeLists.txt
View file @
c2fb69f8
...
...
@@ -20,11 +20,17 @@ find_package(SDL)
find_package
(
GnuTLS
)
find_package
(
Threads
)
find_package
(
X11
)
find_package
(
OpenSSL
)
find_library
(
LIBGCRYPT_LIBRARIES gcrypt
)
set
(
CMAKE_REQUIRED_LIBRARIES resolv
)
check_function_exists
(
__b64_ntop HAVE_B64
)
if
(
Threads_FOUND
)
option
(
TIGHTVNC_FILETRANSFER
"Enable filetransfer"
ON
)
endif
(
Threads_FOUND
)
if
(
HAVE_B64
)
endif
(
HAVE_B64
)
if
(
ZLIB_FOUND
)
set
(
LIBVNCSERVER_HAVE_LIBZ 1
)
endif
(
ZLIB_FOUND
)
...
...
@@ -35,9 +41,18 @@ if(PNG_FOUND)
set
(
LIBVNCSERVER_HAVE_LIBPNG 1
)
endif
(
PNG_FOUND
)
option
(
LIBVNCSERVER_ALLOW24BPP
"Allow 24 bpp"
ON
)
if
(
GNUTLS_FOUND
)
set
(
LIBVNCSERVER_WITH_CLIENT_TLS 1
)
endif
(
GNUTLS_FOUND
)
option
(
LIBVNCSERVER_WITH_WEBSOCKETS
"Build with websockets support (gnutls)"
ON
)
set
(
WEBSOCKET_LIBRARIES -lresolv
${
GNUTLS_LIBRARIES
}
)
set
(
WSSRCS rfbssl_gnutls
)
elseif
(
OPENSSL_FOUND
)
option
(
LIBVNCSERVER_WITH_WEBSOCKETS
"Build with websockets support (openssl)"
ON
)
set
(
WEBSOCKET_LIBRARIES -lresolv
${
OPENSSL_LIBRARIES
}
)
set
(
WSSRCS rfbssl_openssl
)
endif
()
if
(
LIBGCRYPT_LIBRARIES
)
message
(
STATUS
"Found libgcrypt:
${
LIBGCRYPT_LIBRARIES
}
"
)
set
(
LIBVNCSERVER_WITH_CLIENT_GCRYPT 1
)
...
...
@@ -155,7 +170,6 @@ if(PNG_FOUND)
set
(
TIGHT_C
${
LIBVNCSERVER_DIR
}
/tight.c
)
endif
(
PNG_FOUND
)
set
(
LIBVNCSERVER_SOURCES
${
LIBVNCSERVER_SOURCES
}
${
TIGHT_C
}
...
...
@@ -171,6 +185,17 @@ if(TIGHTVNC_FILETRANSFER)
)
endif
(
TIGHTVNC_FILETRANSFER
)
if
(
LIBVNCSERVER_WITH_WEBSOCKETS
)
add_definitions
(
-DLIBVNCSERVER_WITH_WEBSOCKETS
)
set
(
LIBVNCSERVER_SOURCES
${
LIBVNCSERVER_SOURCES
}
${
LIBVNCSERVER_DIR
}
/websockets.c
${
LIBVNCSERVER_DIR
}
/
${
WSSRCS
}
${
LIBVNCSERVER_DIR
}
/md5.c
)
endif
(
LIBVNCSERVER_WITH_WEBSOCKETS
)
add_library
(
vncclient SHARED
${
LIBVNCCLIENT_SOURCES
}
)
add_library
(
vncserver SHARED
${
LIBVNCSERVER_SOURCES
}
)
if
(
WIN32
)
...
...
@@ -189,6 +214,7 @@ target_link_libraries(vncserver
${
JPEG_LIBRARIES
}
${
PNG_LIBRARIES
}
${
SDL_LIBRARY
}
${
WEBSOCKET_LIBRARIES
}
)
# tests
...
...
rfb/rfbconfig.h.cmake
View file @
c2fb69f8
...
...
@@ -63,6 +63,9 @@
/* Define to 1 if GnuTLS is present */
#cmakedefine LIBVNCSERVER_WITH_CLIENT_TLS 1
/* Define to 1 to build with websockets */
#cmakedefine LIBVNCSERVER_WITH_WEBSOCKETS 1
/* Define to 1 if your processor stores words with the most significant byte
first
(
like Motorola and SPARC, unlike Intel and VAX
)
. */
#cmakedefine LIBVNCSERVER_WORDS_BIGENDIAN 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment