From aff38669771c597fbd008a7a018993f4e2814d62 Mon Sep 17 00:00:00 2001 From: JakobL-MSFT <110699333+JakobL-MSFT@users.noreply.github.com> Date: Tue, 6 Feb 2024 18:07:09 -0800 Subject: [PATCH] Simplify MSBuild Flags (#1093) * user/jakobl/simplify_flags * user/jakobl/simplify_flags * Update Build-Sample.ps1 * Merge with upcoming PR https://github.com/microsoft/Windows-driver-samples/pull/1088 * white space only change --- Build-Sample.ps1 | 3 +-- .../windows-drivertemplate-nfc.vcxproj | 12 ++++++++++++ thermal/simsensor/simsensor.vcxproj | 11 ++++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/Build-Sample.ps1 b/Build-Sample.ps1 index 4fdf93b84..0ef9d0518 100644 --- a/Build-Sample.ps1 +++ b/Build-Sample.ps1 @@ -142,8 +142,7 @@ $warnLogFilePath = "$LogFilesDirectory\$SampleName.$Configuration.$Platform.wrn" $OutLogFilePath = "$LogFilesDirectory\$SampleName.$Configuration.$Platform.out" Write-Verbose "Building Sample: $SampleName; Configuration: $Configuration; Platform: $Platform {" - -msbuild $solutionFile -clp:Verbosity=m -t:clean,build -property:Configuration=$Configuration -property:Platform=$Platform -p:TargetVersion=Windows10 -p:InfVerif_AdditionalOptions="$InfVerif_AdditionalOptions" -p:SignToolWS=/fdws -p:DriverCFlagAddOn=/wd4996 -warnaserror -flp1:errorsonly`;logfile=$errorLogFilePath -flp2:WarningsOnly`;logfile=$warnLogFilePath -noLogo > $OutLogFilePath +msbuild $solutionFile -clp:Verbosity=m -t:rebuild -property:Configuration=$Configuration -property:Platform=$Platform -p:TargetVersion=Windows10 -p:InfVerif_AdditionalOptions="$InfVerif_AdditionalOptions" -warnaserror -flp1:errorsonly`;logfile=$errorLogFilePath -flp2:WarningsOnly`;logfile=$warnLogFilePath -noLogo > $OutLogFilePath if ($env:WDS_WipeOutputs -ne $null) { Write-Verbose ("WipeOutputs: "+$Directory+" "+(((Get-Volume ($DriveLetter=(Get-Item ".").PSDrive.Name)).SizeRemaining/1GB))) diff --git a/nfc/NfcCxSample/windows-drivertemplate-nfc/windows-drivertemplate-nfc.vcxproj b/nfc/NfcCxSample/windows-drivertemplate-nfc/windows-drivertemplate-nfc.vcxproj index ce9fe362f..38113dbd6 100644 --- a/nfc/NfcCxSample/windows-drivertemplate-nfc/windows-drivertemplate-nfc.vcxproj +++ b/nfc/NfcCxSample/windows-drivertemplate-nfc/windows-drivertemplate-nfc.vcxproj @@ -78,6 +78,18 @@ true + + sha256 + + + sha256 + + + sha256 + + + sha256 + diff --git a/thermal/simsensor/simsensor.vcxproj b/thermal/simsensor/simsensor.vcxproj index a155d12a3..1d77a7de4 100644 --- a/thermal/simsensor/simsensor.vcxproj +++ b/thermal/simsensor/simsensor.vcxproj @@ -106,7 +106,7 @@ %(AdditionalIncludeDirectories);..\inc\ - SHA256 + sha256 @@ -126,6 +126,9 @@ %(PreprocessorDefinitions);DRIVER=1;STRICT=1 %(AdditionalIncludeDirectories);..\inc\ + + sha256 + @@ -144,6 +147,9 @@ %(PreprocessorDefinitions);DRIVER=1;STRICT=1 %(AdditionalIncludeDirectories);..\inc\ + + sha256 + @@ -162,6 +168,9 @@ %(PreprocessorDefinitions);DRIVER=1;STRICT=1 %(AdditionalIncludeDirectories);..\inc\ + + sha256 +