2016-09-19 11:50:08 +08:00
|
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2016-11-05 08:37:58 +08:00
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == 'Win32||'">
|
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">x86-windows</VcpkgTriplet>
|
|
|
|
</PropertyGroup>
|
2016-11-01 04:32:58 +08:00
|
|
|
|
2016-11-05 08:37:58 +08:00
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == 'Win32|Windows Store|10.0'">
|
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">x86-uwp</VcpkgTriplet>
|
|
|
|
</PropertyGroup>
|
2016-11-01 04:32:58 +08:00
|
|
|
|
2017-01-20 09:38:56 +08:00
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == '||'">
|
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">x86-windows</VcpkgTriplet>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == '|Windows Store|10.0'">
|
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">x86-uwp</VcpkgTriplet>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-11-05 08:37:58 +08:00
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == 'x64||'">
|
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">x64-windows</VcpkgTriplet>
|
|
|
|
</PropertyGroup>
|
2016-09-19 11:50:08 +08:00
|
|
|
|
2016-11-05 08:37:58 +08:00
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == 'x64|Windows Store|10.0'">
|
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">x64-uwp</VcpkgTriplet>
|
|
|
|
</PropertyGroup>
|
2016-11-01 08:02:39 +08:00
|
|
|
|
2016-11-05 08:37:58 +08:00
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == 'arm|Windows Store|10.0'">
|
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">arm-uwp</VcpkgTriplet>
|
|
|
|
</PropertyGroup>
|
2016-11-01 08:02:39 +08:00
|
|
|
|
2016-11-05 08:37:58 +08:00
|
|
|
<PropertyGroup Condition="'$(VcpkgEnabled)' == 'true'">
|
|
|
|
<VcpkgConfiguration Condition="'$(VcpkgConfiguration)' == ''">$(Configuration)</VcpkgConfiguration>
|
|
|
|
<VcpkgRoot Condition="'$(VcpkgRoot)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .vcpkg-root))\installed\$(VcpkgTriplet)\</VcpkgRoot>
|
2016-11-01 08:02:39 +08:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-11-05 08:37:58 +08:00
|
|
|
<ItemDefinitionGroup Condition="'$(VcpkgEnabled)' == 'true'">
|
|
|
|
<Link>
|
2016-11-26 15:10:27 +08:00
|
|
|
<AdditionalDependencies Condition="'$(VcpkgConfiguration)' == 'Debug' and '$(VcpkgAutoLink)' != 'false'">%(AdditionalDependencies);$(VcpkgRoot)debug\lib\*.lib</AdditionalDependencies>
|
|
|
|
<AdditionalDependencies Condition="'$(VcpkgConfiguration)' == 'Release' and '$(VcpkgAutoLink)' != 'false'">%(AdditionalDependencies);$(VcpkgRoot)lib\*.lib</AdditionalDependencies>
|
|
|
|
<AdditionalLibraryDirectories Condition="'$(VcpkgConfiguration)' == 'Release'">%(AdditionalLibraryDirectories);$(VcpkgRoot)lib;$(VcpkgRoot)lib\manual-link</AdditionalLibraryDirectories>
|
|
|
|
<AdditionalLibraryDirectories Condition="'$(VcpkgConfiguration)' == 'Debug'">%(AdditionalLibraryDirectories);$(VcpkgRoot)debug\lib;$(VcpkgRoot)debug\lib\manual-link</AdditionalLibraryDirectories>
|
2016-11-05 08:37:58 +08:00
|
|
|
</Link>
|
|
|
|
<ClCompile>
|
2016-11-26 15:10:27 +08:00
|
|
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(VcpkgRoot)include</AdditionalIncludeDirectories>
|
2016-11-05 08:37:58 +08:00
|
|
|
</ClCompile>
|
2017-04-08 00:50:24 +08:00
|
|
|
<ResourceCompile>
|
|
|
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(VcpkgRoot)include</AdditionalIncludeDirectories>
|
|
|
|
</ResourceCompile>
|
2016-11-05 08:37:58 +08:00
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
2017-02-01 09:53:08 +08:00
|
|
|
<Target Name="VcpkgTripletSelection" BeforeTargets="ClCompile">
|
|
|
|
<Message Text="Using triplet "$(VcpkgTriplet)" from "$(VcpkgRoot)"" Importance="Normal" Condition="'$(VcpkgEnabled)' == 'true'"/>
|
|
|
|
<Message Text="Not using Vcpkg because VcpkgEnabled is "$(VcpkgEnabled)"" Importance="Normal" Condition="'$(VcpkgEnabled)' != 'true'"/>
|
|
|
|
</Target>
|
|
|
|
|
2016-12-23 21:45:29 +08:00
|
|
|
<Target Name="AppLocalFromInstalled" AfterTargets="CopyFilesToOutputDirectory" BeforeTargets="CopyLocalFilesOutputGroup;RegisterOutput" Condition="'$(VcpkgEnabled)' == 'true'">
|
2016-09-19 11:50:08 +08:00
|
|
|
<WriteLinesToFile
|
|
|
|
File="$(TLogLocation)$(ProjectName).write.1u.tlog"
|
2017-04-12 07:11:28 +08:00
|
|
|
Lines="^$(TargetPath);$([System.IO.Path]::Combine($(ProjectDir),$(IntDir)))vcpkg.applocal.log" Encoding="Unicode"/>
|
2016-10-29 09:58:39 +08:00
|
|
|
<Exec Condition="'$(VcpkgConfiguration)' == 'Debug'"
|
2017-04-12 07:11:28 +08:00
|
|
|
Command="powershell.exe -ExecutionPolicy Bypass -noprofile -File %22$(MSBuildThisFileDirectory)applocal.ps1%22 %22$(TargetPath)%22 %22$(VcpkgRoot)debug\bin%22 %22$(TLogLocation)$(ProjectName).write.1u.tlog%22 %22$(IntDir)vcpkg.applocal.log%22"
|
2017-01-24 10:26:57 +08:00
|
|
|
StandardOutputImportance="Normal">
|
2016-09-19 11:50:08 +08:00
|
|
|
</Exec>
|
2016-10-29 09:58:39 +08:00
|
|
|
<Exec Condition="'$(VcpkgConfiguration)' == 'Release'"
|
2017-04-12 07:11:28 +08:00
|
|
|
Command="powershell.exe -ExecutionPolicy Bypass -noprofile -File %22$(MSBuildThisFileDirectory)applocal.ps1%22 %22$(TargetPath)%22 %22$(VcpkgRoot)bin%22 %22$(TLogLocation)$(ProjectName).write.1u.tlog%22 %22$(IntDir)vcpkg.applocal.log%22"
|
2017-01-24 10:26:57 +08:00
|
|
|
StandardOutputImportance="Normal">
|
2016-09-19 11:50:08 +08:00
|
|
|
</Exec>
|
2017-04-12 07:11:28 +08:00
|
|
|
<ReadLinesFromFile File="$(IntDir)vcpkg.applocal.log">
|
|
|
|
<Output TaskParameter="Lines" ItemName="VcpkgAppLocalDLLs" />
|
|
|
|
</ReadLinesFromFile>
|
|
|
|
<Message Text="@(VcpkgAppLocalDLLs,'%0A')" Importance="Normal" />
|
|
|
|
<ItemGroup>
|
|
|
|
<ReferenceCopyLocalPaths Include="@(VcpkgAppLocalDLLs)" />
|
|
|
|
</ItemGroup>
|
2016-09-19 11:50:08 +08:00
|
|
|
</Target>
|
|
|
|
</Project>
|