comparison OrthancStone/Sources/Oracle/WebAssemblyOracle.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 5bc305a166c2
children 1b3039384972
comparison
equal deleted inserted replaced
1548:65eccce95882 1549:a48ae10857b1
17 * You should have received a copy of the GNU Affero General Public License 17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 **/ 19 **/
20 20
21 21
22 #include "WebAssemblyOracle.h" 22 #if defined(ORTHANC_BUILDING_STONE_LIBRARY) && ORTHANC_BUILDING_STONE_LIBRARY == 1
23 23 # include "WebAssemblyOracle_Includes.h"
24 #include "OracleCommandExceptionMessage.h" 24 #else
25 #include "SleepOracleCommand.h" 25 // This is the case when using the WebAssembly side module, and this
26 26 // source file must be compiled within the WebAssembly main module
27 #if ORTHANC_ENABLE_DCMTK == 1 27 # include <Oracle/WebAssemblyOracle_Includes.h>
28 # include "ParseDicomSuccessMessage.h"
29 static unsigned int BUCKET_SOP = 1;
30 #endif 28 #endif
31
32 #include "GetOrthancImageCommand.h"
33 #include "GetOrthancWebViewerJpegCommand.h"
34 #include "HttpCommand.h"
35 #include "OrthancRestApiCommand.h"
36 #include "ParseDicomFromWadoCommand.h"
37 29
38 #include <OrthancException.h> 30 #include <OrthancException.h>
39 #include <Toolbox.h> 31 #include <Toolbox.h>
40 32
41 #include <emscripten.h> 33 #include <emscripten.h>
42 #include <emscripten/html5.h> 34 #include <emscripten/html5.h>
43 #include <emscripten/fetch.h> 35 #include <emscripten/fetch.h>
36
37
38 #if ORTHANC_ENABLE_DCMTK == 1
39 static unsigned int BUCKET_SOP = 1;
40 #endif
41
44 42
45 namespace OrthancStone 43 namespace OrthancStone
46 { 44 {
47 class WebAssemblyOracle::TimeoutContext 45 class WebAssemblyOracle::TimeoutContext
48 { 46 {