mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[vcpkg] msbuild: do not build vcpkgmetricsuploader when -disableMetrics (#11368)
This commit is contained in:
parent
9f516b9347
commit
47e9a1d1c1
@ -426,5 +426,10 @@ Read more about vcpkg telemetry at docs/about/privacy.md
|
||||
Write-Verbose "Placing vcpkg.exe in the correct location"
|
||||
|
||||
Copy-Item "$vcpkgReleaseDir\vcpkg.exe" "$vcpkgRootDir\vcpkg.exe"
|
||||
Copy-Item "$vcpkgReleaseDir\vcpkgmetricsuploader.exe" "$vcpkgRootDir\scripts\vcpkgmetricsuploader.exe"
|
||||
|
||||
if (-not $disableMetrics)
|
||||
{
|
||||
Copy-Item "$vcpkgReleaseDir\vcpkgmetricsuploader.exe" "$vcpkgRootDir\scripts\vcpkgmetricsuploader.exe"
|
||||
}
|
||||
|
||||
Remove-Item "$vcpkgReleaseDir" -Force -Recurse -ErrorAction SilentlyContinue
|
||||
|
@ -5,7 +5,7 @@
|
||||
<ItemGroup>
|
||||
<ProjectFile Include="vcpkglib\vcpkglib.vcxproj"/>
|
||||
<ProjectFile Include="vcpkg\vcpkg.vcxproj"/>
|
||||
<ProjectFile Include="vcpkgmetricsuploader\vcpkgmetricsuploader.vcxproj"/>
|
||||
<ProjectFile Include="vcpkgmetricsuploader\vcpkgmetricsuploader.vcxproj" Condition="'$(DISABLE_METRICS)'!='1'"/>
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user