7dffa4be72
Remember to rename wintun.vcxproj.user file in your local working folder to wintun.props.user manually. Signed-off-by: Simon Rozman <simon@rozman.si>
96 lines
5.5 KiB
XML
96 lines
5.5 KiB
XML
<?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>
|
|
<PropertyGroup Label="Configuration">
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
<PlatformToolset>WindowsApplicationForDrivers10.0</PlatformToolset>
|
|
</PropertyGroup>
|
|
<Import Project="..\wintun.props" />
|
|
<PropertyGroup>
|
|
<TargetName>wintun</TargetName>
|
|
<IgnoreImportLibrary>true</IgnoreImportLibrary>
|
|
</PropertyGroup>
|
|
<ItemDefinitionGroup>
|
|
<ClCompile>
|
|
<PreprocessorDefinitions>_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PreprocessorDefinitions Condition="Exists('$(OutDir)whql\')">HAVE_WHQL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">MAYBE_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PreprocessorDefinitions Condition="'$(Platform)'=='x64'">ACCEPT_WOW64;MAYBE_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PreprocessorDefinitions Condition="'$(Platform)'=='ARM'">MAYBE_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PreprocessorDefinitions Condition="'$(Platform)'=='ARM64'">ACCEPT_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<AdditionalOptions>/volatile:iso %(AdditionalOptions)</AdditionalOptions>
|
|
<DisableSpecificWarnings>4100;4201;$(DisableSpecificWarnings)</DisableSpecificWarnings>
|
|
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
</ClCompile>
|
|
<ResourceCompile>
|
|
<AdditionalIncludeDirectories>..\$(Configuration)\$(WintunPlatform);..\$(Configuration);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
<PreprocessorDefinitions Condition="Exists('$(OutDir)whql\')">HAVE_WHQL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PreprocessorDefinitions Condition="Exists('..\$(Configuration)\arm64\wintun.dll')">BUILT_ARM64_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<PreprocessorDefinitions Condition="Exists('..\$(Configuration)\amd64\wintun.dll')">BUILT_AMD64_WOW64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<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>
|
|
</ResourceCompile>
|
|
<Link>
|
|
<DelayLoadDLLs>advapi32.dll;bcrypt.dll;crypt32.dll;cfgmgr32.dll;iphlpapi.dll;ole32.dll;nci.dll;setupapi.dll;shell32.dll;shlwapi.dll;version.dll</DelayLoadDLLs>
|
|
<AdditionalDependencies>Bcrypt.lib;Crypt32.lib;Cfgmgr32.lib;Iphlpapi.lib;$(IntDir)nci.lib;ntdll.lib;Setupapi.lib;shlwapi.lib;version.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
<ModuleDefinitionFile>exports.def</ModuleDefinitionFile>
|
|
<SubSystem>Windows</SubSystem>
|
|
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
<ItemGroup>
|
|
<ResourceCompile Include="resources.rc" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="exports.def" />
|
|
<None Include="nci.def" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClInclude Include="main.h" />
|
|
<ClInclude Include="adapter.h" />
|
|
<ClInclude Include="rundll32_i.c">
|
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
|
</ClInclude>
|
|
<ClInclude Include="logger.h" />
|
|
<ClInclude Include="namespace.h" />
|
|
<ClInclude Include="nci.h" />
|
|
<ClInclude Include="ntdll.h" />
|
|
<ClInclude Include="registry.h" />
|
|
<ClInclude Include="resource.h" />
|
|
<ClInclude Include="wintun.h" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClCompile Include="main.c" />
|
|
<ClCompile Include="adapter.c" />
|
|
<ClCompile Include="logger.c" />
|
|
<ClCompile Include="namespace.c" />
|
|
<ClCompile Include="registry.c" />
|
|
<ClCompile Include="resource.c" />
|
|
<ClCompile Include="session.c" />
|
|
<ClCompile Include="rundll32.c" />
|
|
</ItemGroup>
|
|
<Import Project="..\wintun.props.user" Condition="exists('..\wintun.props.user')" />
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
<ImportGroup Label="ExtensionTargets" />
|
|
<PropertyGroup>
|
|
<CleanDependsOn>CleanInfVersion;CleanNci;$(CleanDependsOn)</CleanDependsOn>
|
|
</PropertyGroup>
|
|
<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"" />
|
|
</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>
|
|
</Project> |