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
9e090406
Commit
9e090406
authored
Jan 12, 2012
by
Gernot Tenchio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: adapted to latest websocket crypto changes
parent
78bd41ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
CMakeLists.txt
CMakeLists.txt
+13
-11
No files found.
CMakeLists.txt
View file @
9e090406
...
...
@@ -11,6 +11,12 @@ set(FULL_PACKAGE_NAME "LibVNCServer")
set
(
PACKAGE_VERSION
"0.9.8"
)
set
(
PROJECT_BUGREPORT_PATH
"http://sourceforge.net/projects/libvncserver"
)
set
(
CMAKE_C_FLAGS
"-O2 -W -Wall -g"
)
set
(
LIBVNCSERVER_DIR
${
CMAKE_SOURCE_DIR
}
/libvncserver
)
set
(
COMMON_DIR
${
CMAKE_SOURCE_DIR
}
/common
)
set
(
LIBVNCCLIENT_DIR
${
CMAKE_SOURCE_DIR
}
/libvncclient
)
set
(
LIBVNCSRVTEST_DIR
${
CMAKE_SOURCE_DIR
}
/examples
)
set
(
LIBVNCCLITEST_DIR
${
CMAKE_SOURCE_DIR
}
/client_examples
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
${
CMAKE_BINARY_DIR
}
${
CMAKE_SOURCE_DIR
}
/libvncserver
${
CMAKE_SOURCE_DIR
}
/common
)
...
...
@@ -47,11 +53,15 @@ if(GNUTLS_FOUND)
set
(
LIBVNCSERVER_WITH_CLIENT_TLS 1
)
option
(
LIBVNCSERVER_WITH_WEBSOCKETS
"Build with websockets support (gnutls)"
ON
)
set
(
WEBSOCKET_LIBRARIES -lresolv
${
GNUTLS_LIBRARIES
}
)
set
(
WSSRCS
rfbssl
_gnutls
)
set
(
WSSRCS
${
LIBVNCSERVER_DIR
}
/rfbssl_gnutls
${
LIBVNCSERVER_DIR
}
/rfbcrypto
_gnutls
)
elseif
(
OPENSSL_FOUND
)
option
(
LIBVNCSERVER_WITH_WEBSOCKETS
"Build with websockets support (openssl)"
ON
)
set
(
WEBSOCKET_LIBRARIES -lresolv
${
OPENSSL_LIBRARIES
}
)
set
(
WSSRCS rfbssl_openssl
)
set
(
WSSRCS
${
LIBVNCSERVER_DIR
}
/rfbssl_openssl
${
LIBVNCSERVER_DIR
}
/rfbcrypto_openssl
)
else
()
option
(
LIBVNCSERVER_WITH_WEBSOCKETS
"Build with websockets support (no ssl)"
ON
)
set
(
WEBSOCKET_LIBRARIES -lresolv
)
set
(
WSSRCS
${
LIBVNCSERVER_DIR
}
/rfbssl_none.c
${
LIBVNCSERVER_DIR
}
/rfbcrypto_included.c
${
COMMON_DIR
}
/md5.c
${
COMMON_DIR
}
/sha1.c
)
endif
()
if
(
LIBGCRYPT_LIBRARIES
)
...
...
@@ -106,12 +116,6 @@ TEST_BIG_ENDIAN(LIBVNCSERVER_WORDS_BIGENDIAN)
configure_file
(
${
CMAKE_SOURCE_DIR
}
/rfb/rfbconfig.h.cmake
${
CMAKE_BINARY_DIR
}
/rfb/rfbconfig.h
)
configure_file
(
${
CMAKE_SOURCE_DIR
}
/rfb/rfbint.h.cmake
${
CMAKE_BINARY_DIR
}
/rfb/rfbint.h
)
set
(
LIBVNCSERVER_DIR
${
CMAKE_SOURCE_DIR
}
/libvncserver
)
set
(
COMMON_DIR
${
CMAKE_SOURCE_DIR
}
/common
)
set
(
LIBVNCCLIENT_DIR
${
CMAKE_SOURCE_DIR
}
/libvncclient
)
set
(
LIBVNCSRVTEST_DIR
${
CMAKE_SOURCE_DIR
}
/examples
)
set
(
LIBVNCCLITEST_DIR
${
CMAKE_SOURCE_DIR
}
/client_examples
)
set
(
LIBVNCSERVER_SOURCES
${
LIBVNCSERVER_DIR
}
/main.c
${
LIBVNCSERVER_DIR
}
/rfbserver.c
...
...
@@ -191,9 +195,7 @@ if(LIBVNCSERVER_WITH_WEBSOCKETS)
set
(
LIBVNCSERVER_SOURCES
${
LIBVNCSERVER_SOURCES
}
${
LIBVNCSERVER_DIR
}
/websockets.c
${
LIBVNCSERVER_DIR
}
/
${
WSSRCS
}
${
COMMON_DIR
}
/md5.c
${
COMMON_DIR
}
/sha1.c
${
WSSRCS
}
)
endif
(
LIBVNCSERVER_WITH_WEBSOCKETS
)
...
...
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