-
Notifications
You must be signed in to change notification settings - Fork 12
/
Directory.Build.props
70 lines (69 loc) · 3.75 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
<Project>
<PropertyGroup>
<Deterministic>true</Deterministic>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)\style.ruleset</CodeAnalysisRuleSet>
<!--<DotnetFscCompilerPath></DotnetFscCompilerPath>-->
<!-- all of these are 64 bit except for linux-arm -->
<RuntimeIdentifiers>win-x64;win-arm64;linux-x64;linux-musl-x64;linux-arm;linux-arm64;osx-x64</RuntimeIdentifiers>
<!--<DocumentationMode>Diagnose</DocumentationMode>-->
<!--Enable xml documentation output for everything -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TargetFramework>net5.0</TargetFramework>
<!--<LangVersion></LangVersion>-->
<!-- Explicitly set the PlatformTarget for arm64, see: https://github.com/dotnet/sdk/issues/15434 -->
<PlatformTarget Condition="'$(Platform)' == 'arm64'">arm64</PlatformTarget>
</PropertyGroup>
<!-- https://github.com/dotnet/sdk/pull/16802 TODO: Remove for .NET 6 -->
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '3.1'))">
<AvailablePlatforms>$(AvailablePlatforms),ARM64</AvailablePlatforms>
</PropertyGroup>
<PropertyGroup
Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">
<BuildIsOSX>true</BuildIsOSX>
<DefineConstants>$(DefineConstants);BUILDING_ON_OSX</DefineConstants>
</PropertyGroup>
<PropertyGroup
Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">
<BuildIsLinux>true</BuildIsLinux>
<DefineConstants>$(DefineConstants);BUILDING_ON_LINUX</DefineConstants>
</PropertyGroup>
<PropertyGroup
Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">
<BuildIsWindows>true</BuildIsWindows>
<DefineConstants>$(DefineConstants);BUILDING_ON_WINDOWS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(RuntimeIdentifier.Contains('musl'))">
<DefineConstants>$(DefineConstants);BUILT_AGAINST_MUSL</DefineConstants>
</PropertyGroup>
<PropertyGroup Label="Common">
<Company>QUT Ecoacoustics Research Group</Company>
<Authors>Michael Towsey, Anthony Truskinger, et al.</Authors>
<Copyright>Copyright © QUT $([System.DateTime]::Now.Year)</Copyright>
<Product>QUT Ecoacoustics Analysis Programs</Product>
<RepositoryType>Git</RepositoryType>
<PackageLicenseUrl>https://github.com/QutEcoacoustics/audio-analysis/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/QutEcoacoustics/audio-analysis</PackageProjectUrl>
<PackageIconUrl></PackageIconUrl>
<RepositoryUrl>https://github.com/QutEcoacoustics/audio-analysis.git</RepositoryUrl>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json">
<Link>stylecop.json</Link>
</AdditionalFiles>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.164">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<Choose>
<When Condition="$(MSBuildProjectName)!='Acoustics.Shared'">
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)BannedSymbols.txt" />
</ItemGroup>
</When>
</Choose>
</Project>