2014-04-09 03:26:45 -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-09 03:26:45 -07:00
|
|
|
|
|
|
|
<PropertyGroup Label="Globals">
|
|
|
|
<_PropertySheetDisplayName>Libsodium Import Settings</_PropertySheetDisplayName>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- User Interface -->
|
|
|
|
|
|
|
|
<ItemGroup Label="BuildOptionsExtension">
|
|
|
|
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)libsodium.import.xml" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<!-- Linkage -->
|
|
|
|
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
2014-05-10 03:47:35 -07:00
|
|
|
<AdditionalIncludeDirectories>$(SourceRoot)libsodium\src\libsodium\include;$(SourceRoot)libsodium\src\libsodium\include\sodium\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
|
|
<PreprocessorDefinitions Condition="'$(Linkage-libsodium)' == 'static' Or '$(Linkage-libsodium)' == 'ltcg'">SODIUM_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2014-04-09 03:26:45 -07:00
|
|
|
</ClCompile>
|
2014-05-10 03:47:35 -07:00
|
|
|
<Link>
|
|
|
|
<AdditionalLibraryDirectories>$(SourceRoot)libsodium\bin\$(Processor)\$(DebugOrRelease)\$(PlatformToolset)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
|
|
<AdditionalDependencies Condition="'$(Linkage-libsodium)' == 'dynamic'">libsodium_imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
<AdditionalDependencies Condition="'$(Linkage-libsodium)' == 'static'">libsodium.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
<AdditionalDependencies Condition="'$(Linkage-libsodium)' == 'ltcg'">libsodium_ltcg.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
2014-04-09 03:26:45 -07:00
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
|
|
|
<!-- Copy -->
|
|
|
|
|
|
|
|
<Target Name="Linkage-libsodium-dynamic" AfterTargets="AfterBuild" Condition="'$(Linkage-libsodium)' == 'dynamic'">
|
2014-05-10 03:47:35 -07:00
|
|
|
<Copy SourceFiles="$(SourceRoot)libsodium\bin\$(Processor)\$(DebugOrRelease)\$(PlatformToolset)\libsodium.dll"
|
2014-04-09 03:26:45 -07:00
|
|
|
DestinationFiles="$(TargetDir)libsodium.dll"
|
|
|
|
SkipUnchangedFiles="true" />
|
2014-05-10 03:47:35 -07:00
|
|
|
<Copy Condition="'$(DebugOrRelease)' == 'debug'"
|
|
|
|
SourceFiles="$(SourceRoot)libsodium\bin\$(Processor)\$(DebugOrRelease)\$(PlatformToolset)\libsodium.pdb"
|
2014-04-09 03:26:45 -07:00
|
|
|
DestinationFiles="$(TargetDir)libsodium.pdb"
|
|
|
|
SkipUnchangedFiles="true" />
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<!-- Messages -->
|
|
|
|
|
|
|
|
<Target Name="libsodium-info" BeforeTargets="AfterBuild" Condition="'$(Linkage-libsodium)' == 'dynamic'">
|
|
|
|
<Message Text="Copying libsodium.dll -> $(TargetDir)libsodium.dll" Importance="high"/>
|
2014-05-10 03:47:35 -07:00
|
|
|
<Message Text="Copying libsodium.pdb -> $(TargetDir)libsodium.pdb" Importance="high" Condition="'$(DebugOrRelease)' == 'debug'" />
|
2014-04-09 03:26:45 -07:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
</Project>
|