comparison Resources/CMake/OrthancStone.cmake @ 114:3541fc81331a wasm

starting WebAssembly
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 20 Sep 2017 16:11:52 +0200
parents 2eca030792aa
children
comparison
equal deleted inserted replaced
113:2eca030792aa 114:3541fc81331a
52 52
53 ##################################################################### 53 #####################################################################
54 ## Configure the Orthanc Framework 54 ## Configure the Orthanc Framework
55 ##################################################################### 55 #####################################################################
56 56
57 if (NOT STONE_SANDBOXED) 57 if (STONE_SANDBOXED)
58 UNSET(ENABLE_CURL CACHE)
59 UNSET(ENABLE_LOGGING CACHE)
60 UNSET(ENABLE_SDL CACHE)
61 else()
58 SET(ORTHANC_BOOST_COMPONENTS program_options) 62 SET(ORTHANC_BOOST_COMPONENTS program_options)
59 SET(ENABLE_CURL ON)
60 SET(ENABLE_CRYPTO_OPTIONS ON) 63 SET(ENABLE_CRYPTO_OPTIONS ON)
61 SET(ENABLE_WEB_CLIENT ON) 64 SET(ENABLE_WEB_CLIENT ON)
62 endif() 65 endif()
63 66
64 SET(ENABLE_GOOGLE_TEST ON) 67 SET(ENABLE_GOOGLE_TEST ON)
160 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND 163 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND
161 NOT MSVC AND 164 NOT MSVC AND
162 ENABLE_SDL) 165 ENABLE_SDL)
163 # This is necessary when compiling EXE for Windows using MinGW 166 # This is necessary when compiling EXE for Windows using MinGW
164 link_libraries(mingw32) 167 link_libraries(mingw32)
168 endif()
169
170 if (STONE_SANDBOXED)
171 # Remove functions not suitable for a sandboxed environment
172 list(REMOVE_ITEM ORTHANC_CORE_SOURCES
173 ${ZLIB_SOURCES_DIR}/gzlib.c
174 ${ZLIB_SOURCES_DIR}/gzwrite.c
175 ${ZLIB_SOURCES_DIR}/gzread.c
176 )
165 endif() 177 endif()
166 178
167 179
168 180
169 ##################################################################### 181 #####################################################################