xref: /freebsd/sys/contrib/libsodium/builds/msvc/vs2013/libsodium.import.props (revision 3611ec604864a7d4dcc9a3ea898c80eb35eef8a0)
1*0ac341f1SConrad Meyer<?xml version="1.0" encoding="utf-8"?>
2*0ac341f1SConrad Meyer<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3*0ac341f1SConrad Meyer
4*0ac341f1SConrad Meyer  <PropertyGroup Label="Globals">
5*0ac341f1SConrad Meyer    <_PropertySheetDisplayName>Libsodium Import Settings</_PropertySheetDisplayName>
6*0ac341f1SConrad Meyer  </PropertyGroup>
7*0ac341f1SConrad Meyer
8*0ac341f1SConrad Meyer  <!-- User Interface -->
9*0ac341f1SConrad Meyer
10*0ac341f1SConrad Meyer  <ItemGroup Label="BuildOptionsExtension">
11*0ac341f1SConrad Meyer    <PropertyPageSchema Include="$(MSBuildThisFileDirectory)libsodium.import.xml" />
12*0ac341f1SConrad Meyer  </ItemGroup>
13*0ac341f1SConrad Meyer
14*0ac341f1SConrad Meyer  <!-- Linkage -->
15*0ac341f1SConrad Meyer
16*0ac341f1SConrad Meyer  <ItemDefinitionGroup>
17*0ac341f1SConrad Meyer    <ClCompile>
18*0ac341f1SConrad Meyer      <AdditionalIncludeDirectories>$(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include;$(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include\sodium\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
19*0ac341f1SConrad Meyer      <PreprocessorDefinitions Condition="'$(Linkage-libsodium)' == 'static' Or '$(Linkage-libsodium)' == 'ltcg'">SODIUM_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
20*0ac341f1SConrad Meyer    </ClCompile>
21*0ac341f1SConrad Meyer    <Link>
22*0ac341f1SConrad Meyer      <AdditionalDependencies Condition="'$(Linkage-libsodium)' != ''">advapi32.lib;libsodium.lib;%(AdditionalDependencies)</AdditionalDependencies>
23*0ac341f1SConrad Meyer      <AdditionalLibraryDirectories Condition="$(Configuration.IndexOf('Debug')) != -1">$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\$(PlatformToolset)\$(Linkage-libsodium)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
24*0ac341f1SConrad Meyer      <AdditionalLibraryDirectories Condition="$(Configuration.IndexOf('Release')) != -1">$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\$(PlatformToolset)\$(Linkage-libsodium)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
25*0ac341f1SConrad Meyer    </Link>
26*0ac341f1SConrad Meyer  </ItemDefinitionGroup>
27*0ac341f1SConrad Meyer
28*0ac341f1SConrad Meyer  <!-- Copy -->
29*0ac341f1SConrad Meyer
30*0ac341f1SConrad Meyer  <Target Name="Linkage-libsodium-dynamic" AfterTargets="AfterBuild" Condition="'$(Linkage-libsodium)' == 'dynamic'">
31*0ac341f1SConrad Meyer    <Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
32*0ac341f1SConrad Meyer          SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\$(PlatformToolset)\dynamic\libsodium.dll"
33*0ac341f1SConrad Meyer          DestinationFiles="$(TargetDir)libsodium.dll"
34*0ac341f1SConrad Meyer          SkipUnchangedFiles="true" />
35*0ac341f1SConrad Meyer    <Copy Condition="$(Configuration.IndexOf('Debug')) != -1"
36*0ac341f1SConrad Meyer          SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\$(PlatformToolset)\dynamic\libsodium.pdb"
37*0ac341f1SConrad Meyer          DestinationFiles="$(TargetDir)libsodium.pdb"
38*0ac341f1SConrad Meyer          SkipUnchangedFiles="true" />
39*0ac341f1SConrad Meyer    <Copy Condition="$(Configuration.IndexOf('Release')) != -1"
40*0ac341f1SConrad Meyer          SourceFiles="$(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\$(PlatformToolset)\dynamic\libsodium.dll"
41*0ac341f1SConrad Meyer          DestinationFiles="$(TargetDir)libsodium.dll"
42*0ac341f1SConrad Meyer          SkipUnchangedFiles="true" />
43*0ac341f1SConrad Meyer  </Target>
44*0ac341f1SConrad Meyer
45*0ac341f1SConrad Meyer  <!-- Messages -->
46*0ac341f1SConrad Meyer
47*0ac341f1SConrad Meyer  <Target Name="libsodium-info" BeforeTargets="AfterBuild" Condition="'$(Linkage-libsodium)' == 'dynamic'">
48*0ac341f1SConrad Meyer    <Message Text="Copying libsodium.dll -&gt; $(TargetDir)libsodium.dll" Importance="high"/>
49*0ac341f1SConrad Meyer    <Message Text="Copying libsodium.pdb -&gt; $(TargetDir)libsodium.pdb" Importance="high" Condition="$(Configuration.IndexOf('Debug')) != -1" />
50*0ac341f1SConrad Meyer  </Target>
51*0ac341f1SConrad Meyer
52*0ac341f1SConrad Meyer</Project>