[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/2] XenVif: Added MSBuild map file generation and handling.
Suggested-by: Alex Burke <Alex.Burke@xxxxxxxxx> Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx> --- build.ps1 | 8 ++++++++ vs2019/xenvif/xenvif.vcxproj | 2 ++ vs2022/xenvif/xenvif.vcxproj | 2 ++ 3 files changed, 12 insertions(+) diff --git a/build.ps1 b/build.ps1 index 4ff02c1..4606ded 100644 --- a/build.ps1 +++ b/build.ps1 @@ -14,6 +14,7 @@ param( # # Script Body # +$TargetPath = "xenvif" Function Build { param( @@ -37,6 +38,13 @@ Function Build { Write-Host -ForegroundColor Red "ERROR: Build failed, code:" $LASTEXITCODE Exit $LASTEXITCODE } + # Find and Move map files + foreach ($item in Get-ChildItem -Path $solutiondir[$visualstudioversion] -Include *.map -Recurse) + { + $filename = Split-Path -Path $item -Leaf -Resolve + $newpath = "$TargetPath\$Arch\$filename" + Move-Item $item -Destination $newpath -Force + } } Function SdvBuild { diff --git a/vs2019/xenvif/xenvif.vcxproj b/vs2019/xenvif/xenvif.vcxproj index d070a03..582256d 100644 --- a/vs2019/xenvif/xenvif.vcxproj +++ b/vs2019/xenvif/xenvif.vcxproj @@ -34,6 +34,8 @@ <AdditionalDependencies>$(DDK_LIB_PATH)/Rtlver.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;$(DDK_LIB_PATH)/ksecdd.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies)</AdditionalDependencies> <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> diff --git a/vs2022/xenvif/xenvif.vcxproj b/vs2022/xenvif/xenvif.vcxproj index 85c0a05..9b787c6 100644 --- a/vs2022/xenvif/xenvif.vcxproj +++ b/vs2022/xenvif/xenvif.vcxproj @@ -34,6 +34,8 @@ <AdditionalDependencies>$(DDK_LIB_PATH)/Rtlver.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;$(DDK_LIB_PATH)/ksecdd.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies)</AdditionalDependencies> <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> -- 2.41.0.windows.3
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |