Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Viewport/WebAssemblyViewport.cpp @ 1549:a48ae10857b1
packaging of the WebAssembly module
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Aug 2020 15:56:01 +0200 |
parents | 244ad1e4e76a |
children | a6f339d8e4c2 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Viewport/WebAssemblyViewport.cpp Thu Aug 13 09:57:35 2020 +0200 +++ b/OrthancStone/Sources/Viewport/WebAssemblyViewport.cpp Thu Aug 13 15:56:01 2020 +0200 @@ -19,9 +19,15 @@ **/ -#include "WebAssemblyViewport.h" - -#include "../Toolbox/GenericToolbox.h" +#if defined(ORTHANC_BUILDING_STONE_LIBRARY) && ORTHANC_BUILDING_STONE_LIBRARY == 1 +# include "WebAssemblyViewport.h" +# include "../Toolbox/GenericToolbox.h" +#else +// This is the case when using the WebAssembly side module, and this +// source file must be compiled within the WebAssembly main module +# include <Viewport/WebAssemblyViewport.h> +# include <Toolbox/GenericToolbox.h> +#endif #include <OrthancException.h>