[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/2] Added MSBuild map file generation and handling.
Suggested-by: Alex Burke <Alex.Burke@xxxxxxxxxx> Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx> --- build.ps1 | 8 ++++++++ vs2019/xen/xen.vcxproj | 2 ++ vs2019/xenbus/xenbus.vcxproj | 2 ++ vs2019/xenbus_monitor/xenbus_monitor.vcxproj | 2 ++ vs2019/xenfilt/xenfilt.vcxproj | 2 ++ vs2022/xen/xen.vcxproj | 2 ++ vs2022/xenbus/xenbus.vcxproj | 2 ++ vs2022/xenbus_monitor/xenbus_monitor.vcxproj | 2 ++ vs2022/xenfilt/xenfilt.vcxproj | 2 ++ 9 files changed, 24 insertions(+) diff --git a/build.ps1 b/build.ps1 index 4ff02c1..38f8386 100644 --- a/build.ps1 +++ b/build.ps1 @@ -14,6 +14,7 @@ param( # # Script Body # +$TargetPath = "xenbus" 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/xen/xen.vcxproj b/vs2019/xen/xen.vcxproj index a2e3370..221dafd 100644 --- a/vs2019/xen/xen.vcxproj +++ b/vs2019/xen/xen.vcxproj @@ -36,6 +36,8 @@ <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <ModuleDefinitionFile>../../src/xen/xen.def</ModuleDefinitionFile> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> diff --git a/vs2019/xenbus/xenbus.vcxproj b/vs2019/xenbus/xenbus.vcxproj index a82f825..4f2ed69 100644 --- a/vs2019/xenbus/xenbus.vcxproj +++ b/vs2019/xenbus/xenbus.vcxproj @@ -34,6 +34,8 @@ <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;$(DDK_LIB_PATH)/rtlver.lib;%(AdditionalDependencies)</AdditionalDependencies> <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> diff --git a/vs2019/xenbus_monitor/xenbus_monitor.vcxproj b/vs2019/xenbus_monitor/xenbus_monitor.vcxproj index 54272ec..d98a059 100644 --- a/vs2019/xenbus_monitor/xenbus_monitor.vcxproj +++ b/vs2019/xenbus_monitor/xenbus_monitor.vcxproj @@ -36,6 +36,8 @@ <Link> <AdditionalDependencies>wtsapi32.lib;cfgmgr32.lib;%(AdditionalDependencies)</AdditionalDependencies> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <ResourceCompile> <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> diff --git a/vs2019/xenfilt/xenfilt.vcxproj b/vs2019/xenfilt/xenfilt.vcxproj index 3f0b538..9507ca6 100644 --- a/vs2019/xenfilt/xenfilt.vcxproj +++ b/vs2019/xenfilt/xenfilt.vcxproj @@ -34,6 +34,8 @@ <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.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/xen/xen.vcxproj b/vs2022/xen/xen.vcxproj index 91938c0..e6aa66c 100644 --- a/vs2022/xen/xen.vcxproj +++ b/vs2022/xen/xen.vcxproj @@ -36,6 +36,8 @@ <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <ModuleDefinitionFile>../../src/xen/xen.def</ModuleDefinitionFile> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> diff --git a/vs2022/xenbus/xenbus.vcxproj b/vs2022/xenbus/xenbus.vcxproj index 6b86f2d..b1c5816 100644 --- a/vs2022/xenbus/xenbus.vcxproj +++ b/vs2022/xenbus/xenbus.vcxproj @@ -34,6 +34,8 @@ <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;$(DDK_LIB_PATH)/rtlver.lib;%(AdditionalDependencies)</AdditionalDependencies> <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <DriverSign> <FileDigestAlgorithm>sha256</FileDigestAlgorithm> diff --git a/vs2022/xenbus_monitor/xenbus_monitor.vcxproj b/vs2022/xenbus_monitor/xenbus_monitor.vcxproj index 60d2c05..198a03c 100644 --- a/vs2022/xenbus_monitor/xenbus_monitor.vcxproj +++ b/vs2022/xenbus_monitor/xenbus_monitor.vcxproj @@ -36,6 +36,8 @@ <Link> <AdditionalDependencies>wtsapi32.lib;cfgmgr32.lib;%(AdditionalDependencies)</AdditionalDependencies> <CETCompat>true</CETCompat> + <GenerateMapFile>true</GenerateMapFile> + <MapExports>true</MapExports> </Link> <ResourceCompile> <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> diff --git a/vs2022/xenfilt/xenfilt.vcxproj b/vs2022/xenfilt/xenfilt.vcxproj index 72558c7..029fda2 100644 --- a/vs2022/xenfilt/xenfilt.vcxproj +++ b/vs2022/xenfilt/xenfilt.vcxproj @@ -34,6 +34,8 @@ <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.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 |