aboutsummaryrefslogblamecommitdiffstats
path: root/wintun.props
blob: 5c82f0b62ec39f0dd8a0bd569f50b62a390ae840 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                      
    
                                  





                                                                                                                

                                                                                                                               

                                                                                                                            
                                                         






                                                                             




















                                                                                                                                                                                                          




                                                                                                                         
          
<?xml version="1.0" encoding="utf-8"?>
<!--
  SPDX-License-Identifier: GPL-2.0

  Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
-->
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <WintunVersionMaj>0</WintunVersionMaj>
    <WintunVersionMin>7</WintunVersionMin>
    <WintunVersionStr>0.7</WintunVersionStr><!-- Used in filenames and ProductVersion resource string, may contain strings. -->
    <WintunVersion>$(WintunVersionMaj).$(WintunVersionMin)</WintunVersion><!-- Used for versioning, must be n.n[.n[.n]]. -->

    <!-- .vcxproj are using different platform names. -->
    <WintunPlatform Condition="'$(Platform)'=='Win32'">x86</WintunPlatform>
    <WintunPlatform Condition="'$(Platform)'=='x64'">amd64</WintunPlatform>
    <WintunPlatform Condition="'$(Platform)'=='ARM64'">arm64</WintunPlatform>

    <DistributionDir>dist\</DistributionDir>
    <SDVDir>sdv\</SDVDir>
  </PropertyGroup>
  <ItemDefinitionGroup>
    <ClCompile>
      <PreprocessorDefinitions>WINTUN_VERSION_MAJ=$(WintunVersionMaj);WINTUN_VERSION_MIN=$(WintunVersionMin);WINTUN_VERSION_STR="$(WintunVersionStr)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <WarningLevel>Level4</WarningLevel>
    </ClCompile>
    <ResourceCompile>
      <PreprocessorDefinitions>WINTUN_VERSION_MAJ=$(WintunVersionMaj);WINTUN_VERSION_MIN=$(WintunVersionMin);WINTUN_VERSION_STR="$(WintunVersionStr)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
    </ResourceCompile>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
    <ClCompile>
      <Optimization>MaxSpeed</Optimization>
      <IntrinsicFunctions>true</IntrinsicFunctions>
      <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
    </ClCompile>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
    <ClCompile>
      <Optimization>Disabled</Optimization>
    </ClCompile>
  </ItemDefinitionGroup>
  <PropertyGroup>
    <WindowsSdkToolchainPlatform>$(PROCESSOR_ARCHITECTURE)</WindowsSdkToolchainPlatform>
    <WindowsSdkToolchainPlatform Condition="'$(PROCESSOR_ARCHITECTURE)'=='AMD64'">x64</WindowsSdkToolchainPlatform>
    <SignToolPath>$(WindowsSdkDir)bin\$(TargetPlatformVersion)\$(WindowsSdkToolchainPlatform)\signtool.exe</SignToolPath>
  </PropertyGroup>
</Project>