Mercurial > hg > orthanc-stone
comparison Applications/Samples/CMakeLists.txt @ 461:593b8c3c02fb am-touch-events
fix build setting + build with ninja
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 04 Feb 2019 11:30:24 +0100 |
parents | dc091ca6fd5f |
children | 801d2697a1b1 |
comparison
equal
deleted
inserted
replaced
459:dc091ca6fd5f | 461:593b8c3c02fb |
---|---|
19 ## Configuration of the Emscripten compiler for WebAssembly target | 19 ## Configuration of the Emscripten compiler for WebAssembly target |
20 ##################################################################### | 20 ##################################################################### |
21 | 21 |
22 set(WASM_FLAGS "-s WASM=1") | 22 set(WASM_FLAGS "-s WASM=1") |
23 set(WASM_FLAGS "${WASM_FLAGS} -s STRICT=1") # drops support for all deprecated build options | 23 set(WASM_FLAGS "${WASM_FLAGS} -s STRICT=1") # drops support for all deprecated build options |
24 set(WASM_FLAGS "${WASM_FLAGS} -s FILESYSTEM=0") # remove File system emulation | 24 set(WASM_FLAGS "${WASM_FLAGS} -s FILESYSTEM=1") # if we don't include it, gen_uuid.c fails to build because srand, getpid(), ... are not defined |
25 set(WASM_FLAGS "${WASM_FLAGS} -s DISABLE_EXCEPTION_CATCHING=0") # actually enable exception catching | 25 set(WASM_FLAGS "${WASM_FLAGS} -s DISABLE_EXCEPTION_CATCHING=0") # actually enable exception catching |
26 set(WASM_FLAGS "${WASM_FLAGS} -s ERROR_ON_MISSING_LIBRARIES=1") | 26 set(WASM_FLAGS "${WASM_FLAGS} -s ERROR_ON_MISSING_LIBRARIES=1") |
27 | 27 |
28 if (CMAKE_BUILD_TYPE MATCHES DEBUG) | 28 if (CMAKE_BUILD_TYPE MATCHES DEBUG) |
29 set(WASM_FLAGS "${WASM_FLAGS} -g4") # generate debug information | 29 set(WASM_FLAGS "${WASM_FLAGS} -g4") # generate debug information |