From 8d7cd1d09ee522fc29f02b27fa93808edc66682a Mon Sep 17 00:00:00 2001 From: nicole mazzuca Date: Wed, 10 Feb 2021 16:22:33 -0800 Subject: [vcpkg integrate install] Allow setting the vcpkg installed dir (#16173) * [vcpkg integrate install] Allow setting the vcpkg installed dir * fix the cache-y thing * robert crs --- scripts/buildsystems/msbuild/vcpkg-general.xml | 7 ++---- scripts/buildsystems/msbuild/vcpkg.targets | 34 ++++++++++++++------------ 2 files changed, 21 insertions(+), 20 deletions(-) (limited to 'scripts/buildsystems') diff --git a/scripts/buildsystems/msbuild/vcpkg-general.xml b/scripts/buildsystems/msbuild/vcpkg-general.xml index 0c32c4a84..49865e74e 100644 --- a/scripts/buildsystems/msbuild/vcpkg-general.xml +++ b/scripts/buildsystems/msbuild/vcpkg-general.xml @@ -55,11 +55,8 @@ - - - - + + @@ -18,12 +18,12 @@ $(VcpkgRoot)\ $(VcpkgManifestRoot)\ - $([System.IO.Path]::Combine($(VcpkgRoot), 'installed')) - $([System.IO.Path]::Combine($(VcpkgManifestRoot), 'vcpkg_installed')) + $([System.IO.Path]::Combine($(VcpkgRoot), 'installed')) + $([System.IO.Path]::Combine($(VcpkgManifestRoot), 'vcpkg_installed')) $(VcpkgInstalledDir)\ - $([System.IO.Path]::Combine($(VcpkgInstalledDir), $(VcpkgTriplet))) - $(VcpkgCurrentInstalledDir)\ + <_ZVcpkgCurrentInstalledDir>$([System.IO.Path]::Combine($(VcpkgInstalledDir), $(VcpkgTriplet))) + <_ZVcpkgCurrentInstalledDir Condition="!$(_ZVcpkgCurrentInstalledDir.EndsWith('\'))">$(_ZVcpkgCurrentInstalledDir)\ Debug Release @@ -42,14 +42,14 @@ - %(AdditionalDependencies);$(VcpkgCurrentInstalledDir)$(VcpkgConfigSubdir)lib\*.lib - %(AdditionalLibraryDirectories);$(VcpkgCurrentInstalledDir)$(VcpkgConfigSubdir)lib;$(VcpkgCurrentInstalledDir)$(VcpkgConfigSubdir)lib\manual-link + %(AdditionalDependencies);$(_ZVcpkgCurrentInstalledDir)$(VcpkgConfigSubdir)lib\*.lib + %(AdditionalLibraryDirectories);$(_ZVcpkgCurrentInstalledDir)$(VcpkgConfigSubdir)lib;$(_ZVcpkgCurrentInstalledDir)$(VcpkgConfigSubdir)lib\manual-link - %(AdditionalIncludeDirectories);$(VcpkgCurrentInstalledDir)include + %(AdditionalIncludeDirectories);$(_ZVcpkgCurrentInstalledDir)include - %(AdditionalIncludeDirectories);$(VcpkgCurrentInstalledDir)include + %(AdditionalIncludeDirectories);$(_ZVcpkgCurrentInstalledDir)include @@ -61,7 +61,7 @@ - @@ -70,26 +70,30 @@ - <_VcpkgInstallManifestDependenciesInputs Include="$(VcpkgManifestRoot)vcpkg.json"/> - <_VcpkgInstallManifestDependenciesInputs Include="$(VcpkgManifestRoot)vcpkg-configuration.json" Condition="Exists('$(VcpkgManifestRoot)vcpkg-configuration.json')"/> + <_ZVcpkgInstallManifestDependenciesInputs Include="$(VcpkgManifestRoot)vcpkg.json"/> + <_ZVcpkgInstallManifestDependenciesInputs Include="$(VcpkgManifestRoot)vcpkg-configuration.json" Condition="Exists('$(VcpkgManifestRoot)vcpkg-configuration.json')"/> + Inputs="@(_ZVcpkgInstallManifestDependenciesInputs)" + Outputs="$(TLogLocation)VcpkgInstallManifest$(VcpkgTriplet).read.1u.tlog;$(VcpkgInstalledDir).msbuildstamp-$(VcpkgTriplet)"> <_VcpkgItemToDelete Include="$(TLogLocation)VcpkgInstallManifest*.read.1u.tlog" /> + <_VcpkgItemToDelete Include="$(VcpkgInstalledDir).msbuildstamp-*" /> + + @@ -100,7 +104,7 @@ Condition="'$(VcpkgEnabled)' == 'true' and '$(VcpkgApplocalDeps)' == 'true' and '$(LinkSkippedExecution)' != 'true'"> - <_VcpkgAppLocalPowerShellCommonArguments>-ExecutionPolicy Bypass -noprofile -File "$(MSBuildThisFileDirectory)applocal.ps1" "$(TargetPath)" "$(VcpkgCurrentInstalledDir)$(VcpkgConfigSubdir)bin" "$(TLogLocation)$(ProjectName).write.1u.tlog" "$(IntDir)vcpkg.applocal.log" + <_VcpkgAppLocalPowerShellCommonArguments>-ExecutionPolicy Bypass -noprofile -File "$(MSBuildThisFileDirectory)applocal.ps1" "$(TargetPath)" "$(_ZVcpkgCurrentInstalledDir)$(VcpkgConfigSubdir)bin" "$(TLogLocation)$(ProjectName).write.1u.tlog" "$(IntDir)vcpkg.applocal.log"