2020-07-03 12:26:06 +02:00
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets= "Build" ToolsVersion= "15.0" xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" >
<PropertyGroup Label= "Globals" >
<ProjectGuid > {897F02E3-3EAA-40AF-A6DC-17EB2376EDAF}</ProjectGuid>
<RootNamespace > api</RootNamespace>
<ProjectName > api</ProjectName>
</PropertyGroup>
2020-10-31 01:42:01 +01:00
<PropertyGroup Label= "Configuration" >
2020-07-03 12:26:06 +02:00
<ConfigurationType > DynamicLibrary</ConfigurationType>
2021-07-23 18:19:00 +02:00
<PlatformToolset > WindowsApplicationForDrivers10.0</PlatformToolset>
</PropertyGroup>
2021-07-28 13:50:40 +02:00
<Import Project= "..\wintun.props" />
2020-07-03 12:26:06 +02:00
<PropertyGroup >
<TargetName > wintun</TargetName>
2020-10-31 19:12:39 +01:00
<IgnoreImportLibrary > true</IgnoreImportLibrary>
2020-07-03 12:26:06 +02:00
</PropertyGroup>
<ItemDefinitionGroup >
<ClCompile >
<PreprocessorDefinitions > _WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
2021-07-28 13:50:40 +02:00
<PreprocessorDefinitions Condition= "'$(Platform)'=='Win32'" > MAYBE_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
2021-10-12 07:21:31 +02:00
<PreprocessorDefinitions Condition= "'$(Platform)'=='x64'" > MAYBE_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
2021-07-28 13:50:40 +02:00
<PreprocessorDefinitions Condition= "'$(Platform)'=='ARM'" > MAYBE_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
2021-10-12 07:21:31 +02:00
<PreprocessorDefinitions Condition= "'$(Platform)'=='ARM64'" > %(PreprocessorDefinitions)</PreprocessorDefinitions>
2020-10-30 16:58:50 +01:00
<AdditionalOptions > /volatile:iso %(AdditionalOptions)</AdditionalOptions>
2021-07-28 13:50:40 +02:00
<DisableSpecificWarnings > 4100;4201;$(DisableSpecificWarnings)</DisableSpecificWarnings>
2020-11-04 15:39:27 +01:00
<AdditionalIncludeDirectories > $(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
2020-07-03 12:26:06 +02:00
</ClCompile>
<ResourceCompile >
2020-10-16 13:30:51 +02:00
<AdditionalIncludeDirectories > ..\$(Configuration)\$(WintunPlatform);..\$(Configuration);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
2021-10-12 07:21:31 +02:00
<PreprocessorDefinitions Condition= "Exists('..\$(Configuration)\arm64\driver\wintun.sys') And Exists('..\$(Configuration)\arm64\setupapihost.dll')" > BUILT_ARM64_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition= "Exists('..\$(Configuration)\amd64\driver\wintun.sys') And Exists('..\$(Configuration)\amd64\setupapihost.dll')" > BUILT_AMD64_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
2021-07-28 13:50:40 +02:00
<PreprocessorDefinitions Condition= "'$(Platform)'=='Win32'" > WANT_ARM64_WOW64;WANT_AMD64_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition= "'$(Platform)'=='x64'" > WANT_ARM64_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition= "'$(Platform)'=='ARM'" > WANT_ARM64_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
2020-07-03 12:26:06 +02:00
</ResourceCompile>
<Link >
2021-10-12 07:21:31 +02:00
<DelayLoadDLLs > advapi32.dll;api-ms-win-devices-query-l1-1-0.dll;api-ms-win-devices-swdevice-l1-1-0.dll;cfgmgr32.dll;iphlpapi.dll;ole32.dll;nci.dll;setupapi.dll;shlwapi.dll;version.dll</DelayLoadDLLs>
<DelayLoadDLLs Condition= "'$(Platform)'!='ARM64'" > shell32.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
<AdditionalDependencies > Cfgmgr32.lib;Iphlpapi.lib;onecore.lib;$(IntDir)nci.lib;ntdll.lib;Setupapi.lib;shlwapi.lib;swdevice.lib;version.lib;%(AdditionalDependencies)</AdditionalDependencies>
2020-07-03 12:26:06 +02:00
<ModuleDefinitionFile > exports.def</ModuleDefinitionFile>
<SubSystem > Windows</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemGroup >
<ResourceCompile Include= "resources.rc" />
</ItemGroup>
<ItemGroup >
<None Include= "exports.def" />
2020-10-31 12:34:01 +01:00
<None Include= "nci.def" />
2020-07-03 12:26:06 +02:00
</ItemGroup>
<ItemGroup >
2021-10-12 07:21:31 +02:00
<ClInclude Include= "adapter_win7.h" />
2021-07-28 13:50:40 +02:00
<ClInclude Include= "main.h" />
2020-10-15 11:32:06 +02:00
<ClInclude Include= "adapter.h" />
2021-10-12 07:21:31 +02:00
<ClInclude Include= "driver.h" />
2020-10-13 19:40:52 +02:00
<ClInclude Include= "logger.h" />
2020-07-29 10:10:42 +02:00
<ClInclude Include= "namespace.h" />
<ClInclude Include= "nci.h" />
2020-11-03 15:28:17 +01:00
<ClInclude Include= "ntdll.h" />
2020-07-29 10:10:42 +02:00
<ClInclude Include= "registry.h" />
2020-10-13 19:42:30 +02:00
<ClInclude Include= "resource.h" />
2021-07-28 20:20:09 +02:00
<ClInclude Include= "rundll32.h" />
2020-10-17 15:11:34 +02:00
<ClInclude Include= "wintun.h" />
2020-07-03 12:26:06 +02:00
</ItemGroup>
<ItemGroup >
2021-07-28 13:50:40 +02:00
<ClCompile Include= "main.c" />
2020-10-15 11:32:06 +02:00
<ClCompile Include= "adapter.c" />
2021-10-12 07:21:31 +02:00
<ClCompile Include= "driver.c" />
2020-10-13 19:40:52 +02:00
<ClCompile Include= "logger.c" />
2020-07-03 16:49:47 +02:00
<ClCompile Include= "namespace.c" />
2020-07-21 16:38:00 +02:00
<ClCompile Include= "registry.c" />
2020-10-13 19:42:30 +02:00
<ClCompile Include= "resource.c" />
2020-10-24 08:28:17 +02:00
<ClCompile Include= "session.c" />
2020-07-24 09:39:02 +02:00
<ClCompile Include= "rundll32.c" />
2020-07-03 12:26:06 +02:00
</ItemGroup>
2021-07-28 13:50:40 +02:00
<Import Project= "..\wintun.props.user" Condition= "exists('..\wintun.props.user')" />
2020-07-03 12:26:06 +02:00
<Import Project= "$(VCTargetsPath)\Microsoft.Cpp.targets" />
2021-07-28 13:50:40 +02:00
<ImportGroup Label= "ExtensionTargets" />
2020-07-03 12:26:06 +02:00
<PropertyGroup >
2021-07-28 13:50:40 +02:00
<CleanDependsOn > CleanInfVersion;CleanNci;$(CleanDependsOn)</CleanDependsOn>
2020-07-03 12:26:06 +02:00
</PropertyGroup>
2021-07-28 13:50:40 +02:00
<Target Name= "BuildInfVersion" BeforeTargets= "ClCompile" Inputs= "$(OutDir)driver\wintun.inf" Outputs= "$(IntDir)wintun-inf.h" >
<Exec Command= "cscript.exe /nologo "extract-driverver.js" < "$(OutDir)driver\wintun.inf" > "$(IntDir)wintun-inf.h"" />
2020-11-04 15:39:27 +01:00
</Target>
<Target Name= "CleanInfVersion" >
<Delete Files= "$(IntDir)wintun-inf.h" />
</Target>
<Target Name= "BuildNci" BeforeTargets= "Link" Inputs= "$(ProjectDir)nci.def;$(ProjectDir)nci.h" Outputs= "$(IntDir)nci.lib" >
<Exec Command= "cl.exe /nologo /DGENERATE_LIB /Ob0 /c /Fo"$(IntDir)nci.obj" /Tc "nci.h"" />
<Exec Command= "lib.exe /def:"$(ProjectDir)nci.def" /out:"$(IntDir)nci.lib" /machine:$(PlatformTarget) /nologo "$(IntDir)nci.obj"" />
</Target>
<Target Name= "CleanNci" >
<Delete Files= "$(IntDir)nci.obj;$(IntDir)nci.lib" />
</Target>
2021-10-12 07:21:31 +02:00
</Project>