# HG changeset patch # User Sebastien Jodogne # Date 1401701767 -7200 # Node ID a811bdf8b8eb474121f7b13aa7f817137064b2b3 # Parent 7ce875531950ca9b99e95d7b4d04dd0dc964a63a precompiled headers diff -r 7ce875531950 -r a811bdf8b8eb CMakeLists.txt --- a/CMakeLists.txt Thu May 08 17:16:10 2014 +0200 +++ b/CMakeLists.txt Mon Jun 02 11:36:07 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,102 @@ ##################################################################### +## 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 + ) + + + +##################################################################### ## Inclusion of third-party dependencies ##################################################################### @@ -123,6 +220,14 @@ ## Build the core of Orthanc ##################################################################### +# Setup precompiled headers for Microsoft Visual Studio +if (${MSVC}) + set(ORTHANC_SOURCES ${ORTHANC_CORE_SOURCES} ${ORTHANC_SERVER_SOURCES}) + ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS("PrecompiledHeaders.h" "Core/PrecompiledHeaders.cpp" ORTHANC_SOURCES) + list(APPEND ORTHANC_CORE_SOURCES "Core/PrecompiledHeaders.h") +endif() + + add_definitions( -DORTHANC_VERSION="${ORTHANC_VERSION}" ) @@ -137,61 +242,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} ) @@ -202,35 +253,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 diff -r 7ce875531950 -r a811bdf8b8eb Core/Cache/MemoryCache.cpp --- a/Core/Cache/MemoryCache.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/Cache/MemoryCache.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "MemoryCache.h" #include // This fixes a problem in glog for recent diff -r 7ce875531950 -r a811bdf8b8eb Core/ChunkedBuffer.cpp --- a/Core/ChunkedBuffer.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/ChunkedBuffer.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "ChunkedBuffer.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/Compression/BufferCompressor.cpp --- a/Core/Compression/BufferCompressor.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/Compression/BufferCompressor.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "BufferCompressor.h" namespace Orthanc diff -r 7ce875531950 -r a811bdf8b8eb Core/Compression/HierarchicalZipWriter.cpp --- a/Core/Compression/HierarchicalZipWriter.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/Compression/HierarchicalZipWriter.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "HierarchicalZipWriter.h" #include "../Toolbox.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/Compression/ZipWriter.cpp --- a/Core/Compression/ZipWriter.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/Compression/ZipWriter.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -29,6 +29,9 @@ * along with this program. If not, see . **/ + +#include "../PrecompiledHeaders.h" + #ifndef NOMINMAX #define NOMINMAX #endif diff -r 7ce875531950 -r a811bdf8b8eb Core/Compression/ZlibCompressor.cpp --- a/Core/Compression/ZlibCompressor.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/Compression/ZlibCompressor.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "ZlibCompressor.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/DicomFormat/DicomArray.cpp --- a/Core/DicomFormat/DicomArray.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/DicomFormat/DicomArray.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "DicomArray.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/DicomFormat/DicomInstanceHasher.cpp --- a/Core/DicomFormat/DicomInstanceHasher.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/DicomFormat/DicomInstanceHasher.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -29,6 +29,8 @@ * along with this program. If not, see . **/ + +#include "../PrecompiledHeaders.h" #include "DicomInstanceHasher.h" #include "../OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/DicomFormat/DicomIntegerPixelAccessor.cpp --- a/Core/DicomFormat/DicomIntegerPixelAccessor.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/DicomFormat/DicomIntegerPixelAccessor.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,8 @@ **/ +#include "../PrecompiledHeaders.h" + #ifndef NOMINMAX #define NOMINMAX #endif diff -r 7ce875531950 -r a811bdf8b8eb Core/DicomFormat/DicomMap.cpp --- a/Core/DicomFormat/DicomMap.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/DicomFormat/DicomMap.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "DicomMap.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/DicomFormat/DicomTag.cpp --- a/Core/DicomFormat/DicomTag.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/DicomFormat/DicomTag.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "DicomTag.h" #include "../OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/Enumerations.cpp --- a/Core/Enumerations.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/Enumerations.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "Enumerations.h" #include "OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/FileStorage/CompressedFileStorageAccessor.cpp --- a/Core/FileStorage/CompressedFileStorageAccessor.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/FileStorage/CompressedFileStorageAccessor.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "CompressedFileStorageAccessor.h" #include "../OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/FileStorage/FileStorage.cpp --- a/Core/FileStorage/FileStorage.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/FileStorage/FileStorage.cpp Mon Jun 02 11:36:07 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 7ce875531950 -r a811bdf8b8eb Core/FileStorage/FileStorageAccessor.cpp --- a/Core/FileStorage/FileStorageAccessor.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/FileStorage/FileStorageAccessor.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "FileStorageAccessor.h" namespace Orthanc diff -r 7ce875531950 -r a811bdf8b8eb Core/FileStorage/StorageAccessor.cpp --- a/Core/FileStorage/StorageAccessor.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/FileStorage/StorageAccessor.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "StorageAccessor.h" namespace Orthanc diff -r 7ce875531950 -r a811bdf8b8eb Core/HttpClient.cpp --- a/Core/HttpClient.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/HttpClient.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "HttpClient.h" #include "../Core/Toolbox.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/HttpServer/EmbeddedResourceHttpHandler.cpp --- a/Core/HttpServer/EmbeddedResourceHttpHandler.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/HttpServer/EmbeddedResourceHttpHandler.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "EmbeddedResourceHttpHandler.h" #include "../OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/HttpServer/FilesystemHttpHandler.cpp --- a/Core/HttpServer/FilesystemHttpHandler.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/HttpServer/FilesystemHttpHandler.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "FilesystemHttpHandler.h" #include "../OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/HttpServer/FilesystemHttpSender.cpp --- a/Core/HttpServer/FilesystemHttpSender.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/HttpServer/FilesystemHttpSender.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -29,6 +29,7 @@ * along with this program. If not, see . **/ +#include "../PrecompiledHeaders.h" #include "FilesystemHttpSender.h" #include "../Toolbox.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/HttpServer/HttpFileSender.cpp --- a/Core/HttpServer/HttpFileSender.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/HttpServer/HttpFileSender.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "HttpFileSender.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/HttpServer/HttpHandler.cpp --- a/Core/HttpServer/HttpHandler.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/HttpServer/HttpHandler.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "HttpHandler.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/HttpServer/HttpOutput.cpp --- a/Core/HttpServer/HttpOutput.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/HttpServer/HttpOutput.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "HttpOutput.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/HttpServer/MongooseServer.cpp --- a/Core/HttpServer/MongooseServer.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/HttpServer/MongooseServer.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -32,6 +32,7 @@ // http://en.highscore.de/cpp/boost/stringhandling.html +#include "../PrecompiledHeaders.h" #include "MongooseServer.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/ImageFormats/ImageAccessor.cpp --- a/Core/ImageFormats/ImageAccessor.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/ImageFormats/ImageAccessor.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "ImageAccessor.h" #include "../OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/ImageFormats/ImageBuffer.cpp --- a/Core/ImageFormats/ImageBuffer.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/ImageFormats/ImageBuffer.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "ImageBuffer.h" namespace Orthanc diff -r 7ce875531950 -r a811bdf8b8eb Core/ImageFormats/PngReader.cpp --- a/Core/ImageFormats/PngReader.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/ImageFormats/PngReader.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "PngReader.h" #include "../OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/ImageFormats/PngWriter.cpp --- a/Core/ImageFormats/PngWriter.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/ImageFormats/PngWriter.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "PngWriter.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/Lua/LuaContext.cpp --- a/Core/Lua/LuaContext.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/Lua/LuaContext.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "LuaContext.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/Lua/LuaFunctionCall.cpp --- a/Core/Lua/LuaFunctionCall.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/Lua/LuaFunctionCall.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "LuaFunctionCall.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/MultiThreading/ArrayFilledByThreads.cpp --- a/Core/MultiThreading/ArrayFilledByThreads.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/MultiThreading/ArrayFilledByThreads.cpp Mon Jun 02 11:36:07 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 7ce875531950 -r a811bdf8b8eb Core/MultiThreading/BagOfRunnablesBySteps.cpp --- a/Core/MultiThreading/BagOfRunnablesBySteps.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/MultiThreading/BagOfRunnablesBySteps.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "BagOfRunnablesBySteps.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/MultiThreading/Mutex.cpp --- a/Core/MultiThreading/Mutex.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/MultiThreading/Mutex.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "Mutex.h" #include "../OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/MultiThreading/ReaderWriterLock.cpp --- a/Core/MultiThreading/ReaderWriterLock.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/MultiThreading/ReaderWriterLock.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "ReaderWriterLock.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/MultiThreading/SharedMessageQueue.cpp --- a/Core/MultiThreading/SharedMessageQueue.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/MultiThreading/SharedMessageQueue.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "SharedMessageQueue.h" namespace Orthanc diff -r 7ce875531950 -r a811bdf8b8eb Core/MultiThreading/ThreadedCommandProcessor.cpp --- a/Core/MultiThreading/ThreadedCommandProcessor.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/MultiThreading/ThreadedCommandProcessor.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "ThreadedCommandProcessor.h" #include "../OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/OrthancException.cpp --- a/Core/OrthancException.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/OrthancException.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "OrthancException.h" namespace Orthanc diff -r 7ce875531950 -r a811bdf8b8eb Core/PrecompiledHeaders.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Core/PrecompiledHeaders.cpp Mon Jun 02 11:36:07 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 7ce875531950 -r a811bdf8b8eb Core/PrecompiledHeaders.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Core/PrecompiledHeaders.h Mon Jun 02 11:36:07 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 . + **/ + + +#pragma once + +#define ORTHANC_PRECOMPILED_HEADERS_INCLUDED 1 + +#if ORTHANC_USE_PRECOMPILED_HEADERS == 1 + +#include +#include +#include +#include +#include +#include +#include + +#include "Enumerations.h" +#include "OrthancException.h" +#include "Toolbox.h" +#include "Uuid.h" + +#endif diff -r 7ce875531950 -r a811bdf8b8eb Core/RestApi/RestApi.cpp --- a/Core/RestApi/RestApi.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/RestApi/RestApi.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "RestApi.h" #include // To define "_exit()" under Windows diff -r 7ce875531950 -r a811bdf8b8eb Core/RestApi/RestApiOutput.cpp --- a/Core/RestApi/RestApiOutput.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/RestApi/RestApiOutput.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "RestApiOutput.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/RestApi/RestApiPath.cpp --- a/Core/RestApi/RestApiPath.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/RestApi/RestApiPath.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "RestApiPath.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/SQLite/Connection.cpp --- a/Core/SQLite/Connection.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/SQLite/Connection.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -34,6 +34,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "Connection.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/SQLite/FunctionContext.cpp --- a/Core/SQLite/FunctionContext.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/SQLite/FunctionContext.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -31,6 +31,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "FunctionContext.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/SQLite/Statement.cpp --- a/Core/SQLite/Statement.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/SQLite/Statement.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -34,6 +34,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "Statement.h" #include "Connection.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/SQLite/StatementId.cpp --- a/Core/SQLite/StatementId.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/SQLite/StatementId.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -34,6 +34,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "StatementId.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Core/SQLite/StatementReference.cpp --- a/Core/SQLite/StatementReference.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/SQLite/StatementReference.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -34,6 +34,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "StatementReference.h" #include "../OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/SQLite/Transaction.cpp --- a/Core/SQLite/Transaction.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/SQLite/Transaction.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -34,6 +34,7 @@ **/ +#include "../PrecompiledHeaders.h" #include "Transaction.h" namespace Orthanc diff -r 7ce875531950 -r a811bdf8b8eb Core/Toolbox.cpp --- a/Core/Toolbox.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/Toolbox.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "Toolbox.h" #include "OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb Core/Uuid.cpp --- a/Core/Uuid.cpp Thu May 08 17:16:10 2014 +0200 +++ b/Core/Uuid.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "PrecompiledHeaders.h" #include "Uuid.h" // http://stackoverflow.com/a/1626302 diff -r 7ce875531950 -r a811bdf8b8eb NEWS --- a/NEWS Thu May 08 17:16:10 2014 +0200 +++ b/NEWS Mon Jun 02 11:36:07 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 7ce875531950 -r a811bdf8b8eb OrthancCppClient/Instance.cpp --- a/OrthancCppClient/Instance.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancCppClient/Instance.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "Instance.h" #include "OrthancConnection.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancCppClient/OrthancConnection.cpp --- a/OrthancCppClient/OrthancConnection.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancCppClient/OrthancConnection.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "OrthancConnection.h" #include "../Core/Toolbox.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancCppClient/Patient.cpp --- a/OrthancCppClient/Patient.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancCppClient/Patient.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "Patient.h" #include "OrthancConnection.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancCppClient/Series.cpp --- a/OrthancCppClient/Series.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancCppClient/Series.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "Series.h" #include "OrthancConnection.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancCppClient/Study.cpp --- a/OrthancCppClient/Study.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancCppClient/Study.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "Study.h" #include "OrthancConnection.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/DatabaseWrapper.cpp --- a/OrthancServer/DatabaseWrapper.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/DatabaseWrapper.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "DatabaseWrapper.h" #include "../Core/DicomFormat/DicomArray.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/DicomModification.cpp --- a/OrthancServer/DicomModification.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/DicomModification.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "DicomModification.h" #include "../Core/OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/DicomProtocol/DicomFindAnswers.cpp --- a/OrthancServer/DicomProtocol/DicomFindAnswers.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/DicomProtocol/DicomFindAnswers.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../../Core/PrecompiledHeaders.h" #include "DicomFindAnswers.h" #include "../FromDcmtkBridge.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/DicomProtocol/DicomServer.cpp --- a/OrthancServer/DicomProtocol/DicomServer.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/DicomProtocol/DicomServer.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../../Core/PrecompiledHeaders.h" #include "DicomServer.h" #include "../../Core/OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/DicomProtocol/DicomUserConnection.cpp --- a/OrthancServer/DicomProtocol/DicomUserConnection.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/DicomProtocol/DicomUserConnection.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -78,6 +78,7 @@ =========================================================================*/ +#include "../../Core/PrecompiledHeaders.h" #include "DicomUserConnection.h" #include "../../Core/OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/DicomProtocol/RemoteModalityParameters.cpp --- a/OrthancServer/DicomProtocol/RemoteModalityParameters.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/DicomProtocol/RemoteModalityParameters.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../../Core/PrecompiledHeaders.h" #include "RemoteModalityParameters.h" #include "../../Core/OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp --- a/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../../Core/PrecompiledHeaders.h" #include "ReusableDicomUserConnection.h" #include "../../Core/OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/FromDcmtkBridge.cpp --- a/OrthancServer/FromDcmtkBridge.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/FromDcmtkBridge.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -72,6 +72,8 @@ =========================================================================*/ +#include "../Core/PrecompiledHeaders.h" + #ifndef NOMINMAX #define NOMINMAX #endif diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/Internals/CommandDispatcher.cpp --- a/OrthancServer/Internals/CommandDispatcher.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/Internals/CommandDispatcher.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -79,6 +79,7 @@ =========================================================================*/ +#include "../../Core/PrecompiledHeaders.h" #include "CommandDispatcher.h" #include "FindScp.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/Internals/FindScp.cpp --- a/OrthancServer/Internals/FindScp.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/Internals/FindScp.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -79,6 +79,7 @@ +#include "../../Core/PrecompiledHeaders.h" #include "FindScp.h" #include "../FromDcmtkBridge.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/Internals/MoveScp.cpp --- a/OrthancServer/Internals/MoveScp.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/Internals/MoveScp.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -79,6 +79,7 @@ =========================================================================*/ +#include "../../Core/PrecompiledHeaders.h" #include "MoveScp.h" #include diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/Internals/StoreScp.cpp --- a/OrthancServer/Internals/StoreScp.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/Internals/StoreScp.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -79,6 +79,7 @@ =========================================================================*/ +#include "../../Core/PrecompiledHeaders.h" #include "StoreScp.h" #include "../FromDcmtkBridge.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/OrthancFindRequestHandler.cpp --- a/OrthancServer/OrthancFindRequestHandler.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/OrthancFindRequestHandler.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -29,6 +29,8 @@ * along with this program. If not, see . **/ + +#include "../Core/PrecompiledHeaders.h" #include "OrthancFindRequestHandler.h" #include diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/OrthancInitialization.cpp --- a/OrthancServer/OrthancInitialization.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/OrthancInitialization.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "OrthancInitialization.h" #include "../Core/HttpClient.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/OrthancMoveRequestHandler.cpp --- a/OrthancServer/OrthancMoveRequestHandler.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/OrthancMoveRequestHandler.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -29,6 +29,8 @@ * along with this program. If not, see . **/ + +#include "../Core/PrecompiledHeaders.h" #include "OrthancMoveRequestHandler.h" #include diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/OrthancPeerParameters.cpp --- a/OrthancServer/OrthancPeerParameters.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/OrthancPeerParameters.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "OrthancPeerParameters.h" #include "../Core/OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../../Core/PrecompiledHeaders.h" #include "OrthancRestApi.h" #include "../DicomModification.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/OrthancRestApi/OrthancRestApi.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestApi.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestApi.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../../Core/PrecompiledHeaders.h" #include "OrthancRestApi.h" #include "../DicomModification.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/OrthancRestApi/OrthancRestArchive.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../../Core/PrecompiledHeaders.h" #include "OrthancRestApi.h" #include "../../Core/Compression/HierarchicalZipWriter.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/OrthancRestApi/OrthancRestChanges.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestChanges.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestChanges.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../../Core/PrecompiledHeaders.h" #include "OrthancRestApi.h" #include diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/OrthancRestApi/OrthancRestModalities.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../../Core/PrecompiledHeaders.h" #include "OrthancRestApi.h" #include "../OrthancInitialization.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/OrthancRestApi/OrthancRestResources.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../../Core/PrecompiledHeaders.h" #include "OrthancRestApi.h" #include "../ServerToolbox.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/OrthancRestApi/OrthancRestSystem.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestSystem.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../../Core/PrecompiledHeaders.h" #include "OrthancRestApi.h" #include "../OrthancInitialization.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/ParsedDicomFile.cpp --- a/OrthancServer/ParsedDicomFile.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/ParsedDicomFile.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -72,6 +72,8 @@ =========================================================================*/ +#include "../Core/PrecompiledHeaders.h" + #ifndef NOMINMAX #define NOMINMAX #endif diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/ServerContext.cpp --- a/OrthancServer/ServerContext.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/ServerContext.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "ServerContext.h" #include "../Core/HttpServer/FilesystemHttpSender.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/ServerEnumerations.cpp --- a/OrthancServer/ServerEnumerations.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/ServerEnumerations.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -29,6 +29,8 @@ * along with this program. If not, see . **/ + +#include "../Core/PrecompiledHeaders.h" #include "ServerEnumerations.h" #include "../Core/OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/ServerIndex.cpp --- a/OrthancServer/ServerIndex.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/ServerIndex.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "ServerIndex.h" #ifndef NOMINMAX diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/ServerToolbox.cpp --- a/OrthancServer/ServerToolbox.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/ServerToolbox.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "ServerToolbox.h" #include "../Core/OrthancException.h" diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/ToDcmtkBridge.cpp --- a/OrthancServer/ToDcmtkBridge.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/ToDcmtkBridge.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "ToDcmtkBridge.h" #include diff -r 7ce875531950 -r a811bdf8b8eb OrthancServer/main.cpp --- a/OrthancServer/main.cpp Thu May 08 17:16:10 2014 +0200 +++ b/OrthancServer/main.cpp Mon Jun 02 11:36:07 2014 +0200 @@ -30,6 +30,7 @@ **/ +#include "../Core/PrecompiledHeaders.h" #include "OrthancRestApi/OrthancRestApi.h" #include diff -r 7ce875531950 -r a811bdf8b8eb Resources/CMake/VisualStudioPrecompiledHeaders.cmake --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Resources/CMake/VisualStudioPrecompiledHeaders.cmake Mon Jun 02 11:36:07 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}") + + add_definitions(-DORTHANC_USE_PRECOMPILED_HEADERS=1) +endmacro()