2016-09-19 11:50:08 +08:00
|
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == 'Win32||'">
|
2016-10-29 09:58:39 +08:00
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">x86-windows</VcpkgTriplet>
|
2016-09-19 11:50:08 +08:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == 'Win32|Windows Store|10.0'">
|
2016-10-29 09:58:39 +08:00
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">x86-uwp</VcpkgTriplet>
|
2016-09-19 11:50:08 +08:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == 'x64||'">
|
2016-10-29 09:58:39 +08:00
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">x64-windows</VcpkgTriplet>
|
2016-09-19 11:50:08 +08:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == 'x64|Windows Store|10.0'">
|
2016-10-29 09:58:39 +08:00
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">x64-uwp</VcpkgTriplet>
|
2016-09-19 11:50:08 +08:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(Platform)|$(ApplicationType)|$(ApplicationTypeRevision)' == 'arm|Windows Store|10.0'">
|
2016-10-29 09:58:39 +08:00
|
|
|
<VcpkgEnabled Condition="'$(VcpkgEnabled)' == ''">true</VcpkgEnabled>
|
|
|
|
<VcpkgTriplet Condition="'$(VcpkgTriplet)' == ''">arm-uwp</VcpkgTriplet>
|
2016-09-19 11:50:08 +08:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-10-29 09:58:39 +08:00
|
|
|
<PropertyGroup Condition="'$(VcpkgEnabled)' == 'true'">
|
|
|
|
<VcpkgConfiguration Condition="'$(VcpkgConfiguration)' == ''">$(Configuration)</VcpkgConfiguration>
|
2016-09-19 11:50:08 +08:00
|
|
|
<!-- Expected to ..\..\..\ over scripts\buildsystems\msbuild -->
|
2016-10-29 09:58:39 +08:00
|
|
|
<VcpkgRoot Condition="'$(VcpkgRoot)' == ''">$(MSBuildThisFileDirectory)..\..\..\installed\$(VcpkgTriplet)\</VcpkgRoot>
|
2016-09-19 11:50:08 +08:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-10-29 09:58:39 +08:00
|
|
|
<ItemDefinitionGroup Condition="'$(VcpkgEnabled)' == 'true'">
|
2016-09-19 11:50:08 +08:00
|
|
|
<Link>
|
2016-10-29 09:58:39 +08:00
|
|
|
<AdditionalDependencies Condition="'$(VcpkgConfiguration)' == 'Debug'">$(VcpkgRoot)debug\lib\*.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
<AdditionalDependencies Condition="'$(VcpkgConfiguration)' == 'Release'">$(VcpkgRoot)lib\*.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
2016-09-19 11:50:08 +08:00
|
|
|
</Link>
|
|
|
|
<ClCompile>
|
2016-10-29 09:58:39 +08:00
|
|
|
<AdditionalIncludeDirectories>$(VcpkgRoot)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2016-09-19 11:50:08 +08:00
|
|
|
</ClCompile>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
2016-10-29 09:58:39 +08:00
|
|
|
<Target Name="AppLocalFromInstalled" AfterTargets="CopyFilesToOutputDirectory" BeforeTargets="CopyLocalFilesOutputGroup" Condition="'$(VcpkgEnabled)' == 'true' and '$(OutputType)' == 'exe'">
|
2016-09-19 11:50:08 +08:00
|
|
|
<WriteLinesToFile
|
|
|
|
File="$(TLogLocation)$(ProjectName).write.1u.tlog"
|
|
|
|
Lines="^$(OutputPath)$(TargetName).$(OutputType);" Encoding="Unicode"/>
|
2016-10-29 09:58:39 +08:00
|
|
|
<Exec Condition="'$(VcpkgConfiguration)' == 'Debug'"
|
|
|
|
Command="powershell.exe -ExecutionPolicy Unrestricted -noprofile -File %22$(MSBuildThisFileDirectory)applocal.ps1%22 %22$(OutputPath)$(TargetName).$(OutputType)%22 %22$(VcpkgRoot)debug\bin%22 %22$(TLogLocation)$(ProjectName).write.1u.tlog%22"
|
2016-09-19 11:50:08 +08:00
|
|
|
ConsoleToMSBuild="true">
|
|
|
|
<Output TaskParameter="ConsoleOutput" ItemName="ReferenceCopyLocalPaths" />
|
|
|
|
</Exec>
|
2016-10-29 09:58:39 +08:00
|
|
|
<Exec Condition="'$(VcpkgConfiguration)' == 'Release'"
|
|
|
|
Command="powershell.exe -ExecutionPolicy Unrestricted -noprofile -File %22$(MSBuildThisFileDirectory)applocal.ps1%22 %22$(OutputPath)$(TargetName).$(OutputType)%22 %22$(VcpkgRoot)bin%22 %22$(TLogLocation)$(ProjectName).write.1u.tlog%22"
|
2016-09-19 11:50:08 +08:00
|
|
|
ConsoleToMSBuild="true">
|
|
|
|
<Output TaskParameter="ConsoleOutput" ItemName="ReferenceCopyLocalPaths" />
|
|
|
|
</Exec>
|
|
|
|
</Target>
|
|
|
|
</Project>
|