From b79703bba8e6140d82114952c420f4a5e60993f8 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 16 Oct 2020 11:14:51 +0200 Subject: [PATCH] vcxproj: swap configuration and platform subfolder hierarchy This should allow wintun.dll to simplify referencing same configuration but different platform wintun.dll for WoW64 support. Signed-off-by: Simon Rozman --- .gitignore | 16 ++++++++-------- api/api.vcxproj | 10 +++++----- installer/installer.vcxproj | 14 +++++++------- wintun.proj | 18 +++++++++--------- wintun.vcxproj | 4 ++-- 5 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index d7468b9..2ee60cd 100644 --- a/.gitignore +++ b/.gitignore @@ -4,14 +4,14 @@ # Build Output /dist -/amd64/Debug -/amd64/Release -/arm/Debug -/arm/Release -/arm64/Debug -/arm64/Release -/x86/Debug -/x86/Release +/Debug/amd64 +/Debug/arm +/Debug/arm64 +/Debug/x86 +/Release/amd64 +/Release/arm +/Release/arm64 +/Release/x86 # Static Driver Verifier Output /sdv diff --git a/api/api.vcxproj b/api/api.vcxproj index b65726f..71cfd66 100644 --- a/api/api.vcxproj +++ b/api/api.vcxproj @@ -134,8 +134,8 @@ - ..\$(WintunPlatform)\$(Configuration)\ - ..\$(WintunPlatform)\$(Configuration)\$(ProjectName)-intermediate\ + ..\$(Configuration)\$(WintunPlatform)\ + ..\$(Configuration)\$(WintunPlatform)\$(ProjectName)-intermediate\ wintun NativeRecommendedRules.ruleset true @@ -144,14 +144,14 @@ _WINDOWS;_USRDLL;%(PreprocessorDefinitions) HAVE_EV;%(PreprocessorDefinitions) - HAVE_WHQL;%(PreprocessorDefinitions) + HAVE_WHQL;%(PreprocessorDefinitions) Use pch.h - ..\$(WintunPlatform)\$(Configuration);%(AdditionalIncludeDirectories) + ..\$(Configuration)\$(WintunPlatform);%(AdditionalIncludeDirectories) HAVE_EV;%(PreprocessorDefinitions) - HAVE_WHQL;%(PreprocessorDefinitions) + HAVE_WHQL;%(PreprocessorDefinitions) Bcrypt.lib;Cfgmgr32.lib;Crypt32.lib;Iphlpapi.lib;newdev.lib;ntdll.lib;Setupapi.lib;shlwapi.lib;%(AdditionalDependencies) diff --git a/installer/installer.vcxproj b/installer/installer.vcxproj index 582a1b1..b00a2e7 100644 --- a/installer/installer.vcxproj +++ b/installer/installer.vcxproj @@ -110,8 +110,8 @@ 500 - ..\$(WintunPlatform)\$(Configuration)\ - ..\$(WintunPlatform)\$(Configuration)\$(ProjectName)-intermediate\ + ..\$(Configuration)\$(WintunPlatform)\ + ..\$(Configuration)\$(WintunPlatform)\$(ProjectName)-intermediate\ NativeRecommendedRules.ruleset true rundll32.exe @@ -122,8 +122,8 @@ arm64 $(WixCandleFlags) -nologo -arch $(WixArch) -dWINTUN_PLATFORM=$(WintunPlatform) -dWINTUN_VERSION=$(WintunVersion) -dINSTALLER_VERSION_MIN=$(InstallerVersionMin) -sw1086 $(WixLightFlags) -nologo -b output_dir="$(OutDir.TrimEnd('\'))" -spdb -sw1076 -sw1079 - $(WixLightFlags) -b output_dir_wow64="..\x86\$(Configuration)" - $(WixLightFlags) -b output_dir_wow64="..\arm\$(Configuration)" + $(WixLightFlags) -b output_dir_wow64="..\$(Configuration)\x86" + $(WixLightFlags) -b output_dir_wow64="..\$(Configuration)\arm" $(OutDir) wintun .msm @@ -136,12 +136,12 @@ _WINDOWS;_USRDLL;%(PreprocessorDefinitions) HAVE_EV;%(PreprocessorDefinitions) - HAVE_WHQL;%(PreprocessorDefinitions) + HAVE_WHQL;%(PreprocessorDefinitions) - ..\$(WintunPlatform)\$(Configuration);%(AdditionalIncludeDirectories) + ..\$(Configuration)\$(WintunPlatform);%(AdditionalIncludeDirectories) HAVE_EV;%(PreprocessorDefinitions) - HAVE_WHQL;%(PreprocessorDefinitions) + HAVE_WHQL;%(PreprocessorDefinitions) exports.def diff --git a/wintun.proj b/wintun.proj index 918c241..1cae706 100644 --- a/wintun.proj +++ b/wintun.proj @@ -15,10 +15,10 @@ - - - - + + + + @@ -33,17 +33,17 @@ atomic.h;undocumented.h;wintun.c;wintun.inf;wintun.props;wintun.rc;wintun.vcxproj;$(DriverInputs) @@ -51,7 +51,7 @@ - + @@ -63,7 +63,7 @@ --> + Inputs="$(SDVDir)SDV.DVL.xml;Release\amd64\vc.nativecodeanalysis.all.xml"> diff --git a/wintun.vcxproj b/wintun.vcxproj index abe4a17..f968c6b 100644 --- a/wintun.vcxproj +++ b/wintun.vcxproj @@ -106,8 +106,8 @@ <_ProjectFileVersion>15.0.28127.55 - $(WintunPlatform)\$(ConfigurationName)\ - $(WintunPlatform)\$(ConfigurationName)\ + $(ConfigurationName)\$(WintunPlatform)\ + $(ConfigurationName)\$(WintunPlatform)\ true