SkiaSharp/source/SkiaSharp.Build.props

53 строки
2.2 KiB
XML

<Project>
<!--
Warning codes:
- part of the source build: <none>
- part of SkiaSharp: SK00xx
- part of SkiaSharp.Views: SK0x0x
- part of SkiaSharp.Views.Forms: SKx00x
-->
<PropertyGroup>
<!-- this is important for mono as it defaults to 'false' -->
<SignAssembly>true</SignAssembly>
<SkiaSharpBuildPropsImported>true</SkiaSharpBuildPropsImported>
<MDocDocumentationDirectory>$(MSBuildThisFileDirectory)..\docs\SkiaSharpAPI</MDocDocumentationDirectory>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<LangVersion>8.0</LangVersion>
</PropertyGroup>
<PropertyGroup>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DefineConstants>$(DefineConstants);THROW_OBJECT_EXCEPTIONS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
<DependsOnNETStandard>true</DependsOnNETStandard>
</PropertyGroup>
<PropertyGroup>
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
<IsMacOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsMacOS>
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
</PropertyGroup>
<Target Name="PrintRID"
BeforeTargets="BeforeBuild">
<Message Text="Operating System: Windows"
Condition=" '$(IsWindows)' == 'true' " />
<Message Text="Operating System: macOS"
Condition=" '$(IsMacOS)' == 'true' " />
<Message Text="Operating System: Linux"
Condition=" '$(IsLinux)' == 'true' " />
<Error Text="There appears to be a problem selecting the operating system. IsWindows='$(IsWindows)', IsMacOS='$(IsMacOS)', IsLinux='$(IsLinux)'"
Condition=" '$(IsWindows)$(IsMacOS)$(IsLinux)' != 'true' " />
</Target>
</Project>