2019-07-31 13:52:20 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-04-19 15:24:39 +02:00
|
|
|
<!--
|
2019-07-22 09:36:21 +02:00
|
|
|
SPDX-License-Identifier: GPL-2.0
|
2019-04-19 15:24:39 +02:00
|
|
|
|
|
|
|
Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
|
|
|
|
-->
|
2019-04-23 13:28:03 +02:00
|
|
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
|
2019-04-19 15:24:39 +02:00
|
|
|
|
|
|
|
<!--
|
|
|
|
General Properties
|
|
|
|
-->
|
2019-08-02 13:21:15 +02:00
|
|
|
<Import Project="wintun.props" />
|
|
|
|
<Import Project="wintun.vcxproj.user" Condition="exists('wintun.vcxproj.user')" />
|
2019-04-19 15:24:39 +02:00
|
|
|
|
2019-08-02 13:21:15 +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-08-02 13:21:15 +02:00
|
|
|
<RemoveDir Directories="x86\Release\" />
|
|
|
|
<RemoveDir Directories="amd64\Release\" />
|
|
|
|
<RemoveDir Directories="arm64\Release\" />
|
|
|
|
<RemoveDir Directories="$(SDVDir)" />
|
|
|
|
<RemoveDir Directories="$(DistributionDir)" />
|
|
|
|
<Delete Files="smvbuild.log;smvstats.txt;wintun.DVL.XML" />
|
2019-04-19 15:24:39 +02:00
|
|
|
</Target>
|
2019-08-02 13:21:15 +02:00
|
|
|
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
|
2019-04-19 15:24:39 +02:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Driver Building
|
|
|
|
Note: Use explicit Inputs/Outputs as WindowsDriver.Common.targets triggers driver re-packaging and signing on every invocation.
|
|
|
|
-->
|
2019-07-31 13:52:20 +02:00
|
|
|
<PropertyGroup>
|
|
|
|
<DriverInputs>atomic.h;undocumented.h;wintun.c;wintun.inf;wintun.props;wintun.rc;wintun.vcxproj;$(DriverInputs)</DriverInputs>
|
|
|
|
</PropertyGroup>
|
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-07-31 13:52:20 +02:00
|
|
|
Inputs="$(DriverInputs)">
|
2019-08-02 13:21:15 +02:00
|
|
|
<MSBuild Projects="wintun.vcxproj" Targets="Build" Properties="Configuration=Release;Platform=Win32" />
|
2019-04-23 13:19:27 +02:00
|
|
|
</Target>
|
|
|
|
<Target Name="Driver-amd64"
|
|
|
|
Outputs="amd64\Release\wintun\wintun.sys;amd64\Release\wintun\wintun.inf;amd64\Release\wintun\wintun.cat"
|
2019-07-31 13:52:20 +02:00
|
|
|
Inputs="$(DriverInputs)">
|
2019-08-02 13:21:15 +02:00
|
|
|
<MSBuild Projects="wintun.vcxproj" Targets="Build" Properties="Configuration=Release;Platform=x64" />
|
2019-04-23 13:19:27 +02:00
|
|
|
</Target>
|
|
|
|
<Target Name="Driver-arm64"
|
|
|
|
Outputs="arm64\Release\wintun\wintun.sys;arm64\Release\wintun\wintun.inf;arm64\Release\wintun\wintun.cat"
|
2019-07-31 13:52:20 +02:00
|
|
|
Inputs="$(DriverInputs)">
|
2019-08-02 13:21:15 +02:00
|
|
|
<MSBuild Projects="wintun.vcxproj" Targets="Build" Properties="Configuration=Release;Platform=ARM64" />
|
2019-04-19 15:24:39 +02:00
|
|
|
</Target>
|
|
|
|
|
2019-07-22 09:36:21 +02:00
|
|
|
<!--
|
|
|
|
installer.dll Building
|
|
|
|
-->
|
2019-08-01 17:29:01 +02:00
|
|
|
<Target Name="Installer-x86"
|
2019-07-22 09:36:21 +02:00
|
|
|
Outputs="x86\Release\installer.dll">
|
2019-08-02 13:21:15 +02:00
|
|
|
<MSBuild Projects="installer\installer.vcxproj" Targets="Build" Properties="Configuration=Release;Platform=Win32" />
|
2019-07-22 09:36:21 +02:00
|
|
|
</Target>
|
2019-08-01 17:29:01 +02:00
|
|
|
<Target Name="Installer-amd64"
|
2019-07-22 09:36:21 +02:00
|
|
|
Outputs="amd64\Release\installer.dll">
|
2019-08-02 13:21:15 +02:00
|
|
|
<MSBuild Projects="installer\installer.vcxproj" Targets="Build" Properties="Configuration=Release;Platform=x64" />
|
2019-07-22 09:36:21 +02:00
|
|
|
</Target>
|
2019-08-01 17:29:01 +02:00
|
|
|
<Target Name="Installer-arm64"
|
2019-07-22 09:36:21 +02:00
|
|
|
Outputs="arm64\Release\installer.dll">
|
2019-08-02 13:21:15 +02:00
|
|
|
<MSBuild Projects="installer\installer.vcxproj" Targets="Build" Properties="Configuration=Release;Platform=ARM64" />
|
2019-07-22 09:36:21 +02:00
|
|
|
</Target>
|
|
|
|
|
2019-04-19 15:24:39 +02:00
|
|
|
<!--
|
|
|
|
Static Driver Verifier
|
|
|
|
-->
|
2019-04-23 13:28:03 +02:00
|
|
|
<Target Name="SDV" Outputs="$(SDVDir)SDV.DVL.xml;amd64\Release\vc.nativecodeanalysis.all.xml">
|
2019-08-02 13:21:15 +02:00
|
|
|
<MSBuild Projects="wintun.vcxproj" Targets="sdv" Properties="Inputs=/check:*;Configuration=Release;Platform=x64" />
|
2019-04-19 15:24:39 +02:00
|
|
|
</Target>
|
2019-07-31 13:53:37 +02:00
|
|
|
<Target Name="SDVView">
|
2019-08-02 13:21:15 +02:00
|
|
|
<MSBuild Projects="wintun.vcxproj" Targets="sdv" Properties="Inputs=/view;Configuration=Release;Platform=x64" />
|
2019-07-31 13:53:37 +02:00
|
|
|
</Target>
|
2019-07-31 13:51:35 +02:00
|
|
|
|
2019-04-19 15:24:39 +02:00
|
|
|
<!--
|
|
|
|
Driver Verification Log
|
|
|
|
-->
|
2019-04-23 13:28:03 +02:00
|
|
|
<Target Name="DVL" DependsOnTargets="SDV"
|
2019-04-19 15:24:39 +02:00
|
|
|
Outputs="wintun.DVL.XML"
|
2019-04-23 13:19:27 +02:00
|
|
|
Inputs="$(SDVDir)SDV.DVL.xml;amd64\Release\vc.nativecodeanalysis.all.xml">
|
2019-08-02 13:21:15 +02:00
|
|
|
<MSBuild Projects="wintun.vcxproj" Targets="dvl" Properties="Configuration=Release;Platform=x64" />
|
2019-04-19 15:24:39 +02:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
MSM Building
|
|
|
|
-->
|
2019-07-22 09:36:21 +02:00
|
|
|
<Target Name="MSM-x86" DependsOnTargets="Installer-x86"
|
|
|
|
Outputs="$(DistributionDir)wintun-x86-$(WintunVersionStr).msm">
|
2019-08-02 13:21:15 +02:00
|
|
|
<MSBuild Projects="installer/installer.wixproj" Targets="Build" Properties="Configuration=Release;Platform=x86" />
|
2019-04-23 13:19:27 +02:00
|
|
|
</Target>
|
2019-07-22 09:36:21 +02:00
|
|
|
<Target Name="MSM-amd64" DependsOnTargets="Installer-amd64"
|
|
|
|
Outputs="$(DistributionDir)wintun-amd64-$(WintunVersionStr).msm">
|
2019-08-02 13:21:15 +02:00
|
|
|
<MSBuild Projects="installer/installer.wixproj" Targets="Build" Properties="Configuration=Release;Platform=x64" />
|
2019-04-19 15:24:39 +02:00
|
|
|
</Target>
|
|
|
|
</Project>
|