Mercurial > hg > orthanc
comparison Resources/CMake/OrthancFrameworkConfiguration.cmake @ 2483:9c54c40eaf25
logging primitives for WebAssembly
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 02 Mar 2018 15:10:37 +0100 |
parents | 80c1ed8e7283 |
children | 91ee08d986f9 |
comparison
equal
deleted
inserted
replaced
2482:509041cb57db | 2483:9c54c40eaf25 |
---|---|
426 | 426 |
427 | 427 |
428 if (ORTHANC_SANDBOXED) | 428 if (ORTHANC_SANDBOXED) |
429 add_definitions( | 429 add_definitions( |
430 -DORTHANC_SANDBOXED=1 | 430 -DORTHANC_SANDBOXED=1 |
431 -DORTHANC_ENABLE_LOGGING=0 | |
432 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 | 431 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 |
433 ) | 432 ) |
433 | |
434 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") | |
435 add_definitions( | |
436 -DORTHANC_ENABLE_LOGGING=1 | |
437 -DORTHANC_ENABLE_LOGGING_STDIO=1 | |
438 ) | |
439 else() | |
440 add_definitions( | |
441 -DORTHANC_ENABLE_LOGGING=0 | |
442 ) | |
443 endif() | |
434 | 444 |
435 else() | 445 else() |
436 add_definitions( | 446 add_definitions( |
437 -DORTHANC_SANDBOXED=0 | 447 -DORTHANC_SANDBOXED=0 |
438 -DORTHANC_ENABLE_LOGGING=1 | 448 -DORTHANC_ENABLE_LOGGING=1 |
439 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 | 449 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 |
450 -DORTHANC_ENABLE_LOGGING_STDIO=0 | |
440 ) | 451 ) |
441 | 452 |
442 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL | 453 list(APPEND ORTHANC_CORE_SOURCES_INTERNAL |
443 ${ORTHANC_ROOT}/Core/Cache/SharedArchive.cpp | 454 ${ORTHANC_ROOT}/Core/Cache/SharedArchive.cpp |
444 ${ORTHANC_ROOT}/Core/FileStorage/FilesystemStorage.cpp | 455 ${ORTHANC_ROOT}/Core/FileStorage/FilesystemStorage.cpp |