# HG changeset patch # User Benjamin Golinvaux # Date 1551866222 -3600 # Node ID 1b9973905e151dcc060b0badc67bc7eeaed7ba9d # Parent 7105a0bad25000eb49ce1b1f1a0e2a91e21d839f Fix to use js callbacks attached to 'window' + dummy changes in cmake files diff -r 7105a0bad250 -r 1b9973905e15 Platforms/Wasm/WasmWebService.js --- a/Platforms/Wasm/WasmWebService.js Wed Mar 06 10:14:59 2019 +0100 +++ b/Platforms/Wasm/WasmWebService.js Wed Mar 06 10:57:02 2019 +0100 @@ -37,7 +37,7 @@ WasmWebService_ScheduleLaterCachedSuccessNotification: function (brol) { setTimeout(function() { - WasmWebService_NotifyCachedSuccess(brol); + window.WasmWebService_NotifyCachedSuccess(brol); }, 0); }, @@ -62,10 +62,10 @@ var headers = _malloc(s.length + 1); stringToUTF8(s, headers, s.length + 1); - WasmWebService_NotifySuccess(callableSuccess, url_, new Uint8Array(this.response), + window.WasmWebService_NotifySuccess(callableSuccess, url_, new Uint8Array(this.response), this.response.byteLength, headers, payload); } else { - WasmWebService_NotifyError(callableFailure, url_, payload); + window.WasmWebService_NotifyError(callableFailure, url_, payload); } } } @@ -94,10 +94,10 @@ var headers = _malloc(s.length + 1); stringToUTF8(s, headers, s.length + 1); - WasmWebService_NotifySuccess(callableSuccess, url_, new Uint8Array(this.response), + window.WasmWebService_NotifySuccess(callableSuccess, url_, new Uint8Array(this.response), this.response.byteLength, headers, payload); } else { - WasmWebService_NotifyError(callableFailure, url_, payload); + window.WasmWebService_NotifyError(callableFailure, url_, payload); } } } diff -r 7105a0bad250 -r 1b9973905e15 Resources/CMake/OrthancStoneConfiguration.cmake --- a/Resources/CMake/OrthancStoneConfiguration.cmake Wed Mar 06 10:14:59 2019 +0100 +++ b/Resources/CMake/OrthancStoneConfiguration.cmake Wed Mar 06 10:57:02 2019 +0100 @@ -102,6 +102,8 @@ add_definitions(-DORTHANC_ENABLE_NATIVE=0) endif() + + ##################################################################### ## Configuration of the C/C++ macros ##################################################################### diff -r 7105a0bad250 -r 1b9973905e15 Resources/CMake/OrthancStoneParameters.cmake --- a/Resources/CMake/OrthancStoneParameters.cmake Wed Mar 06 10:14:59 2019 +0100 +++ b/Resources/CMake/OrthancStoneParameters.cmake Wed Mar 06 10:57:02 2019 +0100 @@ -22,8 +22,6 @@ ## Import the parameters of the Orthanc Framework ##################################################################### -message("CMAKE_CURRENT_LIST_DIR = ${CMAKE_CURRENT_LIST_DIR}") - include(${CMAKE_CURRENT_LIST_DIR}/../../Resources/Orthanc/DownloadOrthancFramework.cmake) include(${ORTHANC_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake)