From 3fb5c11b03119a157db8dc024809943f88f87320 Mon Sep 17 00:00:00 2001 From: Stuart Webster Date: Thu, 15 Dec 2011 14:03:43 +0100 Subject: Added MSVC10 solution and project files for Windows These include configurations for both Win32 and x64 platforms. All project settings have been normalised in property sheets (the ".props" files under builds/msvc/properties) to simplify maintenance. Build artefacts are all generated in platform-specific subfolders of bin, lib and obj directories. Also enables the use of precompiled headers with MSVC10. This significantly reduces the time required to compile libzmq with Visual Studio on Windows. It should have no impact on other platforms. Signed-off-by: Stuart Webster --- builds/msvc/properties/Common.props | 21 +++++++++++++++++++++ builds/msvc/properties/Debug.props | 19 +++++++++++++++++++ builds/msvc/properties/Dynamic.props | 20 ++++++++++++++++++++ builds/msvc/properties/Executable.props | 19 +++++++++++++++++++ builds/msvc/properties/Precompiled.props | 14 ++++++++++++++ builds/msvc/properties/Release.props | 22 ++++++++++++++++++++++ builds/msvc/properties/Win32.props | 12 ++++++++++++ builds/msvc/properties/Win32_Release.props | 17 +++++++++++++++++ builds/msvc/properties/WithOpenPGM.props | 12 ++++++++++++ builds/msvc/properties/ZeroMQ.props | 23 +++++++++++++++++++++++ builds/msvc/properties/x64.props | 12 ++++++++++++ 11 files changed, 191 insertions(+) create mode 100644 builds/msvc/properties/Common.props create mode 100644 builds/msvc/properties/Debug.props create mode 100644 builds/msvc/properties/Dynamic.props create mode 100644 builds/msvc/properties/Executable.props create mode 100644 builds/msvc/properties/Precompiled.props create mode 100644 builds/msvc/properties/Release.props create mode 100644 builds/msvc/properties/Win32.props create mode 100644 builds/msvc/properties/Win32_Release.props create mode 100644 builds/msvc/properties/WithOpenPGM.props create mode 100644 builds/msvc/properties/ZeroMQ.props create mode 100644 builds/msvc/properties/x64.props (limited to 'builds/msvc/properties') diff --git a/builds/msvc/properties/Common.props b/builds/msvc/properties/Common.props new file mode 100644 index 0000000..83741bc --- /dev/null +++ b/builds/msvc/properties/Common.props @@ -0,0 +1,21 @@ + + + + <_ProjectFileVersion>10.0.30319.1 + <_PropertySheetDisplayName>Common Settings + $(ProjectDir)../../../bin/$(PlatformName)/ + $(ProjectDir)../../../obj/$(PlatformName)/$(Configuration)/$(ProjectName)/ + false + + + + Level3 + ProgramDatabase + _BIND_TO_CURRENT_VCLIBS_VERSION=1;%(PreprocessorDefinitions) + true + + + true + + + \ No newline at end of file diff --git a/builds/msvc/properties/Debug.props b/builds/msvc/properties/Debug.props new file mode 100644 index 0000000..374802b --- /dev/null +++ b/builds/msvc/properties/Debug.props @@ -0,0 +1,19 @@ + + + + <_ProjectFileVersion>10.0.30319.1 + <_PropertySheetDisplayName>Debug Configuration + $(ProjectName)_d + + + + Disabled + _DEBUG;%(PreprocessorDefinitions) + EnableFastChecks + MultiThreadedDebugDLL + + + _DEBUG;%(PreprocessorDefinitions) + + + \ No newline at end of file diff --git a/builds/msvc/properties/Dynamic.props b/builds/msvc/properties/Dynamic.props new file mode 100644 index 0000000..f0a4ca2 --- /dev/null +++ b/builds/msvc/properties/Dynamic.props @@ -0,0 +1,20 @@ + + + + + + + <_ProjectFileVersion>10.0.30319.1 + <_PropertySheetDisplayName>Dynamic Link Library + + + + _WINDOWS;_USRDLL;%(PreprocessorDefinitions) + + + $(TargetDir)../../lib/$(PlatformName);%(AdditionalLibraryDirectories) + Windows + $(TargetDir)../../lib/$(PlatformName)/$(TargetName).lib + + + \ No newline at end of file diff --git a/builds/msvc/properties/Executable.props b/builds/msvc/properties/Executable.props new file mode 100644 index 0000000..932d38a --- /dev/null +++ b/builds/msvc/properties/Executable.props @@ -0,0 +1,19 @@ + + + + + + + <_ProjectFileVersion>10.0.30319.1 + <_PropertySheetDisplayName>Executable Program + + + + _CONSOLE;%(PreprocessorDefinitions) + + + $(TargetDir)../../lib/$(PlatformName);%(AdditionalLibraryDirectories) + Console + + + \ No newline at end of file diff --git a/builds/msvc/properties/Precompiled.props b/builds/msvc/properties/Precompiled.props new file mode 100644 index 0000000..0909cba --- /dev/null +++ b/builds/msvc/properties/Precompiled.props @@ -0,0 +1,14 @@ + + + + <_ProjectFileVersion>10.0.30319.1 + <_PropertySheetDisplayName>Precompiled Headers + + + + Use + precompiled.hpp + precompiled.hpp + + + \ No newline at end of file diff --git a/builds/msvc/properties/Release.props b/builds/msvc/properties/Release.props new file mode 100644 index 0000000..559a574 --- /dev/null +++ b/builds/msvc/properties/Release.props @@ -0,0 +1,22 @@ + + + + <_ProjectFileVersion>10.0.30319.1 + <_PropertySheetDisplayName>Release Configuration + + + + MaxSpeed + NDEBUG;%(PreprocessorDefinitions) + MultiThreadedDLL + true + + + NDEBUG;%(PreprocessorDefinitions) + + + true + true + + + \ No newline at end of file diff --git a/builds/msvc/properties/Win32.props b/builds/msvc/properties/Win32.props new file mode 100644 index 0000000..f4e3478 --- /dev/null +++ b/builds/msvc/properties/Win32.props @@ -0,0 +1,12 @@ + + + + <_ProjectFileVersion>10.0.30319.1 + <_PropertySheetDisplayName>Win32 Settings + + + + WIN32;%(PreprocessorDefinitions) + + + \ No newline at end of file diff --git a/builds/msvc/properties/Win32_Release.props b/builds/msvc/properties/Win32_Release.props new file mode 100644 index 0000000..a74183e --- /dev/null +++ b/builds/msvc/properties/Win32_Release.props @@ -0,0 +1,17 @@ + + + + + + + + <_ProjectFileVersion>10.0.30319.1 + <_PropertySheetDisplayName>Release Win32 Settings + + + + /Oy- %(AdditionalOptions) + StreamingSIMDExtensions2 + + + \ No newline at end of file diff --git a/builds/msvc/properties/WithOpenPGM.props b/builds/msvc/properties/WithOpenPGM.props new file mode 100644 index 0000000..c920f58 --- /dev/null +++ b/builds/msvc/properties/WithOpenPGM.props @@ -0,0 +1,12 @@ + + + + <_ProjectFileVersion>10.0.30319.1 + <_PropertySheetDisplayName>OpenPGM Settings + + + + ZMQ_HAVE_OPENPGM;%(PreprocessorDefinitions) + + + \ No newline at end of file diff --git a/builds/msvc/properties/ZeroMQ.props b/builds/msvc/properties/ZeroMQ.props new file mode 100644 index 0000000..517ca9e --- /dev/null +++ b/builds/msvc/properties/ZeroMQ.props @@ -0,0 +1,23 @@ + + + + + + + + <_ProjectFileVersion>10.0.30319.1 + <_PropertySheetDisplayName>ZeroMQ Settings + + + + copy ..\platform.hpp ..\..\..\src + + + _CRT_SECURE_NO_WARNINGS;DLL_EXPORT;FD_SETSIZE=1024;%(PreprocessorDefinitions) + 4355 + + + Ws2_32.lib;Rpcrt4.lib;%(AdditionalDependencies) + + + \ No newline at end of file diff --git a/builds/msvc/properties/x64.props b/builds/msvc/properties/x64.props new file mode 100644 index 0000000..d50a563 --- /dev/null +++ b/builds/msvc/properties/x64.props @@ -0,0 +1,12 @@ + + + + <_ProjectFileVersion>10.0.30319.1 + <_PropertySheetDisplayName>x64 Settings + + + + _WIN64;%(PreprocessorDefinitions) + + + \ No newline at end of file -- cgit v1.2.3