aboutsummaryrefslogtreecommitdiffstats
path: root/api/api.vcxproj
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-10-31 12:34:01 +0100
committerSimon Rozman <simon@rozman.si>2020-10-31 19:11:51 +0100
commit62f21f2fdd7001612dc42336dc03ab1bdf4b7ca0 (patch)
tree694a16c7da3d1ba316d438a2e9dd2a5601a1af42 /api/api.vcxproj
parentBump date headers (diff)
downloadwintun-62f21f2fdd7001612dc42336dc03ab1bdf4b7ca0.tar.xz
wintun-62f21f2fdd7001612dc42336dc03ab1bdf4b7ca0.zip
api: link to nci.dll at compile time
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/api.vcxproj')
-rw-r--r--api/api.vcxproj9
1 files changed, 6 insertions, 3 deletions
diff --git a/api/api.vcxproj b/api/api.vcxproj
index 0883de8..b93990d 100644
--- a/api/api.vcxproj
+++ b/api/api.vcxproj
@@ -114,9 +114,12 @@
<PreprocessorDefinitions Condition="'$(Platform)'=='ARM'">_M_ARM=7;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Platform)'=='ARM64'">_M_ARM64=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
+ <PreLinkEvent>
+ <Command>lib.exe /def:nci.def /out:"$(IntDir)nci.lib" /machine:$(PlatformTarget) /nologo</Command>
+ </PreLinkEvent>
<Link>
- <DelayLoadDLLs>bcrypt.dll;iphlpapi.dll;newdev.dll;version.dll</DelayLoadDLLs>
- <AdditionalDependencies>Bcrypt.lib;Crypt32.lib;Cfgmgr32.lib;Iphlpapi.lib;newdev.lib;ntdll.lib;Setupapi.lib;shlwapi.lib;version.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <DelayLoadDLLs>bcrypt.dll;iphlpapi.dll;nci.dll;newdev.dll;version.dll</DelayLoadDLLs>
+ <AdditionalDependencies>Bcrypt.lib;Crypt32.lib;Cfgmgr32.lib;Iphlpapi.lib;$(IntDir)nci.lib;newdev.lib;ntdll.lib;Setupapi.lib;shlwapi.lib;version.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ModuleDefinitionFile>exports.def</ModuleDefinitionFile>
<SubSystem>Windows</SubSystem>
</Link>
@@ -149,6 +152,7 @@
</ItemGroup>
<ItemGroup>
<None Include="exports.def" />
+ <None Include="nci.def" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="entry.h" />
@@ -168,7 +172,6 @@
<ClCompile Include="elevate.c" />
<ClCompile Include="logger.c" />
<ClCompile Include="namespace.c" />
- <ClCompile Include="nci.c" />
<ClCompile Include="registry.c" />
<ClCompile Include="resource.c" />
<ClCompile Include="session.c" />