Skip to content

Commit 413d52f

Browse files
committed
Add standard visual studio common lib props.
1 parent 831c8bd commit 413d52f

9 files changed

Lines changed: 163 additions & 0 deletions

File tree

builds/msvc/properties/DLL.props

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_PropertySheetDisplayName>Dynamic Library</_PropertySheetDisplayName>
6+
<DefaultLinkage>dynamic</DefaultLinkage>
7+
<TargetExt>.dll</TargetExt>
8+
</PropertyGroup>
9+
10+
<ItemDefinitionGroup>
11+
<ClCompile>
12+
<PreprocessorDefinitions>_DLL;_WINDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
13+
</ClCompile>
14+
</ItemDefinitionGroup>
15+
16+
</Project>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_PropertySheetDisplayName>Dynamic Debug Library</_PropertySheetDisplayName>
6+
</PropertyGroup>
7+
8+
<ImportGroup Label="PropertySheets">
9+
<Import Project="Debug.props" />
10+
<Import Project="DLL.props" />
11+
</ImportGroup>
12+
13+
<ItemDefinitionGroup>
14+
<ClCompile>
15+
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
16+
<LinkIncremental>true</LinkIncremental>
17+
</ClCompile>
18+
</ItemDefinitionGroup>
19+
20+
</Project>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_PropertySheetDisplayName>Static Debug Library</_PropertySheetDisplayName>
6+
</PropertyGroup>
7+
8+
<ImportGroup Label="PropertySheets">
9+
<Import Project="Debug.props" />
10+
<Import Project="LIB.props" />
11+
</ImportGroup>
12+
13+
<ItemDefinitionGroup>
14+
<ClCompile>
15+
<DebugInformationFormat>OldStyle</DebugInformationFormat>
16+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
17+
<LinkIncremental>true</LinkIncremental>
18+
</ClCompile>
19+
</ItemDefinitionGroup>
20+
21+
</Project>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_PropertySheetDisplayName>Static Debug Link Time Code Generation Library</_PropertySheetDisplayName>
6+
</PropertyGroup>
7+
8+
<ImportGroup Label="PropertySheets">
9+
<Import Project="Debug.props" />
10+
<Import Project="LTCG.props" />
11+
</ImportGroup>
12+
13+
<ItemDefinitionGroup>
14+
<ClCompile>
15+
<DebugInformationFormat>OldStyle</DebugInformationFormat>
16+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
17+
</ClCompile>
18+
</ItemDefinitionGroup>
19+
20+
</Project>

builds/msvc/properties/LIB.props

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_PropertySheetDisplayName>Static Library</_PropertySheetDisplayName>
6+
<DefaultLinkage>static</DefaultLinkage>
7+
<TargetExt>.lib</TargetExt>
8+
</PropertyGroup>
9+
10+
<ItemDefinitionGroup>
11+
<ClCompile>
12+
<PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
13+
</ClCompile>
14+
</ItemDefinitionGroup>
15+
16+
</Project>

builds/msvc/properties/LTCG.props

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_PropertySheetDisplayName>Link Time Code Generation Library</_PropertySheetDisplayName>
6+
</PropertyGroup>
7+
8+
<ImportGroup Label="PropertySheets">
9+
<Import Project="LIB.props" />
10+
<Import Project="Link.props" />
11+
</ImportGroup>
12+
13+
</Project>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_PropertySheetDisplayName>Dynamic Release Library</_PropertySheetDisplayName>
6+
</PropertyGroup>
7+
8+
<ImportGroup Label="PropertySheets">
9+
<Import Project="Release.props" />
10+
<Import Project="DLL.props" />
11+
</ImportGroup>
12+
13+
<ItemDefinitionGroup>
14+
<ClCompile>
15+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
16+
</ClCompile>
17+
</ItemDefinitionGroup>
18+
19+
</Project>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_PropertySheetDisplayName>Static Release Library</_PropertySheetDisplayName>
6+
</PropertyGroup>
7+
8+
<ImportGroup Label="PropertySheets">
9+
<Import Project="Release.props" />
10+
<Import Project="LIB.props" />
11+
</ImportGroup>
12+
13+
<ItemDefinitionGroup>
14+
<ClCompile>
15+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
16+
</ClCompile>
17+
</ItemDefinitionGroup>
18+
19+
</Project>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<PropertyGroup>
5+
<_PropertySheetDisplayName>Static Release Link Time Code Generation Library</_PropertySheetDisplayName>
6+
</PropertyGroup>
7+
8+
<ImportGroup Label="PropertySheets">
9+
<Import Project="Release.props" />
10+
<Import Project="LTCG.props" />
11+
</ImportGroup>
12+
13+
<ItemDefinitionGroup>
14+
<ClCompile>
15+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
16+
</ClCompile>
17+
</ItemDefinitionGroup>
18+
19+
</Project>

0 commit comments

Comments
 (0)