server: proxy: do not compile modules by default
authorKobi Mizrachi <kmizrachi18@gmail.com>
Mon, 13 Jan 2020 10:30:09 +0000 (12:30 +0200)
committerakallabeth <akallabeth@users.noreply.github.com>
Tue, 14 Jan 2020 06:58:47 +0000 (07:58 +0100)
ci/cmake-preloads/config-linux-all.txt
cmake/ConfigOptions.cmake
config.h.in
server/proxy/CMakeLists.txt
server/proxy/freerdp_proxy.c

index bc802e5..408059c 100644 (file)
@@ -49,3 +49,4 @@ set (WITH_DEBUG_XV OFF CACHE BOOL "enable debug")
 set (WITH_SAMPLE ON CACHE BOOL "samples")
 set (WITH_NO_UNDEFINED ON CACHE BOOL "don't link with undefined symbols")
 set (WITH_SANITIZE_ADDRESS ON)
+set (WITH_PROXY_MODULES OFF CACHE BOOL "compile proxy modules")
index f3d2bc8..bebdcef 100644 (file)
@@ -160,3 +160,7 @@ if (IOS)
        include(ConfigOptionsiOS)
 endif(IOS)
 
+if (WITH_SERVER)
+       # Proxy Options
+       option(WITH_PROXY_MODULES "Compile proxy modules" OFF)
+endif()
\ No newline at end of file
index 1cb3976..62860e9 100644 (file)
 #cmakedefine WITH_DEBUG_XV
 #cmakedefine WITH_DEBUG_RINGBUFFER
 
+/* Proxy */
+#cmakedefine WITH_PROXY_MODULES
+
 #endif /* FREERDP_CONFIG_H */
index 710c532..81979e9 100644 (file)
@@ -88,4 +88,6 @@ endif()
 
 set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Server/proxy")
 
-add_subdirectory("modules")
+if (WITH_PROXY_MODULES)
+  add_subdirectory("modules")
+endif()
index d340a45..fad58e7 100644 (file)
@@ -58,9 +58,11 @@ int main(int argc, char* argv[])
 
        /* Register cleanup handler for graceful termination */
        signal(SIGINT, cleanup_handler);
-       signal(SIGQUIT, cleanup_handler);
        signal(SIGTERM, cleanup_handler);
+#ifndef _WIN32
+       signal(SIGQUIT, cleanup_handler);
        signal(SIGKILL, cleanup_handler);
+#endif
 
        if (!pf_modules_init(FREERDP_PROXY_PLUGINDIR))
        {