Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
fb45685a
Commit
fb45685a
authored
Feb 24, 2013
by
Ian Barber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #521 from SRombauts/master
Static Library Linking for Windows
parents
04343660
0ecc96bf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
103 additions
and
7 deletions
+103
-7
.gitignore
.gitignore
+2
-2
Makefile.am
builds/msvc/Makefile.am
+3
-1
libzmq.vcproj
builds/msvc/libzmq/libzmq.vcproj
+0
-0
libzmq.vcxproj
builds/msvc/libzmq/libzmq.vcxproj
+40
-1
msvc.sln
builds/msvc/msvc.sln
+6
-0
msvc10.sln
builds/msvc/msvc10.sln
+6
-0
Static.props
builds/msvc/properties/Static.props
+16
-0
ZeroMQ.props
builds/msvc/properties/ZeroMQ.props
+0
-1
ZeroMQ_Static.props
builds/msvc/properties/ZeroMQ_Static.props
+24
-0
zmq.h
include/zmq.h
+3
-1
zmq_utils.h
include/zmq_utils.h
+3
-1
No files found.
.gitignore
View file @
fb45685a
...
...
@@ -65,8 +65,8 @@ lib/
obj/
builds/msvc/*.suo
builds/msvc/*/*.user
builds/msvc/*/Debug
builds/msvc/*/Release
builds/msvc/*/
*
Debug
builds/msvc/*/
*
Release
builds/redhat/zeromq.spec
foreign/openpgm/*
!foreign/openpgm/*.tar.bz2
...
...
builds/msvc/Makefile.am
View file @
fb45685a
...
...
@@ -21,11 +21,13 @@ PROPERTIES_DIST = properties/Common.props \
properties/Executable.props
\
properties/Precompiled.props
\
properties/Release.props
\
properties/Static.props
\
properties/Win32.props
\
properties/Win32_Release.props
\
properties/WithOpenPGM.props
\
properties/x64.props
\
properties/ZeroMQ.props
properties/ZeroMQ.props
\
properties/ZeroMQ_Static.props
PRECOMPILED_DIST
=
../../src/precompiled.hpp
\
../../src/precompiled.cpp
...
...
builds/msvc/libzmq/libzmq.vcproj
View file @
fb45685a
This diff is collapsed.
Click to expand it.
builds/msvc/libzmq/libzmq.vcxproj
View file @
fb45685a
...
...
@@ -17,6 +17,14 @@
<Configuration>
Release
</Configuration>
<Platform>
x64
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"StaticDebug|Win32"
>
<Configuration>
StaticDebug
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"StaticRelease|Win32"
>
<Configuration>
StaticRelease
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"WithOpenPGM|Win32"
>
<Configuration>
WithOpenPGM
</Configuration>
<Platform>
Win32
</Platform>
...
...
@@ -59,6 +67,15 @@
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<CharacterSet>
MultiByte
</CharacterSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='StaticRelease|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
StaticLibrary
</ConfigurationType>
<CharacterSet>
MultiByte
</CharacterSet>
<WholeProgramOptimization>
true
</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='StaticDebug|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
StaticLibrary
</ConfigurationType>
<CharacterSet>
MultiByte
</CharacterSet>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.props"
/>
<ImportGroup
Label=
"ExtensionSettings"
/>
<ImportGroup
Condition=
"'$(Configuration)|$(Platform)'=='WithOpenPGM|Win32'"
Label=
"PropertySheets"
>
...
...
@@ -97,6 +114,17 @@
<Import
Project=
"$(ProjectDir)..\properties\x64.props"
/>
<Import
Project=
"$(ProjectDir)..\properties\Debug.props"
/>
</ImportGroup>
<ImportGroup
Condition=
"'$(Configuration)|$(Platform)'=='StaticRelease|Win32'"
Label=
"PropertySheets"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
<Import
Project=
"$(ProjectDir)..\properties\ZeroMQ_Static.props"
/>
<Import
Project=
"$(ProjectDir)..\properties\Win32_Release.props"
/>
</ImportGroup>
<ImportGroup
Condition=
"'$(Configuration)|$(Platform)'=='StaticDebug|Win32'"
Label=
"PropertySheets"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
<Import
Project=
"$(ProjectDir)..\properties\ZeroMQ_Static.props"
/>
<Import
Project=
"$(ProjectDir)..\properties\Win32.props"
/>
<Import
Project=
"$(ProjectDir)..\properties\Debug.props"
/>
</ImportGroup>
<PropertyGroup
Label=
"UserMacros"
/>
<PropertyGroup>
<_ProjectFileVersion>
10.0.40219.1
</_ProjectFileVersion>
...
...
@@ -122,6 +150,16 @@
<Command>
copy ..\platform.hpp ..\..\..\src
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='StaticRelease|Win32'"
>
<PreBuildEvent>
<Command>
copy ..\platform.hpp ..\..\..\src
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='StaticDebug|Win32'"
>
<PreBuildEvent>
<Command>
copy ..\platform.hpp ..\..\..\src
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile
Include=
"..\..\..\src\address.cpp"
/>
<ClCompile
Include=
"..\..\..\src\clock.cpp"
/>
...
...
@@ -273,4 +311,4 @@
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<ImportGroup
Label=
"ExtensionTargets"
>
</ImportGroup>
</Project>
</Project>
\ No newline at end of file
builds/msvc/msvc.sln
View file @
fb45685a
...
...
@@ -37,6 +37,8 @@ Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
StaticDebug|Win32 = StaticDebug|Win32
StaticRelease|Win32 = StaticRelease|Win32
WithOpenPGM|Win32 = WithOpenPGM|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
...
...
@@ -44,6 +46,10 @@ Global
{641C5F36-32EE-4323-B740-992B651CF9D6}.Debug|Win32.Build.0 = Debug|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.Release|Win32.ActiveCfg = Release|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.Release|Win32.Build.0 = Release|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.StaticDebug|Win32.ActiveCfg = StaticDebug|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.StaticDebug|Win32.Build.0 = StaticDebug|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.StaticRelease|Win32.ActiveCfg = StaticRelease|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.StaticRelease|Win32.Build.0 = StaticRelease|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.WithOpenPGM|Win32.ActiveCfg = WithOpenPGM|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.WithOpenPGM|Win32.Build.0 = WithOpenPGM|Win32
{4FDB8C73-9D4A-4D87-A4A9-A7FC06DFEA57}.Debug|Win32.ActiveCfg = Debug|Win32
...
...
builds/msvc/msvc10.sln
View file @
fb45685a
...
...
@@ -21,6 +21,8 @@ Global
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
StaticDebug|Win32 = StaticDebug|Win32
StaticRelease|Win32 = StaticRelease|Win32
WithOpenPGM|Win32 = WithOpenPGM|Win32
WithOpenPGM|x64 = WithOpenPGM|x64
EndGlobalSection
...
...
@@ -33,6 +35,10 @@ Global
{641C5F36-32EE-4323-B740-992B651CF9D6}.Release|Win32.Build.0 = Release|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.Release|x64.ActiveCfg = Release|x64
{641C5F36-32EE-4323-B740-992B651CF9D6}.Release|x64.Build.0 = Release|x64
{641C5F36-32EE-4323-B740-992B651CF9D6}.StaticDebug|Win32.ActiveCfg = StaticDebug|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.StaticDebug|Win32.Build.0 = StaticDebug|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.StaticRelease|Win32.ActiveCfg = StaticRelease|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.StaticRelease|Win32.Build.0 = StaticRelease|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.WithOpenPGM|Win32.ActiveCfg = WithOpenPGM|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.WithOpenPGM|Win32.Build.0 = WithOpenPGM|Win32
{641C5F36-32EE-4323-B740-992B651CF9D6}.WithOpenPGM|x64.ActiveCfg = WithOpenPGM|x64
...
...
builds/msvc/properties/Static.props
0 → 100644
View file @
fb45685a
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"Build"
ToolsVersion=
"4.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ImportGroup
Label=
"PropertySheets"
>
<Import
Project=
"Common.props"
/>
</ImportGroup>
<PropertyGroup>
<_ProjectFileVersion>
10.0.30319.1
</_ProjectFileVersion>
<_PropertySheetDisplayName>
Static Library
</_PropertySheetDisplayName>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>
_WINDOWS;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
</Project>
\ No newline at end of file
builds/msvc/properties/ZeroMQ.props
View file @
fb45685a
...
...
@@ -14,7 +14,6 @@
</PreBuildEvent>
<ClCompile>
<PreprocessorDefinitions>
_CRT_SECURE_NO_WARNINGS;DLL_EXPORT;FD_SETSIZE=1024;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<DisableSpecificWarnings>
4355
</DisableSpecificWarnings>
</ClCompile>
<Link>
<AdditionalDependencies>
Ws2_32.lib;Rpcrt4.lib;%(AdditionalDependencies)
</AdditionalDependencies>
...
...
builds/msvc/properties/ZeroMQ_Static.props
0 → 100644
View file @
fb45685a
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"Build"
ToolsVersion=
"4.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ImportGroup
Label=
"PropertySheets"
>
<Import
Project=
"Static.props"
/>
<Import
Project=
"Precompiled.props"
/>
</ImportGroup>
<PropertyGroup>
<_ProjectFileVersion>
10.0.30319.1
</_ProjectFileVersion>
<_PropertySheetDisplayName>
ZeroMQ Static Settings
</_PropertySheetDisplayName>
</PropertyGroup>
<ItemDefinitionGroup>
<PreBuildEvent>
<Command>
copy ..\platform.hpp ..\..\..\src
</Command>
</PreBuildEvent>
<ClCompile>
<PreprocessorDefinitions>
_CRT_SECURE_NO_WARNINGS;ZMQ_STATIC;FD_SETSIZE=1024;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
</ClCompile>
<Lib>
<AdditionalDependencies>
Ws2_32.lib;Rpcrt4.lib;%(AdditionalDependencies)
</AdditionalDependencies>
<AdditionalOptions>
/ignore:4006 /ignore:4221 %(AdditionalOptions)
</AdditionalOptions>
</Lib>
</ItemDefinitionGroup>
</Project>
\ No newline at end of file
include/zmq.h
View file @
fb45685a
...
...
@@ -38,7 +38,9 @@ extern "C" {
/* Handle DSO symbol visibility */
#if defined _WIN32
# if defined DLL_EXPORT
# if defined ZMQ_STATIC
# define ZMQ_EXPORT
# elif defined DLL_EXPORT
# define ZMQ_EXPORT __declspec(dllexport)
# else
# define ZMQ_EXPORT __declspec(dllimport)
...
...
include/zmq_utils.h
View file @
fb45685a
...
...
@@ -27,7 +27,9 @@ extern "C" {
/* Handle DSO symbol visibility */
#if defined _WIN32
# if defined DLL_EXPORT
# if defined ZMQ_STATIC
# define ZMQ_EXPORT
# elif defined DLL_EXPORT
# define ZMQ_EXPORT __declspec(dllexport)
# else
# define ZMQ_EXPORT __declspec(dllimport)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment