driver: workaround SDV failure with code analysis
SDV is using own CL.EXE which returns error code 2 when code analysis is turned on. However, we need code analysis results for DVL. While we could use a new "ReleaseSDV" configuration, we don't really require limited code analysis in Release builds, as long as we address all full code analysis warnings in Debug builds. To make DVL happier, an intermediate Release build was injected with code analysis turned on. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
899e085a91
commit
7de5d2e6c8
@ -79,19 +79,20 @@
|
|||||||
<_ProjectFileVersion>15.0.28127.55</_ProjectFileVersion>
|
<_ProjectFileVersion>15.0.28127.55</_ProjectFileVersion>
|
||||||
<IntDir>..\$(Configuration)\$(WintunPlatform)\$(ProjectName)-intermediate\</IntDir>
|
<IntDir>..\$(Configuration)\$(WintunPlatform)\$(ProjectName)-intermediate\</IntDir>
|
||||||
<OutDir>..\$(ConfigurationName)\$(WintunPlatform)\</OutDir>
|
<OutDir>..\$(ConfigurationName)\$(WintunPlatform)\</OutDir>
|
||||||
<RunCodeAnalysis>true</RunCodeAnalysis>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
|
||||||
<CodeAnalysisRuleSet>$(WDKContentRoot)CodeAnalysis\DriverMustFixRules.ruleset</CodeAnalysisRuleSet>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
||||||
|
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(RunCodeAnalysis)'=='true'">
|
||||||
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<ClCompile>
|
||||||
|
<EnablePREfast>true</EnablePREfast>
|
||||||
|
</ClCompile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PreprocessorDefinitions>NDIS_MINIPORT_DRIVER=1;NDIS620_MINIPORT=1;NDIS683_MINIPORT=1;NDIS_WDM=1;POOL_ZERO_DOWN_LEVEL_SUPPORT;POOL_NX_OPTIN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDIS_MINIPORT_DRIVER=1;NDIS620_MINIPORT=1;NDIS683_MINIPORT=1;NDIS_WDM=1;POOL_ZERO_DOWN_LEVEL_SUPPORT;POOL_NX_OPTIN=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<AdditionalOptions>/volatile:iso %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/volatile:iso %(AdditionalOptions)</AdditionalOptions>
|
||||||
<EnablePREfast>true</EnablePREfast>
|
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<PreprocessorDefinitions>NDIS_MINIPORT_DRIVER=1;NDIS620_MINIPORT=1;NDIS683_MINIPORT=1;NDIS_WDM=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDIS_MINIPORT_DRIVER=1;NDIS620_MINIPORT=1;NDIS683_MINIPORT=1;NDIS_WDM=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
<!--
|
<!--
|
||||||
Static Driver Verifier
|
Static Driver Verifier
|
||||||
-->
|
-->
|
||||||
<Target Name="SDV" Outputs="driver\sdv\SDV.DVL.xml;$(Configuration)\amd64\wintun-intermediate\vc.nativecodeanalysis.all.xml">
|
<Target Name="SDV" Outputs="driver\sdv\SDV.DVL.xml">
|
||||||
<Exec WorkingDirectory="driver" Command="msbuild.exe driver.vcxproj /t:sdv /p:Inputs=/check:*;Configuration=$(Configuration);Platform=x64 /nologo" />
|
<Exec WorkingDirectory="driver" Command="msbuild.exe driver.vcxproj /t:sdv /p:Inputs=/check:*;Configuration=$(Configuration);Platform=x64 /nologo" />
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="SDVView">
|
<Target Name="SDVView">
|
||||||
@ -69,7 +69,8 @@
|
|||||||
-->
|
-->
|
||||||
<Target Name="DVL" DependsOnTargets="SDV"
|
<Target Name="DVL" DependsOnTargets="SDV"
|
||||||
Outputs="driver\wintun.DVL.XML"
|
Outputs="driver\wintun.DVL.XML"
|
||||||
Inputs="driver\sdv\SDV.DVL.xml;$(Configuration)\amd64\wintun-intermediate\vc.nativecodeanalysis.all.xml">
|
Inputs="driver\sdv\SDV.DVL.xml">
|
||||||
|
<MSBuild Projects="driver\driver.vcxproj" Targets="Build" Properties="Configuration=$(Configuration);Platform=x64;RunCodeAnalysis=true" />
|
||||||
<Exec WorkingDirectory="driver" Command="msbuild.exe driver.vcxproj /t:dvl /p:Configuration=$(Configuration);Platform=x64 /nologo" />
|
<Exec WorkingDirectory="driver" Command="msbuild.exe driver.vcxproj /t:dvl /p:Configuration=$(Configuration);Platform=x64 /nologo" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user