From e126e3eed74bdf4babe3b87c71b02dfe3addd8d0 Mon Sep 17 00:00:00 2001 From: "Dr. Frank Heimes" <20513035+FrankHeimes@users.noreply.github.com> Date: Thu, 19 Nov 2020 21:33:20 +0100 Subject: [vcpkg] Two bug fixes and some improvements in buildsystems/msbuild (#13755) * Use IncludePath and LibraryPath properties These tool agnostic properties allow to configure ClCompile and ResourceCompile without repeating the code. This change includes my changes from #4454. * Applied changes as described in #13753 * Fixed warning and error in vcpkg end-to-end tests * Fixed incorrect warning "we found a manifest file in \." * Fixed still failing integration test. See discussion in #13753. * Code Review Correction Removed stray double quote reported by @strega-nil * change display name Co-authored-by: Nicole Mazzuca Co-authored-by: Billy Robert O'Neal III --- scripts/buildsystems/msbuild/vcpkg-general.xml | 154 ++++++++++++------------- scripts/buildsystems/msbuild/vcpkg.props | 47 ++++---- scripts/buildsystems/msbuild/vcpkg.targets | 112 ++++++------------ 3 files changed, 134 insertions(+), 179 deletions(-) (limited to 'scripts') diff --git a/scripts/buildsystems/msbuild/vcpkg-general.xml b/scripts/buildsystems/msbuild/vcpkg-general.xml index 2638597a6..0fbe3c6ab 100644 --- a/scripts/buildsystems/msbuild/vcpkg-general.xml +++ b/scripts/buildsystems/msbuild/vcpkg-general.xml @@ -1,77 +1,77 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/buildsystems/msbuild/vcpkg.props b/scripts/buildsystems/msbuild/vcpkg.props index f9db4fc58..f9f5511f0 100644 --- a/scripts/buildsystems/msbuild/vcpkg.props +++ b/scripts/buildsystems/msbuild/vcpkg.props @@ -1,41 +1,34 @@ - - true - true - true - false - $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .vcpkg-root)) - $(Configuration) - $(VcpkgRoot)\scripts\buildsystems\msbuild\vcpkg-general.xml - + - - uwp - - - windows + + windows + uwp - - x86 - - - $(Platform) + + $(Platform) + x86 - + true + true + $(Configuration) + false + $([System.IO.Path]::Combine($(MSBuildThisFileDirectory), '..\..\..')) + + true + + false + + false true - $([MSbuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), vcpkg.json)) + $([MSbuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), vcpkg.json)) - - - $(VcpkgPlatformTarget)-$(VcpkgOSTarget) - $(VcpkgUserTriplet) - $(VcpkgRoot)\scripts\buildsystems\msbuild\vcpkg-general.xml - diff --git a/scripts/buildsystems/msbuild/vcpkg.targets b/scripts/buildsystems/msbuild/vcpkg.targets index 5013d764a..488fd070c 100644 --- a/scripts/buildsystems/msbuild/vcpkg.targets +++ b/scripts/buildsystems/msbuild/vcpkg.targets @@ -1,77 +1,35 @@ - - - - true - true - false - $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .vcpkg-root)) - $(Configuration) - $(VcpkgRoot)\scripts\buildsystems\msbuild\vcpkg-general.xml - false - true - $([MSbuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), vcpkg.json)) - - - - - uwp - - - windows - - - - - x86 - - - $(Platform) - + - - - $(VcpkgPlatformTarget)-$(VcpkgOSTarget) - $(VcpkgUserTriplet) - $(VcpkgRoot)\installed\$(VcpkgTriplet)\ - + + - - - - Project - - - - - - $(VcpkgManifestRoot)\vcpkg_installed\ - - - $(VcpkgRoot)\installed\ - + + + + + -static + $(VcpkgPlatformTarget)-$(VcpkgOSTarget)$(VcpkgLinkage) - - - $(VcpkgUserTriplet)-static - + + $([System.IO.Path]::Combine($(VcpkgRoot), 'scripts\buildsystems\msbuild\vcpkg-general.xml')) - - $(VcpkgInstalledDir)$(VcpkgTriplet) - - - + $([System.IO.Path]::Combine($(VcpkgRoot), 'installed')) + $([System.IO.Path]::Combine($(VcpkgManifestRoot), 'vcpkg_installed')) + $([System.IO.Path]::Combine($(VcpkgInstalledDir), $(VcpkgTriplet))) + $(VcpkgCurrentInstalledDir)\ Debug Release debug\ - $(VcpkgRoot)\ - $(VcpkgCurrentInstalledDir)\ - $(VcpkgManifestRoot)\ true - - false + + + + Project + + + %(AdditionalDependencies);$(VcpkgCurrentInstalledDir)$(VcpkgConfigSubdir)lib\*.lib @@ -85,28 +43,32 @@ - - - + + + - - + + - + - + - + - <_VcpkgAppLocalPowerShellCommonArguments>-ExecutionPolicy Bypass -noprofile -File "$(MSBuildThisFileDirectory)applocal.ps1" "$(TargetPath)" "$(VcpkgCurrentInstalledDir)$(VcpkgConfigSubdir)bin" "$(TLogLocation)$(ProjectName).write.1u.tlog" "$(IntDir)vcpkg.applocal.log" -- cgit v1.2.3