You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/tigervnc/files/tigervnc-1.12.0-disable-ser...

58 lines
1.4 KiB

See https://bugs.gentoo.org/852830
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -234,6 +234,7 @@
add_subdirectory(java)
endif()
+option(BUILD_SERVER "Build TigerVNC server" ON)
option(BUILD_VIEWER "Build TigerVNC viewer" ON)
if(BUILD_VIEWER)
# Check for FLTK
@@ -276,7 +277,7 @@
endif()
# Check for PAM library
-if(UNIX AND NOT APPLE)
+if(BUILD_SERVER AND UNIX AND NOT APPLE)
check_include_files(security/pam_appl.h HAVE_PAM_H)
set(CMAKE_REQUIRED_LIBRARIES -lpam)
check_function_exists(pam_start HAVE_PAM_START)
@@ -315,9 +316,6 @@
add_subdirectory(media)
endif()
-add_subdirectory(tests)
-
-
if(BUILD_VIEWER)
add_subdirectory(release)
endif()
--- a/common/rfb/CMakeLists.txt
+++ b/common/rfb/CMakeLists.txt
@@ -75,7 +75,7 @@
set(RFB_LIBRARIES ${JPEG_LIBRARIES} ${PIXMAN_LIBRARY} os rdr)
-if(UNIX AND NOT APPLE)
+if(BUILD_SERVER AND UNIX AND NOT APPLE)
set(RFB_SOURCES ${RFB_SOURCES} UnixPasswordValidator.cxx
UnixPasswordValidator.h pam.c pam.h)
set(RFB_LIBRARIES ${RFB_LIBRARIES} ${PAM_LIBS})
--- a/unix/CMakeLists.txt
+++ b/unix/CMakeLists.txt
@@ -1,6 +1,8 @@
add_subdirectory(tx)
add_subdirectory(common)
-add_subdirectory(vncconfig)
-add_subdirectory(vncpasswd)
-add_subdirectory(vncserver)
-add_subdirectory(x0vncserver)
+if(BUILD_SERVER)
+ add_subdirectory(vncconfig)
+ add_subdirectory(vncpasswd)
+ add_subdirectory(vncserver)
+ add_subdirectory(x0vncserver)
+endif()