diff options
author | Simon Rozman <simon@rozman.si> | 2019-04-12 09:04:49 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-04-12 15:35:38 +0200 |
commit | 4eb3c1f7c0399271f7e7b3cc9067553d4cdef745 (patch) | |
tree | d84ce53f14da5c37970ca0ca36e715a903540478 /wintun.vcxproj | |
parent | Set UseDebugLibraries to true for debug driver builds (diff) | |
download | wintun-4eb3c1f7c0399271f7e7b3cc9067553d4cdef745.tar.xz wintun-4eb3c1f7c0399271f7e7b3cc9067553d4cdef745.zip |
Enable code analysis on Release build and set it to DriverMustFixRules
Wintun will need to deliver code analysis results of Release build to
WHLK.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'wintun.vcxproj')
-rw-r--r-- | wintun.vcxproj | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/wintun.vcxproj b/wintun.vcxproj index 94a3a7f..554fba2 100644 --- a/wintun.vcxproj +++ b/wintun.vcxproj @@ -82,12 +82,18 @@ <PropertyGroup> <_ProjectFileVersion>15.0.28127.55</_ProjectFileVersion> </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <RunCodeAnalysis>true</RunCodeAnalysis> + <CodeAnalysisRuleSet>$(WDKContentRoot)CodeAnalysis\DriverMustFixRules.ruleset</CodeAnalysisRuleSet> + </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <RunCodeAnalysis>true</RunCodeAnalysis> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <RunCodeAnalysis>true</RunCodeAnalysis> + <CodeAnalysisRuleSet>$(WDKContentRoot)CodeAnalysis\DriverMustFixRules.ruleset</CodeAnalysisRuleSet> + </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <RunCodeAnalysis>true</RunCodeAnalysis> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> @@ -96,6 +102,7 @@ <ClCompile> <PreprocessorDefinitions>WINTUN_VERSION_MAJ=$(WintunVersionMaj);WINTUN_VERSION_MIN=$(WintunVersionMin);WINTUN_VERSION_REV=$(WintunVersionRev);WINTUN_VERSION_BUILD=$(WintunVersionBuild);WINTUN_VERSION_STR="$(WintunVersionStr)";%(PreprocessorDefinitions)</PreprocessorDefinitions> <WarningLevel>Level4</WarningLevel> + <EnablePREfast>true</EnablePREfast> </ClCompile> <ResourceCompile> <PreprocessorDefinitions>WINTUN_VERSION_MAJ=$(WintunVersionMaj);WINTUN_VERSION_MIN=$(WintunVersionMin);WINTUN_VERSION_REV=$(WintunVersionRev);WINTUN_VERSION_BUILD=$(WintunVersionBuild);WINTUN_VERSION_STR="$(WintunVersionStr)";%(PreprocessorDefinitions)</PreprocessorDefinitions> @@ -134,6 +141,7 @@ <ClCompile> <PreprocessorDefinitions>WINTUN_VERSION_MAJ=$(WintunVersionMaj);WINTUN_VERSION_MIN=$(WintunVersionMin);WINTUN_VERSION_REV=$(WintunVersionRev);WINTUN_VERSION_BUILD=$(WintunVersionBuild);WINTUN_VERSION_STR="$(WintunVersionStr)";%(PreprocessorDefinitions)</PreprocessorDefinitions> <WarningLevel>Level4</WarningLevel> + <EnablePREfast>true</EnablePREfast> </ClCompile> <ResourceCompile> <PreprocessorDefinitions>WINTUN_VERSION_MAJ=$(WintunVersionMaj);WINTUN_VERSION_MIN=$(WintunVersionMin);WINTUN_VERSION_REV=$(WintunVersionRev);WINTUN_VERSION_BUILD=$(WintunVersionBuild);WINTUN_VERSION_STR="$(WintunVersionStr)";%(PreprocessorDefinitions)</PreprocessorDefinitions> |