2014-04-07 19:06:10 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2014-04-14 17:54:49 -07:00
|
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2014-04-07 19:06:10 -07: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 03:26:45 -07:00
|
|
|
<!-- Linkage -->
|
2014-04-07 19:06:10 -07:00
|
|
|
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
2014-05-11 14:25:55 -07:00
|
|
|
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include;$(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include\sodium\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2014-04-09 03:26:45 -07:00
|
|
|
<PreprocessorDefinitions Condition="'$(Linkage-libsodium)' == 'static' Or '$(Linkage-libsodium)' == 'ltcg'">SODIUM_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2014-04-07 19:06:10 -07:00
|
|
|
</ClCompile>
|
2014-05-10 03:47:35 -07:00
|
|
|
<Link>
|
2014-07-03 13:50:49 -07:00
|
|
|
<AdditionalDependencies Condition="'$(Linkage-libsodium)' != ''">advapi32.lib;libsodium.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
2014-05-11 14:25:55 -07:00
|
|
|
<AdditionalLibraryDirectories Condition="$(Configuration.IndexOf('Debug')) != -1">$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\$(PlatformToolset)\$(Linkage-libsodium)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
|
|
<AdditionalLibraryDirectories Condition="$(Configuration.IndexOf('Release')) != -1">$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\$(PlatformToolset)\$(Linkage-libsodium)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
2014-04-07 19:06:10 -07:00
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
2014-04-09 03:26:45 -07:00
|
|
|
<!-- Copy -->
|
2014-04-07 19:06:10 -07:00
|
|
|
|
|
|
|
<Target Name="Linkage-libsodium-dynamic" AfterTargets="AfterBuild" Condition="'$(Linkage-libsodium)' == 'dynamic'">
|
2014-05-11 14:25:55 -07:00
|
|
|
<Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
|
|
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\$(PlatformToolset)\dynamic\libsodium.dll"
|
2014-04-07 19:06:10 -07:00
|
|
|
DestinationFiles="$(TargetDir)libsodium.dll"
|
|
|
|
SkipUnchangedFiles="true" />
|
2014-05-11 14:25:55 -07:00
|
|
|
<Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
|
|
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\$(PlatformToolset)\dynamic\libsodium.pdb"
|
2014-04-07 19:06:10 -07:00
|
|
|
DestinationFiles="$(TargetDir)libsodium.pdb"
|
|
|
|
SkipUnchangedFiles="true" />
|
2014-05-11 14:25:55 -07:00
|
|
|
<Copy Condition="$(Configuration.IndexOf('Release')) != -1"
|
|
|
|
SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\$(PlatformToolset)\dynamic\libsodium.dll"
|
|
|
|
DestinationFiles="$(TargetDir)libsodium.dll"
|
|
|
|
SkipUnchangedFiles="true" />
|
2014-04-07 19:06:10 -07:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
<!-- Messages -->
|
|
|
|
|
|
|
|
<Target Name="libsodium-info" BeforeTargets="AfterBuild" Condition="'$(Linkage-libsodium)' == 'dynamic'">
|
2014-05-11 14:25:55 -07:00
|
|
|
<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" />
|
2014-04-07 19:06:10 -07:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
</Project>
|