mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 11:39:01 +08:00
Copy DLLs for all project types.
$(TargetPath) is a simpler way of getting the primary output than assembling it from multiple variables. In addition, $(OutputType) matches $(TargetExt) only for .exe projects.
This commit is contained in:
parent
63d3c237c1
commit
c0cb3ca009
@ -41,17 +41,17 @@
|
|||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
|
||||||
<Target Name="AppLocalFromInstalled" AfterTargets="CopyFilesToOutputDirectory" BeforeTargets="CopyLocalFilesOutputGroup" Condition="'$(VcpkgEnabled)' == 'true' and '$(OutputType)' == 'exe'">
|
<Target Name="AppLocalFromInstalled" AfterTargets="CopyFilesToOutputDirectory" BeforeTargets="CopyLocalFilesOutputGroup" Condition="'$(VcpkgEnabled)' == 'true'">
|
||||||
<WriteLinesToFile
|
<WriteLinesToFile
|
||||||
File="$(TLogLocation)$(ProjectName).write.1u.tlog"
|
File="$(TLogLocation)$(ProjectName).write.1u.tlog"
|
||||||
Lines="^$(OutputPath)$(TargetName).$(OutputType);" Encoding="Unicode"/>
|
Lines="^$(OutputPath)$(TargetName).$(OutputType);" Encoding="Unicode"/>
|
||||||
<Exec Condition="'$(VcpkgConfiguration)' == 'Debug'"
|
<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"
|
Command="powershell.exe -ExecutionPolicy Unrestricted -noprofile -File %22$(MSBuildThisFileDirectory)applocal.ps1%22 %22$(TargetPath)%22 %22$(VcpkgRoot)debug\bin%22 %22$(TLogLocation)$(ProjectName).write.1u.tlog%22"
|
||||||
ConsoleToMSBuild="true">
|
ConsoleToMSBuild="true">
|
||||||
<Output TaskParameter="ConsoleOutput" ItemName="ReferenceCopyLocalPaths" />
|
<Output TaskParameter="ConsoleOutput" ItemName="ReferenceCopyLocalPaths" />
|
||||||
</Exec>
|
</Exec>
|
||||||
<Exec Condition="'$(VcpkgConfiguration)' == 'Release'"
|
<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"
|
Command="powershell.exe -ExecutionPolicy Unrestricted -noprofile -File %22$(MSBuildThisFileDirectory)applocal.ps1%22 %22$(TargetPath)%22 %22$(VcpkgRoot)bin%22 %22$(TLogLocation)$(ProjectName).write.1u.tlog%22"
|
||||||
ConsoleToMSBuild="true">
|
ConsoleToMSBuild="true">
|
||||||
<Output TaskParameter="ConsoleOutput" ItemName="ReferenceCopyLocalPaths" />
|
<Output TaskParameter="ConsoleOutput" ItemName="ReferenceCopyLocalPaths" />
|
||||||
</Exec>
|
</Exec>
|
||||||
|
Loading…
Reference in New Issue
Block a user