mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 19:42:46 +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"
|
Write-Verbose "Placing vcpkg.exe in the correct location"
|
||||||
|
|
||||||
Copy-Item "$vcpkgReleaseDir\vcpkg.exe" "$vcpkgRootDir\vcpkg.exe"
|
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
|
Remove-Item "$vcpkgReleaseDir" -Force -Recurse -ErrorAction SilentlyContinue
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectFile Include="vcpkglib\vcpkglib.vcxproj"/>
|
<ProjectFile Include="vcpkglib\vcpkglib.vcxproj"/>
|
||||||
<ProjectFile Include="vcpkg\vcpkg.vcxproj"/>
|
<ProjectFile Include="vcpkg\vcpkg.vcxproj"/>
|
||||||
<ProjectFile Include="vcpkgmetricsuploader\vcpkgmetricsuploader.vcxproj"/>
|
<ProjectFile Include="vcpkgmetricsuploader\vcpkgmetricsuploader.vcxproj" Condition="'$(DISABLE_METRICS)'!='1'"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
|
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
|
||||||
|
Loading…
Reference in New Issue
Block a user