# HG changeset patch # User Sebastien Jodogne # Date 1401708284 -7200 # Node ID aabc3b4308900aa7f05cfc29fe21c1e0c36c64ff # Parent d8f5de5b9517c8512a249bffdc3a83ab24b7a809# Parent a4d2be5154a9b9ee4df857fd3957fb2a33239e9c integration mainline -> templating diff -r d8f5de5b9517 -r aabc3b430890 CMakeLists.txt --- a/CMakeLists.txt Wed May 28 17:54:59 2014 +0200 +++ b/CMakeLists.txt Mon Jun 02 13:24:44 2014 +0200 @@ -44,6 +44,7 @@ include(${CMAKE_SOURCE_DIR}/Resources/CMake/AutoGeneratedCode.cmake) include(${CMAKE_SOURCE_DIR}/Resources/CMake/DownloadPackage.cmake) include(${CMAKE_SOURCE_DIR}/Resources/CMake/Compiler.cmake) +include(${CMAKE_SOURCE_DIR}/Resources/CMake/VisualStudioPrecompiledHeaders.cmake) set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}) @@ -51,6 +52,121 @@ ##################################################################### +## List of source files +##################################################################### + +set(ORTHANC_CORE_SOURCES + Core/Cache/MemoryCache.cpp + Core/ChunkedBuffer.cpp + Core/Compression/BufferCompressor.cpp + Core/Compression/ZlibCompressor.cpp + Core/Compression/ZipWriter.cpp + Core/Compression/HierarchicalZipWriter.cpp + Core/OrthancException.cpp + Core/DicomFormat/DicomArray.cpp + Core/DicomFormat/DicomMap.cpp + Core/DicomFormat/DicomTag.cpp + Core/DicomFormat/DicomIntegerPixelAccessor.cpp + Core/DicomFormat/DicomInstanceHasher.cpp + Core/Enumerations.cpp + Core/FileStorage/FileStorage.cpp + Core/FileStorage/StorageAccessor.cpp + Core/FileStorage/CompressedFileStorageAccessor.cpp + Core/FileStorage/FileStorageAccessor.cpp + Core/HttpClient.cpp + Core/HttpServer/EmbeddedResourceHttpHandler.cpp + Core/HttpServer/FilesystemHttpHandler.cpp + Core/HttpServer/HttpHandler.cpp + Core/HttpServer/HttpOutput.cpp + Core/HttpServer/MongooseServer.cpp + Core/HttpServer/HttpFileSender.cpp + Core/HttpServer/FilesystemHttpSender.cpp + Core/RestApi/RestApiPath.cpp + Core/RestApi/RestApiOutput.cpp + Core/RestApi/RestApi.cpp + Core/MultiThreading/ArrayFilledByThreads.cpp + Core/MultiThreading/BagOfRunnablesBySteps.cpp + Core/MultiThreading/Mutex.cpp + Core/MultiThreading/ReaderWriterLock.cpp + Core/MultiThreading/SharedMessageQueue.cpp + Core/MultiThreading/ThreadedCommandProcessor.cpp + Core/ImageFormats/ImageAccessor.cpp + Core/ImageFormats/ImageBuffer.cpp + Core/ImageFormats/PngReader.cpp + Core/ImageFormats/PngWriter.cpp + Core/SQLite/Connection.cpp + Core/SQLite/FunctionContext.cpp + Core/SQLite/Statement.cpp + Core/SQLite/StatementId.cpp + Core/SQLite/StatementReference.cpp + Core/SQLite/Transaction.cpp + Core/Toolbox.cpp + Core/Uuid.cpp + Core/Lua/LuaContext.cpp + Core/Lua/LuaFunctionCall.cpp + + OrthancCppClient/OrthancConnection.cpp + OrthancCppClient/Study.cpp + OrthancCppClient/Series.cpp + OrthancCppClient/Instance.cpp + OrthancCppClient/Patient.cpp + ) + + +set(ORTHANC_SERVER_SOURCES + OrthancServer/DicomProtocol/DicomFindAnswers.cpp + OrthancServer/DicomProtocol/DicomServer.cpp + OrthancServer/DicomProtocol/DicomUserConnection.cpp + OrthancServer/DicomProtocol/RemoteModalityParameters.cpp + OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp + OrthancServer/DicomModification.cpp + OrthancServer/FromDcmtkBridge.cpp + OrthancServer/ParsedDicomFile.cpp + OrthancServer/Internals/CommandDispatcher.cpp + OrthancServer/Internals/FindScp.cpp + OrthancServer/Internals/MoveScp.cpp + OrthancServer/Internals/StoreScp.cpp + OrthancServer/OrthancInitialization.cpp + OrthancServer/OrthancPeerParameters.cpp + OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp + OrthancServer/OrthancRestApi/OrthancRestApi.cpp + OrthancServer/OrthancRestApi/OrthancRestArchive.cpp + OrthancServer/OrthancRestApi/OrthancRestChanges.cpp + OrthancServer/OrthancRestApi/OrthancRestModalities.cpp + OrthancServer/OrthancRestApi/OrthancRestResources.cpp + OrthancServer/OrthancRestApi/OrthancRestSystem.cpp + OrthancServer/ServerIndex.cpp + OrthancServer/ToDcmtkBridge.cpp + OrthancServer/DatabaseWrapper.cpp + OrthancServer/ServerContext.cpp + OrthancServer/ServerEnumerations.cpp + OrthancServer/ServerToolbox.cpp + OrthancServer/OrthancFindRequestHandler.cpp + OrthancServer/OrthancMoveRequestHandler.cpp + ) + + +set(ORTHANC_UNIT_TESTS_SOURCES + UnitTestsSources/DicomMap.cpp + UnitTestsSources/FileStorage.cpp + UnitTestsSources/FromDcmtk.cpp + UnitTestsSources/MemoryCache.cpp + UnitTestsSources/Png.cpp + UnitTestsSources/RestApi.cpp + UnitTestsSources/SQLite.cpp + UnitTestsSources/SQLiteChromium.cpp + UnitTestsSources/ServerIndexTests.cpp + UnitTestsSources/Versions.cpp + UnitTestsSources/Zip.cpp + UnitTestsSources/Lua.cpp + UnitTestsSources/MultiThreading.cpp + UnitTestsSources/UnitTestsMain.cpp + UnitTestsSources/Plustache.cpp + ) + + + +##################################################################### ## Inclusion of third-party dependencies ##################################################################### @@ -124,6 +240,21 @@ ## Build the core of Orthanc ##################################################################### +# Setup precompiled headers for Microsoft Visual Studio +if (${MSVC}) + add_definitions(-DORTHANC_USE_PRECOMPILED_HEADERS=1) + + ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS( + "PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_CORE_SOURCES) + + ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS( + "PrecompiledHeadersServer.h" "OrthancServer/PrecompiledHeadersServer.cpp" ORTHANC_SERVER_SOURCES) + + ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS( + "PrecompiledHeadersUnitTests.h" "UnitTestsSources/PrecompiledHeadersUnitTests.cpp" ORTHANC_UNIT_TESTS_SOURCES) +endif() + + add_definitions( -DORTHANC_VERSION="${ORTHANC_VERSION}" ) @@ -138,61 +269,7 @@ ${AUTOGENERATED_SOURCES} ${THIRD_PARTY_SOURCES} ${CURL_SOURCES} - - Core/Cache/MemoryCache.cpp - Core/ChunkedBuffer.cpp - Core/Compression/BufferCompressor.cpp - Core/Compression/ZlibCompressor.cpp - Core/Compression/ZipWriter.cpp - Core/Compression/HierarchicalZipWriter.cpp - Core/OrthancException.cpp - Core/DicomFormat/DicomArray.cpp - Core/DicomFormat/DicomMap.cpp - Core/DicomFormat/DicomTag.cpp - Core/DicomFormat/DicomIntegerPixelAccessor.cpp - Core/DicomFormat/DicomInstanceHasher.cpp - Core/Enumerations.cpp - Core/FileStorage/FileStorage.cpp - Core/FileStorage/StorageAccessor.cpp - Core/FileStorage/CompressedFileStorageAccessor.cpp - Core/FileStorage/FileStorageAccessor.cpp - Core/HttpClient.cpp - Core/HttpServer/EmbeddedResourceHttpHandler.cpp - Core/HttpServer/FilesystemHttpHandler.cpp - Core/HttpServer/HttpHandler.cpp - Core/HttpServer/HttpOutput.cpp - Core/HttpServer/MongooseServer.cpp - Core/HttpServer/HttpFileSender.cpp - Core/HttpServer/FilesystemHttpSender.cpp - Core/RestApi/RestApiPath.cpp - Core/RestApi/RestApiOutput.cpp - Core/RestApi/RestApi.cpp - Core/MultiThreading/ArrayFilledByThreads.cpp - Core/MultiThreading/BagOfRunnablesBySteps.cpp - Core/MultiThreading/Mutex.cpp - Core/MultiThreading/ReaderWriterLock.cpp - Core/MultiThreading/SharedMessageQueue.cpp - Core/MultiThreading/ThreadedCommandProcessor.cpp - Core/ImageFormats/ImageAccessor.cpp - Core/ImageFormats/ImageBuffer.cpp - Core/ImageFormats/PngReader.cpp - Core/ImageFormats/PngWriter.cpp - Core/SQLite/Connection.cpp - Core/SQLite/FunctionContext.cpp - Core/SQLite/Statement.cpp - Core/SQLite/StatementId.cpp - Core/SQLite/StatementReference.cpp - Core/SQLite/Transaction.cpp - Core/Toolbox.cpp - Core/Uuid.cpp - Core/Lua/LuaContext.cpp - Core/Lua/LuaFunctionCall.cpp - - OrthancCppClient/OrthancConnection.cpp - OrthancCppClient/Study.cpp - OrthancCppClient/Series.cpp - OrthancCppClient/Instance.cpp - OrthancCppClient/Patient.cpp + ${ORTHANC_CORE_SOURCES} ) @@ -203,35 +280,7 @@ add_library(ServerLibrary STATIC ${DCMTK_SOURCES} - OrthancServer/DicomProtocol/DicomFindAnswers.cpp - OrthancServer/DicomProtocol/DicomServer.cpp - OrthancServer/DicomProtocol/DicomUserConnection.cpp - OrthancServer/DicomProtocol/RemoteModalityParameters.cpp - OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp - OrthancServer/DicomModification.cpp - OrthancServer/FromDcmtkBridge.cpp - OrthancServer/ParsedDicomFile.cpp - OrthancServer/Internals/CommandDispatcher.cpp - OrthancServer/Internals/FindScp.cpp - OrthancServer/Internals/MoveScp.cpp - OrthancServer/Internals/StoreScp.cpp - OrthancServer/OrthancInitialization.cpp - OrthancServer/OrthancPeerParameters.cpp - OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp - OrthancServer/OrthancRestApi/OrthancRestApi.cpp - OrthancServer/OrthancRestApi/OrthancRestArchive.cpp - OrthancServer/OrthancRestApi/OrthancRestChanges.cpp - OrthancServer/OrthancRestApi/OrthancRestModalities.cpp - OrthancServer/OrthancRestApi/OrthancRestResources.cpp - OrthancServer/OrthancRestApi/OrthancRestSystem.cpp - OrthancServer/ServerIndex.cpp - OrthancServer/ToDcmtkBridge.cpp - OrthancServer/DatabaseWrapper.cpp - OrthancServer/ServerContext.cpp - OrthancServer/ServerEnumerations.cpp - OrthancServer/ServerToolbox.cpp - OrthancServer/OrthancFindRequestHandler.cpp - OrthancServer/OrthancMoveRequestHandler.cpp + ${ORTHANC_SERVER_SOURCES} ) # Ensure autogenerated code is built before building ServerLibrary @@ -268,21 +317,7 @@ include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake) add_executable(UnitTests ${GTEST_SOURCES} - UnitTestsSources/DicomMap.cpp - UnitTestsSources/FileStorage.cpp - UnitTestsSources/FromDcmtk.cpp - UnitTestsSources/MemoryCache.cpp - UnitTestsSources/Png.cpp - UnitTestsSources/RestApi.cpp - UnitTestsSources/SQLite.cpp - UnitTestsSources/SQLiteChromium.cpp - UnitTestsSources/ServerIndexTests.cpp - UnitTestsSources/Versions.cpp - UnitTestsSources/Zip.cpp - UnitTestsSources/Lua.cpp - UnitTestsSources/MultiThreading.cpp - UnitTestsSources/UnitTestsMain.cpp - UnitTestsSources/Plustache.cpp + ${ORTHANC_UNIT_TESTS_SOURCES} ) target_link_libraries(UnitTests ServerLibrary CoreLibrary) @@ -330,22 +365,7 @@ endif() add_library(OrthancClient SHARED - ${ORTHANC_ROOT}/Core/OrthancException.cpp - ${ORTHANC_ROOT}/Core/Enumerations.cpp - ${ORTHANC_ROOT}/Core/Toolbox.cpp - ${ORTHANC_ROOT}/Core/HttpClient.cpp - ${ORTHANC_ROOT}/Core/MultiThreading/ArrayFilledByThreads.cpp - ${ORTHANC_ROOT}/Core/MultiThreading/ThreadedCommandProcessor.cpp - ${ORTHANC_ROOT}/Core/MultiThreading/SharedMessageQueue.cpp - ${ORTHANC_ROOT}/Core/ImageFormats/ImageAccessor.cpp - ${ORTHANC_ROOT}/Core/ImageFormats/ImageBuffer.cpp - ${ORTHANC_ROOT}/Core/ImageFormats/PngReader.cpp - ${ORTHANC_ROOT}/OrthancCppClient/OrthancConnection.cpp - ${ORTHANC_ROOT}/OrthancCppClient/Series.cpp - ${ORTHANC_ROOT}/OrthancCppClient/Study.cpp - ${ORTHANC_ROOT}/OrthancCppClient/Instance.cpp - ${ORTHANC_ROOT}/OrthancCppClient/Patient.cpp - ${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/SharedLibrary.cpp + ${ORTHANC_ROOT}/OrthancCppClient/OrthancCppClient.cpp ${ORTHANC_ROOT}/Resources/md5/md5.c ${ORTHANC_ROOT}/Resources/base64/base64.cpp ${ORTHANC_CPP_CLIENT_AUX} diff -r d8f5de5b9517 -r aabc3b430890 Core/Cache/MemoryCache.cpp --- a/Core/Cache/MemoryCache.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/Cache/MemoryCache.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "MemoryCache.h" #include // This fixes a problem in glog for recent diff -r d8f5de5b9517 -r aabc3b430890 Core/ChunkedBuffer.cpp --- a/Core/ChunkedBuffer.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/ChunkedBuffer.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "ChunkedBuffer.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/Compression/BufferCompressor.cpp --- a/Core/Compression/BufferCompressor.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/Compression/BufferCompressor.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "BufferCompressor.h" namespace Orthanc diff -r d8f5de5b9517 -r aabc3b430890 Core/Compression/HierarchicalZipWriter.cpp --- a/Core/Compression/HierarchicalZipWriter.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/Compression/HierarchicalZipWriter.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "HierarchicalZipWriter.h" #include "../Toolbox.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/Compression/ZipWriter.cpp --- a/Core/Compression/ZipWriter.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/Compression/ZipWriter.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -29,6 +29,9 @@ * along with this program. If not, see . **/ + +#include "../PrecompiledHeaders.h" + #ifndef NOMINMAX #define NOMINMAX #endif diff -r d8f5de5b9517 -r aabc3b430890 Core/Compression/ZlibCompressor.cpp --- a/Core/Compression/ZlibCompressor.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/Compression/ZlibCompressor.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "ZlibCompressor.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/DicomFormat/DicomArray.cpp --- a/Core/DicomFormat/DicomArray.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/DicomFormat/DicomArray.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "DicomArray.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/DicomFormat/DicomInstanceHasher.cpp --- a/Core/DicomFormat/DicomInstanceHasher.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/DicomFormat/DicomInstanceHasher.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -29,6 +29,8 @@ * along with this program. If not, see . **/ + +#include "../PrecompiledHeaders.h" #include "DicomInstanceHasher.h" #include "../OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/DicomFormat/DicomIntegerPixelAccessor.cpp --- a/Core/DicomFormat/DicomIntegerPixelAccessor.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/DicomFormat/DicomIntegerPixelAccessor.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,8 @@ **/ +#include "../PrecompiledHeaders.h" + #ifndef NOMINMAX #define NOMINMAX #endif diff -r d8f5de5b9517 -r aabc3b430890 Core/DicomFormat/DicomMap.cpp --- a/Core/DicomFormat/DicomMap.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/DicomFormat/DicomMap.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "DicomMap.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/DicomFormat/DicomTag.cpp --- a/Core/DicomFormat/DicomTag.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/DicomFormat/DicomTag.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "DicomTag.h" #include "../OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/Enumerations.cpp --- a/Core/Enumerations.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/Enumerations.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "Enumerations.h" #include "OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/FileStorage/CompressedFileStorageAccessor.cpp --- a/Core/FileStorage/CompressedFileStorageAccessor.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/FileStorage/CompressedFileStorageAccessor.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "CompressedFileStorageAccessor.h" #include "../OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/FileStorage/FileStorage.cpp --- a/Core/FileStorage/FileStorage.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/FileStorage/FileStorage.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "FileStorage.h" // http://stackoverflow.com/questions/1576272/storing-large-number-of-files-in-file-system diff -r d8f5de5b9517 -r aabc3b430890 Core/FileStorage/FileStorageAccessor.cpp --- a/Core/FileStorage/FileStorageAccessor.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/FileStorage/FileStorageAccessor.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "FileStorageAccessor.h" namespace Orthanc diff -r d8f5de5b9517 -r aabc3b430890 Core/FileStorage/StorageAccessor.cpp --- a/Core/FileStorage/StorageAccessor.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/FileStorage/StorageAccessor.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "StorageAccessor.h" namespace Orthanc diff -r d8f5de5b9517 -r aabc3b430890 Core/HttpClient.cpp --- a/Core/HttpClient.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/HttpClient.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "HttpClient.h" #include "../Core/Toolbox.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/HttpServer/EmbeddedResourceHttpHandler.cpp --- a/Core/HttpServer/EmbeddedResourceHttpHandler.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/HttpServer/EmbeddedResourceHttpHandler.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "EmbeddedResourceHttpHandler.h" #include "../OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/HttpServer/FilesystemHttpHandler.cpp --- a/Core/HttpServer/FilesystemHttpHandler.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/HttpServer/FilesystemHttpHandler.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "FilesystemHttpHandler.h" #include "../OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/HttpServer/FilesystemHttpSender.cpp --- a/Core/HttpServer/FilesystemHttpSender.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/HttpServer/FilesystemHttpSender.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -29,6 +29,7 @@ * along with this program. If not, see . **/ +#include "../PrecompiledHeaders.h" #include "FilesystemHttpSender.h" #include "../Toolbox.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/HttpServer/HttpFileSender.cpp --- a/Core/HttpServer/HttpFileSender.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/HttpServer/HttpFileSender.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "HttpFileSender.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/HttpServer/HttpHandler.cpp --- a/Core/HttpServer/HttpHandler.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/HttpServer/HttpHandler.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "HttpHandler.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/HttpServer/HttpOutput.cpp --- a/Core/HttpServer/HttpOutput.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/HttpServer/HttpOutput.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "HttpOutput.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/HttpServer/MongooseServer.cpp --- a/Core/HttpServer/MongooseServer.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/HttpServer/MongooseServer.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -32,6 +32,7 @@ // http://en.highscore.de/cpp/boost/stringhandling.html +#include "../PrecompiledHeaders.h" #include "MongooseServer.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/ImageFormats/ImageAccessor.cpp --- a/Core/ImageFormats/ImageAccessor.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/ImageFormats/ImageAccessor.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "ImageAccessor.h" #include "../OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/ImageFormats/ImageBuffer.cpp --- a/Core/ImageFormats/ImageBuffer.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/ImageFormats/ImageBuffer.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "ImageBuffer.h" namespace Orthanc diff -r d8f5de5b9517 -r aabc3b430890 Core/ImageFormats/PngReader.cpp --- a/Core/ImageFormats/PngReader.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/ImageFormats/PngReader.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "PngReader.h" #include "../OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/ImageFormats/PngWriter.cpp --- a/Core/ImageFormats/PngWriter.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/ImageFormats/PngWriter.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "PngWriter.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/Lua/LuaContext.cpp --- a/Core/Lua/LuaContext.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/Lua/LuaContext.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "LuaContext.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/Lua/LuaFunctionCall.cpp --- a/Core/Lua/LuaFunctionCall.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/Lua/LuaFunctionCall.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "LuaFunctionCall.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/MultiThreading/ArrayFilledByThreads.cpp --- a/Core/MultiThreading/ArrayFilledByThreads.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/MultiThreading/ArrayFilledByThreads.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "../PrecompiledHeaders.h" #include "ArrayFilledByThreads.h" #include "../MultiThreading/ThreadedCommandProcessor.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/MultiThreading/BagOfRunnablesBySteps.cpp --- a/Core/MultiThreading/BagOfRunnablesBySteps.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/MultiThreading/BagOfRunnablesBySteps.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "BagOfRunnablesBySteps.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/MultiThreading/Mutex.cpp --- a/Core/MultiThreading/Mutex.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/MultiThreading/Mutex.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "Mutex.h" #include "../OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/MultiThreading/ReaderWriterLock.cpp --- a/Core/MultiThreading/ReaderWriterLock.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/MultiThreading/ReaderWriterLock.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "ReaderWriterLock.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/MultiThreading/SharedMessageQueue.cpp --- a/Core/MultiThreading/SharedMessageQueue.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/MultiThreading/SharedMessageQueue.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "SharedMessageQueue.h" namespace Orthanc diff -r d8f5de5b9517 -r aabc3b430890 Core/MultiThreading/ThreadedCommandProcessor.cpp --- a/Core/MultiThreading/ThreadedCommandProcessor.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/MultiThreading/ThreadedCommandProcessor.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "ThreadedCommandProcessor.h" #include "../OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/OrthancException.cpp --- a/Core/OrthancException.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/OrthancException.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "OrthancException.h" namespace Orthanc diff -r d8f5de5b9517 -r aabc3b430890 Core/PrecompiledHeaders.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Core/PrecompiledHeaders.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -0,0 +1,33 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeaders.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/PrecompiledHeaders.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Core/PrecompiledHeaders.h Mon Jun 02 13:24:44 2014 +0200 @@ -0,0 +1,57 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#pragma once + +#if ORTHANC_USE_PRECOMPILED_HEADERS == 1 + +#ifndef NOMINMAX +#define NOMINMAX +#endif + +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "Enumerations.h" +#include "OrthancException.h" +#include "Toolbox.h" +#include "Uuid.h" + +#endif diff -r d8f5de5b9517 -r aabc3b430890 Core/RestApi/RestApi.cpp --- a/Core/RestApi/RestApi.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/RestApi/RestApi.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "RestApi.h" #include // To define "_exit()" under Windows diff -r d8f5de5b9517 -r aabc3b430890 Core/RestApi/RestApiOutput.cpp --- a/Core/RestApi/RestApiOutput.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/RestApi/RestApiOutput.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "RestApiOutput.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/RestApi/RestApiPath.cpp --- a/Core/RestApi/RestApiPath.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/RestApi/RestApiPath.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "RestApiPath.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/SQLite/Connection.cpp --- a/Core/SQLite/Connection.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/SQLite/Connection.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -34,6 +34,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "Connection.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/SQLite/FunctionContext.cpp --- a/Core/SQLite/FunctionContext.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/SQLite/FunctionContext.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -31,6 +31,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "FunctionContext.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/SQLite/Statement.cpp --- a/Core/SQLite/Statement.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/SQLite/Statement.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -34,6 +34,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "Statement.h" #include "Connection.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/SQLite/StatementId.cpp --- a/Core/SQLite/StatementId.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/SQLite/StatementId.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -34,6 +34,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "StatementId.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Core/SQLite/StatementReference.cpp --- a/Core/SQLite/StatementReference.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/SQLite/StatementReference.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -34,6 +34,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "StatementReference.h" #include "../OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/SQLite/Transaction.cpp --- a/Core/SQLite/Transaction.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/SQLite/Transaction.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -34,6 +34,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "Transaction.h" namespace Orthanc diff -r d8f5de5b9517 -r aabc3b430890 Core/Toolbox.cpp --- a/Core/Toolbox.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/Toolbox.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "Toolbox.h" #include "OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 Core/Uuid.cpp --- a/Core/Uuid.cpp Wed May 28 17:54:59 2014 +0200 +++ b/Core/Uuid.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "Uuid.h" // http://stackoverflow.com/a/1626302 diff -r d8f5de5b9517 -r aabc3b430890 NEWS --- a/NEWS Wed May 28 17:54:59 2014 +0200 +++ b/NEWS Mon Jun 02 13:24:44 2014 +0200 @@ -1,6 +1,8 @@ Pending changes in the mainline =============================== +* Precompiled headers for Microsoft Visual Studio + Version 0.7.5 (2014/05/08) ========================== diff -r d8f5de5b9517 -r aabc3b430890 OrthancCppClient/Instance.cpp --- a/OrthancCppClient/Instance.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancCppClient/Instance.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "Instance.h" #include "OrthancConnection.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancCppClient/OrthancConnection.cpp --- a/OrthancCppClient/OrthancConnection.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancCppClient/OrthancConnection.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "OrthancConnection.h" #include "../Core/Toolbox.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancCppClient/OrthancCppClient.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OrthancCppClient/OrthancCppClient.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -0,0 +1,52 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +/** + * The sources of the C++ client library must be put in this file to + * avoid problems with precompiled headers. + **/ + +#include "../Core/Enumerations.cpp" +#include "../Core/HttpClient.cpp" +#include "../Core/ImageFormats/ImageAccessor.cpp" +#include "../Core/ImageFormats/ImageBuffer.cpp" +#include "../Core/ImageFormats/PngReader.cpp" +#include "../Core/MultiThreading/ArrayFilledByThreads.cpp" +#include "../Core/MultiThreading/SharedMessageQueue.cpp" +#include "../Core/MultiThreading/ThreadedCommandProcessor.cpp" +#include "../Core/OrthancException.cpp" +#include "../Core/Toolbox.cpp" +#include "../OrthancCppClient/Instance.cpp" +#include "../OrthancCppClient/OrthancConnection.cpp" +#include "../OrthancCppClient/Patient.cpp" +#include "../OrthancCppClient/Series.cpp" +#include "../OrthancCppClient/Study.cpp" diff -r d8f5de5b9517 -r aabc3b430890 OrthancCppClient/Patient.cpp --- a/OrthancCppClient/Patient.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancCppClient/Patient.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "Patient.h" #include "OrthancConnection.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancCppClient/Series.cpp --- a/OrthancCppClient/Series.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancCppClient/Series.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "Series.h" #include "OrthancConnection.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancCppClient/Study.cpp --- a/OrthancCppClient/Study.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancCppClient/Study.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "Study.h" #include "OrthancConnection.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/DatabaseWrapper.cpp --- a/OrthancServer/DatabaseWrapper.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/DatabaseWrapper.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeadersServer.h" #include "DatabaseWrapper.h" #include "../Core/DicomFormat/DicomArray.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/DicomModification.cpp --- a/OrthancServer/DicomModification.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/DicomModification.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeadersServer.h" #include "DicomModification.h" #include "../Core/OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/DicomProtocol/DicomFindAnswers.cpp --- a/OrthancServer/DicomProtocol/DicomFindAnswers.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/DicomProtocol/DicomFindAnswers.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeadersServer.h" #include "DicomFindAnswers.h" #include "../FromDcmtkBridge.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/DicomProtocol/DicomServer.cpp --- a/OrthancServer/DicomProtocol/DicomServer.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/DicomProtocol/DicomServer.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeadersServer.h" #include "DicomServer.h" #include "../../Core/OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/DicomProtocol/DicomUserConnection.cpp --- a/OrthancServer/DicomProtocol/DicomUserConnection.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/DicomProtocol/DicomUserConnection.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -78,6 +78,7 @@ =========================================================================*/ +#include "../PrecompiledHeadersServer.h" #include "DicomUserConnection.h" #include "../../Core/OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/DicomProtocol/RemoteModalityParameters.cpp --- a/OrthancServer/DicomProtocol/RemoteModalityParameters.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/DicomProtocol/RemoteModalityParameters.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeadersServer.h" #include "RemoteModalityParameters.h" #include "../../Core/OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp --- a/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeadersServer.h" #include "ReusableDicomUserConnection.h" #include "../../Core/OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/FromDcmtkBridge.cpp --- a/OrthancServer/FromDcmtkBridge.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/FromDcmtkBridge.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -72,6 +72,8 @@ =========================================================================*/ +#include "PrecompiledHeadersServer.h" + #ifndef NOMINMAX #define NOMINMAX #endif diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/Internals/CommandDispatcher.cpp --- a/OrthancServer/Internals/CommandDispatcher.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/Internals/CommandDispatcher.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -79,6 +79,7 @@ =========================================================================*/ +#include "../PrecompiledHeadersServer.h" #include "CommandDispatcher.h" #include "FindScp.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/Internals/FindScp.cpp --- a/OrthancServer/Internals/FindScp.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/Internals/FindScp.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -79,6 +79,7 @@ +#include "../PrecompiledHeadersServer.h" #include "FindScp.h" #include "../FromDcmtkBridge.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/Internals/MoveScp.cpp --- a/OrthancServer/Internals/MoveScp.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/Internals/MoveScp.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -79,6 +79,7 @@ =========================================================================*/ +#include "../PrecompiledHeadersServer.h" #include "MoveScp.h" #include diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/Internals/StoreScp.cpp --- a/OrthancServer/Internals/StoreScp.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/Internals/StoreScp.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -79,6 +79,7 @@ =========================================================================*/ +#include "../PrecompiledHeadersServer.h" #include "StoreScp.h" #include "../FromDcmtkBridge.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/OrthancFindRequestHandler.cpp --- a/OrthancServer/OrthancFindRequestHandler.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/OrthancFindRequestHandler.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -29,6 +29,8 @@ * along with this program. If not, see . **/ + +#include "PrecompiledHeadersServer.h" #include "OrthancFindRequestHandler.h" #include diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/OrthancInitialization.cpp --- a/OrthancServer/OrthancInitialization.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/OrthancInitialization.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeadersServer.h" #include "OrthancInitialization.h" #include "../Core/HttpClient.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/OrthancMoveRequestHandler.cpp --- a/OrthancServer/OrthancMoveRequestHandler.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/OrthancMoveRequestHandler.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -29,6 +29,8 @@ * along with this program. If not, see . **/ + +#include "PrecompiledHeadersServer.h" #include "OrthancMoveRequestHandler.h" #include diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/OrthancPeerParameters.cpp --- a/OrthancServer/OrthancPeerParameters.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/OrthancPeerParameters.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeadersServer.h" #include "OrthancPeerParameters.h" #include "../Core/OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeadersServer.h" #include "OrthancRestApi.h" #include "../DicomModification.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/OrthancRestApi/OrthancRestApi.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestApi.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestApi.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeadersServer.h" #include "OrthancRestApi.h" #include "../DicomModification.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/OrthancRestApi/OrthancRestArchive.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeadersServer.h" #include "OrthancRestApi.h" #include "../../Core/Compression/HierarchicalZipWriter.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/OrthancRestApi/OrthancRestChanges.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestChanges.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestChanges.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeadersServer.h" #include "OrthancRestApi.h" #include diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/OrthancRestApi/OrthancRestModalities.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeadersServer.h" #include "OrthancRestApi.h" #include "../OrthancInitialization.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/OrthancRestApi/OrthancRestResources.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeadersServer.h" #include "OrthancRestApi.h" #include "../ServerToolbox.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/OrthancRestApi/OrthancRestSystem.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeadersServer.h" #include "OrthancRestApi.h" #include "../OrthancInitialization.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/ParsedDicomFile.cpp --- a/OrthancServer/ParsedDicomFile.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/ParsedDicomFile.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -72,6 +72,8 @@ =========================================================================*/ +#include "PrecompiledHeadersServer.h" + #ifndef NOMINMAX #define NOMINMAX #endif diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/PrecompiledHeadersServer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OrthancServer/PrecompiledHeadersServer.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -0,0 +1,33 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersServer.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/PrecompiledHeadersServer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OrthancServer/PrecompiledHeadersServer.h Mon Jun 02 13:24:44 2014 +0200 @@ -0,0 +1,77 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#pragma once + +#include "../Core/PrecompiledHeaders.h" + +#if ORTHANC_USE_PRECOMPILED_HEADERS == 1 + +// DCMTK +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#endif diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/ServerContext.cpp --- a/OrthancServer/ServerContext.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/ServerContext.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeadersServer.h" #include "ServerContext.h" #include "../Core/HttpServer/FilesystemHttpSender.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/ServerEnumerations.cpp --- a/OrthancServer/ServerEnumerations.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/ServerEnumerations.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -29,6 +29,8 @@ * along with this program. If not, see . **/ + +#include "PrecompiledHeadersServer.h" #include "ServerEnumerations.h" #include "../Core/OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/ServerIndex.cpp --- a/OrthancServer/ServerIndex.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/ServerIndex.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeadersServer.h" #include "ServerIndex.h" #ifndef NOMINMAX diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/ServerToolbox.cpp --- a/OrthancServer/ServerToolbox.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/ServerToolbox.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeadersServer.h" #include "ServerToolbox.h" #include "../Core/OrthancException.h" diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/ToDcmtkBridge.cpp --- a/OrthancServer/ToDcmtkBridge.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/ToDcmtkBridge.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeadersServer.h" #include "ToDcmtkBridge.h" #include diff -r d8f5de5b9517 -r aabc3b430890 OrthancServer/main.cpp --- a/OrthancServer/main.cpp Wed May 28 17:54:59 2014 +0200 +++ b/OrthancServer/main.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeadersServer.h" #include "OrthancRestApi/OrthancRestApi.h" #include diff -r d8f5de5b9517 -r aabc3b430890 Resources/CMake/VisualStudioPrecompiledHeaders.cmake --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Resources/CMake/VisualStudioPrecompiledHeaders.cmake Mon Jun 02 13:24:44 2014 +0200 @@ -0,0 +1,14 @@ +macro(ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS PrecompiledHeaders PrecompiledSource Sources) + get_filename_component(PrecompiledBasename ${PrecompiledHeaders} NAME_WE) + set(PrecompiledBinary "${CMAKE_CURRENT_BINARY_DIR}/${PrecompiledBasename}.pch") + + set_source_files_properties(${PrecompiledSource} + PROPERTIES COMPILE_FLAGS "/Yc\"${PrecompiledHeaders}\" /Fp\"${PrecompiledBinary}\"" + OBJECT_OUTPUTS "${PrecompiledBinary}") + + set_source_files_properties(${${Sources}} + PROPERTIES COMPILE_FLAGS "/Yu\"${PrecompiledHeaders}\" /FI\"${PrecompiledHeaders}\" /Fp\"${PrecompiledBinary}\"" + OBJECT_DEPENDS "${PrecompiledBinary}") + + list(APPEND ${Sources} ${PrecompiledSource}) +endmacro() diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/DicomMap.cpp --- a/UnitTestsSources/DicomMap.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/DicomMap.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include "../Core/Uuid.h" diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/FileStorage.cpp --- a/UnitTestsSources/FileStorage.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/FileStorage.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/FromDcmtk.cpp --- a/UnitTestsSources/FromDcmtk.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/FromDcmtk.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include "../OrthancServer/FromDcmtkBridge.h" diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/Lua.cpp --- a/UnitTestsSources/Lua.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/Lua.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include "../Core/Lua/LuaFunctionCall.h" diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/MemoryCache.cpp --- a/UnitTestsSources/MemoryCache.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/MemoryCache.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/MultiThreading.cpp --- a/UnitTestsSources/MultiThreading.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/MultiThreading.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/Png.cpp --- a/UnitTestsSources/Png.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/Png.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/PrecompiledHeadersUnitTests.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UnitTestsSources/PrecompiledHeadersUnitTests.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -0,0 +1,33 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/PrecompiledHeadersUnitTests.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UnitTestsSources/PrecompiledHeadersUnitTests.h Mon Jun 02 13:24:44 2014 +0200 @@ -0,0 +1,40 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#pragma once + +#include "../OrthancServer/PrecompiledHeadersServer.h" + +#if ORTHANC_USE_PRECOMPILED_HEADERS == 1 +#include "../Core/EnumerationDictionary.h" +#include +#endif diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/RestApi.cpp --- a/UnitTestsSources/RestApi.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/RestApi.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/SQLite.cpp --- a/UnitTestsSources/SQLite.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/SQLite.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include "../Core/Toolbox.h" diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/SQLiteChromium.cpp --- a/UnitTestsSources/SQLiteChromium.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/SQLiteChromium.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include "../Core/Toolbox.h" diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/ServerIndexTests.cpp --- a/UnitTestsSources/ServerIndexTests.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/ServerIndexTests.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include "../OrthancServer/DatabaseWrapper.h" diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/UnitTestsMain.cpp --- a/UnitTestsSources/UnitTestsMain.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/UnitTestsMain.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "../Core/EnumerationDictionary.h" #include "gtest/gtest.h" diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/Versions.cpp --- a/UnitTestsSources/Versions.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/Versions.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include diff -r d8f5de5b9517 -r aabc3b430890 UnitTestsSources/Zip.cpp --- a/UnitTestsSources/Zip.cpp Wed May 28 17:54:59 2014 +0200 +++ b/UnitTestsSources/Zip.cpp Mon Jun 02 13:24:44 2014 +0200 @@ -1,3 +1,36 @@ +/** + * Orthanc - A Lightweight, RESTful DICOM Store + * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, + * Belgium + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * In addition, as a special exception, the copyright holders of this + * program give permission to link the code of its release with the + * OpenSSL project's "OpenSSL" library (or with modified versions of it + * that use the same license as the "OpenSSL" library), and distribute + * the linked executables. You must obey the GNU General Public License + * in all respects for all of the code used other than "OpenSSL". If you + * modify file(s) with this exception, you may extend this exception to + * your version of the file(s), but you are not obligated to do so. If + * you do not wish to do so, delete this exception statement from your + * version. If you delete this exception statement from all source files + * in the program, then also delete it here. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + **/ + + +#include "PrecompiledHeadersUnitTests.h" #include "gtest/gtest.h" #include "../Core/OrthancException.h"