b239eb6505
This moves downlevelshim.lib and those .lib from any future DLLs in this repo to the matching IntDir. Signed-off-by: Simon Rozman <simon@rozman.si>
91 lines
5.1 KiB
XML
91 lines
5.1 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="'$(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('..\$(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;cfgmgr32.dll;iphlpapi.dll;ole32.dll;nci.dll;setupapi.dll;shell32.dll;shlwapi.dll;version.dll</DelayLoadDLLs>
|
|
<AdditionalDependencies>Bcrypt.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>
|
|
</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="logger.h" />
|
|
<ClInclude Include="namespace.h" />
|
|
<ClInclude Include="nci.h" />
|
|
<ClInclude Include="ntdll.h" />
|
|
<ClInclude Include="registry.h" />
|
|
<ClInclude Include="resource.h" />
|
|
<ClInclude Include="rundll32.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> |