mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-26 13:51:04 -07:00
79 lines
4.1 KiB
XML
79 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<PropertyGroup Label="Globals">
|
|
<_PropertySheetDisplayName>Libsodium Import Settings</_PropertySheetDisplayName>
|
|
</PropertyGroup>
|
|
|
|
<!-- User Interface -->
|
|
|
|
<ItemGroup Label="BuildOptionsExtension">
|
|
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)libsodium.import.xml" />
|
|
</ItemGroup>
|
|
|
|
<!-- Linkage -->
|
|
|
|
<ItemDefinitionGroup>
|
|
<ClCompile>
|
|
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include;$(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include\sodium\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
</ClCompile>
|
|
</ItemDefinitionGroup>
|
|
|
|
<ItemDefinitionGroup Condition="'$(Linkage-libsodium)' == 'static' Or '$(Linkage-libsodium)' == 'ltcg'">
|
|
<ClCompile>
|
|
<PreprocessorDefinitions>SODIUM_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
</ClCompile>
|
|
</ItemDefinitionGroup>
|
|
|
|
<ItemDefinitionGroup Condition="'$(Linkage-libsodium)' == 'dynamic'">
|
|
<Link Condition="$(Configuration.IndexOf('Debug')) != -1">
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium11\libsodium.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
</Link>
|
|
<Link Condition="$(Configuration.IndexOf('Release')) != -1">
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium11\libsodium.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
|
|
<ItemDefinitionGroup Condition="'$(Linkage-libsodium)' == 'static'">
|
|
<Link Condition="$(Configuration.IndexOf('Debug')) != -1">
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium11\libsodium.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
</Link>
|
|
<Link Condition="$(Configuration.IndexOf('Release')) != -1">
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium11\libsodium.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
|
|
<ItemDefinitionGroup Condition="'$(Linkage-libsodium)' == 'ltcg'">
|
|
<Link Condition="$(Configuration.IndexOf('Debug')) != -1">
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium11\libsodium.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
</Link>
|
|
<Link Condition="$(Configuration.IndexOf('Release')) != -1">
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium11\libsodium.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
|
|
<!-- Copy -->
|
|
|
|
<Target Name="Linkage-libsodium-dynamic" AfterTargets="AfterBuild" Condition="'$(Linkage-libsodium)' == 'dynamic'">
|
|
<Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium11\libsodium.dll"
|
|
DestinationFiles="$(TargetDir)libsodium.dll"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium11\libsodium.pdb"
|
|
DestinationFiles="$(TargetDir)libsodium.pdb"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy Condition="$(Configuration.IndexOf('Release')) != -1"
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium11\libsodium.dll"
|
|
DestinationFiles="$(TargetDir)libsodium.dll"
|
|
SkipUnchangedFiles="true" />
|
|
</Target>
|
|
|
|
<!-- Messages -->
|
|
|
|
<Target Name="libsodium-info" BeforeTargets="AfterBuild" Condition="'$(Linkage-libsodium)' == 'dynamic'">
|
|
<Message Text="Copying libsodium.dll -> $(TargetDir)libsodium.dll" Importance="high"/>
|
|
<Message Text="Copying libsodium.pdb -> $(TargetDir)libsodium.pdb" Importance="high" Condition="$(Configuration.IndexOf('Debug')) != -1" />
|
|
</Target>
|
|
|
|
</Project> |