-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDirectory.Build.targets
29 lines (28 loc) · 1.39 KB
/
Directory.Build.targets
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)\LinuxTarget.targets" Condition="exists('$(MSBuildThisFileDirectory)\LinuxTarget.targets')"/>
<PropertyGroup>
<EnableASAN>true</EnableASAN>
</PropertyGroup>
<!--从兼容性考虑,继续向上搜索 Directory.Build.targets-->
<PropertyGroup>
<DirectoryBuildTargetsPath>$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))</DirectoryBuildTargetsPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(EnableASAN)'=='true'">
<ClCompile Condition="'$(UseDebugLibraries)'=='true'">
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
<ClCompile Condition="'$(UseDebugLibraries)'!='true'">
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(EnableASAN)'!='true'">
<ClCompile Condition="'$(UseDebugLibraries)'=='true'">
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
<ClCompile Condition="'$(UseDebugLibraries)'!='true'">
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
</ItemDefinitionGroup>
<Import Project="$(DirectoryBuildTargetsPath)" Condition="'$(DirectoryBuildTargetsPath)' != ''"/>
</Project>