forked from IronLanguages/dlr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
109 lines (90 loc) · 4.74 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="$(MSBuildThisFileDirectory)\CurrentVersion.props" />
<PropertyGroup>
<DlrRootDir>$(MSBuildThisFileDirectory)</DlrRootDir>
<DlrBuildDir>$(DlrRootDir)\Build</DlrBuildDir>
<Mono Condition=" '$(Mono)' == '' and '$(OS)' != 'Windows_NT'">true</Mono>
<!-- The following two lines prevent csc.rsp and Microsoft.NETFramework.props from adding additional assembly references -->
<NoConfig>true</NoConfig>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
<AssemblyFileRevision Condition="'$(ReleaseLevel)' == 'alpha'">000$(ReleaseSerial)</AssemblyFileRevision>
<AssemblyFileRevision Condition="'$(ReleaseLevel)' == 'beta'">00$(ReleaseSerial)0</AssemblyFileRevision>
<AssemblyFileRevision Condition="'$(ReleaseLevel)' == 'candidate'">0$(ReleaseSerial)00</AssemblyFileRevision>
<AssemblyFileRevision Condition="'$(ReleaseLevel)' == 'final'">1000</AssemblyFileRevision>
<Product>Dynamic Language Runtime</Product>
<Company>DLR Open Source Team</Company>
<Copyright>© DLR Contributors</Copyright>
<AssemblyVersion>$(MajorVersion).$(MinorVersion).$(MicroVersion).$(AssemblyRevision)</AssemblyVersion>
<FileVersion>$(MajorVersion).$(MinorVersion).$(MicroVersion).$(AssemblyFileRevision)</FileVersion>
<InformationalVersion>$(MSBuildProjectName) $(MajorVersion).$(MinorVersion).$(MicroVersion) $(ReleaseLevel) $(ReleaseSerial)</InformationalVersion>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
</PropertyGroup>
<!-- Signing -->
<PropertyGroup>
<PublicKey>$(DlrBuildDir)\Key.snk</PublicKey>
</PropertyGroup>
<PropertyGroup Condition="Exists('$(PublicKey)') and '$(AssemblyOriginatorKeyFile)'==''">
<AssemblyOriginatorKeyFile>$(PublicKey)</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup Condition="'$(SignAssembly)' == 'true'">
<SignedSym>SIGNED</SignedSym>
</PropertyGroup>
<PropertyGroup>
<AfterTargetFiles>$(DlrBuildDir)\After.targets</AfterTargetFiles>
<AfterTargets>Stage</AfterTargets>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
</PropertyGroup>
<!-- This ensures we have a Release and Debug build configuration in Visual Studio -->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
</PropertyGroup>
<!-- Normally Configuration is set by the build system,
but they are not when building in Visual Studio (because Build.proj is not
used). Fill then in here based on the selected configuration. -->
<PropertyGroup Condition=" '$(Configuration)' == '' ">
<Configuration>Debug</Configuration>
<Configuration Condition="'$(Configuration)' == 'FxCop'">Release</Configuration>
<Configuration Condition="'$(Configuration)' == 'Release'">Release</Configuration>
</PropertyGroup>
<PropertyGroup Condition="'$(Mono)' == 'true'">
<CscToolExeSuffix Condition="'$(OS)' == 'Windows_NT'">.bat</CscToolExeSuffix>
<CscToolExeSuffix Condition="'$(OS)' != 'Windows_NT'"></CscToolExeSuffix>
</PropertyGroup>
<!-- References -->
<Import Project="$(DlrBuildDir)\$(TargetFramework).props" Condition="'$(TargetFramework)' != ''" />
<PropertyGroup>
<BaseOutputPath>$(DlrRootDir)\bin\$(Configuration)</BaseOutputPath>
<OutputPath>$(BaseOutputPath)</OutputPath>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>618;429;219;1717;162;414</WarningsNotAsErrors>
<NoWarn>1591;1584;1574;1685;1573</NoWarn>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<RunCodeAnalysis Condition="'$(Configuration)' == 'FxCop'">true</RunCodeAnalysis>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<!-- Release -->
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<DebugSymbols>false</DebugSymbols>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<DefineConstants>$(Features);$(SignedSym);TRACE</DefineConstants>
</PropertyGroup>
<!-- Debug -->
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<!-- TODO: Python & zlib.net need some work -->
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<DefineConstants>$(Features);$(SignedSym);DEBUG;TRACE</DefineConstants>
</PropertyGroup>
</Project>