Mercurial > hg > orthanc-stone
changeset 1518:433cf964838d
prevents random config. names + typofix + doc
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 31 Jul 2020 12:47:27 +0200 |
parents | 307a805d0587 |
children | 22d1bd085c19 |
files | StoneWebViewer/WebAssembly/CMakeLists.txt StoneWebViewer/WebAssembly/ParseWebAssemblyExports.py |
diffstat | 2 files changed, 13 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/StoneWebViewer/WebAssembly/CMakeLists.txt Fri Jul 31 12:46:22 2020 +0200 +++ b/StoneWebViewer/WebAssembly/CMakeLists.txt Fri Jul 31 12:47:27 2020 +0200 @@ -43,6 +43,15 @@ # populate the ORTHANC_STONE_SOURCES CMake variable include(${ORTHANC_STONE_ROOT}/Resources/CMake/OrthancStoneConfiguration.cmake) +if (CMAKE_BUILD_TYPE MATCHES Debug) + # specific flags go here +elseif (CMAKE_BUILD_TYPE MATCHES RelWithDebInfo) + # specific flags go here +elseif (CMAKE_BUILD_TYPE MATCHES Release) + # specific flags go here +else() + message(FATAL_ERROR "CMAKE_BUILD_TYPE must match either Debug, RelWithDebInfo or Release" ) +endif() ################################################################################ @@ -95,7 +104,7 @@ # Declare installation files for the companion files (web scaffolding) # please note that ${CMAKE_CURRENT_BINARY_DIR}/StoneWebViewer.js -# (the generated JS loader for the WASM module) is handled by the `install1` +# (the generated JS loader for the WASM module) is handled by the `install` # section above: it is considered to be the binary output of # the linker. # ---------------------------------------------------------------
--- a/StoneWebViewer/WebAssembly/ParseWebAssemblyExports.py Fri Jul 31 12:46:22 2020 +0200 +++ b/StoneWebViewer/WebAssembly/ParseWebAssemblyExports.py Fri Jul 31 12:47:27 2020 +0200 @@ -19,12 +19,14 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. +# Ubuntu 20.04: +# sudo apt-get install python-clang-6.0 +# ./ParseWebAssemblyExports.py --libclang=libclang-6.0.so.1 ./Test.cpp # Ubuntu 18.04: # sudo apt-get install python-clang-4.0 # ./ParseWebAssemblyExports.py --libclang=libclang-4.0.so.1 ./Test.cpp - # Ubuntu 14.04: # ./ParseWebAssemblyExports.py --libclang=libclang-3.6.so.1 ./Test.cpp @@ -34,8 +36,6 @@ import pystache import argparse - - ## ## Parse the command-line arguments ##