changeset 1410:b2b0fc4a5596

Added ENABLE_GUIADAPTER option + fixed include paths in GuiAdapter
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 04 May 2020 13:34:21 +0200
parents 5d7ee14dc1eb
children 08fd094f9582
files Deprecated/Applications/Generic/GuiAdapter.cpp Deprecated/Applications/Generic/GuiAdapter.h Resources/CMake/OrthancStoneConfiguration.cmake Resources/CMake/OrthancStoneParameters.cmake
diffstat 4 files changed, 15 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Deprecated/Applications/Generic/GuiAdapter.cpp	Thu Apr 30 00:25:55 2020 +0200
+++ b/Deprecated/Applications/Generic/GuiAdapter.cpp	Mon May 04 13:34:21 2020 +0200
@@ -21,7 +21,7 @@
 #include "GuiAdapter.h"
 
 #if ORTHANC_ENABLE_OPENGL == 1
-#  include "../../Framework/OpenGL/OpenGLIncludes.h"
+#  include "../../../Framework/OpenGL/OpenGLIncludes.h"
 #endif
 
 #if ORTHANC_ENABLE_SDL == 1
@@ -31,7 +31,7 @@
 #endif
 
 #if ORTHANC_ENABLE_THREADS == 1
-#  include "../../Framework/Deprecated/Messages/LockingEmitter.h"
+#  include "../../../Framework/Deprecated/Messages/LockingEmitter.h"
 #endif
 
 #include <Core/Compatibility.h>
--- a/Deprecated/Applications/Generic/GuiAdapter.h	Thu Apr 30 00:25:55 2020 +0200
+++ b/Deprecated/Applications/Generic/GuiAdapter.h	Mon May 04 13:34:21 2020 +0200
@@ -41,10 +41,10 @@
 # endif
 #endif
 
-#include "../../Framework/StoneException.h"
+#include "../../../Framework/StoneException.h"
 
 #if ORTHANC_ENABLE_THREADS == 1
-# include "../../Framework/Deprecated/Messages/LockingEmitter.h"
+# include "../../../Framework/Deprecated/Messages/LockingEmitter.h"
 #endif
 
 #include <vector>
--- a/Resources/CMake/OrthancStoneConfiguration.cmake	Thu Apr 30 00:25:55 2020 +0200
+++ b/Resources/CMake/OrthancStoneConfiguration.cmake	Mon May 04 13:34:21 2020 +0200
@@ -287,6 +287,15 @@
     )
 endif()
 
+if ( (ENABLE_SDL OR ENABLE_WASM) AND ENABLE_GUIADAPTER )
+  list(APPEND APPLICATIONS_SOURCES
+    ${ORTHANC_STONE_ROOT}/Deprecated/Applications/Generic/GuiAdapter.cpp
+    ${ORTHANC_STONE_ROOT}/Deprecated/Applications/Generic/GuiAdapter.h
+    )
+    include_directories(${ORTHANC_STONE_ROOT}/Deprecated)
+endif()
+
+
 list(APPEND ORTHANC_STONE_SOURCES
 
   ${ORTHANC_ROOT}/Plugins/Samples/Common/DicomDatasetReader.cpp
@@ -595,7 +604,6 @@
   endif()
 endif()
 
-
 ##
 ## TEST - Automatically add all ".h" headers to the list of sources
 ##
--- a/Resources/CMake/OrthancStoneParameters.cmake	Thu Apr 30 00:25:55 2020 +0200
+++ b/Resources/CMake/OrthancStoneParameters.cmake	Mon May 04 13:34:21 2020 +0200
@@ -55,3 +55,5 @@
 set(ENABLE_OPENGL ON CACHE BOOL "Enable support of OpenGL")
 set(ENABLE_WASM OFF CACHE INTERNAL "Enable support of WebAssembly")
 set(ENABLE_STONE_DEPRECATED OFF CACHE INTERNAL "Enable backward compatibility with deprecated Stone classes")
+set(ENABLE_GUIADAPTER OFF CACHE INTERNAL "Enable backward compatibility with the Stone GuiAdapter class")
+