# HG changeset patch # User Benjamin Golinvaux # Date 1596192447 -7200 # Node ID 433cf964838d9ac47fed05a224499010c96987b1 # Parent 307a805d05870efc5a13e87e4efa29122576b1e7 prevents random config. names + typofix + doc diff -r 307a805d0587 -r 433cf964838d StoneWebViewer/WebAssembly/CMakeLists.txt --- 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. # --------------------------------------------------------------- diff -r 307a805d0587 -r 433cf964838d StoneWebViewer/WebAssembly/ParseWebAssemblyExports.py --- 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 . +# 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 ##