# HG changeset patch # User Sebastien Jodogne # Date 1643477426 -3600 # Node ID 1cfd602de69d3a13fe48726d28f438cf73f225c2 # Parent 184b0aeae1af126bc47ff87a9c6f07839aa5d8c5 fix wasm build diff -r 184b0aeae1af -r 1cfd602de69d Applications/Samples/WebAssembly/CMakeLists.txt --- a/Applications/Samples/WebAssembly/CMakeLists.txt Sat Jan 29 16:55:14 2022 +0100 +++ b/Applications/Samples/WebAssembly/CMakeLists.txt Sat Jan 29 18:30:26 2022 +0100 @@ -58,7 +58,7 @@ # --------------------------------------------------------------- set(ALLOW_DOWNLOADS ON) -include(${CMAKE_SOURCE_DIR}/../../Platforms/WebAssembly/OrthancStoneWebAssemblyParameters.cmake) +include(${CMAKE_SOURCE_DIR}/../../../OrthancStone/Resources/CMake/OrthancStoneWebAssemblyParameters.cmake) SET(ENABLE_DCMTK OFF) # Not necessary SET(ENABLE_GOOGLE_TEST OFF) @@ -67,7 +67,7 @@ # this will set up the build system for Stone of Orthanc and will # populate the ORTHANC_STONE_SOURCES CMake variable -include(${CMAKE_SOURCE_DIR}/../../Platforms/WebAssembly/OrthancStoneWebAssemblyConfiguration.cmake) +include(${CMAKE_SOURCE_DIR}/../../../OrthancStone/Resources/CMake/OrthancStoneWebAssemblyConfiguration.cmake) # We embed a font to be used for on-screen overlays diff -r 184b0aeae1af -r 1cfd602de69d Applications/Samples/WebAssembly/RtViewer/RtViewerWasm.cpp --- a/Applications/Samples/WebAssembly/RtViewer/RtViewerWasm.cpp Sat Jan 29 16:55:14 2022 +0100 +++ b/Applications/Samples/WebAssembly/RtViewer/RtViewerWasm.cpp Sat Jan 29 18:30:26 2022 +0100 @@ -24,10 +24,10 @@ #include "../../Common/SampleHelpers.h" // Stone of Orthanc includes +#include "../../../../OrthancStone/Sources/Platforms/WebAssembly/WebAssemblyLoadersContext.h" +#include "../../../../OrthancStone/Sources/Platforms/WebAssembly/WebGLViewport.h" #include "../../../../OrthancStone/Sources/StoneException.h" #include "../../../../OrthancStone/Sources/StoneInitialization.h" -#include "../../../Platforms/WebAssembly/WebAssemblyLoadersContext.h" -#include "../../../Platforms/WebAssembly/WebGLViewport.h" #include diff -r 184b0aeae1af -r 1cfd602de69d Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewer.cpp --- a/Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewer.cpp Sat Jan 29 16:55:14 2022 +0100 +++ b/Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewer.cpp Sat Jan 29 18:30:26 2022 +0100 @@ -22,11 +22,11 @@ #include "SingleFrameViewerApplication.h" +#include "../../../../OrthancStone/Sources/Platforms/WebAssembly/WebAssemblyLoadersContext.h" +#include "../../../../OrthancStone/Sources/Platforms/WebAssembly/WebGLViewport.h" +#include "../../../../OrthancStone/Sources/Platforms/WebAssembly/WebGLViewportsRegistry.h" #include "../../../../OrthancStone/Sources/StoneException.h" #include "../../../../OrthancStone/Sources/StoneInitialization.h" -#include "../../../Platforms/WebAssembly/WebGLViewport.h" -#include "../../../Platforms/WebAssembly/WebAssemblyLoadersContext.h" -#include "../../../Platforms/WebAssembly/WebGLViewportsRegistry.h" #include // For std::unique_ptr<> #include diff -r 184b0aeae1af -r 1cfd602de69d Applications/StoneWebViewer/WebAssembly/CMakeLists.txt --- a/Applications/StoneWebViewer/WebAssembly/CMakeLists.txt Sat Jan 29 16:55:14 2022 +0100 +++ b/Applications/StoneWebViewer/WebAssembly/CMakeLists.txt Sat Jan 29 18:30:26 2022 +0100 @@ -49,7 +49,7 @@ # --------------------------------------------------------------- set(ALLOW_DOWNLOADS ON) -include(${CMAKE_SOURCE_DIR}/../../Platforms/WebAssembly/OrthancStoneWebAssemblyParameters.cmake) +include(${CMAKE_SOURCE_DIR}/../../../OrthancStone/Resources/CMake/OrthancStoneWebAssemblyParameters.cmake) SET(ENABLE_DCMTK ON) SET(ENABLE_DCMTK_NETWORKING OFF) @@ -61,12 +61,7 @@ # this will set up the build system for Stone of Orthanc and will # populate the ORTHANC_STONE_SOURCES CMake variable -include(${CMAKE_SOURCE_DIR}/../../Platforms/WebAssembly/OrthancStoneWebAssemblyConfiguration.cmake) - -include_directories( - ${CMAKE_SOURCE_DIR}/../../../OrthancStone/Sources/ - ${CMAKE_SOURCE_DIR}/../../Platforms/WebAssembly/ - ) +include(${CMAKE_SOURCE_DIR}/../../../OrthancStone/Resources/CMake/OrthancStoneWebAssemblyConfiguration.cmake) if (CMAKE_BUILD_TYPE MATCHES Debug) # specific flags go here diff -r 184b0aeae1af -r 1cfd602de69d Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp --- a/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp Sat Jan 29 16:55:14 2022 +0100 +++ b/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp Sat Jan 29 18:30:26 2022 +0100 @@ -65,35 +65,35 @@ #include // Stone includes -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "../../../OrthancStone/Sources/Loaders/DicomResourcesLoader.h" +#include "../../../OrthancStone/Sources/Loaders/SeriesMetadataLoader.h" +#include "../../../OrthancStone/Sources/Loaders/SeriesThumbnailsLoader.h" +#include "../../../OrthancStone/Sources/Messages/ObserverBase.h" +#include "../../../OrthancStone/Sources/Oracle/ParseDicomFromWadoCommand.h" +#include "../../../OrthancStone/Sources/Oracle/ParseDicomSuccessMessage.h" +#include "../../../OrthancStone/Sources/Scene2D/AnnotationsSceneLayer.h" +#include "../../../OrthancStone/Sources/Scene2D/ArrowSceneLayer.h" +#include "../../../OrthancStone/Sources/Scene2D/ColorTextureSceneLayer.h" +#include "../../../OrthancStone/Sources/Scene2D/FloatTextureSceneLayer.h" +#include "../../../OrthancStone/Sources/Scene2D/MacroSceneLayer.h" +#include "../../../OrthancStone/Sources/Scene2D/OsiriXLayerFactory.h" +#include "../../../OrthancStone/Sources/Scene2D/PolylineSceneLayer.h" +#include "../../../OrthancStone/Sources/Scene2D/TextSceneLayer.h" +#include "../../../OrthancStone/Sources/Scene2DViewport/ViewportController.h" +#include "../../../OrthancStone/Sources/StoneException.h" +#include "../../../OrthancStone/Sources/Toolbox/DicomInstanceParameters.h" +#include "../../../OrthancStone/Sources/Toolbox/GeometryToolbox.h" +#include "../../../OrthancStone/Sources/Toolbox/OsiriX/AngleAnnotation.h" +#include "../../../OrthancStone/Sources/Toolbox/OsiriX/CollectionOfAnnotations.h" +#include "../../../OrthancStone/Sources/Toolbox/OsiriX/LineAnnotation.h" +#include "../../../OrthancStone/Sources/Toolbox/OsiriX/TextAnnotation.h" +#include "../../../OrthancStone/Sources/Toolbox/SortedFrames.h" +#include "../../../OrthancStone/Sources/Viewport/DefaultViewportInteractor.h" // WebAssembly includes -#include -#include -#include +#include "../../../OrthancStone/Sources/Platforms/WebAssembly/WebAssemblyCairoViewport.h" +#include "../../../OrthancStone/Sources/Platforms/WebAssembly/WebAssemblyLoadersContext.h" +#include "../../../OrthancStone/Sources/Platforms/WebAssembly/WebGLViewport.h" #include