2014-04-07 22:06:10 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2014-04-14 20:54:49 -04:00
|
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2014-04-07 22:06:10 -04:00
|
|
|
|
|
|
|
<PropertyGroup Label="Globals">
|
|
|
|
<_PropertySheetDisplayName>Libsodium Import Settings</_PropertySheetDisplayName>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- User Interface -->
|
|
|
|
|
|
|
|
<ItemGroup Label="BuildOptionsExtension">
|
|
|
|
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)libsodium.import.xml" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
2014-04-09 06:26:45 -04:00
|
|
|
<!-- Linkage -->
|
2014-04-07 22:06:10 -04:00
|
|
|
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
|
|
|
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include;$(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include\sodium\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2014-04-09 06:26:45 -04:00
|
|
|
<PreprocessorDefinitions Condition="'$(Linkage-libsodium)' == 'static' Or '$(Linkage-libsodium)' == 'ltcg'">SODIUM_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2014-04-07 22:06:10 -04:00
|
|
|
</ClCompile>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
2014-04-09 06:26:45 -04:00
|
|
|
<ItemDefinitionGroup Condition="'$(Linkage-libsodium)' == 'dynamic'">
|
2014-04-07 22:06:10 -04:00
|
|
|
<Link Condition="$(Configuration.IndexOf('Debug')) != -1">
|
|
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium12\libsodium.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
</Link>
|
|
|
|
<Link Condition="$(Configuration.IndexOf('Release')) != -1">
|
|
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium12\libsodium.imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
|
|
|
<ItemDefinitionGroup Condition="'$(Linkage-libsodium)' == 'static'">
|
|
|
|
<Link Condition="$(Configuration.IndexOf('Debug')) != -1">
|
|
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium12\libsodium.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
</Link>
|
|
|
|
<Link Condition="$(Configuration.IndexOf('Release')) != -1">
|
|
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium12\libsodium.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
|
|
|
<ItemDefinitionGroup Condition="'$(Linkage-libsodium)' == 'ltcg'">
|
|
|
|
<Link Condition="$(Configuration.IndexOf('Debug')) != -1">
|
|
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium12\libsodium.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
</Link>
|
|
|
|
<Link Condition="$(Configuration.IndexOf('Release')) != -1">
|
|
|
|
<AdditionalDependencies>$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium12\libsodium.ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
2014-04-09 06:26:45 -04:00
|
|
|
<!-- Copy -->
|
2014-04-07 22:06:10 -04:00
|
|
|
|
|
|
|
<Target Name="Linkage-libsodium-dynamic" AfterTargets="AfterBuild" Condition="'$(Linkage-libsodium)' == 'dynamic'">
|
|
|
|
<Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
|
|
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium12\libsodium.dll"
|
|
|
|
DestinationFiles="$(TargetDir)libsodium.dll"
|
|
|
|
SkipUnchangedFiles="true" />
|
|
|
|
<Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
|
|
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium12\libsodium.pdb"
|
|
|
|
DestinationFiles="$(TargetDir)libsodium.pdb"
|
|
|
|
SkipUnchangedFiles="true" />
|
|
|
|
<Copy Condition="$(Configuration.IndexOf('Release')) != -1"
|
|
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium12\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>
|