mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 07:31:03 +08:00
ff47aeb791
Solution: remove implementation. Frank Hartmann <soundart@gmx.net>, the author, rejected our request to relicense under MPL2, so we have to remove his copyrighted work. Tweetnacl is not security-supported and could not be used in production environments anyway, the supported backend is libsodium.
64 lines
3.5 KiB
XML
64 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<PropertyGroup Label="Globals">
|
|
<_PropertySheetDisplayName>ZMQ Import Settings</_PropertySheetDisplayName>
|
|
</PropertyGroup>
|
|
|
|
<!-- User Interface -->
|
|
|
|
<ItemGroup Label="BuildOptionsExtension">
|
|
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)libzmq.import.xml" />
|
|
</ItemGroup>
|
|
|
|
<!-- Configuration -->
|
|
|
|
<ItemDefinitionGroup>
|
|
<ClCompile>
|
|
<PreprocessorDefinitions Condition="'$(Option-sodium)' == 'true'">ZMQ_USE_LIBSODIUM;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PreprocessorDefinitions Condition="'$(Option-openpgm)' == 'true'">ZMQ_HAVE_OPENPGM;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PreprocessorDefinitions Condition="'$(Option-gssapi)' == 'true'">HAVE_LIBGSSAPI_KRB5;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PreprocessorDefinitions Condition="'$(Option-draftapi)' == 'true'">ZMQ_BUILD_DRAFT_API;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
</ClCompile>
|
|
</ItemDefinitionGroup>
|
|
|
|
<!-- Linkage -->
|
|
|
|
<ItemDefinitionGroup>
|
|
<ClCompile>
|
|
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\libzmq\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
<PreprocessorDefinitions Condition="'$(Linkage-libzmq)' == 'static' Or '$(Linkage-libzmq)' == 'ltcg'">ZMQ_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
</ClCompile>
|
|
<Link>
|
|
<AdditionalDependencies Condition="'$(Linkage-libzmq)' != ''">libzmq.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
<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>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
|
|
<!-- Copy -->
|
|
|
|
<Target Name="Linkage-libzmq-dynamic" AfterTargets="AfterBuild" Condition="'$(Linkage-libzmq)' == 'dynamic'">
|
|
<Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libzmq\bin\$(PlatformName)\Debug\$(PlatformToolset)\dynamic\libzmq.dll"
|
|
DestinationFiles="$(TargetDir)libzmq.dll"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libzmq\bin\$(PlatformName)\Debug\$(PlatformToolset)\dynamic\libzmq.pdb"
|
|
DestinationFiles="$(TargetDir)libzmq.pdb"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy Condition="$(Configuration.IndexOf('Release')) != -1"
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libzmq\bin\$(PlatformName)\Release\$(PlatformToolset)\dynamic\libzmq.dll"
|
|
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>
|
|
|
|
</Project>
|