-
Notifications
You must be signed in to change notification settings - Fork 154
/
PresentMon.props
30 lines (30 loc) · 1.45 KB
/
PresentMon.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="UserMacros">
<!-- PresentMonVersion should be "dev" on main branch, and the version number (e.g., 2.1.0) on release branches. -->
<PresentMonVersion>dev</PresentMonVersion>
<PresentMonPlatform>$(Platform)</PresentMonPlatform>
</PropertyGroup>
<PropertyGroup Label="UserMacros" Condition="'$(Platform)'=='Win32'">
<PresentMonPlatform>x86</PresentMonPlatform>
</PropertyGroup>
<PropertyGroup>
<OutDir>$(MsBuildThisFileDirectory)build\$(Configuration)\</OutDir>
<IntDir>$(MsBuildThisFileDirectory)build\obj\$(ProjectName)-$(Platform)-$(Configuration)\</IntDir>
<TargetName>$(ProjectName)-$(PresentMonVersion)-$(PresentMonPlatform)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup>
<PreBuildEvent>
<Command>call $(MsBuildThisFileDirectory)Tools\generate_version_header.cmd $(PresentMonVersion) $(MsBuildThisFileDirectory)build\obj\generated\version.h</Command>
</PreBuildEvent>
<ClCompile>
<AdditionalIncludeDirectories>$(MsBuildThisFileDirectory)build\obj;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<WarningLevel>Level4</WarningLevel>
<TreatWarningAsError>true</TreatWarningAsError>
</ClCompile>
<Link>
<TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
</Link>
</ItemDefinitionGroup>
<ItemGroup />
</Project>