From b8401ad25b5d6c37266e7fee59c0bc201b07f388 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 4 Nov 2020 15:39:27 +0100 Subject: [PATCH] api: upgrade nci.lib and wintun-inf.h building The additional build steps performed are now attached to the build process using BeforeTargets/AfterTargets. Signed-off-by: Simon Rozman --- api/api.vcxproj | 24 ++++++++++++------- .../extract-driverver.js | 0 wintun.vcxproj | 6 ----- 3 files changed, 15 insertions(+), 15 deletions(-) rename extract-driverver.js => api/extract-driverver.js (100%) diff --git a/api/api.vcxproj b/api/api.vcxproj index f93551d..2501337 100644 --- a/api/api.vcxproj +++ b/api/api.vcxproj @@ -106,7 +106,7 @@ _WINDOWS;_USRDLL;%(PreprocessorDefinitions) HAVE_WHQL;%(PreprocessorDefinitions) /volatile:iso %(AdditionalOptions) - ..\$(Configuration)\$(WintunPlatform);..\$(Configuration);%(AdditionalIncludeDirectories) + $(IntDir);%(AdditionalIncludeDirectories) ..\$(Configuration)\$(WintunPlatform);..\$(Configuration);%(AdditionalIncludeDirectories) @@ -116,12 +116,6 @@ _M_ARM=7;%(PreprocessorDefinitions) _M_ARM64=1;%(PreprocessorDefinitions) - - cl.exe /nologo /DGENERATE_LIB /Ob0 /c /Fo"$(IntDir)nci.obj" /Tc "$(ProjectDir)nci.h" -lib.exe /def:"$(ProjectDir)nci.def" /out:"$(IntDir)nci.lib" /machine:$(PlatformTarget) /nologo "$(IntDir)nci.obj" - $(IntDir)nci.lib - $(ProjectDir)nci.def;$(ProjectDir)nci.h - bcrypt.dll;iphlpapi.dll;nci.dll;newdev.dll;version.dll Bcrypt.lib;Crypt32.lib;Cfgmgr32.lib;Iphlpapi.lib;$(IntDir)nci.lib;newdev.lib;ntdll.lib;Setupapi.lib;shlwapi.lib;version.lib;%(AdditionalDependencies) @@ -191,11 +185,23 @@ lib.exe /def:"$(ProjectDir)nci.def" /out:"$(IntDir)nci.lib" /machine:$(PlatformT $(BuildDependsOn);SignTarget - CleanSignTarget;$(CleanDependsOn) + CleanInfVersion;CleanNci;CleanSignTarget;$(CleanDependsOn) "$(SignToolPath)" sign /sha1 "$(TestCertificate)" /fd sha256 "$(TargetPath)" "$(SignToolPath)" sign /sha1 "$(ProductionCertificate)" /fd sha256 /tr "$(TimeStampServer)" /td sha256 "$(TargetPath)" - Link + + + + + + + + + + + + + diff --git a/extract-driverver.js b/api/extract-driverver.js similarity index 100% rename from extract-driverver.js rename to api/extract-driverver.js diff --git a/wintun.vcxproj b/wintun.vcxproj index af0e0c3..dbfd824 100644 --- a/wintun.vcxproj +++ b/wintun.vcxproj @@ -139,7 +139,6 @@ $(ConfigurationName)\$(WintunPlatform)\ $(ConfigurationName)\$(WintunPlatform)\ true - StampInf $(WDKContentRoot)CodeAnalysis\DriverMustFixRules.ruleset @@ -169,11 +168,6 @@ sha256 - - cscript.exe /nologo "$(ProjectDir)\extract-driverver.js" < "$(IntDir)wintun.inf" > "$(IntDir)wintun-inf.h" - $(IntDir)wintun-inf.h - $(IntDir)wintun.inf -