-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
56 lines (49 loc) · 2.39 KB
/
Directory.Build.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Path to root of the repository -->
<RepoRoot>$([System.IO.Path]::GetFullPath($([System.IO.Path]::Combine('$(MSBuildProjectDirectory)', '..'))))\</RepoRoot>
<!-- Create a platform directory for intermediate build outputs of Win32 builds -->
<IntDir Condition="'$(IntDir)' == '' AND '$(IntermediateOutputPath)' == '' AND '$(Platform)' == 'Win32'">x86\$(Configuration)\</IntDir>
<IntDir Condition="'$(IntDir)' == '' AND '$(IntermediateOutputPath)' == '' AND '$(Platform)' != 'Win32'">$(Platform)\$(Configuration)\</IntDir>
<!-- Store build outputs in a shared top-level bin/ directory -->
<OutDir Condition="'$(OutDir)' == '' AND '$(SolutionDir)' != '' AND '$(Platform)' == 'Win32'">$(SolutionDir)bin\x86\$(Configuration)\</OutDir>
<OutDir Condition="'$(OutDir)' == '' AND '$(SolutionDir)' != '' AND '$(Platform)' != 'Win32'">$(SolutionDir)bin\$(Platform)\$(Configuration)\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<!-- General -->
<AdditionalIncludeDirectories>$(SolutionDir)src\Common</AdditionalIncludeDirectories>
<WarningLevel>Level4</WarningLevel>
<SDLCheck>true</SDLCheck>
<!-- Language -->
<LanguageStandard_C>stdc17</LanguageStandard_C>
<ConformanceMode>true</ConformanceMode>
<!-- Precompiled headers -->
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<!-- Advanced -->
<CompileAs>CompileAsC</CompileAs>
</ClCompile>
<Link>
<!-- Debugging -->
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<ResourceCompile>
<!-- General -->
<AdditionalIncludeDirectories>$(SolutionDir)src\Common</AdditionalIncludeDirectories>
<Culture>0x0c09</Culture>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)' == 'Debug'">
<ResourceCompile>
<!-- General -->
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)' == 'Release'">
<ResourceCompile>
<!-- General -->
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
</Project>