-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
51 lines (43 loc) · 2.67 KB
/
Directory.Build.props
File metadata and controls
51 lines (43 loc) · 2.67 KB
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Ensure SolutionDir is defined when outside of Visual Studio -->
<SolutionDir Condition=" '$(SolutionDir)' == '' Or '$(SolutionDir)' == '*Undefined*' ">$([System.IO.Path]::GetFullPath($([System.IO.Path]::Combine('$(MSBuildProjectDirectory)', '..\..'))))\</SolutionDir>
<!-- Path to root of the repository -->
<RepoRoot>$(SolutionDir)</RepoRoot>
<!-- Default to the Debug configuration if none specified -->
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<!-- Store .NET build outputs in a top-level bin/ directory -->
<OutputPath Condition=" '$(MSBuildProjectExtension)' == '.csproj' ">$(RepoRoot)bin\$(Configuration)\</OutputPath>
<!-- Create a platform directory for intermediate build outputs of Win32 builds -->
<IntDir Condition=" '$(MSBuildProjectExtension)' == '.vcxproj' and '$(IntDir)' == '' AND '$(IntermediateOutputPath)' == '' AND '$(Platform)' == 'Win32' ">x86\$(Configuration)\</IntDir>
<IntDir Condition=" '$(MSBuildProjectExtension)' == '.vcxproj' and '$(IntDir)' == '' AND '$(IntermediateOutputPath)' == '' AND '$(Platform)' != 'Win32' ">$(Platform)\$(Configuration)\</IntDir>
<!-- Store native build outputs in a top-level bin/ directory -->
<OutDir Condition=" '$(MSBuildProjectExtension)' == '.vcxproj' and '$(OutDir)' == '' AND '$(SolutionDir)' != '' AND '$(Platform)' == 'Win32' ">$(SolutionDir)bin\$(Configuration)\x86\</OutDir>
<OutDir Condition=" '$(MSBuildProjectExtension)' == '.vcxproj' and '$(OutDir)' == '' AND '$(SolutionDir)' != '' AND '$(Platform)' != 'Win32' ">$(SolutionDir)bin\$(Configuration)\$(Platform)\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition=" '$(MSBuildProjectExtension)' == '.vcxproj' ">
<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>
</Project>