2019-04-19 15:24:39 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
|
|
|
|
-->
|
|
|
|
<Project
|
|
|
|
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
|
|
|
|
DefaultTargets="Build">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
General Properties
|
|
|
|
-->
|
|
|
|
<Import Project="wintun.props"/>
|
|
|
|
<Import Project="wintun.vcxproj.user" Condition="exists('wintun.vcxproj.user')"/>
|
|
|
|
|
2019-04-23 13:19:27 +02:00
|
|
|
<Target Name="Build" DependsOnTargets="Driver-x86;Driver-amd64;Driver-arm64"/>
|
|
|
|
<Target Name="MSM" DependsOnTargets="MSM-x86;MSM-amd64"/>
|
2019-04-19 15:24:39 +02:00
|
|
|
<Target Name="Clean">
|
2019-04-23 13:19:27 +02:00
|
|
|
<RemoveDir Directories="x86\Release\"/>
|
|
|
|
<RemoveDir Directories="amd64\Release\"/>
|
|
|
|
<RemoveDir Directories="arm64\Release\"/>
|
2019-04-19 15:24:39 +02:00
|
|
|
<RemoveDir Directories="$(SDVDir)"/>
|
|
|
|
<RemoveDir Directories="$(DistributionDir)"/>
|
|
|
|
<Delete Files="smvbuild.log;smvstats.txt;wintun.DVL.XML"/>
|
|
|
|
</Target>
|
|
|
|
<Target Name="Rebuild" DependsOnTargets="Clean;Build"/>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Driver Building
|
|
|
|
Note: Use explicit Inputs/Outputs as WindowsDriver.Common.targets triggers driver re-packaging and signing on every invocation.
|
|
|
|
-->
|
2019-04-23 13:19:27 +02:00
|
|
|
<Target Name="Driver-x86"
|
|
|
|
Outputs="x86\Release\wintun\wintun.sys;x86\Release\wintun\wintun.inf;x86\Release\wintun\wintun.cat"
|
2019-04-19 15:47:28 +02:00
|
|
|
Inputs="wintun.c;wintun.inf;wintun.props;wintun.rc;wintun.vcxproj">
|
2019-04-19 15:24:39 +02:00
|
|
|
<MSBuild
|
|
|
|
Projects="wintun.vcxproj"
|
|
|
|
Targets="Build"
|
2019-04-23 13:19:27 +02:00
|
|
|
Properties="Configuration=Release;Platform=Win32"/>
|
|
|
|
</Target>
|
|
|
|
<Target Name="Driver-amd64"
|
|
|
|
Outputs="amd64\Release\wintun\wintun.sys;amd64\Release\wintun\wintun.inf;amd64\Release\wintun\wintun.cat"
|
|
|
|
Inputs="wintun.c;wintun.inf;wintun.props;wintun.rc;wintun.vcxproj">
|
|
|
|
<MSBuild
|
|
|
|
Projects="wintun.vcxproj"
|
|
|
|
Targets="Build"
|
|
|
|
Properties="Configuration=Release;Platform=x64"/>
|
|
|
|
</Target>
|
|
|
|
<Target Name="Driver-arm64"
|
|
|
|
Outputs="arm64\Release\wintun\wintun.sys;arm64\Release\wintun\wintun.inf;arm64\Release\wintun\wintun.cat"
|
|
|
|
Inputs="wintun.c;wintun.inf;wintun.props;wintun.rc;wintun.vcxproj">
|
|
|
|
<MSBuild
|
|
|
|
Projects="wintun.vcxproj"
|
|
|
|
Targets="Build"
|
|
|
|
Properties="Configuration=Release;Platform=ARM64"/>
|
2019-04-19 15:24:39 +02:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Static Driver Verifier
|
|
|
|
-->
|
|
|
|
<Target Name="SDV"
|
2019-04-23 13:19:27 +02:00
|
|
|
Outputs="$(SDVDir)SDV.DVL.xml;amd64\Release\vc.nativecodeanalysis.all.xml">
|
2019-04-19 15:24:39 +02:00
|
|
|
<MSBuild
|
|
|
|
Projects="wintun.vcxproj"
|
|
|
|
Targets="sdv"
|
2019-04-23 13:19:27 +02:00
|
|
|
Properties="Inputs=/check:*;Configuration=Release;Platform=x64"/>
|
2019-04-19 15:24:39 +02:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Driver Verification Log
|
|
|
|
-->
|
|
|
|
<Target Name="DVL"
|
|
|
|
DependsOnTargets="SDV"
|
|
|
|
Outputs="wintun.DVL.XML"
|
2019-04-23 13:19:27 +02:00
|
|
|
Inputs="$(SDVDir)SDV.DVL.xml;amd64\Release\vc.nativecodeanalysis.all.xml">
|
2019-04-19 15:24:39 +02:00
|
|
|
<MSBuild
|
|
|
|
Projects="wintun.vcxproj"
|
|
|
|
Targets="dvl"
|
2019-04-23 13:19:27 +02:00
|
|
|
Properties="Configuration=Release;Platform=x64"/>
|
2019-04-19 15:24:39 +02:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
MSM Building
|
|
|
|
-->
|
2019-04-23 13:19:27 +02:00
|
|
|
<Target Name="MSM-x86"
|
|
|
|
DependsOnTargets="Build"
|
|
|
|
Outputs="$(DistributionDir)wintun-x86-$(WintunVersionStr).msm">
|
|
|
|
<MSBuild
|
|
|
|
Projects="wintun.wixproj"
|
|
|
|
Targets="Build"
|
|
|
|
Properties="Configuration=Release;Platform=x86"/>
|
|
|
|
</Target>
|
|
|
|
<Target Name="MSM-amd64"
|
2019-04-19 15:24:39 +02:00
|
|
|
DependsOnTargets="Build"
|
2019-04-23 13:19:27 +02:00
|
|
|
Outputs="$(DistributionDir)wintun-amd64-$(WintunVersionStr).msm">
|
2019-04-19 15:24:39 +02:00
|
|
|
<MSBuild
|
|
|
|
Projects="wintun.wixproj"
|
|
|
|
Targets="Build"
|
2019-04-23 13:19:27 +02:00
|
|
|
Properties="Configuration=Release;Platform=x64"/>
|
2019-04-19 15:24:39 +02:00
|
|
|
</Target>
|
|
|
|
</Project>
|