2015-11-05 16:08:33 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-03-24 05:32:48 +01:00
|
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2015-11-05 16:08:33 +01:00
|
|
|
|
|
|
|
<PropertyGroup Label="Globals">
|
|
|
|
<_PropertySheetDisplayName>ZMQ Import Settings</_PropertySheetDisplayName>
|
|
|
|
</PropertyGroup>
|
2016-05-13 09:56:09 +02:00
|
|
|
|
2015-11-05 16:08:33 +01:00
|
|
|
<!-- User Interface -->
|
|
|
|
|
|
|
|
<ItemGroup Label="BuildOptionsExtension">
|
|
|
|
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)libzmq.import.xml" />
|
|
|
|
</ItemGroup>
|
2016-05-13 09:56:09 +02:00
|
|
|
|
2015-11-05 16:08:33 +01:00
|
|
|
<!-- Configuration -->
|
|
|
|
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
2016-05-13 10:00:58 +02:00
|
|
|
<PreprocessorDefinitions Condition="'$(Option-tweet)' == 'true'">ZMQ_USE_TWEETNACL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
<PreprocessorDefinitions Condition="'$(Option-sodium)' == 'true'">ZMQ_USE_LIBSODIUM;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2015-11-05 16:08:33 +01:00
|
|
|
<PreprocessorDefinitions Condition="'$(Option-openpgm)' == 'true'">ZMQ_HAVE_OPENPGM;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
<PreprocessorDefinitions Condition="'$(Option-gssapi)' == 'true'">HAVE_LIBGSSAPI_KRB5;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2016-05-13 10:00:58 +02:00
|
|
|
<PreprocessorDefinitions Condition="'$(Option-draftapi)' == 'true'">ZMQ_BUILD_DRAFT_API;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2015-11-05 16:08:33 +01:00
|
|
|
</ClCompile>
|
|
|
|
</ItemDefinitionGroup>
|
2016-05-13 09:56:09 +02:00
|
|
|
|
2015-11-05 16:08:33 +01:00
|
|
|
<!-- Linkage -->
|
|
|
|
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
2017-03-24 05:32:48 +01:00
|
|
|
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\libzmq\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2015-11-05 16:08:33 +01:00
|
|
|
<PreprocessorDefinitions Condition="'$(Linkage-libzmq)' == 'static' Or '$(Linkage-libzmq)' == 'ltcg'">ZMQ_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
</ClCompile>
|
|
|
|
<Link>
|
|
|
|
<AdditionalDependencies Condition="'$(Linkage-libzmq)' != ''">libzmq.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
2017-03-24 05:32:48 +01:00
|
|
|
<AdditionalLibraryDirectories Condition="$(Configuration.IndexOf('Debug')) != -1">$(ProjectDir)..\..\..\..\..\libzmq\bin\$(PlatformName)\Debug\$(PlatformToolset)\$(Linkage-libzmq)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
|
|
<AdditionalLibraryDirectories Condition="$(Configuration.IndexOf('Release')) != -1">$(ProjectDir)..\..\..\..\..\libzmq\bin\$(PlatformName)\Release\$(PlatformToolset)\$(Linkage-libzmq)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
2015-11-05 16:08:33 +01:00
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
2016-05-13 09:56:09 +02:00
|
|
|
|
2015-11-05 16:08:33 +01:00
|
|
|
<!-- Copy -->
|
|
|
|
|
|
|
|
<Target Name="Linkage-libzmq-dynamic" AfterTargets="AfterBuild" Condition="'$(Linkage-libzmq)' == 'dynamic'">
|
|
|
|
<Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
|
2017-03-24 05:32:48 +01:00
|
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libzmq\bin\$(PlatformName)\Debug\$(PlatformToolset)\dynamic\libzmq.dll"
|
2015-11-05 16:08:33 +01:00
|
|
|
DestinationFiles="$(TargetDir)libzmq.dll"
|
|
|
|
SkipUnchangedFiles="true" />
|
|
|
|
<Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
|
2017-03-24 05:32:48 +01:00
|
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libzmq\bin\$(PlatformName)\Debug\$(PlatformToolset)\dynamic\libzmq.pdb"
|
2015-11-05 16:08:33 +01:00
|
|
|
DestinationFiles="$(TargetDir)libzmq.pdb"
|
|
|
|
SkipUnchangedFiles="true" />
|
|
|
|
<Copy Condition="$(Configuration.IndexOf('Release')) != -1"
|
2017-03-24 05:32:48 +01:00
|
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libzmq\bin\$(PlatformName)\Release\$(PlatformToolset)\dynamic\libzmq.dll"
|
2015-11-05 16:08:33 +01:00
|
|
|
DestinationFiles="$(TargetDir)libzmq.dll"
|
|
|
|
SkipUnchangedFiles="true" />
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<!-- Messages -->
|
|
|
|
|
|
|
|
<Target Name="libzmq-info" BeforeTargets="AfterBuild" Condition="'$(Linkage-libzmq)' == 'dynamic'">
|
|
|
|
<Message Text="Copying libzmq.dll -> $(TargetDir)libzmq.dll" Importance="high"/>
|
|
|
|
<Message Text="Copying libzmq.pdb -> $(TargetDir)libzmq.pdb" Importance="high" Condition="$(Configuration.IndexOf('Debug')) != -1" />
|
|
|
|
</Target>
|
|
|
|
|
2017-03-24 05:32:48 +01:00
|
|
|
</Project>
|