Mercurial > hg > orthanc-stone
comparison Resources/CMake/OrthancStoneConfiguration.cmake @ 431:26b90b110719 am-vsol-upgrade
added DelayedCallExecutor to avoid using sleep() in C++ that consumes 100% CPU once executed in WASM
author | am@osimis.io |
---|---|
date | Thu, 29 Nov 2018 19:25:15 +0100 |
parents | b85f635f1eb5 |
children | 3a8bcc45c221 |
comparison
equal
deleted
inserted
replaced
430:b85f635f1eb5 | 431:26b90b110719 |
---|---|
184 ${ORTHANC_STONE_ROOT}/Framework/Viewport/CairoFont.cpp | 184 ${ORTHANC_STONE_ROOT}/Framework/Viewport/CairoFont.cpp |
185 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceCommandBase.cpp | 185 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceCommandBase.cpp |
186 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceGetCommand.cpp | 186 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceGetCommand.cpp |
187 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServicePostCommand.cpp | 187 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServicePostCommand.cpp |
188 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceDeleteCommand.cpp | 188 ${ORTHANC_STONE_ROOT}/Platforms/Generic/WebServiceDeleteCommand.cpp |
189 ${ORTHANC_STONE_ROOT}/Platforms/Generic/DelayedCallCommand.cpp | |
189 ${ORTHANC_STONE_ROOT}/Platforms/Generic/Oracle.cpp | 190 ${ORTHANC_STONE_ROOT}/Platforms/Generic/Oracle.cpp |
190 ${ORTHANC_STONE_ROOT}/Platforms/Generic/OracleWebService.h | 191 ${ORTHANC_STONE_ROOT}/Platforms/Generic/OracleWebService.h |
192 ${ORTHANC_STONE_ROOT}/Platforms/Generic/OracleDelayedCallExecutor.h | |
191 ) | 193 ) |
192 | 194 |
193 if (ENABLE_SDL OR ENABLE_QT) | 195 if (ENABLE_SDL OR ENABLE_QT) |
194 list(APPEND APPLICATIONS_SOURCES | 196 list(APPEND APPLICATIONS_SOURCES |
195 ${ORTHANC_STONE_ROOT}/Applications/Generic/NativeStoneApplicationRunner.cpp | 197 ${ORTHANC_STONE_ROOT}/Applications/Generic/NativeStoneApplicationRunner.cpp |
210 ${ORTHANC_STONE_ROOT}/Applications/Wasm/StartupParametersBuilder.cpp | 212 ${ORTHANC_STONE_ROOT}/Applications/Wasm/StartupParametersBuilder.cpp |
211 ) | 213 ) |
212 | 214 |
213 set(STONE_WASM_SOURCES | 215 set(STONE_WASM_SOURCES |
214 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/Defaults.cpp | 216 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/Defaults.cpp |
217 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmDelayedCallExecutor.cpp | |
215 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.cpp | 218 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.cpp |
216 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmViewport.cpp | 219 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmViewport.cpp |
217 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmPlatformApplicationAdapter.cpp | 220 ${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmPlatformApplicationAdapter.cpp |
218 ${AUTOGENERATED_DIR}/WasmWebService.c | 221 ${AUTOGENERATED_DIR}/WasmWebService.c |
219 ${AUTOGENERATED_DIR}/default-library.c | 222 ${AUTOGENERATED_DIR}/default-library.c |
223 # is modified, so as to force a new execution of the linking | 226 # is modified, so as to force a new execution of the linking |
224 add_custom_command( | 227 add_custom_command( |
225 OUTPUT "${AUTOGENERATED_DIR}/WasmWebService.c" | 228 OUTPUT "${AUTOGENERATED_DIR}/WasmWebService.c" |
226 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/WasmWebService.c" "" | 229 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/WasmWebService.c" "" |
227 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.js") | 230 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmWebService.js") |
231 add_custom_command( | |
232 OUTPUT "${AUTOGENERATED_DIR}/WasmDelayedCallExecutor.c" | |
233 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/WasmDelayedCallExecutor.c" "" | |
234 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/WasmDelayedCallExecutor.js") | |
228 add_custom_command( | 235 add_custom_command( |
229 OUTPUT "${AUTOGENERATED_DIR}/default-library.c" | 236 OUTPUT "${AUTOGENERATED_DIR}/default-library.c" |
230 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/default-library.c" "" | 237 COMMAND ${CMAKE_COMMAND} -E touch "${AUTOGENERATED_DIR}/default-library.c" "" |
231 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/default-library.js") | 238 DEPENDS "${ORTHANC_STONE_ROOT}/Platforms/Wasm/default-library.js") |
232 endif() | 239 endif() |
269 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DicomStructureSet.cpp | 276 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DicomStructureSet.cpp |
270 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DownloadStack.cpp | 277 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/DownloadStack.cpp |
271 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/Extent2D.cpp | 278 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/Extent2D.cpp |
272 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/FiniteProjectiveCamera.cpp | 279 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/FiniteProjectiveCamera.cpp |
273 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/GeometryToolbox.cpp | 280 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/GeometryToolbox.cpp |
281 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/IDelayedCallExecutor.h | |
274 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/IWebService.cpp | 282 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/IWebService.cpp |
275 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ImageGeometry.cpp | 283 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/ImageGeometry.cpp |
276 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/LinearAlgebra.cpp | 284 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/LinearAlgebra.cpp |
277 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/MessagingToolbox.cpp | 285 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/MessagingToolbox.cpp |
278 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/OrientedBoundingBox.cpp | 286 ${ORTHANC_STONE_ROOT}/Framework/Toolbox/OrientedBoundingBox.cpp |